node-opcua-variant
Advanced tools
Comparing version 2.68.0 to 2.69.0
@@ -297,8 +297,10 @@ "use strict"; | ||
else { | ||
opts.value = opts.value.map((e) => { | ||
if (e && e.constructor) { | ||
return new e.constructor(e); | ||
} | ||
return null; | ||
}); | ||
if (opts.value) { | ||
opts.value = opts.value.map((e) => { | ||
if (e && e.constructor) { | ||
return new e.constructor(e); | ||
} | ||
return null; | ||
}); | ||
} | ||
} | ||
@@ -305,0 +307,0 @@ } |
{ | ||
"name": "node-opcua-variant", | ||
"version": "2.68.0", | ||
"version": "2.69.0", | ||
"description": "pure nodejs OPCUA SDK - module -variant", | ||
@@ -16,23 +16,23 @@ "main": "./dist/index.js", | ||
"node-opcua-assert": "2.66.0", | ||
"node-opcua-basic-types": "2.68.0", | ||
"node-opcua-data-model": "2.68.0", | ||
"node-opcua-enum": "2.67.0", | ||
"node-opcua-extension-object": "2.68.0", | ||
"node-opcua-factory": "2.68.0", | ||
"node-opcua-nodeid": "2.68.0", | ||
"node-opcua-utils": "2.67.0" | ||
"node-opcua-basic-types": "2.69.0", | ||
"node-opcua-data-model": "2.69.0", | ||
"node-opcua-enum": "2.69.0", | ||
"node-opcua-extension-object": "2.69.0", | ||
"node-opcua-factory": "2.69.0", | ||
"node-opcua-nodeid": "2.69.0", | ||
"node-opcua-utils": "2.69.0" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash": "4.14.180", | ||
"@types/lodash": "4.14.182", | ||
"@types/underscore": "^1.11.4", | ||
"lodash": "4.17.21", | ||
"node-opcua-benchmarker": "2.67.0", | ||
"node-opcua-binary-stream": "2.67.0", | ||
"node-opcua-debug": "2.68.0", | ||
"node-opcua-numeric-range": "2.68.0", | ||
"node-opcua-packet-analyzer": "2.68.0", | ||
"node-opcua-status-code": "2.67.0", | ||
"node-opcua-benchmarker": "2.69.0", | ||
"node-opcua-binary-stream": "2.69.0", | ||
"node-opcua-debug": "2.69.0", | ||
"node-opcua-numeric-range": "2.69.0", | ||
"node-opcua-packet-analyzer": "2.69.0", | ||
"node-opcua-status-code": "2.69.0", | ||
"should": "^13.2.3", | ||
"source-map-support": "^0.5.21", | ||
"underscore": "^1.13.2" | ||
"underscore": "^1.13.3" | ||
}, | ||
@@ -54,3 +54,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "363b466440d0910acddd0cde2c37792ce4724d76" | ||
"gitHead": "6c88d05e8c82ce4bc9c8af9f0a8eb6136f31d2ce" | ||
} |
@@ -379,8 +379,10 @@ /** | ||
} else { | ||
opts.value = opts.value.map((e: any) => { | ||
if (e && e.constructor) { | ||
return new e.constructor(e); | ||
} | ||
return null; | ||
}); | ||
if (opts.value) { | ||
opts.value = opts.value.map((e: any) => { | ||
if (e && e.constructor) { | ||
return new e.constructor(e); | ||
} | ||
return null; | ||
}); | ||
} | ||
} | ||
@@ -740,3 +742,3 @@ } else if (opts.arrayType !== VariantArrayType.Scalar) { | ||
Object.prototype.hasOwnProperty.call(value, "value") && | ||
Object.prototype.hasOwnProperty.call(value, "key") && | ||
Object.prototype.hasOwnProperty.call(value, "key") && | ||
value.constructor.name === "EnumValueType" | ||
@@ -971,3 +973,4 @@ ); | ||
// old version of nodejs do not provide a Buffer#equals test | ||
const oldNodeVersion = typeof process === "object" && process.versions && process.versions.node && process.versions.node.substring(0, 1) === "0"; | ||
const oldNodeVersion = | ||
typeof process === "object" && process.versions && process.versions.node && process.versions.node.substring(0, 1) === "0"; | ||
@@ -974,0 +977,0 @@ function __type(a: any): string { |
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
142224
2530
+ Added@types/lodash@4.14.182(transitive)
+ Addednode-opcua-basic-types@2.69.0(transitive)
+ Addednode-opcua-binary-stream@2.69.0(transitive)
+ Addednode-opcua-buffer-utils@2.69.0(transitive)
+ Addednode-opcua-data-model@2.69.0(transitive)
+ Addednode-opcua-date-time@2.69.0(transitive)
+ Addednode-opcua-debug@2.69.0(transitive)
+ Addednode-opcua-enum@2.69.0(transitive)
+ Addednode-opcua-extension-object@2.69.0(transitive)
+ Addednode-opcua-factory@2.69.0(transitive)
+ Addednode-opcua-nodeid@2.69.0(transitive)
+ Addednode-opcua-status-code@2.69.0(transitive)
+ Addednode-opcua-utils@2.69.0(transitive)
- Removed@types/lodash@4.14.180(transitive)
- Removednode-opcua-basic-types@2.68.0(transitive)
- Removednode-opcua-binary-stream@2.67.0(transitive)
- Removednode-opcua-buffer-utils@2.67.0(transitive)
- Removednode-opcua-data-model@2.68.0(transitive)
- Removednode-opcua-date-time@2.68.0(transitive)
- Removednode-opcua-debug@2.68.0(transitive)
- Removednode-opcua-enum@2.67.0(transitive)
- Removednode-opcua-extension-object@2.68.0(transitive)
- Removednode-opcua-factory@2.68.0(transitive)
- Removednode-opcua-nodeid@2.68.0(transitive)
- Removednode-opcua-status-code@2.67.0(transitive)
- Removednode-opcua-utils@2.67.0(transitive)
Updatednode-opcua-data-model@2.69.0
Updatednode-opcua-enum@2.69.0
Updatednode-opcua-factory@2.69.0
Updatednode-opcua-nodeid@2.69.0
Updatednode-opcua-utils@2.69.0