node-opcua-client 2.56.3 → 2.57.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/.mocharc.yml CHANGED
@@ -1,9 +1,9 @@
1
- require:
2
- - ../../node_modules/source-map-support/register
3
- - ../../node_modules/ts-node/register
4
- - ../../node_modules/should
5
- extension:
6
- - ts
7
- - js
8
- recursive: true
9
- timeout: 20000
1
+ require:
2
+ - ../../node_modules/source-map-support/register
3
+ - ../../node_modules/ts-node/register
4
+ - ../../node_modules/should
5
+ extension:
6
+ - ts
7
+ - js
8
+ recursive: true
9
+ timeout: 20000
package/.nycrc.json CHANGED
@@ -1,14 +1,14 @@
1
- {
2
- "extends": "@istanbuljs/nyc-config-typescript",
3
- "all": true,
4
- "__check-coverage": true,
5
- "excludeNodeModules": false,
6
- "include": [
7
- "dist/**/*.js",
8
- "source/**/*.ts"
9
- ],
10
- "reporter": [
11
- "text",
12
- "lcov"
13
- ]
14
- }
1
+ {
2
+ "extends": "@istanbuljs/nyc-config-typescript",
3
+ "all": true,
4
+ "__check-coverage": true,
5
+ "excludeNodeModules": false,
6
+ "include": [
7
+ "dist/**/*.js",
8
+ "source/**/*.ts"
9
+ ],
10
+ "reporter": [
11
+ "text",
12
+ "lcov"
13
+ ]
14
+ }
package/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014-2021 Etienne Rossignon
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-2021 Etienne Rossignon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- node-opcua-client
2
- =================
3
-
4
- an implementation of a OPC UA stack fully written in javascript and nodejs
5
-
6
-
7
- see http://node-opcua.github.io/
8
-
1
+ node-opcua-client
2
+ =================
3
+
4
+ an implementation of a OPC UA stack fully written in javascript and nodejs
5
+
6
+
7
+ see http://node-opcua.github.io/
8
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-client",
3
- "version": "2.56.3",
3
+ "version": "2.57.0",
4
4
  "description": "pure nodejs OPCUA SDK - module -client",
