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
187
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 2.0.0-alpha.13 to 2.0.0-alpha.18

21

dist/source/packet_analyzer/packet_analyzer.js

@@ -60,3 +60,3 @@ "use strict";

const pad = () => " ".substr(0, padding);
function display(str, hexInfo) {
function _display(str, hexInfo) {
hexInfo = hexInfo || "";

@@ -70,2 +70,8 @@ // account for ESC codes for colors

}
function display(str, hexInfo) {
const lines = str.split("\n");
for (const line of lines) {
_display(line, hexInfo);
}
}
function display_encodeable(value, buffer1, start, end) {

@@ -126,3 +132,2 @@ const bufferExtract = buffer1.slice(start, end);

}
display(chalk_1.default.green(" " + value), hex_block(start, end, b));
if (value && value.encode) {

@@ -134,5 +139,8 @@ if (fieldType === "ExtensionObject") {

const str = value.toString() || "<empty>";
display(chalk_1.default.green(str));
display(str);
}
}
else {
display(" " + value, hex_block(start, end, b));
}
break;

@@ -170,3 +178,8 @@ }

try {
objMessage.decodeDebug(stream, options);
if (objMessage) {
objMessage.decodeDebug(stream, options);
}
else {
console.log(" Invalid object", objMessage);
}
}

@@ -173,0 +186,0 @@ catch (err) {

16

package.json
{
"name": "node-opcua-packet-analyzer",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.18",
"description": "pure nodejs OPCUA SDK - module -packet-analyzer",

@@ -16,8 +16,8 @@ "main": "./dist/source/index.js",

"node-opcua-assert": "^2.0.0-alpha.10",
"node-opcua-basic-types": "^2.0.0-alpha.13",
"node-opcua-binary-stream": "^2.0.0-alpha.13",
"node-opcua-debug": "^2.0.0-alpha.10",
"node-opcua-enum": "^2.0.0-alpha.10",
"node-opcua-factory": "^2.0.0-alpha.13",
"node-opcua-utils": "^2.0.0-alpha.13",
"node-opcua-basic-types": "^2.0.0-alpha.18",
"node-opcua-binary-stream": "^2.0.0-alpha.18",
"node-opcua-debug": "^2.0.0-alpha.18",
"node-opcua-enum": "^2.0.0-alpha.18",
"node-opcua-factory": "^2.0.0-alpha.18",
"node-opcua-utils": "^2.0.0-alpha.18",
"underscore": "^1.9.1"

@@ -42,3 +42,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "6a0c56afb819a44d5abd453d39ce684df6fb3505"
"gitHead": "a92d7f1be990cfaadd5f52560e2454e252b0b081"
}

@@ -74,3 +74,3 @@ // tslint:disable:no-bitwise

function display(str: string, hexInfo?: string) {
function _display(str: string, hexInfo?: string) {
hexInfo = hexInfo || "";

@@ -84,2 +84,8 @@ // account for ESC codes for colors

}
function display(str: string, hexInfo?: string) {
const lines = str.split("\n");
for (const line of lines) {
_display(line, hexInfo);
}
}

@@ -158,3 +164,2 @@ function display_encodeable(value: any, buffer1: Buffer, start: number, end: number) {

}
display(chalk.green(" " + value), hex_block(start, end, b));

@@ -166,4 +171,6 @@ if (value && value.encode) {

const str = value.toString() || "<empty>";
display(chalk.green(str));
display(str);
}
} else {
display(" " + value, hex_block(start, end, b));
}

@@ -209,3 +216,7 @@ break;

try {
objMessage.decodeDebug(stream, options);
if (objMessage) {
objMessage.decodeDebug(stream, options);
} else {
console.log(" Invalid object", objMessage);
}
} catch (err) {

@@ -212,0 +223,0 @@ console.log(" Error in ", err);

Sorry, the diff of this file is not supported yet

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