node-opcua-service-call 2.76.0 → 2.76.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.
package/dist/imports.d.ts CHANGED
@@ -1 +1 @@
1
- export { Argument, ArgumentOptions, CallMethodRequest, CallMethodRequestOptions, CallRequest, CallRequestOptions, CallMethodResult, CallMethodResultOptions, CallResponse } from "node-opcua-types";
1
+ export { Argument, ArgumentOptions, CallMethodRequest, CallMethodRequestOptions, CallRequest, CallRequestOptions, CallMethodResult, CallMethodResultOptions, CallResponse } from "node-opcua-types";
package/dist/imports.js CHANGED
@@ -1,42 +1,42 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CallResponse = exports.CallMethodResult = exports.CallRequest = exports.CallMethodRequest = exports.Argument = void 0;
4
- /**
5
- * @module node-opcua-service-browse
6
- */
7
- const node_opcua_assert_1 = require("node-opcua-assert");
8
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
9
- const node_opcua_types_1 = require("node-opcua-types");
10
- const node_opcua_variant_1 = require("node-opcua-variant");
11
- var node_opcua_types_2 = require("node-opcua-types");
12
- Object.defineProperty(exports, "Argument", { enumerable: true, get: function () { return node_opcua_types_2.Argument; } });
13
- Object.defineProperty(exports, "CallMethodRequest", { enumerable: true, get: function () { return node_opcua_types_2.CallMethodRequest; } });
14
- Object.defineProperty(exports, "CallRequest", { enumerable: true, get: function () { return node_opcua_types_2.CallRequest; } });
15
- Object.defineProperty(exports, "CallMethodResult", { enumerable: true, get: function () { return node_opcua_types_2.CallMethodResult; } });
16
- Object.defineProperty(exports, "CallResponse", { enumerable: true, get: function () { return node_opcua_types_2.CallResponse; } });
17
- function _coerceToNodeId(n) {
18
- const dataType = n;
19
- if (!dataType) {
20
- return new node_opcua_nodeid_1.NodeId();
21
- }
22
- if (typeof dataType === "string") {
23
- return (0, node_opcua_nodeid_1.resolveNodeId)(dataType);
24
- }
25
- if (dataType instanceof node_opcua_nodeid_1.NodeId) {
26
- return dataType;
27
- }
28
- if (Object.prototype.hasOwnProperty.call(dataType, "value")) {
29
- const a = dataType;
30
- return (0, node_opcua_nodeid_1.coerceNodeId)(a.value, a.namespace);
31
- }
32
- (0, node_opcua_assert_1.assert)(typeof dataType === "number");
33
- return (0, node_opcua_nodeid_1.coerceNodeId)(dataType);
34
- }
35
- function constructHookArgument(_options) {
36
- const options = _options || { valueRank: -1, dataType: node_opcua_variant_1.DataType.Null };
37
- const dataType = _coerceToNodeId(options.dataType || node_opcua_variant_1.DataType.Null);
38
- (0, node_opcua_variant_1.verifyRankAndDimensions)(options);
39
- return Object.assign(Object.assign({}, options), { dataType });
40
- }
41
- node_opcua_types_1.Argument.schema.constructHook = constructHookArgument;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CallResponse = exports.CallMethodResult = exports.CallRequest = exports.CallMethodRequest = exports.Argument = void 0;
4
+ /**
5
+ * @module node-opcua-service-browse
6
+ */
7
+ const node_opcua_assert_1 = require("node-opcua-assert");
8
+ const node_opcua_nodeid_1 = require("node-opcua-nodeid");
9
+ const node_opcua_types_1 = require("node-opcua-types");
10
+ const node_opcua_variant_1 = require("node-opcua-variant");
11
+ var node_opcua_types_2 = require("node-opcua-types");
12
+ Object.defineProperty(exports, "Argument", { enumerable: true, get: function () { return node_opcua_types_2.Argument; } });
13
+ Object.defineProperty(exports, "CallMethodRequest", { enumerable: true, get: function () { return node_opcua_types_2.CallMethodRequest; } });
14
+ Object.defineProperty(exports, "CallRequest", { enumerable: true, get: function () { return node_opcua_types_2.CallRequest; } });
15
+ Object.defineProperty(exports, "CallMethodResult", { enumerable: true, get: function () { return node_opcua_types_2.CallMethodResult; } });
16
+ Object.defineProperty(exports, "CallResponse", { enumerable: true, get: function () { return node_opcua_types_2.CallResponse; } });
17
+ function _coerceToNodeId(n) {
18
+ const dataType = n;
19
+ if (!dataType) {
20
+ return new node_opcua_nodeid_1.NodeId();
21
+ }
22
+ if (typeof dataType === "string") {
23
+ return (0, node_opcua_nodeid_1.resolveNodeId)(dataType);
24
+ }
25
+ if (dataType instanceof node_opcua_nodeid_1.NodeId) {
26
+ return dataType;
27
+ }
28
+ if (Object.prototype.hasOwnProperty.call(dataType, "value")) {
29
+ const a = dataType;
30
+ return (0, node_opcua_nodeid_1.coerceNodeId)(a.value, a.namespace);
31
+ }
32
+ (0, node_opcua_assert_1.assert)(typeof dataType === "number");
33
+ return (0, node_opcua_nodeid_1.coerceNodeId)(dataType);
34
+ }
35
+ function constructHookArgument(_options) {
36
+ const options = _options || { valueRank: -1, dataType: node_opcua_variant_1.DataType.Null };
37
+ const dataType = _coerceToNodeId(options.dataType || node_opcua_variant_1.DataType.Null);
38
+ (0, node_opcua_variant_1.verifyRankAndDimensions)(options);
39
+ return Object.assign(Object.assign({}, options), { dataType });
40
+ }
41
+ node_opcua_types_1.Argument.schema.constructHook = constructHookArgument;
42
42
  //# sourceMappingURL=imports.js.map
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- /**
2
- * @module node-opcua-service-browse
3
- */
4
- /**
5
- *
6
- * This Service is used to call (invoke) a list of Methods. Each method call is invoked within the context
7
- * of an existing Session. If the Session is terminated, the results of the method’s execution cannot be
8
- * returned to the Client and are discarded. This is independent of the task actually performed at the
9
- * Server.
10
- * This Service provides for passing input and output arguments to/from a method. These arguments
11
- * are defined by Properties of the method.
12
- *
13
- */
14
- export * from "./imports";
1
+ /**
2
+ * @module node-opcua-service-browse
3
+ */
4
+ /**
5
+ *
6
+ * This Service is used to call (invoke) a list of Methods. Each method call is invoked within the context
7
+ * of an existing Session. If the Session is terminated, the results of the method’s execution cannot be
8
+ * returned to the Client and are discarded. This is independent of the task actually performed at the
9
+ * Server.
10
+ * This Service provides for passing input and output arguments to/from a method. These arguments
11
+ * are defined by Properties of the method.
12
+ *
13
+ */
14
+ export * from "./imports";
package/dist/index.js CHANGED
@@ -1,53 +1,53 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /**
18
- * @module node-opcua-service-browse
19
- */
20
- /**
21
- *
22
- * This Service is used to call (invoke) a list of Methods. Each method call is invoked within the context
23
- * of an existing Session. If the Session is terminated, the results of the method’s execution cannot be
24
- * returned to the Client and are discarded. This is independent of the task actually performed at the
25
- * Server.
26
- * This Service provides for passing input and output arguments to/from a method. These arguments
27
- * are defined by Properties of the method.
28
- *
29
- */
30
- /*
31
- *
32
- *
33
- * extract from OPCUA Specification Part 4 Release 1.02 page 61:
34
- *
35
- * 5.11 **Method Service Set**
36
- *
37
- * 5.11.1 Overview
38
- * Methods represent the function calls of Objects. They are defined in Part 3. Methods are invoked
39
- * and return only after completion (successful or unsuccessful). Execution times for methods may
40
- * vary, depending on the function that they perform.
41
- * The Method Service Set defines the means to invoke methods. A method shall be a component of an
42
- * Object. Discovery is provided through the Browse and Query Services. Clients discover the methods
43
- * supported by a Server by browsing for the owning Objects References that identify their supported
44
- * methods.
45
- * Because Methods may control some aspect of plant operations, method invocation may depend on
46
- * environmental or other conditions. This may be especially true when attempting to re -invoke a
47
- * method immediately after it has completed execution. Conditions that are required to invoke the
48
- * method might not yet have returned to the state that permits the method to start again.
49
- *
50
- *
51
- */
52
- __exportStar(require("./imports"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * @module node-opcua-service-browse
19
+ */
20
+ /**
21
+ *
22
+ * This Service is used to call (invoke) a list of Methods. Each method call is invoked within the context
23
+ * of an existing Session. If the Session is terminated, the results of the method’s execution cannot be
24
+ * returned to the Client and are discarded. This is independent of the task actually performed at the
25
+ * Server.
26
+ * This Service provides for passing input and output arguments to/from a method. These arguments
27
+ * are defined by Properties of the method.
28
+ *
29
+ */
30
+ /*
31
+ *
32
+ *
33
+ * extract from OPCUA Specification Part 4 Release 1.02 page 61:
34
+ *
35
+ * 5.11 **Method Service Set**
36
+ *
37
+ * 5.11.1 Overview
38
+ * Methods represent the function calls of Objects. They are defined in Part 3. Methods are invoked
39
+ * and return only after completion (successful or unsuccessful). Execution times for methods may
40
+ * vary, depending on the function that they perform.
41
+ * The Method Service Set defines the means to invoke methods. A method shall be a component of an
42
+ * Object. Discovery is provided through the Browse and Query Services. Clients discover the methods
43
+ * supported by a Server by browsing for the owning Objects References that identify their supported
44
+ * methods.
45
+ * Because Methods may control some aspect of plant operations, method invocation may depend on
46
+ * environmental or other conditions. This may be especially true when attempting to re -invoke a
47
+ * method immediately after it has completed execution. Conditions that are required to invoke the
48
+ * method might not yet have returned to the state that permits the method to start again.
49
+ *
50
+ *
51
+ */
52
+ __exportStar(require("./imports"), exports);
53
53
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-service-call",
3
- "version": "2.76.0",
3
+ "version": "2.76.2",
4
4
  "description": "pure nodejs OPCUA SDK - module -service-call",
5
5
  "scripts": {
6
6
  "test": "mocha",
@@ -13,13 +13,13 @@
13
13
  "types": "./dist/index.d.ts",
14
14
  "dependencies": {
15
15
  "node-opcua-assert": "2.76.0",
16
- "node-opcua-nodeid": "2.76.0",
17
- "node-opcua-types": "2.76.0",
18
- "node-opcua-variant": "2.76.0"
16
+ "node-opcua-nodeid": "2.76.2",
17
+ "node-opcua-types": "2.76.2",
18
+ "node-opcua-variant": "2.76.2"
19
19
  },
20
20
  "devDependencies": {
21
- "node-opcua-packet-analyzer": "2.76.0",
22
- "node-opcua-status-code": "2.76.0",
21
+ "node-opcua-packet-analyzer": "2.76.2",
22
+ "node-opcua-status-code": "2.76.2",
23
23
  "should": "^13.2.3"
24
24
  },
25
25
  "author": "Etienne Rossignon",
@@ -37,5 +37,5 @@
37
37
  "internet of things"
38
38
  ],
39
39
  "homepage": "http://node-opcua.github.io/",
40
- "gitHead": "75d9b8cf894c8fbadf77d2c4a48a730d055465e7"
40
+ "gitHead": "acb5ecaf1e1c71af3b63e80909d58447f3f298e7"
41
41
  }