node-opcua-client 2.69.1 → 2.70.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.
|
@@ -18,7 +18,7 @@ const node_opcua_variant_1 = require("node-opcua-variant");
|
|
|
18
18
|
const client_session_impl_1 = require("../private/client_session_impl");
|
|
19
19
|
const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
|
|
20
20
|
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
|
|
21
|
-
const
|
|
21
|
+
const warningLog = (0, node_opcua_debug_1.make_warningLog)(__filename);
|
|
22
22
|
function callConditionRefresh(subscription, callback) {
|
|
23
23
|
const subscriptionI = subscription;
|
|
24
24
|
const theSession = subscriptionI.publishEngine.session;
|
|
@@ -53,7 +53,7 @@ function callConditionRefresh(subscription, callback) {
|
|
|
53
53
|
methodId: conditionRefreshId,
|
|
54
54
|
objectId: conditionTypeNodeId
|
|
55
55
|
};
|
|
56
|
-
debugLog("
|
|
56
|
+
doDebug && debugLog("Calling method ", methodToCall.toString());
|
|
57
57
|
theSession.call(methodToCall, (err, result) => {
|
|
58
58
|
if (err) {
|
|
59
59
|
return innerCallback(err);
|
|
@@ -61,6 +61,7 @@ function callConditionRefresh(subscription, callback) {
|
|
|
61
61
|
result = result;
|
|
62
62
|
// istanbul ignore next
|
|
63
63
|
if (result.statusCode !== node_opcua_status_code_1.StatusCodes.Good) {
|
|
64
|
+
warningLog(new node_opcua_service_call_1.CallMethodRequest(methodToCall).toString());
|
|
64
65
|
return innerCallback(new Error("Error " + result.statusCode.toString()));
|
|
65
66
|
}
|
|
66
67
|
innerCallback();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client_tools.js","sourceRoot":"","sources":["../../source/alarms_and_conditions/client_tools.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,0BAA0B;AAC1B,uCAAuC;;;AAEvC,+BAA+B;AAC/B,yDAA2C;AAC3C,iEAAyE;AACzE,
|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CAAC,SAAS,CAAC,oBAAoB,GAAG,UAC/C,WAAmB,EACnB,OAAe,EACf,OAA0B,EAC1B,QAA8B;IAE9B,uDAAuD;IACvD,IAAI,CAAC,oBAAoB,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AACtF,CAAC,CAAC;AAEF,iCAAiC;AACjC,iCAAiC;AACjC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AACnC,MAAM,IAAI,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAClC,uCAAiB,CAAC,SAAS,CAAC,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,uCAAiB,CAAC,SAAS,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;AAC9H,uCAAiB,CAAC,SAAS,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,uCAAiB,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAChH,uCAAiB,CAAC,SAAS,CAAC,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,uCAAiB,CAAC,SAAS,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;AACxH,uCAAiB,CAAC,SAAS,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,uCAAiB,CAAC,SAAS,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;AAC/H,MAAc,CAAC,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAE,MAAc,CAAC,OAAO,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.70.2",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -client",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "npx rimraf dist *.tsbuildinfo certificates",
|
|
@@ -22,54 +22,54 @@
|
|
|
22
22
|
"chalk": "4.1.2",
|
|
23
23
|
"delayed": "^2.0.0",
|
|
24
24
|
"node-opcua-assert": "2.66.0",
|
|
25
|
-
"node-opcua-basic-types": "2.
|
|
25
|
+
"node-opcua-basic-types": "2.70.0",
|
|
26
26
|
"node-opcua-buffer-utils": "2.69.0",
|
|
27
|
-
"node-opcua-certificate-manager": "2.
|
|
28
|
-
"node-opcua-client-dynamic-extension-object": "2.
|
|
29
|
-
"node-opcua-common": "2.
|
|
30
|
-
"node-opcua-constants": "2.
|
|
27
|
+
"node-opcua-certificate-manager": "2.70.0",
|
|
28
|
+
"node-opcua-client-dynamic-extension-object": "2.70.2",
|
|
29
|
+
"node-opcua-common": "2.70.2",
|
|
30
|
+
"node-opcua-constants": "2.70.0",
|
|
31
31
|
"node-opcua-crypto": "^1.10.0",
|
|
32
|
-
"node-opcua-data-model": "2.
|
|
33
|
-
"node-opcua-data-value": "2.
|
|
32
|
+
"node-opcua-data-model": "2.70.0",
|
|
33
|
+
"node-opcua-data-value": "2.70.0",
|
|
34
34
|
"node-opcua-date-time": "2.69.0",
|
|
35
35
|
"node-opcua-debug": "2.69.0",
|
|
36
|
-
"node-opcua-extension-object": "2.
|
|
36
|
+
"node-opcua-extension-object": "2.70.0",
|
|
37
37
|
"node-opcua-hostname": "2.67.0",
|
|
38
|
-
"node-opcua-nodeid": "2.
|
|
38
|
+
"node-opcua-nodeid": "2.70.0",
|
|
39
39
|
"node-opcua-object-registry": "2.69.0",
|
|
40
40
|
"node-opcua-pki": "^2.15.4",
|
|
41
|
-
"node-opcua-pseudo-session": "2.
|
|
42
|
-
"node-opcua-schemas": "2.
|
|
43
|
-
"node-opcua-secure-channel": "2.
|
|
44
|
-
"node-opcua-service-browse": "2.
|
|
45
|
-
"node-opcua-service-call": "2.
|
|
46
|
-
"node-opcua-service-discovery": "2.
|
|
47
|
-
"node-opcua-service-endpoints": "2.
|
|
48
|
-
"node-opcua-service-filter": "2.
|
|
49
|
-
"node-opcua-service-history": "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-types": "2.
|
|
41
|
+
"node-opcua-pseudo-session": "2.70.2",
|
|
42
|
+
"node-opcua-schemas": "2.70.2",
|
|
43
|
+
"node-opcua-secure-channel": "2.70.2",
|
|
44
|
+
"node-opcua-service-browse": "2.70.2",
|
|
45
|
+
"node-opcua-service-call": "2.70.2",
|
|
46
|
+
"node-opcua-service-discovery": "2.70.2",
|
|
47
|
+
"node-opcua-service-endpoints": "2.70.2",
|
|
48
|
+
"node-opcua-service-filter": "2.70.2",
|
|
49
|
+
"node-opcua-service-history": "2.70.2",
|
|
50
|
+
"node-opcua-service-query": "2.70.2",
|
|
51
|
+
"node-opcua-service-read": "2.70.2",
|
|
52
|
+
"node-opcua-service-register-node": "2.70.2",
|
|
53
|
+
"node-opcua-service-secure-channel": "2.70.2",
|
|
54
|
+
"node-opcua-service-session": "2.70.2",
|
|
55
|
+
"node-opcua-service-subscription": "2.70.2",
|
|
56
|
+
"node-opcua-service-translate-browse-path": "2.70.2",
|
|
57
|
+
"node-opcua-service-write": "2.70.2",
|
|
58
|
+
"node-opcua-status-code": "2.70.0",
|
|
59
|
+
"node-opcua-types": "2.70.2",
|
|
60
60
|
"node-opcua-utils": "2.69.0",
|
|
61
|
-
"node-opcua-variant": "2.
|
|
61
|
+
"node-opcua-variant": "2.70.0",
|
|
62
62
|
"once": "^1.4.0",
|
|
63
63
|
"thenify": "^3.3.1",
|
|
64
64
|
"underscore": "^1.13.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"dequeue": "^1.0.5",
|
|
68
|
-
"node-opcua-address-space": "2.
|
|
68
|
+
"node-opcua-address-space": "2.70.2",
|
|
69
69
|
"node-opcua-binary-stream": "2.69.0",
|
|
70
|
-
"node-opcua-factory": "2.
|
|
70
|
+
"node-opcua-factory": "2.70.0",
|
|
71
71
|
"node-opcua-leak-detector": "2.69.0",
|
|
72
|
-
"node-opcua-nodesets": "2.
|
|
72
|
+
"node-opcua-nodesets": "2.70.2",
|
|
73
73
|
"should": "^13.2.3",
|
|
74
74
|
"sinon": "^14.0.0"
|
|
75
75
|
},
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"internet of things"
|
|
94
94
|
],
|
|
95
95
|
"homepage": "http://node-opcua.github.io/",
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "3d63db79d14539ee61bc82998b19320202f35392"
|
|
97
97
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as async from "async";
|
|
8
8
|
import { assert } from "node-opcua-assert";
|
|
9
9
|
import { LocalizedText, LocalizedTextLike } from "node-opcua-data-model";
|
|
10
|
-
import { checkDebugFlag, make_debugLog } from "node-opcua-debug";
|
|
10
|
+
import { checkDebugFlag, make_debugLog, make_warningLog } from "node-opcua-debug";
|
|
11
11
|
import { coerceNodeId, NodeId, NodeIdLike, resolveNodeId } from "node-opcua-nodeid";
|
|
12
12
|
import { CallMethodRequest, CallMethodResult } from "node-opcua-service-call";
|
|
13
13
|
import { BrowsePathResult, makeBrowsePath } from "node-opcua-service-translate-browse-path";
|
|
@@ -22,7 +22,8 @@ import { ClientSubscriptionImpl } from "../private/client_subscription_impl";
|
|
|
22
22
|
|
|
23
23
|
const debugLog = make_debugLog(__filename);
|
|
24
24
|
const doDebug = checkDebugFlag(__filename);
|
|
25
|
-
const
|
|
25
|
+
const warningLog = make_warningLog(__filename);
|
|
26
|
+
|
|
26
27
|
|
|
27
28
|
export async function callConditionRefresh(subscription: ClientSubscription): Promise<void>;
|
|
28
29
|
export function callConditionRefresh(subscription: ClientSubscription, callback: ErrorCallback): void;
|
|
@@ -67,7 +68,7 @@ export function callConditionRefresh(subscription: ClientSubscription, callback?
|
|
|
67
68
|
objectId: conditionTypeNodeId
|
|
68
69
|
};
|
|
69
70
|
|
|
70
|
-
debugLog("
|
|
71
|
+
doDebug && debugLog("Calling method ", methodToCall.toString());
|
|
71
72
|
theSession.call(methodToCall, (err: Error | null, result?: CallMethodResult) => {
|
|
72
73
|
if (err) {
|
|
73
74
|
return innerCallback(err);
|
|
@@ -76,6 +77,7 @@ export function callConditionRefresh(subscription: ClientSubscription, callback?
|
|
|
76
77
|
|
|
77
78
|
// istanbul ignore next
|
|
78
79
|
if (result.statusCode !== StatusCodes.Good) {
|
|
80
|
+
warningLog(new CallMethodRequest(methodToCall).toString());
|
|
79
81
|
return innerCallback(new Error("Error " + result.statusCode.toString()));
|
|
80
82
|
}
|
|
81
83
|
innerCallback();
|