5
5
  "scripts": {
6
6
  "clean": "node -e \"require('rimraf').sync('certificates');\" && node -e \"require('rimraf').sync('dist');\"",
@@ -22,54 +22,54 @@
22
22
  "chalk": "4.1.2",
23
23
  "delayed": "^2.0.0",
24
24
  "node-opcua-assert": "2.55.0",
25
- "node-opcua-basic-types": "2.56.0",
25
+ "node-opcua-basic-types": "2.57.0",
26
26
  "node-opcua-buffer-utils": "2.55.0",
27
- "node-opcua-certificate-manager": "2.56.0",
28
- "node-opcua-client-dynamic-extension-object": "2.56.2",
29
- "node-opcua-common": "2.56.2",
27
+ "node-opcua-certificate-manager": "2.57.0",
28
+ "node-opcua-client-dynamic-extension-object": "2.57.0",
29
+ "node-opcua-common": "2.57.0",
30
30
  "node-opcua-constants": "2.52.0",
31
31
  "node-opcua-crypto": "^1.7.4",
32
- "node-opcua-data-model": "2.56.0",
33
- "node-opcua-data-value": "2.56.0",
32
+ "node-opcua-data-model": "2.57.0",
33
+ "node-opcua-data-value": "2.57.0",
34
34
  "node-opcua-date-time": "2.55.0",
35
35
  "node-opcua-debug": "2.55.0",
36
- "node-opcua-extension-object": "2.56.0",
36
+ "node-opcua-extension-object": "2.57.0",
37
37
  "node-opcua-hostname": "2.55.0",
38
38
  "node-opcua-nodeid": "2.55.0",
39
39
  "node-opcua-object-registry": "2.56.0",
40
40
  "node-opcua-pki": "^2.12.0",
41
- "node-opcua-pseudo-session": "2.56.2",
42
- "node-opcua-schemas": "2.56.0",
43
- "node-opcua-secure-channel": "2.56.2",
44
- "node-opcua-service-browse": "2.56.2",
45
- "node-opcua-service-call": "2.56.2",
46
- "node-opcua-service-discovery": "2.56.2",
47
- "node-opcua-service-endpoints": "2.56.2",
48
- "node-opcua-service-filter": "2.56.2",
49
- "node-opcua-service-history": "2.56.2",
50
- "node-opcua-service-query": "2.56.2",
51
- "node-opcua-service-read": "2.56.2",
52
- "node-opcua-service-register-node": "2.56.2",
53
- "node-opcua-service-secure-channel": "2.56.2",
54
- "node-opcua-service-session": "2.56.2",
55
- "node-opcua-service-subscription": "2.56.2",
56
- "node-opcua-service-translate-browse-path": "2.56.2",
57
- "node-opcua-service-write": "2.56.2",
41
+ "node-opcua-pseudo-session": "2.57.0",
42
+ "node-opcua-schemas": "2.57.0",
43
+ "node-opcua-secure-channel": "2.57.0",
44
+ "node-opcua-service-browse": "2.57.0",
45
+ "node-opcua-service-call": "2.57.0",
46
+ "node-opcua-service-discovery": "2.57.0",
47
+ "node-opcua-service-endpoints": "2.57.0",
48
+ "node-opcua-service-filter": "2.57.0",
49
+ "node-opcua-service-history": "2.57.0",
50
+ "node-opcua-service-query": "2.57.0",
51
+ "node-opcua-service-read": "2.57.0",
52
+ "node-opcua-service-register-node": "2.57.0",
53
+ "node-opcua-service-secure-channel": "2.57.0",
54
+ "node-opcua-service-session": "2.57.0",
55
+ "node-opcua-service-subscription": "2.57.0",
56
+ "node-opcua-service-translate-browse-path": "2.57.0",
57
+ "node-opcua-service-write": "2.57.0",
58
58
  "node-opcua-status-code": "2.56.0",
59
- "node-opcua-types": "2.56.2",
60
- "node-opcua-utils": "2.56.0",
61
- "node-opcua-variant": "2.56.0",
59
+ "node-opcua-types": "2.57.0",
60
+ "node-opcua-utils": "2.57.0",
61
+ "node-opcua-variant": "2.57.0",
62
62
  "once": "^1.4.0",
63
63
  "thenify": "^3.3.1",
64
64
  "underscore": "^1.13.1"
65
65
  },
66
66
  "devDependencies": {
67
67
  "dequeue": "^1.0.5",
68
- "node-opcua-address-space": "2.56.2",
68
+ "node-opcua-address-space": "2.57.0",
69
69
  "node-opcua-binary-stream": "2.55.0",
70
- "node-opcua-factory": "2.56.0",
70
+ "node-opcua-factory": "2.57.0",
71
71
  "node-opcua-leak-detector": "2.56.0",
72
- "node-opcua-nodesets": "2.51.0",
72
+ "node-opcua-nodesets": "2.57.0",
73
73
  "should": "^13.2.3",
74
74
  "sinon": "^11.1.2"
75
75
  },
@@ -93,5 +93,5 @@
93
93
  "internet of things"
94
94
  ],
95
95
  "homepage": "http://node-opcua.github.io/",
96
- "gitHead": "6ed5227ae39e37af6d0de60c7b89ae66686726b9"
96
+ "gitHead": "cb6a995ab35ea6231ffca85fbd0b624fe37119d2"
97
97
  }
@@ -1,36 +1,36 @@
1
- /**
2
- * @module node-opcua-client
3
- */
4
- import { EventEmitter } from "events";
5
-
6
- import { DataValue, TimestampsToReturn } from "node-opcua-data-value";
7
- import { ReadValueIdOptions } from "node-opcua-service-read";
8
- import { Variant } from "node-opcua-variant";
9
-
10
- import { MonitoringMode, MonitoringParametersOptions } from "node-opcua-types";
11
- import { ClientMonitoredItemBase, ClientMonitoredItemOrGroupAction } from "./client_monitored_item_base";
12
- import { ClientSubscription } from "./client_subscription";
13
-
14
- // tslint:disable:unified-signatures
15
- export interface ClientMonitoredItem extends ClientMonitoredItemBase, ClientMonitoredItemOrGroupAction, EventEmitter {
16
- on(event: "changed", eventHandler: (dataValue: DataValue) => void): this;
17
- on(event: "changed", eventHandler: (values: Variant[]) => void): this;
18
-
19
- on(event: "terminated", eventHandler: () => void): this;
20
-
21
- on(event: "initialized", eventHandler: () => void): this;
22
-
23
- on(event: "err", eventHandler: (message: string) => void): this;
24
- }
25
-
26
- export class ClientMonitoredItem {
27
- public static create(
28
- subscription: ClientSubscription,
29
- itemToMonitor: ReadValueIdOptions,
30
- monitoringParameters: MonitoringParametersOptions,
31
- timestampsToReturn: TimestampsToReturn = TimestampsToReturn.Neither
32
- ): ClientMonitoredItem {
33
- /* istanbul ignore next*/
34
- throw new Error("unimplemented");
35
- }
36
- }
1
+ /**
2
+ * @module node-opcua-client
3
+ */
4
+ import { EventEmitter } from "events";
5
+
6
+ import { DataValue, TimestampsToReturn } from "node-opcua-data-value";
7
+ import { ReadValueIdOptions } from "node-opcua-service-read";
8
+ import { Variant } from "node-opcua-variant";
9
+
10
+ import { MonitoringMode, MonitoringParametersOptions } from "node-opcua-types";
11
+ import { ClientMonitoredItemBase, ClientMonitoredItemOrGroupAction } from "./client_monitored_item_base";
12
+ import { ClientSubscription } from "./client_subscription";
13
+
14
+ // tslint:disable:unified-signatures
15
+ export interface ClientMonitoredItem extends ClientMonitoredItemBase, ClientMonitoredItemOrGroupAction, EventEmitter {
16
+ on(event: "changed", eventHandler: (dataValue: DataValue) => void): this;
17
+ on(event: "changed", eventHandler: (values: Variant[]) => void): this;
18
+
19
+ on(event: "terminated", eventHandler: () => void): this;
20
+
21
+ on(event: "initialized", eventHandler: () => void): this;
22
+
23
+ on(event: "err", eventHandler: (message: string) => void): this;
24
+ }
25
+
26
+ export class ClientMonitoredItem {
27
+ public static create(
28
+ subscription: ClientSubscription,
29
+ itemToMonitor: ReadValueIdOptions,
30
+ monitoringParameters: MonitoringParametersOptions,
31
+ timestampsToReturn: TimestampsToReturn = TimestampsToReturn.Neither
32
+ ): ClientMonitoredItem {
33
+ /* istanbul ignore next*/
34
+ throw new Error("unimplemented");
35
+ }
36
+ }
package/source/index.ts CHANGED
@@ -1,75 +1,75 @@
1
- /**
2
- * @module node-opcua-client
3
- */
4
-
5
- export * from "./client_base";
6
- export * from "./opcua_client";
7
- export * from "./client_session";
8
- export * from "./client_subscription";
9
- export * from "./client_monitored_item_base";
10
- export * from "./client_monitored_item";
11
- export * from "./client_monitored_item_group";
12
- export * from "./alarms_and_conditions/client_tools";
13
- export * from "./alarms_and_conditions/client_alarm";
14
- export * from "./alarms_and_conditions/client_alarm_list";
15
- export * from "./alarms_and_conditions/client_alarm_tools";
16
- export * from "./alarms_and_conditions/client_alarm_tools_extractConditionFields";
17
- export * from "./alarms_and_conditions/client_alarm_tools_dump_event";
18
- export * from "./alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions";
19
- export * from "./tools/findservers";
20
- export * from "./tools/read_history_server_capabilities";
21
- export * from "./client_utils";
22
- export * from "./verify";
23
-
24
- export { assert } from "node-opcua-assert";
25
- export * from "node-opcua-utils";
26
-
27
- export { ClientSidePublishEngine } from "./private/client_publish_engine";
28
-
29
- export { ServerState, ServiceCounterDataType } from "node-opcua-common";
30
-
31
- export { SecurityPolicy, ClientSecureChannelLayer, ConnectionStrategyOptions } from "node-opcua-secure-channel";
32
-
33
- import * as utils1 from "node-opcua-utils";
34
- export const utils = utils1;
35
-
36
- import * as crypto_util1 from "node-opcua-crypto";
37
- export const crypto_utils = crypto_util1;
38
-
39
- export { hexDump } from "node-opcua-debug";
40
-
41
- ///
42
- export {
43
- NodeId,
44
- resolveNodeId,
45
- makeNodeId,
46
- coerceNodeId,
47
- sameNodeId,
48
- ExpandedNodeId,
49
- makeExpandedNodeId,
50
- coerceExpandedNodeId
51
- } from "node-opcua-nodeid";
52
- export { StatusCode, StatusCodes } from "node-opcua-status-code";
53
- export * from "node-opcua-variant";
54
- export * from "node-opcua-data-value";
55
- export * from "node-opcua-data-model";
56
- export * from "node-opcua-constants";
57
- export * from "node-opcua-secure-channel";
58
- export { makeApplicationUrn } from "node-opcua-common";
59
-
60
- export * from "node-opcua-service-endpoints";
61
- export * from "node-opcua-service-browse";
62
- export * from "node-opcua-service-call";
63
- export * from "node-opcua-service-discovery";
64
- export * from "node-opcua-service-endpoints";
65
- export * from "node-opcua-service-history";
66
- export * from "node-opcua-service-query";
67
- export * from "node-opcua-service-read";
68
- export * from "node-opcua-service-secure-channel";
69
- export * from "node-opcua-service-session";
70
- export * from "node-opcua-service-subscription";
71
- export * from "node-opcua-service-translate-browse-path";
72
- export * from "node-opcua-service-write";
73
- export * from "node-opcua-service-filter";
74
- export { IBasicSession, browseAll } from "node-opcua-pseudo-session";
75
- export * from "node-opcua-client-dynamic-extension-object";
1
+ /**
2
+ * @module node-opcua-client
3
+ */
4
+
5
+ export * from "./client_base";
6
+ export * from "./opcua_client";
7
+ export * from "./client_session";
8
+ export * from "./client_subscription";
9
+ export * from "./client_monitored_item_base";
10
+ export * from "./client_monitored_item";
11
+ export * from "./client_monitored_item_group";
12
+ export * from "./alarms_and_conditions/client_tools";
13
+ export * from "./alarms_and_conditions/client_alarm";
14
+ export * from "./alarms_and_conditions/client_alarm_list";
15
+ export * from "./alarms_and_conditions/client_alarm_tools";
16
+ export * from "./alarms_and_conditions/client_alarm_tools_extractConditionFields";
17
+ export * from "./alarms_and_conditions/client_alarm_tools_dump_event";
18
+ export * from "./alarms_and_conditions/client_alarm_tools_acknowledge_all_conditions";
19
+ export * from "./tools/findservers";
20
+ export * from "./tools/read_history_server_capabilities";
21
+ export * from "./client_utils";
22
+ export * from "./verify";
23
+
24
+ export { assert } from "node-opcua-assert";
25
+ export * from "node-opcua-utils";
26
+
27
+ export { ClientSidePublishEngine } from "./private/client_publish_engine";
28
+
29
+ export { ServerState, ServiceCounterDataType } from "node-opcua-common";
30
+
31
+ export { SecurityPolicy, ClientSecureChannelLayer, ConnectionStrategyOptions } from "node-opcua-secure-channel";
32
+
33
+ import * as utils1 from "node-opcua-utils";
34
+ export const utils = utils1;
35
+
36
+ import * as crypto_util1 from "node-opcua-crypto";
37
+ export const crypto_utils = crypto_util1;
38
+
39
+ export { hexDump } from "node-opcua-debug";
40
+
41
+ ///
42
+ export {
43
+ NodeId,
44
+ resolveNodeId,
45
+ makeNodeId,
46
+ coerceNodeId,
47
+ sameNodeId,
48
+ ExpandedNodeId,
49
+ makeExpandedNodeId,
50
+ coerceExpandedNodeId
51
+ } from "node-opcua-nodeid";
52
+ export { StatusCode, StatusCodes } from "node-opcua-status-code";
53
+ export * from "node-opcua-variant";
54
+ export * from "node-opcua-data-value";
55
+ export * from "node-opcua-data-model";
56
+ export * from "node-opcua-constants";
57
+ export * from "node-opcua-secure-channel";
58
+ export { makeApplicationUrn } from "node-opcua-common";
59
+
60
+ export * from "node-opcua-service-endpoints";
61
+ export * from "node-opcua-service-browse";
62
+ export * from "node-opcua-service-call";
63
+ export * from "node-opcua-service-discovery";
64
+ export * from "node-opcua-service-endpoints";
65
+ export * from "node-opcua-service-history";
66
+ export * from "node-opcua-service-query";
67
+ export * from "node-opcua-service-read";
68
+ export * from "node-opcua-service-secure-channel";
69
+ export * from "node-opcua-service-session";
70
+ export * from "node-opcua-service-subscription";
71
+ export * from "node-opcua-service-translate-browse-path";
72
+ export * from "node-opcua-service-write";
73
+ export * from "node-opcua-service-filter";
74
+ export { IBasicSession, browseAll } from "node-opcua-pseudo-session";
75
+ export * from "node-opcua-client-dynamic-extension-object";
@@ -1,3 +1,3 @@
1
- /**
2
- * @module node-opcua-client-private
3
- */
1
+ /**
2
+ * @module node-opcua-client-private
3
+ */
@@ -1 +1 @@
1
- require("node-opcua-pki/bin/crypto_create_CA");
1
+ require("node-opcua-pki/bin/crypto_create_CA");
package/typedoc.js CHANGED
@@ -1,20 +1,20 @@
1
- // (e.g. typedoc --options ./typedoc.js ./src), then you can set an array of exclude paths in the configuration:
2
- // typedoc.js:
3
-
4
- module.exports = {
5
- src: [ "./source/index.ts" ],
6
- out: "./out1/",
7
-
8
- readme: "./documentation/readme.md",
9
- includes: "./documentation",
10
- exclude: ["*/@types/**"],
11
- mode: "file",
12
- //xx excludeExternals: true,
13
- excludeNotExported: true,
14
- excludePrivate: true,
15
- includeDeclarations: true,
16
- moduleResolution: "node",
17
- theme: "default",
18
- logger: "console"
19
- };
20
-
1
+ // (e.g. typedoc --options ./typedoc.js ./src), then you can set an array of exclude paths in the configuration:
2
+ // typedoc.js:
3
+
4
+ module.exports = {
5
+ src: [ "./source/index.ts" ],
6
+ out: "./out1/",
7
+
8
+ readme: "./documentation/readme.md",
9
+ includes: "./documentation",
10
+ exclude: ["*/@types/**"],
11
+ mode: "file",
12
+ //xx excludeExternals: true,
13
+ excludeNotExported: true,
14
+ excludePrivate: true,
15
+ includeDeclarations: true,
16
+ moduleResolution: "node",
17
+ theme: "default",
18
+ logger: "console"
19
+ };
20
+