node-opcua-client 2.175.0 → 2.175.2
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.
|
@@ -27,7 +27,7 @@ async function uninstallAlarmMonitoring(session) {
|
|
|
27
27
|
const mi = _sessionPriv.$monitoredItemForAlarmList;
|
|
28
28
|
mi.removeAllListeners();
|
|
29
29
|
_sessionPriv.$monitoredItemForAlarmList = null;
|
|
30
|
-
await _sessionPriv.$subscriptionForAlarmList
|
|
30
|
+
await _sessionPriv.$subscriptionForAlarmList?.terminate();
|
|
31
31
|
_sessionPriv.$clientAlarmList = null;
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
@@ -93,7 +93,7 @@ async function installAlarmMonitoring(session) {
|
|
|
93
93
|
" " +
|
|
94
94
|
eventId.value?.toString("hex"));
|
|
95
95
|
try {
|
|
96
|
-
if (!conditionId
|
|
96
|
+
if (!conditionId?.value || conditionId.dataType === node_opcua_variant_1.DataType.Null) {
|
|
97
97
|
// not a acknowledgeable condition
|
|
98
98
|
warningLog(" not acknowledgeable condition ---- " + eventType.value.toString() + " ", conditionId, conditionName?.value, " " + eventId.value?.toString("hex"));
|
|
99
99
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_alarm_tools.js","sourceRoot":"","sources":["../../source/alarms_and_conditions/client_alarm_tools.ts"],"names":[],"mappings":";;AAmCA,4DAaC;AAeD,wDA8GC;AA7KD,2EAMoC;AACpC,iEAAqD;AACrD,uDAAkF;AAClF,yDAAkD;AAClD,yEAAyE;AACzE,qEAAsF;AAEtF,2DAA4D;AAM5D,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,KAAK,CAAC,CAAC;AACtC,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,KAAK,CAAC,CAAC;AACtC,MAAM,UAAU,GAAG,IAAA,kCAAe,EAAC,KAAK,CAAC,CAAC;AAE1C,SAAS,CAAC,CAAC,IAAY,EAAE,CAA0C;IAC/D,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;QAC7B,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,OAAO,CAAC,CAAC;AACb,CAAC;AAMD,iIAAiI;AAC1H,KAAK,UAAU,wBAAwB,CAAC,OAAsB;IACjE,MAAM,YAAY,GAAG,OAA4B,CAAC;IAClD,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC;QACjC,OAAO;IACX,CAAC;IAED,MAAM,EAAE,GAAG,YAAY,CAAC,0BAAiD,CAAC;IAC1E,EAAE,CAAC,kBAAkB,EAAE,CAAC;IAExB,YAAY,CAAC,0BAA0B,GAAG,IAAI,CAAC;IAC/C,MAAM,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"client_alarm_tools.js","sourceRoot":"","sources":["../../source/alarms_and_conditions/client_alarm_tools.ts"],"names":[],"mappings":";;AAmCA,4DAaC;AAeD,wDA8GC;AA7KD,2EAMoC;AACpC,iEAAqD;AACrD,uDAAkF;AAClF,yDAAkD;AAClD,yEAAyE;AACzE,qEAAsF;AAEtF,2DAA4D;AAM5D,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,KAAK,CAAC,CAAC;AACtC,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,KAAK,CAAC,CAAC;AACtC,MAAM,UAAU,GAAG,IAAA,kCAAe,EAAC,KAAK,CAAC,CAAC;AAE1C,SAAS,CAAC,CAAC,IAAY,EAAE,CAA0C;IAC/D,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;QAC7B,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,OAAO,CAAC,CAAC;AACb,CAAC;AAMD,iIAAiI;AAC1H,KAAK,UAAU,wBAAwB,CAAC,OAAsB;IACjE,MAAM,YAAY,GAAG,OAA4B,CAAC;IAClD,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC;QACjC,OAAO;IACX,CAAC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AAG,EAAE,CAAC,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IACnC,MAAM,GAAG,KAAK,CAAC;IAEf,uBAAuB;IACvB,OAAO,eAAe,CAAC;AAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-client",
|
|
3
|
-
"version": "2.175.
|
|
3
|
+
"version": "2.175.2",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module client",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "npx rimraf -g node_modules dist *.tsbuildinfo certificates",
|
|
@@ -16,56 +16,56 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@ster5/global-mutex": "^3.3.0",
|
|
18
18
|
"chalk": "4.1.2",
|
|
19
|
-
"node-opcua-alarm-condition": "2.
|
|
20
|
-
"node-opcua-assert": "2.
|
|
21
|
-
"node-opcua-basic-types": "2.
|
|
22
|
-
"node-opcua-buffer-utils": "2.
|
|
23
|
-
"node-opcua-certificate-manager": "2.
|
|
24
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
25
|
-
"node-opcua-common": "2.
|
|
26
|
-
"node-opcua-constants": "2.
|
|
19
|
+
"node-opcua-alarm-condition": "2.175.2",
|
|
20
|
+
"node-opcua-assert": "2.175.1",
|
|
21
|
+
"node-opcua-basic-types": "2.175.1",
|
|
22
|
+
"node-opcua-buffer-utils": "2.175.1",
|
|
23
|
+
"node-opcua-certificate-manager": "2.175.2",
|
|
24
|
+
"node-opcua-client-dynamic-extension-object": "2.175.2",
|
|
25
|
+
"node-opcua-common": "2.175.2",
|
|
26
|
+
"node-opcua-constants": "2.175.1",
|
|
27
27
|
"node-opcua-crypto": "5.3.6",
|
|
28
|
-
"node-opcua-data-model": "2.
|
|
29
|
-
"node-opcua-data-value": "2.
|
|
30
|
-
"node-opcua-date-time": "2.
|
|
31
|
-
"node-opcua-debug": "2.
|
|
32
|
-
"node-opcua-extension-object": "2.
|
|
33
|
-
"node-opcua-hostname": "2.
|
|
34
|
-
"node-opcua-nodeid": "2.
|
|
35
|
-
"node-opcua-numeric-range": "2.
|
|
36
|
-
"node-opcua-object-registry": "2.
|
|
28
|
+
"node-opcua-data-model": "2.175.1",
|
|
29
|
+
"node-opcua-data-value": "2.175.1",
|
|
30
|
+
"node-opcua-date-time": "2.175.1",
|
|
31
|
+
"node-opcua-debug": "2.175.1",
|
|
32
|
+
"node-opcua-extension-object": "2.175.1",
|
|
33
|
+
"node-opcua-hostname": "2.175.1",
|
|
34
|
+
"node-opcua-nodeid": "2.175.1",
|
|
35
|
+
"node-opcua-numeric-range": "2.175.1",
|
|
36
|
+
"node-opcua-object-registry": "2.175.1",
|
|
37
37
|
"node-opcua-pki": "6.18.0",
|
|
38
|
-
"node-opcua-pseudo-session": "2.
|
|
39
|
-
"node-opcua-schemas": "2.
|
|
40
|
-
"node-opcua-secure-channel": "2.
|
|
41
|
-
"node-opcua-service-browse": "2.
|
|
42
|
-
"node-opcua-service-call": "2.
|
|
43
|
-
"node-opcua-service-discovery": "2.
|
|
44
|
-
"node-opcua-service-endpoints": "2.
|
|
45
|
-
"node-opcua-service-filter": "2.
|
|
46
|
-
"node-opcua-service-history": "2.
|
|
47
|
-
"node-opcua-service-query": "2.
|
|
48
|
-
"node-opcua-service-read": "2.
|
|
49
|
-
"node-opcua-service-register-node": "2.
|
|
50
|
-
"node-opcua-service-secure-channel": "2.
|
|
51
|
-
"node-opcua-service-session": "2.
|
|
52
|
-
"node-opcua-service-subscription": "2.
|
|
53
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
54
|
-
"node-opcua-service-write": "2.
|
|
55
|
-
"node-opcua-status-code": "2.
|
|
56
|
-
"node-opcua-transport": "2.
|
|
57
|
-
"node-opcua-types": "2.
|
|
58
|
-
"node-opcua-utils": "2.
|
|
59
|
-
"node-opcua-variant": "2.
|
|
38
|
+
"node-opcua-pseudo-session": "2.175.2",
|
|
39
|
+
"node-opcua-schemas": "2.175.2",
|
|
40
|
+
"node-opcua-secure-channel": "2.175.2",
|
|
41
|
+
"node-opcua-service-browse": "2.175.2",
|
|
42
|
+
"node-opcua-service-call": "2.175.2",
|
|
43
|
+
"node-opcua-service-discovery": "2.175.2",
|
|
44
|
+
"node-opcua-service-endpoints": "2.175.2",
|
|
45
|
+
"node-opcua-service-filter": "2.175.2",
|
|
46
|
+
"node-opcua-service-history": "2.175.2",
|
|
47
|
+
"node-opcua-service-query": "2.175.2",
|
|
48
|
+
"node-opcua-service-read": "2.175.2",
|
|
49
|
+
"node-opcua-service-register-node": "2.175.2",
|
|
50
|
+
"node-opcua-service-secure-channel": "2.175.2",
|
|
51
|
+
"node-opcua-service-session": "2.175.2",
|
|
52
|
+
"node-opcua-service-subscription": "2.175.2",
|
|
53
|
+
"node-opcua-service-translate-browse-path": "2.175.2",
|
|
54
|
+
"node-opcua-service-write": "2.175.2",
|
|
55
|
+
"node-opcua-status-code": "2.175.1",
|
|
56
|
+
"node-opcua-transport": "2.175.1",
|
|
57
|
+
"node-opcua-types": "2.175.2",
|
|
58
|
+
"node-opcua-utils": "2.175.1",
|
|
59
|
+
"node-opcua-variant": "2.175.1",
|
|
60
60
|
"thenify-ex": "4.4.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"dequeue": "^1.0.5",
|
|
64
|
-
"node-opcua-address-space": "2.175.
|
|
65
|
-
"node-opcua-binary-stream": "2.
|
|
66
|
-
"node-opcua-factory": "2.
|
|
67
|
-
"node-opcua-leak-detector": "2.
|
|
68
|
-
"node-opcua-nodesets": "2.
|
|
64
|
+
"node-opcua-address-space": "2.175.2",
|
|
65
|
+
"node-opcua-binary-stream": "2.175.1",
|
|
66
|
+
"node-opcua-factory": "2.175.1",
|
|
67
|
+
"node-opcua-leak-detector": "2.175.1",
|
|
68
|
+
"node-opcua-nodesets": "2.175.1"
|
|
69
69
|
},
|
|
70
70
|
"eslintConfig": {
|
|
71
71
|
"env": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"internet of things"
|
|
88
88
|
],
|
|
89
89
|
"homepage": "http://node-opcua.github.io/",
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "4e2a73e5b96bdf3bd3a88709c813289038caf19b",
|
|
91
91
|
"files": [
|
|
92
92
|
"dist",
|
|
93
93
|
"source"
|
|
@@ -43,7 +43,7 @@ export async function uninstallAlarmMonitoring(session: ClientSession): Promise<
|
|
|
43
43
|
mi.removeAllListeners();
|
|
44
44
|
|
|
45
45
|
_sessionPriv.$monitoredItemForAlarmList = null;
|
|
46
|
-
await _sessionPriv.$subscriptionForAlarmList
|
|
46
|
+
await _sessionPriv.$subscriptionForAlarmList?.terminate();
|
|
47
47
|
_sessionPriv.$clientAlarmList = null;
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
@@ -123,7 +123,7 @@ export async function installAlarmMonitoring(session: ClientSession): Promise<Cl
|
|
|
123
123
|
eventId.value?.toString("hex")
|
|
124
124
|
);
|
|
125
125
|
try {
|
|
126
|
-
if (!conditionId
|
|
126
|
+
if (!conditionId?.value || conditionId.dataType === DataType.Null) {
|
|
127
127
|
// not a acknowledgeable condition
|
|
128
128
|
warningLog(
|
|
129
129
|
" not acknowledgeable condition ---- " + eventType.value.toString() + " ",
|