node-opcua-server 2.62.7 → 2.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ exports.removeFromTimer = exports.appendToTimer = void 0;
6
6
  */
7
7
  const node_opcua_assert_1 = require("node-opcua-assert");
8
8
  const node_opcua_debug_1 = require("node-opcua-debug");
9
- const hrtime = require("browser-process-hrtime");
9
+ const node_opcua_utils_1 = require("node-opcua-utils");
10
10
  const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
11
11
  const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
12
12
  const timers = {};
@@ -29,7 +29,7 @@ function appendToTimer(monitoredItem) {
29
29
  monitoredItemsCount: 0
30
30
  };
31
31
  _t._samplingId = setInterval(() => {
32
- const start = doDebug ? hrtime() : undefined;
32
+ const start = doDebug ? (0, node_opcua_utils_1.hrtime)() : undefined;
33
33
  let counter = 0;
34
34
  for (const m in _t.monitoredItems) {
35
35
  if (Object.prototype.hasOwnProperty.call(_t.monitoredItems, m)) {
@@ -38,7 +38,7 @@ function appendToTimer(monitoredItem) {
38
38
  }
39
39
  }
40
40
  if (doDebug) {
41
- const elapsed = hrtime(start);
41
+ const elapsed = (0, node_opcua_utils_1.hrtime)(start);
42
42
  debugLog(`Sampler ${samplingInterval} ms : Benchmark took ${((elapsed[0] * NS_PER_SEC + elapsed[1]) /
43
43
  1000 /
44
44
  1000.0).toFixed(3)} milliseconds for ${counter} elements`);
@@ -1 +1 @@
1
- {"version":3,"file":"node_sampler.js","sourceRoot":"","sources":["../source/node_sampler.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,uDAAiE;AACjE,iDAAkD;AAElD,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAI3C,MAAM,MAAM,GAAQ,EA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CAAC;IACvB,IAAI,CAAC,EAAE,EAAE;QACL,QAAQ,CAAC,+CAA+C,EAAE,GAAG,CAAC,CAAC;QAC/D,OAAO;KACV;IACD,IAAA,0BAAM,EAAC,EAAE,CAAC,CAAC;IACX,IAAA,0BAAM,EAAC,EAAE,CAAC,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC;IACzD,OAAO,EAAE,CAAC,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IACxD,EAAE,CAAC,mBAAmB,EAAE,CAAC;IACzB,IAAA,0BAAM,EAAC,EAAE,CAAC,mBAAmB,IAAI,CAAC,CAAC,CAAC;IACpC,IAAI,EAAE,CAAC,mBAAmB,KAAK,CAAC,EAAE;QAC9B,aAAa,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAC9B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;KACtB;AACL,CAAC;AAnBD,0CAmBC"}
package/package.json CHANGED
@@ -1,89 +1,88 @@
1
1
  {
2
- "name": "node-opcua-server",
3
- "version": "2.62.7",
4
- "description": "pure nodejs OPCUA SDK - module -server",
5
- "scripts": {
6
- "build": "tsc -b",
7
- "lint": "eslint source test",
8
- "format": "prettier --write source test",
9
- "clean": "node -e \"require('rimraf').sync('certificates');\" && node -e \"require('rimraf').sync('dist');\"",
10
- "test": "mocha"
11
- },
12
- "main": "./dist/index.js",
13
- "types": "./dist/index.d.ts",
14
- "dependencies": {
15
- "@ster5/global-mutex": "^1.2.0",
16
- "@types/underscore": "^1.11.4",
17
- "async": "^3.2.2",
18
- "bonjour": "^3.5.0",
19
- "browser-process-hrtime": "^1.0.0",
20
- "dequeue": "^1.0.5",
21
- "lodash": "4.17.21",
22
- "node-opcua-address-space": "2.62.7",
23
- "node-opcua-assert": "2.55.0",
24
- "node-opcua-basic-types": "2.62.7",
25
- "node-opcua-certificate-manager": "2.62.7",
26
- "node-opcua-client": "2.62.7",
27
- "node-opcua-client-dynamic-extension-object": "2.62.7",
28
- "node-opcua-common": "2.62.7",
29
- "node-opcua-constants": "2.62.7",
30
- "node-opcua-crypto": "^1.7.5",
31
- "node-opcua-data-model": "2.62.7",
32
- "node-opcua-data-value": "2.62.7",
33
- "node-opcua-date-time": "2.62.7",
34
- "node-opcua-debug": "2.62.7",
35
- "node-opcua-enum": "2.62.7",
36
- "node-opcua-extension-object": "2.62.7",
37
- "node-opcua-factory": "2.62.7",
38
- "node-opcua-hostname": "2.62.7",
39
- "node-opcua-nodeid": "2.62.7",
40
- "node-opcua-nodesets": "2.62.7",
41
- "node-opcua-numeric-range": "2.62.7",
42
- "node-opcua-object-registry": "2.62.7",
43
- "node-opcua-pki": "^2.13.0",
44
- "node-opcua-secure-channel": "2.62.7",
45
- "node-opcua-service-browse": "2.62.7",
46
- "node-opcua-service-call": "2.62.7",
47
- "node-opcua-service-discovery": "2.62.7",
48
- "node-opcua-service-endpoints": "2.62.7",
49
- "node-opcua-service-filter": "2.62.7",
50
- "node-opcua-service-history": "2.62.7",
51
- "node-opcua-service-node-management": "2.62.7",
52
- "node-opcua-service-query": "2.62.7",
53
- "node-opcua-service-read": "2.62.7",
54
- "node-opcua-service-register-node": "2.62.7",
55
- "node-opcua-service-secure-channel": "2.62.7",
56
- "node-opcua-service-session": "2.62.7",
57
- "node-opcua-service-subscription": "2.62.7",
58
- "node-opcua-service-translate-browse-path": "2.62.7",
59
- "node-opcua-service-write": "2.62.7",
60
- "node-opcua-status-code": "2.62.7",
61
- "node-opcua-types": "2.62.7",
62
- "node-opcua-utils": "2.62.7",
63
- "node-opcua-variant": "2.62.7"
64
- },
65
- "devDependencies": {
66
- "node-opcua-data-access": "2.62.7",
67
- "node-opcua-leak-detector": "2.62.7",
68
- "node-opcua-test-helpers": "2.42.0",
69
- "node-opcua-transport": "2.62.7",
70
- "should": "^13.2.3",
71
- "sinon": "^12.0.1"
72
- },
73
- "author": "Etienne Rossignon",
74
- "license": "MIT",
75
- "repository": {
76
- "type": "git",
77
- "url": "git://github.com/node-opcua/node-opcua.git"
78
- },
79
- "keywords": [
80
- "OPCUA",
81
- "opcua",
82
- "m2m",
83
- "iot",
84
- "opc ua",
85
- "internet of things"
86
- ],
87
- "homepage": "http://node-opcua.github.io/",
88
- "gitHead": "90bb9139261a0edbb531081afcc6904c74e9ee52"
89
- }
2
+ "name": "node-opcua-server",
3
+ "version": "2.64.0",
4
+ "description": "pure nodejs OPCUA SDK - module -server",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "dependencies": {
8
+ "@ster5/global-mutex": "^1.2.0",
9
+ "@types/underscore": "^1.11.4",
10
+ "async": "^3.2.3",
11
+ "bonjour": "^3.5.0",
12
+ "dequeue": "^1.0.5",
13
+ "lodash": "4.17.21",
14
+ "node-opcua-address-space": "2.64.0",
15
+ "node-opcua-assert": "2.64.0",
16
+ "node-opcua-basic-types": "2.64.0",
17
+ "node-opcua-certificate-manager": "2.64.0",
18
+ "node-opcua-client": "2.64.0",
19
+ "node-opcua-client-dynamic-extension-object": "2.64.0",
20
+ "node-opcua-common": "2.64.0",
21
+ "node-opcua-constants": "2.64.0",
22
+ "node-opcua-crypto": "^1.7.5",
23
+ "node-opcua-data-model": "2.64.0",
24
+ "node-opcua-data-value": "2.64.0",
25
+ "node-opcua-date-time": "2.64.0",
26
+ "node-opcua-debug": "2.64.0",
27
+ "node-opcua-enum": "2.64.0",
28
+ "node-opcua-extension-object": "2.64.0",
29
+ "node-opcua-factory": "2.64.0",
30
+ "node-opcua-hostname": "2.64.0",
31
+ "node-opcua-nodeid": "2.64.0",
32
+ "node-opcua-nodesets": "2.64.0",
33
+ "node-opcua-numeric-range": "2.64.0",
34
+ "node-opcua-object-registry": "2.64.0",
35
+ "node-opcua-pki": "^2.13.0",
36
+ "node-opcua-secure-channel": "2.64.0",
37
+ "node-opcua-service-browse": "2.64.0",
38
+ "node-opcua-service-call": "2.64.0",
39
+ "node-opcua-service-discovery": "2.64.0",
40
+ "node-opcua-service-endpoints": "2.64.0",
41
+ "node-opcua-service-filter": "2.64.0",
42
+ "node-opcua-service-history": "2.64.0",
43
+ "node-opcua-service-node-management": "2.64.0",
44
+ "node-opcua-service-query": "2.64.0",
45
+ "node-opcua-service-read": "2.64.0",
46
+ "node-opcua-service-register-node": "2.64.0",
47
+ "node-opcua-service-secure-channel": "2.64.0",
48
+ "node-opcua-service-session": "2.64.0",
49
+ "node-opcua-service-subscription": "2.64.0",
50
+ "node-opcua-service-translate-browse-path": "2.64.0",
51
+ "node-opcua-service-write": "2.64.0",
52
+ "node-opcua-status-code": "2.64.0",
53
+ "node-opcua-types": "2.64.0",
54
+ "node-opcua-utils": "2.64.0",
55
+ "node-opcua-variant": "2.64.0"
56
+ },
57
+ "devDependencies": {
58
+ "node-opcua-data-access": "2.64.0",
59
+ "node-opcua-leak-detector": "2.64.0",
60
+ "node-opcua-test-helpers": "2.64.0",
61
+ "node-opcua-transport": "2.64.0",
62
+ "should": "^13.2.3",
63
+ "sinon": "^13.0.1"
64
+ },
65
+ "author": "Etienne Rossignon",
66
+ "license": "MIT",
67
+ "repository": {
68
+ "type": "git",
69
+ "url": "git://github.com/node-opcua/node-opcua.git"
70
+ },
71
+ "keywords": [
72
+ "OPCUA",
73
+ "opcua",
74
+ "m2m",
75
+ "iot",
76
+ "opc ua",
77
+ "internet of things"
78
+ ],
79
+ "homepage": "http://node-opcua.github.io/",
80
+ "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c",
81
+ "scripts": {
82
+ "build": "tsc -b",
83
+ "lint": "eslint source test",
84
+ "format": "prettier --write source test",
85
+ "clean": "node -e \"require('rimraf').sync('certificates');\" && node -e \"require('rimraf').sync('dist');\"",
86
+ "test": "mocha"
87
+ }
88
+ }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { assert } from "node-opcua-assert";
5
5
  import { checkDebugFlag, make_debugLog } from "node-opcua-debug";
6
- import hrtime = require("browser-process-hrtime");
6
+ import { hrtime } from "node-opcua-utils";
7
7
 
8
8
  const debugLog = make_debugLog(__filename);
9
9
  const doDebug = checkDebugFlag(__filename);