node-opcua-packet-analyzer
Advanced tools
Comparing version 0.3.0 to 0.4.0
{ | ||
"name": "node-opcua-packet-analyzer", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "pure nodejs OPCUA SDK - module -packet-analyzer", | ||
@@ -12,14 +12,14 @@ "main": "index.js", | ||
"dependencies": { | ||
"colors": "^1.2.1", | ||
"node-opcua-assert": "^0.3.0", | ||
"node-opcua-basic-types": "^0.3.0", | ||
"node-opcua-binary-stream": "^0.3.0", | ||
"node-opcua-debug": "^0.3.0", | ||
"node-opcua-enum": "^0.3.0", | ||
"node-opcua-factory": "^0.3.0", | ||
"node-opcua-utils": "^0.3.0", | ||
"underscore": "^1.8.3" | ||
"colors": "^1.3.0", | ||
"node-opcua-assert": "^0.4.0", | ||
"node-opcua-basic-types": "^0.4.0", | ||
"node-opcua-binary-stream": "^0.4.0", | ||
"node-opcua-debug": "^0.4.0", | ||
"node-opcua-enum": "^0.4.0", | ||
"node-opcua-factory": "^0.4.0", | ||
"node-opcua-utils": "^0.4.0", | ||
"underscore": "^1.9.0" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-test-helpers": "^0.3.0", | ||
"node-opcua-test-helpers": "^0.4.0", | ||
"should": "13.2.1" | ||
@@ -26,0 +26,0 @@ }, |
@@ -97,2 +97,3 @@ "use strict"; | ||
const b = buffer.slice(start, end); | ||
let _hexDump=""; | ||
@@ -133,3 +134,3 @@ switch (operation) { | ||
let _hexDump = ""; | ||
_hexDump = ""; | ||
if (value instanceof Buffer) { | ||
@@ -136,0 +137,0 @@ _hexDump = hexDump(value); |
@@ -35,2 +35,11 @@ "use strict"; | ||
function compare(obj_reloaded,obj) { | ||
function displayError(p,expected,actual) { | ||
console.log(" ---------------------------------- error in encode_decode_round_trip_test".yellow); | ||
console.log(" key ".red, p); | ||
console.log(" expected ".red, JSON.stringify(expected)); | ||
console.log(" actual ".cyan, JSON.stringify(actual)); | ||
} | ||
Object.keys(obj_reloaded).forEach(function (p) { | ||
@@ -45,6 +54,6 @@ | ||
} catch (err) { | ||
console.log(" ---------------------------------- error in encode_decode_round_trip_test".yellow); | ||
console.log(" key ".red, p); | ||
console.log(" expected ".red, JSON.stringify(obj[p])); | ||
console.log(" actual ".cyan, JSON.stringify(obj_reloaded[p])); | ||
displayError(p,obj[p],obj_reloaded[p]); | ||
console.log(obj.toString()); | ||
console.log(obj_reloaded.toString()); | ||
// re throw exception | ||
@@ -79,3 +88,3 @@ throw err; | ||
const stream = new BinaryStream(new Buffer(size)); | ||
const stream = new BinaryStream(Buffer.alloc(size)); | ||
@@ -82,0 +91,0 @@ obj.encode(stream, options); |
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
14096
290
+ Addedlong@4.0.0(transitive)
+ Addednode-opcua-assert@0.4.6(transitive)
+ Addednode-opcua-basic-types@0.4.6(transitive)
+ Addednode-opcua-binary-stream@0.4.6(transitive)
+ Addednode-opcua-buffer-utils@0.4.6(transitive)
+ Addednode-opcua-constants@0.4.2(transitive)
+ Addednode-opcua-date-time@0.4.6(transitive)
+ Addednode-opcua-debug@0.4.6(transitive)
+ Addednode-opcua-enum@0.4.6(transitive)
+ Addednode-opcua-factory@0.4.6(transitive)
+ Addednode-opcua-guid@0.4.6(transitive)
+ Addednode-opcua-nodeid@0.4.6(transitive)
+ Addednode-opcua-status-code@0.4.6(transitive)
+ Addednode-opcua-utils@0.4.6(transitive)
- Removednode-opcua-assert@0.3.0(transitive)
- Removednode-opcua-basic-types@0.3.0(transitive)
- Removednode-opcua-binary-stream@0.3.0(transitive)
- Removednode-opcua-buffer-utils@0.3.0(transitive)
- Removednode-opcua-constants@0.2.0(transitive)
- Removednode-opcua-date-time@0.3.0(transitive)
- Removednode-opcua-debug@0.3.0(transitive)
- Removednode-opcua-enum@0.3.0(transitive)
- Removednode-opcua-factory@0.3.0(transitive)
- Removednode-opcua-guid@0.3.0(transitive)
- Removednode-opcua-nodeid@0.3.0(transitive)
- Removednode-opcua-status-code@0.3.0(transitive)
- Removednode-opcua-utils@0.3.0(transitive)
Updatedcolors@^1.3.0
Updatednode-opcua-assert@^0.4.0
Updatednode-opcua-debug@^0.4.0
Updatednode-opcua-enum@^0.4.0
Updatednode-opcua-factory@^0.4.0
Updatednode-opcua-utils@^0.4.0
Updatedunderscore@^1.9.0