node-opcua-variant
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -1,2 +0,2 @@ | ||
// --------- This code has been automatically generated !!! 2018-01-31T14:02:54.580Z | ||
// --------- This code has been automatically generated !!! 2018-02-22T17:36:28.610Z | ||
"use strict"; | ||
@@ -50,2 +50,6 @@ /** | ||
BaseUAObject.call(this,options); | ||
if (options === null) { | ||
BaseUAObject.call(this,options); | ||
return ; | ||
} | ||
@@ -52,0 +56,0 @@ /** |
var generator = require("node-opcua-generator"); | ||
generator.registerObject("Variant"); |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "node-opcua-variant", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "pure nodejs OPCUA SDK - module -variant", | ||
@@ -13,7 +13,7 @@ "main": "index.js", | ||
"node-opcua-assert": "^0.2.0", | ||
"node-opcua-basic-types": "^0.2.1", | ||
"node-opcua-data-model": "^0.2.1", | ||
"node-opcua-factory": "^0.2.1", | ||
"node-opcua-nodeid": "^0.2.0", | ||
"node-opcua-utils": "^0.2.1", | ||
"node-opcua-basic-types": "^0.2.2", | ||
"node-opcua-data-model": "^0.2.2", | ||
"node-opcua-factory": "^0.2.2", | ||
"node-opcua-nodeid": "^0.2.2", | ||
"node-opcua-utils": "^0.2.2", | ||
"underscore": "^1.8.3" | ||
@@ -23,8 +23,8 @@ }, | ||
"node-opcua-benchmarker": "^0.2.0", | ||
"node-opcua-binary-stream": "^0.2.1", | ||
"node-opcua-debug": "^0.2.0", | ||
"node-opcua-generator": "^0.2.1", | ||
"node-opcua-numeric-range": "^0.2.1", | ||
"node-opcua-packet-analyzer": "^0.2.1", | ||
"node-opcua-status-code": "^0.2.1", | ||
"node-opcua-binary-stream": "^0.2.2", | ||
"node-opcua-debug": "^0.2.2", | ||
"node-opcua-generator": "^0.2.2", | ||
"node-opcua-numeric-range": "^0.2.2", | ||
"node-opcua-packet-analyzer": "^0.2.2", | ||
"node-opcua-status-code": "^0.2.2", | ||
"should": "13.2.1" | ||
@@ -31,0 +31,0 @@ }, |
@@ -0,0 +0,0 @@ |
@@ -108,5 +108,5 @@ "use strict"; | ||
var arr = value || []; | ||
assert(arr instanceof Array); | ||
assert(_.isFinite(arr.length)); | ||
ec.encodeUInt32(arr.length, stream); | ||
var encode = get_encoder(dataType); | ||
@@ -113,0 +113,0 @@ var i, n = arr.length; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -53,4 +53,4 @@ "use strict"; | ||
case DataType.UInt16: | ||
case DataType.Int32: | ||
case DataType.UInt32: | ||
case DataType.Int32: | ||
assert(value !== undefined); | ||
@@ -63,3 +63,3 @@ if (isEnumerationItem(value)) { | ||
} | ||
assert(_.isFinite(value)); | ||
assert(_.isFinite(value), "expecting a number"); | ||
break; | ||
@@ -83,3 +83,3 @@ case DataType.UInt64: | ||
if (!(value === null || value instanceof Buffer)) { | ||
throw new Error("BytString should be null or a Buffer"); | ||
throw new Error("ByteString should be null or a Buffer"); | ||
} | ||
@@ -252,4 +252,4 @@ assert(value === null || value instanceof Buffer); | ||
// compare byte by byte | ||
var b1 = Buffer.from(arr1.buffer); | ||
var b2 = Buffer.from(arr2.buffer); | ||
var b1 = Buffer.from(arr1.buffer,arr1.byteOffset,arr1.byteLength); | ||
var b2 = Buffer.from(arr2.buffer,arr2.byteOffset,arr2.byteLength); | ||
return b1.equals(b2); | ||
@@ -256,0 +256,0 @@ } |
@@ -0,0 +0,0 @@ "use strict"; |
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
98813
15
2426
Updatednode-opcua-data-model@^0.2.2
Updatednode-opcua-factory@^0.2.2
Updatednode-opcua-nodeid@^0.2.2
Updatednode-opcua-utils@^0.2.2