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.62.7 to 2.63.0

12

dist/date_time.js

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

const node_opcua_assert_1 = require("node-opcua-assert");
const hrtime = require("browser-process-hrtime");
const node_opcua_utils_1 = require("node-opcua-utils");
exports.offsetFactor1601 = (function offset_factor_1601() {

@@ -130,3 +130,3 @@ const utc1600 = new Date(Date.UTC(1601, 0, 1, 0, 0, 0));

exports.getCurrentClockWithJavascriptDate = getCurrentClockWithJavascriptDate;
let origin = hrtime();
let origin = (0, node_opcua_utils_1.hrtime)();
let refTime = Date.now();

@@ -142,4 +142,4 @@ exports.periodicClockAdjustment = {

let timerId;
const g_setInterval = global.setInterval;
const g_clearInterval = global.clearInterval;
const g_setInterval = (typeof global === "object") ? global.setInterval : setInterval;
const g_clearInterval = (typeof global === "object") ? global.clearInterval : clearInterval;
function installPeriodicClockAdjustment() {

@@ -151,3 +151,3 @@ exports.periodicClockAdjustment.timerInstallationCount++;

timerId = g_setInterval(() => {
origin = hrtime();
origin = (0, node_opcua_utils_1.hrtime)();
refTime = Date.now();

@@ -173,3 +173,3 @@ exports.periodicClockAdjustment.adjustmentCount++;

// just in case it get overridden by some library (such as sinon)
const original_hrtime = hrtime;
const original_hrtime = node_opcua_utils_1.hrtime;
const setTimeout_check = setTimeout;

@@ -176,0 +176,0 @@ /*kWithProcessHRTime*/

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

"types": "./dist/index.d.ts",
"version": "2.62.7",
"version": "2.63.0",
"description": "pure nodejs OPCUA SDK - module -date-time",

@@ -14,11 +14,11 @@ "scripts": {

"dependencies": {
"browser-process-hrtime": "^1.0.0",
"long": "^4.0.0",
"node-opcua-assert": "2.55.0"
"node-opcua-assert": "2.63.0",
"node-opcua-utils": "2.63.0"
},
"devDependencies": {
"bignumber.js": "^9.0.1",
"node-opcua-benchmarker": "2.62.5",
"node-opcua-binary-stream": "2.62.7",
"node-opcua-debug": "2.62.7",
"bignumber.js": "^9.0.2",
"node-opcua-benchmarker": "2.63.0",
"node-opcua-binary-stream": "2.63.0",
"node-opcua-debug": "2.63.0",
"should": "^13.2.3"

@@ -41,3 +41,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "90bb9139261a0edbb531081afcc6904c74e9ee52"
"gitHead": "df4335584455009c6caa21ed6a2fa42caa9104ed"
}

@@ -6,3 +6,3 @@ /**

import { assert } from "node-opcua-assert";
import hrtime = require("browser-process-hrtime");
import { hrtime } from "node-opcua-utils";

@@ -170,4 +170,4 @@ export interface DateWithPicoseconds extends Date {

let timerId: NodeJS.Timeout | null;
const g_setInterval = global.setInterval;
const g_clearInterval = global.clearInterval;
const g_setInterval = (typeof global === "object") ? global.setInterval : setInterval;
const g_clearInterval = (typeof global === "object") ? global.clearInterval: clearInterval;
export function installPeriodicClockAdjustment() {

@@ -174,0 +174,0 @@ periodicClockAdjustment.timerInstallationCount++;

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