node-opcua-client 2.166.0 → 2.168.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/alarms_and_conditions/client_alarm_tools.d.ts +1 -1
- package/dist/alarms_and_conditions/client_alarm_tools.js +2 -2
- package/dist/alarms_and_conditions/client_alarm_tools.js.map +1 -1
- package/dist/alarms_and_conditions/client_tools.d.ts +3 -0
- package/dist/alarms_and_conditions/client_tools.js +2 -2
- package/dist/alarms_and_conditions/client_tools.js.map +1 -1
- package/dist/client_base.d.ts +47 -40
- package/dist/client_base.js +5 -6
- package/dist/client_base.js.map +1 -1
- package/dist/client_monitored_item.d.ts +7 -7
- package/dist/client_monitored_item.js.map +1 -1
- package/dist/client_monitored_item_base.d.ts +12 -13
- package/dist/client_monitored_item_group.d.ts +5 -5
- package/dist/client_monitored_item_toolbox.d.ts +6 -7
- package/dist/client_monitored_item_toolbox.js.map +1 -1
- package/dist/client_session.d.ts +19 -23
- package/dist/client_session.js.map +1 -1
- package/dist/client_session_keepalive_manager.d.ts +1 -1
- package/dist/client_session_keepalive_manager.js +6 -6
- package/dist/client_session_keepalive_manager.js.map +1 -1
- package/dist/client_subscription.d.ts +11 -12
- package/dist/client_subscription.js.map +1 -1
- package/dist/client_utils.d.ts +3 -3
- package/dist/client_utils.js.map +1 -1
- package/dist/common.d.ts +12 -12
- package/dist/index.d.ts +26 -27
- package/dist/index.js +65 -66
- package/dist/index.js.map +1 -1
- package/dist/opcua_client.d.ts +17 -19
- package/dist/opcua_client.js.map +1 -1
- package/dist/private/client_base_impl.d.ts +19 -18
- package/dist/private/client_base_impl.js +220 -192
- package/dist/private/client_base_impl.js.map +1 -1
- package/dist/private/client_monitored_item_group_impl.d.ts +4 -5
- package/dist/private/client_monitored_item_group_impl.js +1 -1
- package/dist/private/client_monitored_item_group_impl.js.map +1 -1
- package/dist/private/client_monitored_item_impl.d.ts +9 -10
- package/dist/private/client_monitored_item_impl.js.map +1 -1
- package/dist/private/client_publish_engine.d.ts +3 -3
- package/dist/private/client_publish_engine.js +6 -7
- package/dist/private/client_publish_engine.js.map +1 -1
- package/dist/private/client_session_impl.d.ts +24 -25
- package/dist/private/client_session_impl.js +14 -10
- package/dist/private/client_session_impl.js.map +1 -1
- package/dist/private/client_subscription_impl.d.ts +10 -11
- package/dist/private/client_subscription_impl.js +12 -11
- package/dist/private/client_subscription_impl.js.map +1 -1
- package/dist/private/i_private_client.d.ts +7 -7
- package/dist/private/opcua_client_impl.d.ts +12 -9
- package/dist/private/opcua_client_impl.js +58 -48
- package/dist/private/opcua_client_impl.js.map +1 -1
- package/dist/private/performance.js.map +1 -1
- package/dist/private/reconnection/client_publish_engine_reconnection.d.ts +1 -1
- package/dist/private/reconnection/client_publish_engine_reconnection.js +54 -43
- package/dist/private/reconnection/client_publish_engine_reconnection.js.map +1 -1
- package/dist/private/reconnection/client_reconnection.d.ts +1 -1
- package/dist/private/reconnection/client_subscription_reconnection.d.ts +1 -1
- package/dist/private/reconnection/client_subscription_reconnection.js +2 -2
- package/dist/private/reconnection/client_subscription_reconnection.js.map +1 -1
- package/dist/private/reconnection/reconnection.d.ts +4 -4
- package/dist/private/reconnection/reconnection.js +200 -281
- package/dist/private/reconnection/reconnection.js.map +1 -1
- package/dist/tools/findservers.d.ts +7 -2
- package/dist/tools/findservers.js +41 -53
- package/dist/tools/findservers.js.map +1 -1
- package/dist/tools/read_history_server_capabilities.d.ts +1 -1
- package/dist/tools/read_history_server_capabilities.js +9 -8
- package/dist/tools/read_history_server_capabilities.js.map +1 -1
- package/dist/user_identity_info.d.ts +1 -1
- package/dist/verify.js.map +1 -1
- package/package.json +45 -45
- package/source/alarms_and_conditions/client_alarm_tools.ts +14 -8
- package/source/alarms_and_conditions/client_tools.ts +7 -6
- package/source/client_base.ts +93 -79
- package/source/client_monitored_item.ts +7 -8
- package/source/client_monitored_item_base.ts +12 -14
- package/source/client_monitored_item_group.ts +5 -5
- package/source/client_monitored_item_toolbox.ts +13 -14
- package/source/client_session.ts +37 -40
- package/source/client_session_keepalive_manager.ts +7 -10
- package/source/client_subscription.ts +11 -12
- package/source/client_utils.ts +6 -6
- package/source/common.ts +12 -12
- package/source/index.ts +44 -40
- package/source/opcua_client.ts +24 -23
- package/source/private/client_base_impl.ts +329 -290
- package/source/private/client_monitored_item_group_impl.ts +10 -14
- package/source/private/client_monitored_item_impl.ts +17 -17
- package/source/private/client_publish_engine.ts +11 -12
- package/source/private/client_session_impl.ts +85 -82
- package/source/private/client_subscription_impl.ts +42 -41
- package/source/private/i_private_client.ts +8 -8
- package/source/private/opcua_client_impl.ts +118 -97
- package/source/private/performance.ts +2 -3
- package/source/private/reconnection/client_publish_engine_reconnection.ts +76 -68
- package/source/private/reconnection/client_reconnection.ts +1 -1
- package/source/private/reconnection/client_subscription_reconnection.ts +16 -13
- package/source/private/reconnection/reconnection.ts +307 -301
- package/source/tools/findservers.ts +43 -62
- package/source/tools/read_history_server_capabilities.ts +20 -22
- package/source/user_identity_info.ts +5 -5
- package/source/verify.ts +25 -25
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-client
|
|
3
|
+
*/
|
|
4
|
+
import type { ServerOnNetwork } from "node-opcua-service-discovery";
|
|
5
|
+
import type { ApplicationDescription, EndpointDescription } from "node-opcua-service-endpoints";
|
|
3
6
|
export interface FindServerResults {
|
|
4
7
|
servers: ApplicationDescription[];
|
|
5
8
|
endpoints: EndpointDescription[];
|
|
6
9
|
}
|
|
10
|
+
export declare function findServersAsync(discoveryServerEndpointUri: string): Promise<FindServerResults>;
|
|
7
11
|
/**
|
|
8
12
|
* extract the server endpoints exposed by a discovery server
|
|
9
13
|
*/
|
|
10
14
|
export declare function findServers(discoveryServerEndpointUri: string, callback: (err: Error | null, result?: FindServerResults) => void): void;
|
|
11
15
|
export declare function findServers(discoveryServerEndpointUri: string): Promise<FindServerResults>;
|
|
16
|
+
export declare function findServersOnNetworkAsync(discoveryServerEndpointUri: string): Promise<ServerOnNetwork[]>;
|
|
12
17
|
/**
|
|
13
18
|
* extract the server endpoints exposed by a discovery server
|
|
14
19
|
*/
|
|
@@ -1,64 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.findServers = findServers;
|
|
7
|
-
exports.findServersOnNetwork = findServersOnNetwork;
|
|
8
2
|
/**
|
|
9
3
|
* @module node-opcua-client
|
|
10
4
|
*/
|
|
11
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.findServersAsync = findServersAsync;
|
|
7
|
+
exports.findServers = findServers;
|
|
8
|
+
exports.findServersOnNetworkAsync = findServersOnNetworkAsync;
|
|
9
|
+
exports.findServersOnNetwork = findServersOnNetwork;
|
|
12
10
|
const client_base_impl_1 = require("../private/client_base_impl");
|
|
11
|
+
async function findServersAsync(discoveryServerEndpointUri) {
|
|
12
|
+
const client = new client_base_impl_1.ClientBaseImpl({ connectionStrategy: { maxRetry: 3 } });
|
|
13
|
+
try {
|
|
14
|
+
await client.connect(discoveryServerEndpointUri);
|
|
15
|
+
const servers = await client.findServers();
|
|
16
|
+
const endpoints = await client.getEndpoints({ endpointUrl: undefined });
|
|
17
|
+
return { servers, endpoints };
|
|
18
|
+
}
|
|
19
|
+
finally {
|
|
20
|
+
await client.disconnect();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
13
23
|
function findServers(discoveryServerEndpointUri, callback) {
|
|
24
|
+
if (!callback) {
|
|
25
|
+
return findServersAsync(discoveryServerEndpointUri);
|
|
26
|
+
}
|
|
27
|
+
findServersAsync(discoveryServerEndpointUri)
|
|
28
|
+
.then((result) => callback(null, result))
|
|
29
|
+
.catch((err) => callback(err));
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
async function findServersOnNetworkAsync(discoveryServerEndpointUri) {
|
|
14
33
|
const client = new client_base_impl_1.ClientBaseImpl({ connectionStrategy: { maxRetry: 3 } });
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
(
|
|
22
|
-
|
|
23
|
-
if (_servers) {
|
|
24
|
-
servers = _servers;
|
|
25
|
-
}
|
|
26
|
-
innerCallback(err ? err : undefined);
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
(innerCallback) => {
|
|
30
|
-
client.getEndpoints({ endpointUrl: undefined }, (err, _endpoints) => {
|
|
31
|
-
if (_endpoints) {
|
|
32
|
-
endpoints = _endpoints;
|
|
33
|
-
}
|
|
34
|
-
innerCallback(err ? err : undefined);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
], (err) => {
|
|
38
|
-
client.disconnect(() => {
|
|
39
|
-
callback(err ? err : null, { servers, endpoints });
|
|
40
|
-
});
|
|
41
|
-
});
|
|
34
|
+
try {
|
|
35
|
+
await client.connect(discoveryServerEndpointUri);
|
|
36
|
+
const servers = await client.findServersOnNetwork();
|
|
37
|
+
return servers;
|
|
38
|
+
}
|
|
39
|
+
finally {
|
|
40
|
+
await client.disconnect();
|
|
41
|
+
}
|
|
42
42
|
}
|
|
43
43
|
function findServersOnNetwork(discoveryServerEndpointUri, callback) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
client.disconnect(() => {
|
|
55
|
-
callback(err);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
});
|
|
44
|
+
if (!callback) {
|
|
45
|
+
return findServersOnNetworkAsync(discoveryServerEndpointUri);
|
|
46
|
+
}
|
|
47
|
+
findServersOnNetworkAsync(discoveryServerEndpointUri)
|
|
48
|
+
.then((servers) => callback(null, servers))
|
|
49
|
+
.catch((err) => callback(err));
|
|
50
|
+
return undefined;
|
|
59
51
|
}
|
|
60
|
-
// tslint:disable:no-var-requires
|
|
61
|
-
const thenify_ex_1 = require("thenify-ex");
|
|
62
|
-
module.exports.findServersOnNetwork = (0, thenify_ex_1.withCallback)(module.exports.findServersOnNetwork);
|
|
63
|
-
module.exports.findServers = (0, thenify_ex_1.withCallback)(module.exports.findServers);
|
|
64
52
|
//# sourceMappingURL=findservers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findservers.js","sourceRoot":"","sources":["../../source/tools/findservers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"findservers.js","sourceRoot":"","sources":["../../source/tools/findservers.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAYH,4CAUC;AAUD,kCAWC;AACD,8DASC;AAUD,oDAWC;AApED,kEAA6D;AAMtD,KAAK,UAAU,gBAAgB,CAAC,0BAAkC;IACrE,MAAM,MAAM,GAAG,IAAI,iCAAc,CAAC,EAAE,kBAAkB,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3E,IAAI,CAAC;QACD,MAAM,MAAM,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;QAC3C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC;QACxE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAClC,CAAC;YAAS,CAAC;QACP,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC;AAUD,SAAgB,WAAW,CACvB,0BAAkC,EAClC,QAAkE;IAElE,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;IACxD,CAAC;IACD,gBAAgB,CAAC,0BAA0B,CAAC;SACvC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SACxC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,OAAO,SAAS,CAAC;AACrB,CAAC;AACM,KAAK,UAAU,yBAAyB,CAAC,0BAAkC;IAC9E,MAAM,MAAM,GAAG,IAAI,iCAAc,CAAC,EAAE,kBAAkB,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3E,IAAI,CAAC;QACD,MAAM,MAAM,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,oBAAoB,EAAE,CAAC;QACpD,OAAO,OAAO,CAAC;IACnB,CAAC;YAAS,CAAC;QACP,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC;IAC9B,CAAC;AACL,CAAC;AAUD,SAAgB,oBAAoB,CAChC,0BAAkC,EAClC,QAAmE;IAEnE,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,yBAAyB,CAAC,0BAA0B,CAAC,CAAC;IACjE,CAAC;IACD,yBAAyB,CAAC,0BAA0B,CAAC;SAChD,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SAC1C,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
|
@@ -12,7 +12,14 @@ const node_opcua_service_translate_browse_path_1 = require("node-opcua-service-t
|
|
|
12
12
|
const node_opcua_utils_1 = require("node-opcua-utils");
|
|
13
13
|
function readHistoryServerCapabilities(session, callback) {
|
|
14
14
|
if (!callback) {
|
|
15
|
-
|
|
15
|
+
return new Promise((resolve, reject) => {
|
|
16
|
+
readHistoryServerCapabilities(session, (err, capabilities) => {
|
|
17
|
+
if (err) {
|
|
18
|
+
return reject(err);
|
|
19
|
+
}
|
|
20
|
+
resolve(capabilities);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
16
23
|
}
|
|
17
24
|
// display HistoryCapabilities of server
|
|
18
25
|
const browsePath = (0, node_opcua_service_translate_browse_path_1.makeBrowsePath)(node_opcua_constants_1.ObjectIds.ObjectsFolder, "/Server/ServerCapabilities.HistoryServerCapabilities");
|
|
@@ -66,9 +73,7 @@ function readHistoryServerCapabilities(session, callback) {
|
|
|
66
73
|
if (!results) {
|
|
67
74
|
return callback(new Error("Internal Error"));
|
|
68
75
|
}
|
|
69
|
-
const nodeIds = results.map((innerResult) => innerResult.statusCode.isGood() && innerResult.targets
|
|
70
|
-
? innerResult.targets[0].targetId
|
|
71
|
-
: new node_opcua_nodeid_1.NodeId());
|
|
76
|
+
const nodeIds = results.map((innerResult) => innerResult.statusCode.isGood() && innerResult.targets ? innerResult.targets[0].targetId : new node_opcua_nodeid_1.NodeId());
|
|
72
77
|
const nodesToRead = nodeIds.map((nodeId) => ({
|
|
73
78
|
attributeId: node_opcua_data_model_1.AttributeIds.Value,
|
|
74
79
|
nodeId /*: coerceNodeId(nodeId)*/
|
|
@@ -91,8 +96,4 @@ function readHistoryServerCapabilities(session, callback) {
|
|
|
91
96
|
});
|
|
92
97
|
});
|
|
93
98
|
}
|
|
94
|
-
// tslint:disable:no-var-requires
|
|
95
|
-
const thenify_ex_1 = require("thenify-ex");
|
|
96
|
-
const opts = { multiArgs: false };
|
|
97
|
-
module.exports.readHistoryServerCapabilities = (0, thenify_ex_1.withCallback)(module.exports.readHistoryServerCapabilities, opts);
|
|
98
99
|
//# sourceMappingURL=read_history_server_capabilities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read_history_server_capabilities.js","sourceRoot":"","sources":["../../source/tools/read_history_server_capabilities.ts"],"names":[],"mappings":";;AAyBA,
|
|
1
|
+
{"version":3,"file":"read_history_server_capabilities.js","sourceRoot":"","sources":["../../source/tools/read_history_server_capabilities.ts"],"names":[],"mappings":";;AAyBA,sEA0GC;AAnID;;GAEG;AACH,yDAA2C;AAC3C,+DAAiD;AACjD,iEAAqD;AAErD,yDAA2C;AAE3C,uGAAkH;AAElH,uDAAoD;AAcpD,SAAgB,6BAA6B,CACzC,OAAsB,EACtB,QAAgF;IAEhF,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,IAAI,OAAO,CAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC9D,6BAA6B,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE;gBACzD,IAAI,GAAG,EAAE,CAAC;oBACN,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;gBACvB,CAAC;gBACD,OAAO,CAAC,YAAa,CAAC,CAAC;YAC3B,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;IACD,wCAAwC;IACxC,MAAM,UAAU,GAAe,IAAA,yDAAc,EAAC,gCAAS,CAAC,aAAa,EAAE,sDAAsD,CAAC,CAAC;IAE/H,OAAO,CAAC,mBAAmB,CAAC,UAAU,EAAE,CAAC,GAAiB,EAAE,MAAyB,EAAE,EAAE;QACrF,IAAI,GAAG,EAAE,CAAC;YACN,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;QACzB,CAAC;QACD,oBAAoB;QACpB,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO,QAAQ,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,MAAM,CAAC,UAAU,CAAC,SAAS,EAAE,EAAE,CAAC;YAChC,OAAO,QAAQ,CAAC,IAAI,KAAK,CAAC,eAAe,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,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|
|
1
|
-
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../source/verify.ts"],"names":[],"mappings":";;AAYA,sEAsGC;AAED,sEAgDC;AAjKD,+CAA+H;AAC/H,uDAAiG;AAGjG,MAAM,QAAQ,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAC5C,MAAM,SAAS,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,UAAU,GAAG,IAAA,kCAAe,EAAC,UAAU,CAAC,CAAC;AAE/C,SAAgB,6BAA6B,CACzC,WAAwB,EACxB,eAAuB,EACvB,IAAyB,EACzB,cAAsB;IAEtB,MAAM,eAAe,GAAG,IAAA,wBAAkB,EAAC,WAAW,CAAC,CAAC;IACxD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IAEvB,IAAI,eAAe,CAAC,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC;QAC9E,mCAAmC;QACnC,gCAAgC;QAChC,UAAU,CACN,sDAAsD;
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../source/verify.ts"],"names":[],"mappings":";;AAYA,sEAsGC;AAED,sEAgDC;AAjKD,+CAA+H;AAC/H,uDAAiG;AAGjG,MAAM,QAAQ,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAC5C,MAAM,SAAS,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,UAAU,GAAG,IAAA,kCAAe,EAAC,UAAU,CAAC,CAAC;AAE/C,SAAgB,6BAA6B,CACzC,WAAwB,EACxB,eAAuB,EACvB,IAAyB,EACzB,cAAsB;IAEtB,MAAM,eAAe,GAAG,IA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F,MAAM,cAAc,GAAG,IAAA,uBAAiB,EAAC,UAAU,CAAC,CAAC;IACrD,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;IAC1D,IAAI,eAAe,IAAI,IAAI,EAAE,CAAC;QAC1B,UAAU,CACN,2HAA2H,eAAe,MAAM;YAC5I,2FAA2F;YAC3F,OAAO,cAAc,qEAAqE,CACjG,CAAC;IACN,CAAC;IAED,MAAM,OAAO,GAA6B;QACtC,yBAAyB,EAAE,KAAK;QAChC,+BAA+B,EAAE,KAAK;QACtC,wBAAwB,EAAE,KAAK;KAClC,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,iBAAiB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAEhF,gEAAgE;IAChE,8DAA8D;IAC9D,2DAA2D;IAC3D,qCAAqC;IACrC,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,yBAAyB,EAAE,CAAC;QAC5D,UAAU,CAAC,wDAAwD,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC3H,CAAC;IAED,6BAA6B,CAAC,WAAW,EAAE,YAAY,CAAC,eAAe,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC;AAC7G,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.168.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module client",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "npx rimraf -g node_modules dist *.tsbuildinfo certificates",
|
|
7
7
|
"test": "mocha",
|
|
8
|
+
"test:check": "tsc --noEmit -p test/tsconfig.json",
|
|
8
9
|
"build": "tsc -b",
|
|
9
10
|
"lint": "eslint source test test_helpers",
|
|
10
11
|
"format": "prettier --write source test test_helpers",
|
|
@@ -14,56 +15,55 @@
|
|
|
14
15
|
"types": "./dist/index.d.ts",
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@ster5/global-mutex": "^3.3.0",
|
|
17
|
-
"async": "^3.2.6",
|
|
18
18
|
"chalk": "4.1.2",
|
|
19
|
-
"node-opcua-alarm-condition": "2.
|
|
19
|
+
"node-opcua-alarm-condition": "2.168.0",
|
|
20
20
|
"node-opcua-assert": "2.164.0",
|
|
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.
|
|
21
|
+
"node-opcua-basic-types": "2.168.0",
|
|
22
|
+
"node-opcua-buffer-utils": "2.168.0",
|
|
23
|
+
"node-opcua-certificate-manager": "2.168.0",
|
|
24
|
+
"node-opcua-client-dynamic-extension-object": "2.168.0",
|
|
25
|
+
"node-opcua-common": "2.168.0",
|
|
26
26
|
"node-opcua-constants": "2.157.0",
|
|
27
|
-
"node-opcua-crypto": "5.3.
|
|
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.
|
|
37
|
-
"node-opcua-pki": "6.
|
|
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-types": "2.
|
|
57
|
-
"node-opcua-utils": "2.
|
|
58
|
-
"node-opcua-variant": "2.
|
|
27
|
+
"node-opcua-crypto": "5.3.3",
|
|
28
|
+
"node-opcua-data-model": "2.168.0",
|
|
29
|
+
"node-opcua-data-value": "2.168.0",
|
|
30
|
+
"node-opcua-date-time": "2.168.0",
|
|
31
|
+
"node-opcua-debug": "2.168.0",
|
|
32
|
+
"node-opcua-extension-object": "2.168.0",
|
|
33
|
+
"node-opcua-hostname": "2.167.0",
|
|
34
|
+
"node-opcua-nodeid": "2.168.0",
|
|
35
|
+
"node-opcua-numeric-range": "2.168.0",
|
|
36
|
+
"node-opcua-object-registry": "2.168.0",
|
|
37
|
+
"node-opcua-pki": "6.12.0",
|
|
38
|
+
"node-opcua-pseudo-session": "2.168.0",
|
|
39
|
+
"node-opcua-schemas": "2.168.0",
|
|
40
|
+
"node-opcua-secure-channel": "2.168.0",
|
|
41
|
+
"node-opcua-service-browse": "2.168.0",
|
|
42
|
+
"node-opcua-service-call": "2.168.0",
|
|
43
|
+
"node-opcua-service-discovery": "2.168.0",
|
|
44
|
+
"node-opcua-service-endpoints": "2.168.0",
|
|
45
|
+
"node-opcua-service-filter": "2.168.0",
|
|
46
|
+
"node-opcua-service-history": "2.168.0",
|
|
47
|
+
"node-opcua-service-query": "2.168.0",
|
|
48
|
+
"node-opcua-service-read": "2.168.0",
|
|
49
|
+
"node-opcua-service-register-node": "2.168.0",
|
|
50
|
+
"node-opcua-service-secure-channel": "2.168.0",
|
|
51
|
+
"node-opcua-service-session": "2.168.0",
|
|
52
|
+
"node-opcua-service-subscription": "2.168.0",
|
|
53
|
+
"node-opcua-service-translate-browse-path": "2.168.0",
|
|
54
|
+
"node-opcua-service-write": "2.168.0",
|
|
55
|
+
"node-opcua-status-code": "2.168.0",
|
|
56
|
+
"node-opcua-types": "2.168.0",
|
|
57
|
+
"node-opcua-utils": "2.168.0",
|
|
58
|
+
"node-opcua-variant": "2.168.0",
|
|
59
59
|
"thenify-ex": "4.4.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"dequeue": "^1.0.5",
|
|
63
|
-
"node-opcua-address-space": "2.
|
|
64
|
-
"node-opcua-binary-stream": "2.
|
|
65
|
-
"node-opcua-factory": "2.
|
|
66
|
-
"node-opcua-leak-detector": "2.
|
|
63
|
+
"node-opcua-address-space": "2.168.0",
|
|
64
|
+
"node-opcua-binary-stream": "2.168.0",
|
|
65
|
+
"node-opcua-factory": "2.168.0",
|
|
66
|
+
"node-opcua-leak-detector": "2.168.0",
|
|
67
67
|
"node-opcua-nodesets": "2.163.1"
|
|
68
68
|
},
|
|
69
69
|
"eslintConfig": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"internet of things"
|
|
87
87
|
],
|
|
88
88
|
"homepage": "http://node-opcua.github.io/",
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "653b6d6df801ca17298308089dee32e5b12102b6",
|
|
90
90
|
"files": [
|
|
91
91
|
"dist",
|
|
92
92
|
"source"
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ClientAlarmList,
|
|
3
|
+
callConditionRefresh,
|
|
4
|
+
type EventStuff,
|
|
5
|
+
extractConditionFields,
|
|
6
|
+
fieldsToJson
|
|
7
|
+
} from "node-opcua-alarm-condition";
|
|
1
8
|
import { AttributeIds } from "node-opcua-data-model";
|
|
9
|
+
import { checkDebugFlag, make_debugLog, make_warningLog } from "node-opcua-debug";
|
|
2
10
|
import { resolveNodeId } from "node-opcua-nodeid";
|
|
3
11
|
import { constructEventFilter, ofType } from "node-opcua-service-filter";
|
|
4
|
-
import { ReadValueIdOptions, TimestampsToReturn } from "node-opcua-service-read";
|
|
5
|
-
import { CreateSubscriptionRequestOptions, MonitoringParametersOptions } from "node-opcua-service-subscription";
|
|
6
|
-
import { DataType, Variant } from "node-opcua-variant";
|
|
7
|
-
import { checkDebugFlag, make_debugLog, make_warningLog } from "node-opcua-debug";
|
|
8
|
-
import { ClientAlarmList, EventStuff, callConditionRefresh, extractConditionFields, fieldsToJson } from "node-opcua-alarm-condition";
|
|
12
|
+
import { type ReadValueIdOptions, TimestampsToReturn } from "node-opcua-service-read";
|
|
13
|
+
import type { CreateSubscriptionRequestOptions, MonitoringParametersOptions } from "node-opcua-service-subscription";
|
|
14
|
+
import { DataType, type Variant } from "node-opcua-variant";
|
|
9
15
|
|
|
10
|
-
import { ClientMonitoredItem } from "../client_monitored_item";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
16
|
+
import type { ClientMonitoredItem } from "../client_monitored_item";
|
|
17
|
+
import type { ClientSession } from "../client_session";
|
|
18
|
+
import type { ClientSubscription } from "../client_subscription";
|
|
13
19
|
|
|
14
20
|
const doDebug = checkDebugFlag("A&E");
|
|
15
21
|
const debugLog = make_debugLog("A&E");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-client
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
import { LocalizedTextLike } from "node-opcua-data-model";
|
|
6
|
-
import { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
7
|
-
import { StatusCode } from "node-opcua-status-code";
|
|
8
|
-
import { Callback } from "node-opcua-status-code";
|
|
4
|
+
|
|
9
5
|
import { acknowledgeCondition, callMethodCondition, confirmCondition } from "node-opcua-alarm-condition";
|
|
10
|
-
import {
|
|
6
|
+
import type { LocalizedTextLike } from "node-opcua-data-model";
|
|
7
|
+
import type { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
8
|
+
import { findMethodId, type ResponseCallback } from "node-opcua-pseudo-session";
|
|
9
|
+
import type { Callback, StatusCode } from "node-opcua-status-code";
|
|
10
|
+
import { callbackify } from "util";
|
|
11
11
|
|
|
12
12
|
import { ClientSessionImpl } from "../private/client_session_impl";
|
|
13
13
|
|
|
@@ -67,6 +67,7 @@ ClientSessionImpl.prototype.acknowledgeCondition = function (
|
|
|
67
67
|
// tslint:disable:no-var-requires
|
|
68
68
|
// tslint:disable:max-line-length
|
|
69
69
|
import { withCallback } from "thenify-ex";
|
|
70
|
+
|
|
70
71
|
const opts = { multiArgs: false };
|
|
71
72
|
ClientSessionImpl.prototype.addCommentCondition = withCallback(ClientSessionImpl.prototype.addCommentCondition, opts);
|
|
72
73
|
ClientSessionImpl.prototype.findMethodId = withCallback(ClientSessionImpl.prototype.findMethodId, opts);
|