node-opcua-client-proxy 2.98.0 → 2.98.2

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.
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProxyStateMachineType = void 0;
4
+ /**
5
+ * @module node-opcua-client-proxy
6
+ */
7
+ const node_opcua_assert_1 = require("node-opcua-assert");
8
+ const proxy_state_1 = require("./proxy_state");
9
+ const proxy_transition_1 = require("./proxy_transition");
10
+ class ProxyStateMachineType {
11
+ constructor(obj) {
12
+ const localInitialState = obj.$components.filter((component) => {
13
+ if (!component.typeDefinition) {
14
+ return false;
15
+ }
16
+ return component.typeDefinition.toString() === "InitialStateType";
17
+ });
18
+ if (localInitialState.length) {
19
+ (0, node_opcua_assert_1.assert)(localInitialState.length === 1);
20
+ this.initialState = new proxy_state_1.ProxyState(localInitialState[0]);
21
+ }
22
+ else {
23
+ this.initialState = undefined;
24
+ }
25
+ this.states = obj.$components
26
+ .filter((component) => {
27
+ if (!component.typeDefinition) {
28
+ return false;
29
+ }
30
+ return component.typeDefinition.toString() === "StateType";
31
+ })
32
+ .map(proxy_state_1.makeProxyState);
33
+ this.transitions = obj.$components
34
+ .filter((component) => {
35
+ if (!component.typeDefinition) {
36
+ return false;
37
+ }
38
+ return component.typeDefinition.toString() === "TransitionType";
39
+ })
40
+ .map(proxy_transition_1.makeProxyTransition);
41
+ }
42
+ }
43
+ exports.ProxyStateMachineType = ProxyStateMachineType;
44
+ //# sourceMappingURL=state_machine_proxy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state_machine_proxy.js","sourceRoot":"","sources":["../source/state_machine_proxy.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,+CAA2D;AAC3D,yDAAqF;AAErF,MAAa,qBAAqB;IAK9B,YAAY,GAAc;QACtB,MAAM,iBAAiB,GAAG,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,SAAc,EAAE,EAAE;YAChE,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE;gBAC3B,OAAO,KAAK,CAAC;aAChB;YACD,OAAO,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,KAAK,kBAAkB,CAAC;QACtE,CAAC,CAAC,CAAC;QAEH,IAAI,iBAAiB,CAAC,MAAM,EAAE;YAC1B,IAAA,0BAAM,EAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;YACvC,IAAI,CAAC,YAAY,GAAG,IAAI,wBAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;SAC5D;aAAM;YACH,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;SACjC;QAED,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,WAAW;aACxB,MAAM,CAAC,CAAC,SAAc,EAAE,EAAE;YACvB,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE;gBAC3B,OAAO,KAAK,CAAC;aAChB;YACD,OAAO,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,KAAK,WAAW,CAAC;QAC/D,CAAC,CAAC;aACD,GAAG,CAAC,4BAAc,CAAC,CAAC;QAEzB,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,WAAW;aAC7B,MAAM,CAAC,CAAC,SAAoB,EAAE,EAAE;YAC7B,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE;gBAC3B,OAAO,KAAK,CAAC;aAChB;YACD,OAAO,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,KAAK,gBAAgB,CAAC;QACpE,CAAC,CAAC;aACD,GAAG,CAAC,sCAAmB,CAAC,CAAC;IAClC,CAAC;CAcJ;AAnDD,sDAmDC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-opcua-client-proxy",
3
- "version": "2.98.0",
4
- "description": "pure nodejs OPCUA SDK - module -client-proxy",
3
+ "version": "2.98.2",
4
+ "description": "pure nodejs OPCUA SDK - module client-proxy",
5
5
  "scripts": {
6
6
  "clean": "npx rimraf node_modules dist *.tsbuildinfo",
7
7
  "build": "tsc -b",
@@ -13,21 +13,21 @@
13
13
  "types": "./dist/index.d.ts",
14
14
  "dependencies": {
15
15
  "async": "^3.2.4",
16
- "node-opcua-assert": "2.88.0",
17
- "node-opcua-constants": "2.88.0",
18
- "node-opcua-data-model": "2.98.0",
19
- "node-opcua-data-value": "2.98.0",
20
- "node-opcua-debug": "2.98.0",
21
- "node-opcua-nodeid": "2.98.0",
22
- "node-opcua-pseudo-session": "2.98.0",
23
- "node-opcua-service-browse": "2.98.0",
24
- "node-opcua-service-call": "2.98.0",
25
- "node-opcua-service-read": "2.98.0",
26
- "node-opcua-service-subscription": "2.98.0",
27
- "node-opcua-service-write": "2.98.0",
28
- "node-opcua-status-code": "2.98.0",
29
- "node-opcua-utils": "2.98.0",
30
- "node-opcua-variant": "2.98.0",
16
+ "node-opcua-assert": "2.98.1",
17
+ "node-opcua-constants": "2.98.1",
18
+ "node-opcua-data-model": "2.98.1",
19
+ "node-opcua-data-value": "2.98.1",
20
+ "node-opcua-debug": "2.98.1",
21
+ "node-opcua-nodeid": "2.98.1",
22
+ "node-opcua-pseudo-session": "2.98.2",
23
+ "node-opcua-service-browse": "2.98.2",
24
+ "node-opcua-service-call": "2.98.2",
25
+ "node-opcua-service-read": "2.98.2",
26
+ "node-opcua-service-subscription": "2.98.2",
27
+ "node-opcua-service-write": "2.98.2",
28
+ "node-opcua-status-code": "2.98.1",
29
+ "node-opcua-utils": "2.98.1",
30
+ "node-opcua-variant": "2.98.1",
31
31
  "thenify": "^3.3.1"
32
32
  },
33
33
  "author": "Etienne Rossignon",
@@ -45,5 +45,9 @@
45
45
  "internet of things"
46
46
  ],
47
47
  "homepage": "http://node-opcua.github.io/",
48
- "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c"
48
+ "gitHead": "6df8aa25475ba1235e585566cb2dec68b7e7a85f",
49
+ "files": [
50
+ "dist",
51
+ "source"
52
+ ]
49
53
  }