node-opcua-service-call
Advanced tools
Comparing version 2.55.0 to 2.56.0
@@ -29,3 +29,3 @@ "use strict"; | ||
else if (dataType.value) { | ||
(0, node_opcua_assert_1.assert)(dataType.hasOwnProperty("namespace")); | ||
(0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(dataType, "namespace")); | ||
dataType = (0, node_opcua_nodeid_1.coerceNodeId)(dataType.value, dataType.namespace); | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "node-opcua-service-call", | ||
"version": "2.55.0", | ||
"version": "2.56.0", | ||
"description": "pure nodejs OPCUA SDK - module -service-call", | ||
"scripts": { | ||
"test": "mocha", | ||
"lint": "eslint source test", | ||
"format": "prettier --write source test", | ||
"clean": "node -e \"require('rimraf').sync('dist');\"", | ||
@@ -14,13 +16,13 @@ "build": "tsc -b" | ||
"node-opcua-assert": "2.55.0", | ||
"node-opcua-basic-types": "2.55.0", | ||
"node-opcua-basic-types": "2.56.0", | ||
"node-opcua-binary-stream": "2.55.0", | ||
"node-opcua-factory": "2.55.0", | ||
"node-opcua-factory": "2.56.0", | ||
"node-opcua-nodeid": "2.55.0", | ||
"node-opcua-service-secure-channel": "2.55.0", | ||
"node-opcua-types": "2.55.0", | ||
"node-opcua-variant": "2.55.0" | ||
"node-opcua-service-secure-channel": "2.56.0", | ||
"node-opcua-types": "2.56.0", | ||
"node-opcua-variant": "2.56.0" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-packet-analyzer": "2.55.0", | ||
"node-opcua-status-code": "2.55.0", | ||
"node-opcua-packet-analyzer": "2.56.0", | ||
"node-opcua-status-code": "2.56.0", | ||
"should": "^13.2.3" | ||
@@ -43,3 +45,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "28fdbfe1c5306fd0e69758ccacfa2c6d1722115c" | ||
"gitHead": "9f6eac1c658c0d182fbe03cf58f799af468615eb" | ||
} |
@@ -6,5 +6,3 @@ /** | ||
import { coerceNodeId, NodeId, resolveNodeId } from "node-opcua-nodeid"; | ||
import { | ||
Argument | ||
} from "node-opcua-types"; | ||
import { Argument } from "node-opcua-types"; | ||
import { DataType } from "node-opcua-variant"; | ||
@@ -25,6 +23,5 @@ | ||
/// | ||
function constructHookArgument(options?: { dataType: any, valueRank?: number, arrayDimensions?: any }): any { | ||
function constructHookArgument(options?: { dataType: any; valueRank?: number; arrayDimensions?: any }): any { | ||
options = options || { dataType: DataType.Null }; | ||
options = options || {dataType: DataType.Null}; | ||
let dataType = options.dataType; | ||
@@ -37,3 +34,3 @@ if (dataType) { | ||
} else if (dataType.value) { | ||
assert(dataType.hasOwnProperty("namespace")); | ||
assert(Object.prototype.hasOwnProperty.call(dataType, "namespace")); | ||
dataType = coerceNodeId(dataType.value, dataType.namespace); | ||
@@ -54,5 +51,4 @@ } else { | ||
return options; | ||
} | ||
Argument.schema.constructHook = constructHookArgument; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13029
199
+ Addednode-opcua-basic-types@2.56.0(transitive)
+ Addednode-opcua-data-model@2.56.0(transitive)
+ Addednode-opcua-data-value@2.56.0(transitive)
+ Addednode-opcua-extension-object@2.56.0(transitive)
+ Addednode-opcua-factory@2.56.0(transitive)
+ Addednode-opcua-generator@2.56.0(transitive)
+ Addednode-opcua-numeric-range@2.56.0(transitive)
+ Addednode-opcua-packet-analyzer@2.56.0(transitive)
+ Addednode-opcua-schemas@2.56.0(transitive)
+ Addednode-opcua-service-secure-channel@2.56.0(transitive)
+ Addednode-opcua-status-code@2.56.0(transitive)
+ Addednode-opcua-types@2.56.0(transitive)
+ Addednode-opcua-utils@2.56.0(transitive)
+ Addednode-opcua-variant@2.56.0(transitive)
+ Addednode-opcua-xml2json@2.56.0(transitive)
- Removednode-opcua-basic-types@2.55.0(transitive)
- Removednode-opcua-data-model@2.55.0(transitive)
- Removednode-opcua-data-value@2.55.0(transitive)
- Removednode-opcua-extension-object@2.55.0(transitive)
- Removednode-opcua-factory@2.55.0(transitive)
- Removednode-opcua-generator@2.55.0(transitive)
- Removednode-opcua-numeric-range@2.55.0(transitive)
- Removednode-opcua-packet-analyzer@2.55.0(transitive)
- Removednode-opcua-schemas@2.55.0(transitive)
- Removednode-opcua-service-secure-channel@2.55.0(transitive)
- Removednode-opcua-status-code@2.55.0(transitive)
- Removednode-opcua-types@2.55.0(transitive)
- Removednode-opcua-utils@2.55.0(transitive)
- Removednode-opcua-variant@2.55.0(transitive)
- Removednode-opcua-xml2json@2.55.0(transitive)
Updatednode-opcua-factory@2.56.0
Updatednode-opcua-types@2.56.0
Updatednode-opcua-variant@2.56.0