node-opcua-server 2.62.7 → 2.63.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.
- package/dist/node_sampler.js +3 -3
- package/dist/node_sampler.js.map +1 -1
- package/package.json +45 -46
- package/source/node_sampler.ts +1 -1
package/dist/node_sampler.js
CHANGED
|
@@ -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
|
|
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`);
|
package/dist/node_sampler.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node_sampler.js","sourceRoot":"","sources":["../source/node_sampler.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,uDAAiE;AACjE,
|
|
1
|
+
{"version":3,"file":"node_sampler.js","sourceRoot":"","sources":["../source/node_sampler.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,uDAAiE;AACjE,uDAA0C;AAE1C,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAI3C,MAAM,MAAM,GAAQ,EAAE,CAAC;AACvB,MAAM,UAAU,GAAG,GAAG,CAAC;AAEvB,SAAS,mBAAmB,CAAC,aAA4B;IACrD,MAAM,cAAc,GAAG,aAAa,CAAC;IACrC,YAAY,CAAC,GAAG,EAAE;QACb,cAAsB,CAAC,kBAAkB,EAAE,CAAC;IACjD,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAgB,aAAa,CAAC,aAA4B;IACtD,MAAM,gBAAgB,GAAG,aAAa,CAAC,gBAAgB,CAAC;IACxD,MAAM,GAAG,GAAG,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IACxC,IAAA,0BAAM,EAAC,gBAAgB,GAAG,CAAC,CAAC,CAAC;IAC7B,IAAI,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACrB,IAAI,CAAC,EAAE,EAAE;QACL,EAAE,GAAG;YACD,WAAW,EAAE,KAAK;YAClB,cAAc,EAAE,EAAE;YAClB,mBAAmB,EAAE,CAAC;SACzB,CAAC;QAEF,EAAE,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;YAC9B,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,IAAA,yBAAM,GAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YAC7C,IAAI,OAAO,GAAG,CAAC,CAAC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G,CAAC,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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.63.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -server",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -b",
|
|
@@ -14,59 +14,58 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@ster5/global-mutex": "^1.2.0",
|
|
16
16
|
"@types/underscore": "^1.11.4",
|
|
17
|
-
"async": "^3.2.
|
|
17
|
+
"async": "^3.2.3",
|
|
18
18
|
"bonjour": "^3.5.0",
|
|
19
|
-
"browser-process-hrtime": "^1.0.0",
|
|
20
19
|
"dequeue": "^1.0.5",
|
|
21
20
|
"lodash": "4.17.21",
|
|
22
|
-
"node-opcua-address-space": "2.
|
|
23
|
-
"node-opcua-assert": "2.
|
|
24
|
-
"node-opcua-basic-types": "2.
|
|
25
|
-
"node-opcua-certificate-manager": "2.
|
|
26
|
-
"node-opcua-client": "2.
|
|
27
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
28
|
-
"node-opcua-common": "2.
|
|
21
|
+
"node-opcua-address-space": "2.63.0",
|
|
22
|
+
"node-opcua-assert": "2.63.0",
|
|
23
|
+
"node-opcua-basic-types": "2.63.0",
|
|
24
|
+
"node-opcua-certificate-manager": "2.63.0",
|
|
25
|
+
"node-opcua-client": "2.63.0",
|
|
26
|
+
"node-opcua-client-dynamic-extension-object": "2.63.0",
|
|
27
|
+
"node-opcua-common": "2.63.0",
|
|
29
28
|
"node-opcua-constants": "2.62.7",
|
|
30
29
|
"node-opcua-crypto": "^1.7.5",
|
|
31
|
-
"node-opcua-data-model": "2.
|
|
32
|
-
"node-opcua-data-value": "2.
|
|
33
|
-
"node-opcua-date-time": "2.
|
|
34
|
-
"node-opcua-debug": "2.
|
|
35
|
-
"node-opcua-enum": "2.
|
|
36
|
-
"node-opcua-extension-object": "2.
|
|
37
|
-
"node-opcua-factory": "2.
|
|
38
|
-
"node-opcua-hostname": "2.
|
|
39
|
-
"node-opcua-nodeid": "2.
|
|
40
|
-
"node-opcua-nodesets": "2.
|
|
41
|
-
"node-opcua-numeric-range": "2.
|
|
42
|
-
"node-opcua-object-registry": "2.
|
|
30
|
+
"node-opcua-data-model": "2.63.0",
|
|
31
|
+
"node-opcua-data-value": "2.63.0",
|
|
32
|
+
"node-opcua-date-time": "2.63.0",
|
|
33
|
+
"node-opcua-debug": "2.63.0",
|
|
34
|
+
"node-opcua-enum": "2.63.0",
|
|
35
|
+
"node-opcua-extension-object": "2.63.0",
|
|
36
|
+
"node-opcua-factory": "2.63.0",
|
|
37
|
+
"node-opcua-hostname": "2.63.0",
|
|
38
|
+
"node-opcua-nodeid": "2.63.0",
|
|
39
|
+
"node-opcua-nodesets": "2.63.0",
|
|
40
|
+
"node-opcua-numeric-range": "2.63.0",
|
|
41
|
+
"node-opcua-object-registry": "2.63.0",
|
|
43
42
|
"node-opcua-pki": "^2.13.0",
|
|
44
|
-
"node-opcua-secure-channel": "2.
|
|
45
|
-
"node-opcua-service-browse": "2.
|
|
46
|
-
"node-opcua-service-call": "2.
|
|
47
|
-
"node-opcua-service-discovery": "2.
|
|
48
|
-
"node-opcua-service-endpoints": "2.
|
|
49
|
-
"node-opcua-service-filter": "2.
|
|
50
|
-
"node-opcua-service-history": "2.
|
|
51
|
-
"node-opcua-service-node-management": "2.
|
|
52
|
-
"node-opcua-service-query": "2.
|
|
53
|
-
"node-opcua-service-read": "2.
|
|
54
|
-
"node-opcua-service-register-node": "2.
|
|
55
|
-
"node-opcua-service-secure-channel": "2.
|
|
56
|
-
"node-opcua-service-session": "2.
|
|
57
|
-
"node-opcua-service-subscription": "2.
|
|
58
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
59
|
-
"node-opcua-service-write": "2.
|
|
60
|
-
"node-opcua-status-code": "2.
|
|
61
|
-
"node-opcua-types": "2.
|
|
62
|
-
"node-opcua-utils": "2.
|
|
63
|
-
"node-opcua-variant": "2.
|
|
43
|
+
"node-opcua-secure-channel": "2.63.0",
|
|
44
|
+
"node-opcua-service-browse": "2.63.0",
|
|
45
|
+
"node-opcua-service-call": "2.63.0",
|
|
46
|
+
"node-opcua-service-discovery": "2.63.0",
|
|
47
|
+
"node-opcua-service-endpoints": "2.63.0",
|
|
48
|
+
"node-opcua-service-filter": "2.63.0",
|
|
49
|
+
"node-opcua-service-history": "2.63.0",
|
|
50
|
+
"node-opcua-service-node-management": "2.63.0",
|
|
51
|
+
"node-opcua-service-query": "2.63.0",
|
|
52
|
+
"node-opcua-service-read": "2.63.0",
|
|
53
|
+
"node-opcua-service-register-node": "2.63.0",
|
|
54
|
+
"node-opcua-service-secure-channel": "2.63.0",
|
|
55
|
+
"node-opcua-service-session": "2.63.0",
|
|
56
|
+
"node-opcua-service-subscription": "2.63.0",
|
|
57
|
+
"node-opcua-service-translate-browse-path": "2.63.0",
|
|
58
|
+
"node-opcua-service-write": "2.63.0",
|
|
59
|
+
"node-opcua-status-code": "2.63.0",
|
|
60
|
+
"node-opcua-types": "2.63.0",
|
|
61
|
+
"node-opcua-utils": "2.63.0",
|
|
62
|
+
"node-opcua-variant": "2.63.0"
|
|
64
63
|
},
|
|
65
64
|
"devDependencies": {
|
|
66
|
-
"node-opcua-data-access": "2.
|
|
67
|
-
"node-opcua-leak-detector": "2.
|
|
65
|
+
"node-opcua-data-access": "2.63.0",
|
|
66
|
+
"node-opcua-leak-detector": "2.63.0",
|
|
68
67
|
"node-opcua-test-helpers": "2.42.0",
|
|
69
|
-
"node-opcua-transport": "2.
|
|
68
|
+
"node-opcua-transport": "2.63.0",
|
|
70
69
|
"should": "^13.2.3",
|
|
71
70
|
"sinon": "^12.0.1"
|
|
72
71
|
},
|
|
@@ -85,5 +84,5 @@
|
|
|
85
84
|
"internet of things"
|
|
86
85
|
],
|
|
87
86
|
"homepage": "http://node-opcua.github.io/",
|
|
88
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "df4335584455009c6caa21ed6a2fa42caa9104ed"
|
|
89
88
|
}
|
package/source/node_sampler.ts
CHANGED
|
@@ -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
|
|
6
|
+
import { hrtime } from "node-opcua-utils";
|
|
7
7
|
|
|
8
8
|
const debugLog = make_debugLog(__filename);
|
|
9
9
|
const doDebug = checkDebugFlag(__filename);
|