node-opcua-server 2.95.0 → 2.97.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/validate_filter.js
CHANGED
|
@@ -13,8 +13,9 @@ const node_opcua_service_subscription_1 = require("node-opcua-service-subscripti
|
|
|
13
13
|
const node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
14
14
|
const node_opcua_basic_types_1 = require("node-opcua-basic-types");
|
|
15
15
|
function isNumberDataType(node) {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const n = node.dataType;
|
|
17
|
+
if (n.namespace === 0 && n.identifierType === node_opcua_nodeid_1.NodeIdType.NUMERIC && n.value < 22) {
|
|
18
|
+
switch (n.value) {
|
|
18
19
|
case node_opcua_basic_types_1.DataType.Float:
|
|
19
20
|
case node_opcua_basic_types_1.DataType.Double:
|
|
20
21
|
case node_opcua_basic_types_1.DataType.Byte:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate_filter.js","sourceRoot":"","sources":["../source/validate_filter.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAG3C,iEAAqD;AACrD,iEAAkD;AAElD,
|
|
1
|
+
{"version":3,"file":"validate_filter.js","sourceRoot":"","sources":["../source/validate_filter.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAG3C,iEAAqD;AACrD,iEAAkD;AAElD,yDAAgE;AAChE,yEAA0E;AAC1E,qFAA+D;AAC/D,mEAAiE;AAEjE,mEAAkD;AAElD,SAAS,gBAAgB,CAAC,IAAgB;IAEtC,MAAM,CAAC,GAAG,IAAI,CAAC,QAAmB,CAAC;IACnC,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,IAAI,CAAC,CAAC,cAAc,KAAK,8BAAU,CAAC,OAAO,IAAI,CAAC,CAAC,KAAK,GAAG,EAAE,EAAE;QAC9E,QAAQ,CAAC,CAAC,KAAK,EAAE;YACb,KAAK,iCAAQ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name": "node-opcua-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.97.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -server",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -b",
|
|
@@ -17,52 +17,52 @@
|
|
|
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.97.0",
|
|
21
|
+
"node-opcua-address-space-base": "2.97.0",
|
|
22
22
|
"node-opcua-assert": "2.88.0",
|
|
23
|
-
"node-opcua-basic-types": "2.
|
|
23
|
+
"node-opcua-basic-types": "2.97.0",
|
|
24
24
|
"node-opcua-binary-stream": "2.90.1",
|
|
25
25
|
"node-opcua-certificate-manager": "2.92.0",
|
|
26
|
-
"node-opcua-client": "2.
|
|
27
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
28
|
-
"node-opcua-common": "2.
|
|
26
|
+
"node-opcua-client": "2.97.0",
|
|
27
|
+
"node-opcua-client-dynamic-extension-object": "2.97.0",
|
|
28
|
+
"node-opcua-common": "2.97.0",
|
|
29
29
|
"node-opcua-constants": "2.88.0",
|
|
30
30
|
"node-opcua-crypto": "^2.1.2",
|
|
31
|
-
"node-opcua-data-model": "2.
|
|
32
|
-
"node-opcua-data-value": "2.
|
|
31
|
+
"node-opcua-data-model": "2.97.0",
|
|
32
|
+
"node-opcua-data-value": "2.97.0",
|
|
33
33
|
"node-opcua-date-time": "2.90.1",
|
|
34
34
|
"node-opcua-debug": "2.90.1",
|
|
35
|
-
"node-opcua-extension-object": "2.
|
|
36
|
-
"node-opcua-factory": "2.
|
|
35
|
+
"node-opcua-extension-object": "2.97.0",
|
|
36
|
+
"node-opcua-factory": "2.97.0",
|
|
37
37
|
"node-opcua-hostname": "2.88.0",
|
|
38
|
-
"node-opcua-nodeid": "2.
|
|
39
|
-
"node-opcua-nodesets": "2.
|
|
40
|
-
"node-opcua-numeric-range": "2.
|
|
38
|
+
"node-opcua-nodeid": "2.97.0",
|
|
39
|
+
"node-opcua-nodesets": "2.96.0",
|
|
40
|
+
"node-opcua-numeric-range": "2.97.0",
|
|
41
41
|
"node-opcua-object-registry": "2.90.1",
|
|
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.
|
|
42
|
+
"node-opcua-secure-channel": "2.97.0",
|
|
43
|
+
"node-opcua-service-browse": "2.97.0",
|
|
44
|
+
"node-opcua-service-call": "2.97.0",
|
|
45
|
+
"node-opcua-service-discovery": "2.97.0",
|
|
46
|
+
"node-opcua-service-endpoints": "2.97.0",
|
|
47
|
+
"node-opcua-service-filter": "2.97.0",
|
|
48
|
+
"node-opcua-service-history": "2.97.0",
|
|
49
|
+
"node-opcua-service-node-management": "2.97.0",
|
|
50
|
+
"node-opcua-service-query": "2.97.0",
|
|
51
|
+
"node-opcua-service-read": "2.97.0",
|
|
52
|
+
"node-opcua-service-register-node": "2.97.0",
|
|
53
|
+
"node-opcua-service-secure-channel": "2.97.0",
|
|
54
|
+
"node-opcua-service-session": "2.97.0",
|
|
55
|
+
"node-opcua-service-subscription": "2.97.0",
|
|
56
|
+
"node-opcua-service-translate-browse-path": "2.97.0",
|
|
57
|
+
"node-opcua-service-write": "2.97.0",
|
|
58
58
|
"node-opcua-status-code": "2.90.1",
|
|
59
|
-
"node-opcua-types": "2.
|
|
59
|
+
"node-opcua-types": "2.97.0",
|
|
60
60
|
"node-opcua-utils": "2.90.1",
|
|
61
|
-
"node-opcua-variant": "2.
|
|
61
|
+
"node-opcua-variant": "2.97.0",
|
|
62
62
|
"thenify": "^3.3.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"node-opcua-data-access": "2.
|
|
65
|
+
"node-opcua-data-access": "2.97.0",
|
|
66
66
|
"node-opcua-leak-detector": "2.90.1",
|
|
67
67
|
"node-opcua-pki": "^3.0.2",
|
|
68
68
|
"node-opcua-test-helpers": "2.88.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"internet of things"
|
|
86
86
|
],
|
|
87
87
|
"homepage": "http://node-opcua.github.io/",
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "19c96bda0810d2dec73dd1c2427546be40908646"
|
|
89
89
|
}
|
|
@@ -7,7 +7,7 @@ import { BaseNode, UAVariable } from "node-opcua-address-space";
|
|
|
7
7
|
import { AttributeIds } from "node-opcua-data-model";
|
|
8
8
|
import { NodeClass } from "node-opcua-data-model";
|
|
9
9
|
import { ExtensionObject } from "node-opcua-extension-object";
|
|
10
|
-
import { NodeId, NodeIdType } from "node-opcua-nodeid";
|
|
10
|
+
import { INodeId, NodeId, NodeIdType } from "node-opcua-nodeid";
|
|
11
11
|
import { DataChangeFilter, EventFilter } from "node-opcua-service-filter";
|
|
12
12
|
import { DeadbandType } from "node-opcua-service-subscription";
|
|
13
13
|
import { StatusCode, StatusCodes } from "node-opcua-status-code";
|
|
@@ -15,8 +15,10 @@ import { ReadValueIdOptions } from "node-opcua-types";
|
|
|
15
15
|
import { DataType } from "node-opcua-basic-types";
|
|
16
16
|
|
|
17
17
|
function isNumberDataType(node: UAVariable): boolean {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
|
|
19
|
+
const n = node.dataType as INodeId;
|
|
20
|
+
if (n.namespace === 0 && n.identifierType === NodeIdType.NUMERIC && n.value < 22) {
|
|
21
|
+
switch (n.value) {
|
|
20
22
|
case DataType.Float:
|
|
21
23
|
case DataType.Double:
|
|
22
24
|
case DataType.Byte:
|