opcua-webapi-ts 1.0.19 → 1.0.21

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
- ## opcua-webclient-ts
1
+ ## opcua-webapi-ts
2
2
 
3
- This TypeScript/JavaScript client is based on opcua-webapi-typescript(the offical release from OPC foundation), opcua-webclient-ts is to provide an easy to use library to call OPC UA WebService.
3
+ This TypeScript/JavaScript client is based on opcua-webapi-typescript(the offical release from OPC foundation), opcua-webapi-ts is an wrapper to easier use OPC UA WebApi, including basical type and web client.
4
4
 
5
5
  This module can be used in the following environments:
6
6
 
@@ -29,6 +29,6 @@ npm run build
29
29
  First build the package then run `npm publish`
30
30
 
31
31
  ### Consuming
32
- npm install opcua-webclient-ts
32
+ npm install opcua-webapi-ts
33
33
 
34
34
  !Note: Currently, the source code of this module is on AtomGit platform, and it will be available on GitHub soon.
@@ -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.21",
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",