node-opcua-server 2.124.0 → 2.125.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/package.json +44 -44
- package/source/server_engine.ts +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.125.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module server",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -b",
|
|
@@ -17,57 +17,57 @@
|
|
|
17
17
|
"chalk": "4.1.2",
|
|
18
18
|
"dequeue": "^1.0.5",
|
|
19
19
|
"lodash": "4.17.21",
|
|
20
|
-
"node-opcua-address-space": "2.
|
|
21
|
-
"node-opcua-address-space-base": "2.
|
|
20
|
+
"node-opcua-address-space": "2.125.0",
|
|
21
|
+
"node-opcua-address-space-base": "2.125.0",
|
|
22
22
|
"node-opcua-assert": "2.120.0",
|
|
23
|
-
"node-opcua-basic-types": "2.
|
|
24
|
-
"node-opcua-binary-stream": "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.
|
|
29
|
-
"node-opcua-constants": "2.
|
|
23
|
+
"node-opcua-basic-types": "2.125.0",
|
|
24
|
+
"node-opcua-binary-stream": "2.125.0",
|
|
25
|
+
"node-opcua-certificate-manager": "2.125.0",
|
|
26
|
+
"node-opcua-client": "2.125.0",
|
|
27
|
+
"node-opcua-client-dynamic-extension-object": "2.125.0",
|
|
28
|
+
"node-opcua-common": "2.125.0",
|
|
29
|
+
"node-opcua-constants": "2.125.0",
|
|
30
30
|
"node-opcua-crypto": "4.8.0",
|
|
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-extension-object": "2.
|
|
36
|
-
"node-opcua-factory": "2.
|
|
31
|
+
"node-opcua-data-model": "2.125.0",
|
|
32
|
+
"node-opcua-data-value": "2.125.0",
|
|
33
|
+
"node-opcua-date-time": "2.125.0",
|
|
34
|
+
"node-opcua-debug": "2.125.0",
|
|
35
|
+
"node-opcua-extension-object": "2.125.0",
|
|
36
|
+
"node-opcua-factory": "2.125.0",
|
|
37
37
|
"node-opcua-hostname": "2.120.0",
|
|
38
|
-
"node-opcua-nodeid": "2.
|
|
38
|
+
"node-opcua-nodeid": "2.125.0",
|
|
39
39
|
"node-opcua-nodesets": "2.121.0",
|
|
40
|
-
"node-opcua-numeric-range": "2.
|
|
41
|
-
"node-opcua-object-registry": "2.
|
|
42
|
-
"node-opcua-secure-channel": "2.
|
|
43
|
-
"node-opcua-service-browse": "2.
|
|
44
|
-
"node-opcua-service-call": "2.
|
|
45
|
-
"node-opcua-service-discovery": "2.
|
|
46
|
-
"node-opcua-service-endpoints": "2.
|
|
47
|
-
"node-opcua-service-filter": "2.
|
|
48
|
-
"node-opcua-service-history": "2.
|
|
49
|
-
"node-opcua-service-node-management": "2.
|
|
50
|
-
"node-opcua-service-query": "2.
|
|
51
|
-
"node-opcua-service-read": "2.
|
|
52
|
-
"node-opcua-service-register-node": "2.
|
|
53
|
-
"node-opcua-service-secure-channel": "2.
|
|
54
|
-
"node-opcua-service-session": "2.
|
|
55
|
-
"node-opcua-service-subscription": "2.
|
|
56
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
57
|
-
"node-opcua-service-write": "2.
|
|
58
|
-
"node-opcua-status-code": "2.
|
|
59
|
-
"node-opcua-transport": "2.
|
|
60
|
-
"node-opcua-types": "2.
|
|
61
|
-
"node-opcua-utils": "2.
|
|
62
|
-
"node-opcua-variant": "2.
|
|
40
|
+
"node-opcua-numeric-range": "2.125.0",
|
|
41
|
+
"node-opcua-object-registry": "2.125.0",
|
|
42
|
+
"node-opcua-secure-channel": "2.125.0",
|
|
43
|
+
"node-opcua-service-browse": "2.125.0",
|
|
44
|
+
"node-opcua-service-call": "2.125.0",
|
|
45
|
+
"node-opcua-service-discovery": "2.125.0",
|
|
46
|
+
"node-opcua-service-endpoints": "2.125.0",
|
|
47
|
+
"node-opcua-service-filter": "2.125.0",
|
|
48
|
+
"node-opcua-service-history": "2.125.0",
|
|
49
|
+
"node-opcua-service-node-management": "2.125.0",
|
|
50
|
+
"node-opcua-service-query": "2.125.0",
|
|
51
|
+
"node-opcua-service-read": "2.125.0",
|
|
52
|
+
"node-opcua-service-register-node": "2.125.0",
|
|
53
|
+
"node-opcua-service-secure-channel": "2.125.0",
|
|
54
|
+
"node-opcua-service-session": "2.125.0",
|
|
55
|
+
"node-opcua-service-subscription": "2.125.0",
|
|
56
|
+
"node-opcua-service-translate-browse-path": "2.125.0",
|
|
57
|
+
"node-opcua-service-write": "2.125.0",
|
|
58
|
+
"node-opcua-status-code": "2.125.0",
|
|
59
|
+
"node-opcua-transport": "2.125.0",
|
|
60
|
+
"node-opcua-types": "2.125.0",
|
|
61
|
+
"node-opcua-utils": "2.125.0",
|
|
62
|
+
"node-opcua-variant": "2.125.0",
|
|
63
63
|
"thenify": "^3.3.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"node-opcua-data-access": "2.
|
|
67
|
-
"node-opcua-leak-detector": "2.
|
|
66
|
+
"node-opcua-data-access": "2.125.0",
|
|
67
|
+
"node-opcua-leak-detector": "2.125.0",
|
|
68
68
|
"node-opcua-test-helpers": "2.120.0",
|
|
69
69
|
"should": "^13.2.3",
|
|
70
|
-
"sinon": "^
|
|
70
|
+
"sinon": "^18.0.0",
|
|
71
71
|
"underscore": "^1.13.6"
|
|
72
72
|
},
|
|
73
73
|
"author": "Etienne Rossignon",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"internet of things"
|
|
86
86
|
],
|
|
87
87
|
"homepage": "http://node-opcua.github.io/",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "a0e0a2f1045e6e402dd4619c625c90008f0617ed",
|
|
89
89
|
"files": [
|
|
90
90
|
"dist",
|
|
91
91
|
"source"
|
package/source/server_engine.ts
CHANGED
|
@@ -72,7 +72,7 @@ import { DataType, isValidVariant, Variant, VariantArrayType } from "node-opcua-
|
|
|
72
72
|
|
|
73
73
|
import { HistoryServerCapabilities, HistoryServerCapabilitiesOptions } from "./history_server_capabilities";
|
|
74
74
|
import { MonitoredItem } from "./monitored_item";
|
|
75
|
-
import { ServerCapabilities, ServerCapabilitiesOptions, ServerOperationLimits } from "./server_capabilities";
|
|
75
|
+
import { ServerCapabilities, ServerCapabilitiesOptions, ServerOperationLimits, defaultServerCapabilities } from "./server_capabilities";
|
|
76
76
|
import { ServerSidePublishEngine } from "./server_publish_engine";
|
|
77
77
|
import { ServerSidePublishEngineForOrphanSubscription } from "./server_publish_engine_for_orphan_subscriptions";
|
|
78
78
|
import { ServerSession } from "./server_session";
|
|
@@ -443,7 +443,7 @@ export class ServerEngine extends EventEmitter implements IAddressSpaceAccessor
|
|
|
443
443
|
|
|
444
444
|
// make sure minSupportedSampleRate matches MonitoredItem.minimumSamplingInterval
|
|
445
445
|
(this.serverCapabilities as any).__defineGetter__("minSupportedSampleRate", () => {
|
|
446
|
-
return MonitoredItem.minimumSamplingInterval;
|
|
446
|
+
return options!.serverCapabilities?.minSupportedSampleRate || MonitoredItem.minimumSamplingInterval;
|
|
447
447
|
});
|
|
448
448
|
|
|
449
449
|
this.serverConfiguration = options.serverConfiguration;
|
|
@@ -1088,6 +1088,14 @@ export class ServerEngine extends EventEmitter implements IAddressSpaceAccessor
|
|
|
1088
1088
|
return Math.min(this.serverCapabilities.maxByteStringLength, BinaryStream.maxByteStringLength);
|
|
1089
1089
|
});
|
|
1090
1090
|
|
|
1091
|
+
bindStandardScalar(VariableIds.Server_ServerCapabilities_MaxMonitoredItemsQueueSize, DataType.UInt32, () => {
|
|
1092
|
+
return Math.max(1,this.serverCapabilities.maxMonitoredItemsQueueSize);
|
|
1093
|
+
});
|
|
1094
|
+
|
|
1095
|
+
bindStandardScalar(VariableIds.Server_ServerCapabilities_MinSupportedSampleRate, DataType.UInt32, () => {
|
|
1096
|
+
return Math.max(this.serverCapabilities.minSupportedSampleRate, defaultServerCapabilities.minSupportedSampleRate);
|
|
1097
|
+
});
|
|
1098
|
+
|
|
1091
1099
|
const bindOperationLimits = (operationLimits: ServerOperationLimits) => {
|
|
1092
1100
|
assert(operationLimits !== null && typeof operationLimits === "object");
|
|
1093
1101
|
|