opcua-webapi-ts 1.0.19 → 1.0.20

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.
@@ -10,6 +10,7 @@ export declare class UaNodeId {
10
10
  private _value;
11
11
  private _nsIndex;
12
12
  constructor(value: number | string, namespace?: number, identifierType?: UaNodeIdType);
13
+ static from(id: number): UaNodeId;
13
14
  get nsIndex(): number;
14
15
  get value(): string | number;
15
16
  get identifierType(): UaNodeIdType;
@@ -38,6 +38,9 @@ class UaNodeId {
38
38
  throw new _1.UaError((0, _1.makeUaStatusCode)(opcua_webapi_1.StatusCodes.BadNodeIdInvalid));
39
39
  }
40
40
  }
41
+ static from(id) {
42
+ return new UaNodeId(id);
43
+ }
41
44
  get nsIndex() {
42
45
  return this._nsIndex;
43
46
  }
@@ -10,6 +10,7 @@ export declare class UaNodeId {
10
10
  private _value;
11
11
  private _nsIndex;
12
12
  constructor(value: number | string, namespace?: number, identifierType?: UaNodeIdType);
13
+ static from(id: number): UaNodeId;
13
14
  get nsIndex(): number;
14
15
  get value(): string | number;
15
16
  get identifierType(): UaNodeIdType;
@@ -38,6 +38,9 @@ class UaNodeId {
38
38
  throw new _1.UaError((0, _1.makeUaStatusCode)(opcua_webapi_1.StatusCodes.BadNodeIdInvalid));
39
39
  }
40
40
  }
41
+ static from(id) {
42
+ return new UaNodeId(id);
43
+ }
41
44
  get nsIndex() {
42
45
  return this._nsIndex;
43
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opcua-webapi-ts",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Provides OPC UA WebAPI wrapper and client based on opcua-webapi-typescript",
5
5
  "author": "DingYan",
6
6
  "main": "./dist/cjs/index.js",