Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-packet-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-packet-analyzer - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

22

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc