Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-date-time

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-date-time - npm Package Compare versions

Comparing version 2.0.0-alpha.18 to 2.0.0-alpha.21

8

dist/date_time.js

@@ -26,4 +26,4 @@ "use strict";

const offsetToGregorianCalendarZero = -t1600 + t1970;
node_opcua_assert_1.default(factor1 === 10000);
node_opcua_assert_1.default(offsetToGregorianCalendarZero === 11644473600000);
node_opcua_assert_1.assert(factor1 === 10000);
node_opcua_assert_1.assert(offsetToGregorianCalendarZero === 11644473600000);
return [offsetToGregorianCalendarZero, factor1];

@@ -77,3 +77,3 @@ })();

function bn_dateToHundredNanoSecondFrom1601(date, picoseconds) {
node_opcua_assert_1.default(date instanceof Date);
node_opcua_assert_1.assert(date instanceof Date);
if (date.high_low) {

@@ -101,3 +101,3 @@ return date.high_low;

function bn_hundredNanoSecondFrom1601ToDate(high, low, picoseconds = 0) {
node_opcua_assert_1.default(low !== undefined);
node_opcua_assert_1.assert(low !== undefined);
// value_64 / factor - offset = t

@@ -104,0 +104,0 @@ const l = new long(low, high, /*unsigned*/ true);

@@ -45,3 +45,3 @@ "use strict";

}
node_opcua_assert_1.default(date instanceof Date);
node_opcua_assert_1.assert(date instanceof Date);
const hl = date_time_1.bn_dateToHundredNanoSecondFrom1601(date, picoseconds);

@@ -48,0 +48,0 @@ const hi = hl[0];

@@ -5,3 +5,3 @@ {

"types": "./dist/index.d.ts",
"version": "2.0.0-alpha.18",
"version": "2.0.0-alpha.21",
"description": "pure nodejs OPCUA SDK - module -date-time",

@@ -18,6 +18,6 @@ "scripts": {

"devDependencies": {
"@types/underscore": "^1.8.13",
"@types/underscore": "^1.8.14",
"bignumber.js": "^8.1.1",
"node-opcua-benchmarker": "^2.0.0-alpha.18",
"node-opcua-binary-stream": "^2.0.0-alpha.18",
"node-opcua-benchmarker": "^2.0.0-alpha.21",
"node-opcua-binary-stream": "^2.0.0-alpha.21",
"should": "13.2.3"

@@ -40,3 +40,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "a92d7f1be990cfaadd5f52560e2454e252b0b081"
"gitHead": "5cbfb647cd06619685d1968520d0bad368858036"
}

@@ -5,3 +5,3 @@ /**

import * as long from "long";
import assert from "node-opcua-assert";
import { assert } from "node-opcua-assert";

@@ -8,0 +8,0 @@ export class DateWithPicoseconds extends Date {

/**
* @module node-opcua-date-time
*/
import assert from "node-opcua-assert";
import { assert } from "node-opcua-assert";
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream";

@@ -6,0 +6,0 @@ import {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc