node-opcua-address-space 2.100.0 → 2.102.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-address-space",
3
- "version": "2.100.0",
3
+ "version": "2.102.0",
4
4
  "description": "pure nodejs OPCUA SDK - module address-space",
5
5
  "main": "./dist/src/index_current.js",
6
6
  "types": "./dist/source/index.d.ts",
@@ -22,35 +22,35 @@
22
22
  "chalk": "4.1.2",
23
23
  "dequeue": "^1.0.5",
24
24
  "lodash": "4.17.21",
25
- "node-opcua-address-space-base": "2.100.0",
25
+ "node-opcua-address-space-base": "2.102.0",
26
26
  "node-opcua-assert": "2.98.1",
27
27
  "node-opcua-basic-types": "2.99.0",
28
28
  "node-opcua-binary-stream": "2.98.1",
29
- "node-opcua-client-dynamic-extension-object": "2.99.0",
29
+ "node-opcua-client-dynamic-extension-object": "2.102.0",
30
30
  "node-opcua-constants": "2.98.1",
31
31
  "node-opcua-crypto": "^2.1.2",
32
- "node-opcua-data-access": "2.99.0",
33
- "node-opcua-data-model": "2.99.0",
34
- "node-opcua-data-value": "2.99.0",
32
+ "node-opcua-data-access": "2.102.0",
33
+ "node-opcua-data-model": "2.102.0",
34
+ "node-opcua-data-value": "2.102.0",
35
35
  "node-opcua-date-time": "2.99.0",
36
36
  "node-opcua-debug": "2.99.0",
37
37
  "node-opcua-enum": "2.98.1",
38
38
  "node-opcua-extension-object": "2.99.0",
39
39
  "node-opcua-factory": "2.99.0",
40
40
  "node-opcua-nodeid": "2.99.0",
41
- "node-opcua-nodeset-ua": "2.100.0",
42
- "node-opcua-numeric-range": "2.99.0",
41
+ "node-opcua-nodeset-ua": "2.102.0",
42
+ "node-opcua-numeric-range": "2.102.0",
43
43
  "node-opcua-object-registry": "2.99.0",
44
- "node-opcua-pseudo-session": "2.99.0",
45
- "node-opcua-service-browse": "2.99.0",
46
- "node-opcua-service-call": "2.99.0",
47
- "node-opcua-service-history": "2.99.0",
48
- "node-opcua-service-translate-browse-path": "2.99.0",
49
- "node-opcua-service-write": "2.99.0",
44
+ "node-opcua-pseudo-session": "2.102.0",
45
+ "node-opcua-service-browse": "2.102.0",
46
+ "node-opcua-service-call": "2.102.0",
47
+ "node-opcua-service-history": "2.102.0",
48
+ "node-opcua-service-translate-browse-path": "2.102.0",
49
+ "node-opcua-service-write": "2.102.0",
50
50
  "node-opcua-status-code": "2.98.1",
51
- "node-opcua-types": "2.99.0",
51
+ "node-opcua-types": "2.102.0",
52
52
  "node-opcua-utils": "2.98.1",
53
- "node-opcua-variant": "2.99.0",
53
+ "node-opcua-variant": "2.102.0",
54
54
  "node-opcua-xml2json": "2.99.0",
55
55
  "semver": "^7.3.8",
56
56
  "set-prototype-of": "^1.0.0",
@@ -62,9 +62,9 @@
62
62
  "node-opcua-benchmarker": "2.98.1",
63
63
  "node-opcua-leak-detector": "2.99.0",
64
64
  "node-opcua-nodesets": "2.99.0",
65
- "node-opcua-packet-analyzer": "2.99.0",
66
- "node-opcua-service-filter": "2.100.0",
67
- "node-opcua-test-fixtures": "2.99.0",
65
+ "node-opcua-packet-analyzer": "2.102.0",
66
+ "node-opcua-service-filter": "2.102.0",
67
+ "node-opcua-test-fixtures": "2.102.0",
68
68
  "should": "^13.2.3",
69
69
  "sinon": "^15.0.3",
70
70
  "source-map-support": "^0.5.21"
@@ -84,7 +84,7 @@
84
84
  "internet of things"
85
85
  ],
86
86
  "homepage": "http://node-opcua.github.io/",
87
- "gitHead": "e143ff72418bb3db8c0a2cb8d4b7e54a90521a73",
87
+ "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c",
88
88
  "files": [
89
89
  "dist",
90
90
  "distHelpers",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @module node-opcua-address-space
4
4
  */
5
- import { promisify } from "util";
5
+ import { promisify, types } from "util";
6
6
  import * as chalk from "chalk";
7
7
 
8
8
  import * as ec from "node-opcua-basic-types";
@@ -1698,7 +1698,7 @@ function makeNodeSetParserEngine(addressSpace: IAddressSpace, options: NodeSetLo
1698
1698
  } catch (err) {
1699
1699
  // istanbul ignore next
1700
1700
  // tslint:disable:no-console
1701
- if (err instanceof Error) {
1701
+ if (types.isNativeError(err)) {
1702
1702
  console.log(" performPostLoadingTasks Err => ", err.message, "\n", err);
1703
1703
  }
1704
1704
  await task(addressSpace1);
@@ -3,6 +3,7 @@
3
3
  * @module node-opcua-address-space
4
4
  */
5
5
  // produce nodeset xml files
6
+ import { types } from "util";
6
7
  import { assert } from "node-opcua-assert";
7
8
  import { ObjectIds, VariableIds } from "node-opcua-constants";
8
9
  import { make_debugLog, make_errorLog, make_warningLog } from "node-opcua-debug";
@@ -368,7 +369,7 @@ function _dumpVariantInnerExtensionObject(
368
369
  }
369
370
  } catch (err) {
370
371
  // eslint-disable-next-line max-depth
371
- if (err instanceof Error) {
372
+ if (types.isNativeError(err)) {
372
373
  errorLog("Error in _dumpVariantExtensionObjectValue_Body !!!", err.message);
373
374
  }
374
375
  console.log(name);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @module node-opcua-address-space
3
3
  */
4
- import { callbackify } from "util";
4
+ import { callbackify, types } from "util";
5
5
  import * as chalk from "chalk";
6
6
  import { assert } from "node-opcua-assert";
7
7
 
@@ -243,7 +243,7 @@ export class UAMethodImpl extends BaseNodeImpl implements UAMethod {
243
243
  }
244
244
  );
245
245
  } catch (err) {
246
- if (err instanceof Error) {
246
+ if (types.isNativeError(err)) {
247
247
  warningLog(chalk.red("ERR in method handler"), err.message);
248
248
  warningLog(err.stack);
249
249
  }
@@ -127,7 +127,7 @@ export class UAObjectTypeImpl extends BaseNodeImpl implements UAObjectType {
127
127
  browseName: options.browseName,
128
128
  componentOf: options.componentOf,
129
129
  displayName: options.displayName || "",
130
- description: options.description || this.description,
130
+ description: options.description === undefined ? this.description?.clone() : options.description,
131
131
  encodingOf: options.encodingOf,
132
132
  eventSourceOf: options.eventSourceOf,
133
133
  notifierOf: options.notifierOf,
@@ -6,6 +6,7 @@
6
6
  // tslint:disable:no-bitwise
7
7
  // tslint:disable:no-console
8
8
  // tslint:disable:max-line-length
9
+ import { types } from "util";
9
10
  import * as chalk from "chalk";
10
11
 
11
12
  import {
@@ -1003,7 +1004,7 @@ export class UAVariableImpl extends BaseNodeImpl implements UAVariable {
1003
1004
  try {
1004
1005
  this._internal_set_dataValue(dataValue, indexRange);
1005
1006
  } catch (err) {
1006
- if (err instanceof Error) {
1007
+ if (types.isNativeError(err)) {
1007
1008
  warningLog(err.message);
1008
1009
  }
1009
1010
  return callback!(null, StatusCodes.BadInternalError);
@@ -1322,7 +1323,7 @@ export class UAVariableImpl extends BaseNodeImpl implements UAVariable {
1322
1323
  // istanbul ignore next
1323
1324
  if (doDebug) {
1324
1325
  debugLog(chalk.red("func readValueAsync has failed "));
1325
- if (err instanceof Error) {
1326
+ if (types.isNativeError(err)) {
1326
1327
  debugLog(" stack", err.stack);
1327
1328
  }
1328
1329
  }
@@ -279,7 +279,7 @@ export class UAVariableTypeImpl extends BaseNodeImpl implements UAVariableType {
279
279
  browseName: options.browseName,
280
280
  componentOf: options.componentOf,
281
281
  dataType,
282
- description: options.description || this.description,
282
+ description: options.description === undefined ? this.description?.clone() : options.description,
283
283
  displayName: options.displayName || "",
284
284
  eventSourceOf: options.eventSourceOf,
285
285
  minimumSamplingInterval: options.minimumSamplingInterval,