node-opcua-utils
Advanced tools
Comparing version 2.86.0 to 2.88.0
@@ -1,1 +0,1 @@ | ||
export type FunctionVariadic = (...args: any[]) => void; | ||
export declare type FunctionVariadic = (...args: any[]) => void; |
@@ -1,2 +0,2 @@ | ||
export type HRTimeFunc = (time?: [number, number]) => [number, number]; | ||
export declare type HRTimeFunc = (time?: [number, number]) => [number, number]; | ||
export declare const hrtime: HRTimeFunc; |
@@ -6,4 +6,4 @@ /// <reference types="node" /> | ||
import { EventEmitter } from "events"; | ||
type ArbitraryClockTick = number; | ||
type DurationInMillisecond = number; | ||
declare type ArbitraryClockTick = number; | ||
declare type DurationInMillisecond = number; | ||
export interface IWatchdogData2 { | ||
@@ -10,0 +10,0 @@ key: number; |
@@ -27,2 +27,10 @@ "use strict"; | ||
class WatchDog extends events_1.EventEmitter { | ||
constructor() { | ||
super(); | ||
this._watchdogDataMap = {}; | ||
this._counter = 0; | ||
this._currentTime = this.getCurrentSystemTick(); | ||
this._visitSubscriberB = this._visit_subscriber.bind(this); | ||
this._timer = null; // as NodeJS.Timer; | ||
} | ||
static lastSeenToDuration(lastSeen) { | ||
@@ -37,10 +45,2 @@ return (0, get_clock_tick_1.get_clock_tick)() - lastSeen; | ||
} | ||
constructor() { | ||
super(); | ||
this._watchdogDataMap = {}; | ||
this._counter = 0; | ||
this._currentTime = this.getCurrentSystemTick(); | ||
this._visitSubscriberB = this._visit_subscriber.bind(this); | ||
this._timer = null; // as NodeJS.Timer; | ||
} | ||
/** | ||
@@ -47,0 +47,0 @@ * add a subscriber to the WatchDog. |
{ | ||
"name": "node-opcua-utils", | ||
"version": "2.86.0", | ||
"version": "2.88.0", | ||
"description": "pure nodejs OPCUA SDK - module -utils", | ||
@@ -16,7 +16,7 @@ "main": "./dist/index.js", | ||
"chalk": "4.1.2", | ||
"node-opcua-assert": "2.77.0" | ||
"node-opcua-assert": "2.88.0" | ||
}, | ||
"devDependencies": { | ||
"should": "^13.2.3", | ||
"sinon": "^14.0.2" | ||
"sinon": "^15.0.1" | ||
}, | ||
@@ -38,3 +38,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "36afc46fe2c91aa5664a8c5418f4db5a354670c3" | ||
"gitHead": "0c20078b474f36855b799557f8fe931dbe20c2ca" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68131
+ Addednode-opcua-assert@2.88.0(transitive)
- Removednode-opcua-assert@2.77.0(transitive)
Updatednode-opcua-assert@2.88.0