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.2.0 to 2.3.0

12

dist/source/packet_analyzer/packet_analyzer.js

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

Object.defineProperty(exports, "__esModule", { value: true });
const chalk_1 = require("chalk");
const chalk = require("chalk");
const node_opcua_assert_1 = require("node-opcua-assert");

@@ -42,3 +42,3 @@ const _ = require("underscore");

const strBuf = node_opcua_utils_1.buffer_ellipsis(buffer);
return chalk_1.default.cyan("s:") + f(start, 4) + chalk_1.default.cyan(" e:") + f(end, 4) + chalk_1.default.cyan(" n:") + f(n, 4) + " " + chalk_1.default.yellow(strBuf);
return chalk.cyan("s:") + f(start, 4) + chalk.cyan(" e:") + f(end, 4) + chalk.cyan(" n:") + f(n, 4) + " " + chalk.yellow(strBuf);
}

@@ -70,5 +70,5 @@ function make_tracer(buffer, padding, offset) {

const length = node_opcua_basic_types_1.decodeUInt32(stream);
display(chalk_1.default.green(" ExpandedNodId =") + " " + nodeId);
display(chalk_1.default.green(" encoding mask =") + " " + encodingMask);
display(chalk_1.default.green(" length =") + " " + length);
display(chalk.green(" ExpandedNodId =") + " " + nodeId);
display(chalk.green(" encoding mask =") + " " + encodingMask);
display(chalk.green(" length =") + " " + length);
analyzePacket(bufferExtract.slice(stream.length), value.encodingDefaultBinary, padding + 2, start + stream.length);

@@ -78,3 +78,3 @@ }

tracer: {
dump: (title, value) => display(title + " " + chalk_1.default.green(value.toString())),
dump: (title, value) => display(title + " " + chalk.green(value.toString())),
encoding_byte: (encodingMask, valueEnum, start, end) => {

@@ -81,0 +81,0 @@ node_opcua_assert_1.assert(valueEnum);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// @ts-check
const chalk_1 = require("chalk");
const chalk = require("chalk");
const node_opcua_binary_stream_1 = require("node-opcua-binary-stream");

@@ -30,6 +30,6 @@ const node_opcua_debug_1 = require("node-opcua-debug");

function displayError(p, expected, actual) {
console.log(chalk_1.default.yellow(" ---------------------------------- error in encode_decode_round_trip_test"));
console.log(chalk_1.default.red(" key "), p);
console.log(chalk_1.default.red(" expected "), JSON.stringify(expected));
console.log(chalk_1.default.cyan(" actual "), JSON.stringify(actual));
console.log(chalk.yellow(" ---------------------------------- error in encode_decode_round_trip_test"));
console.log(chalk.red(" key "), p);
console.log(chalk.red(" expected "), JSON.stringify(expected));
console.log(chalk.cyan(" actual "), JSON.stringify(actual));
}

@@ -36,0 +36,0 @@ Object.keys(objReloaded).forEach((p) => {

{
"name": "node-opcua-packet-analyzer",
"version": "2.2.0",
"version": "2.3.0",
"description": "pure nodejs OPCUA SDK - module -packet-analyzer",

@@ -14,9 +14,9 @@ "main": "./dist/source/index.js",

"dependencies": {
"chalk": "^2.4.2",
"node-opcua-assert": "^2.0.0",
"node-opcua-basic-types": "^2.2.0",
"node-opcua-binary-stream": "^2.2.0",
"node-opcua-debug": "^2.2.0",
"node-opcua-factory": "^2.2.0",
"node-opcua-utils": "^2.2.0",
"chalk": "^3.0.0",
"node-opcua-assert": "^2.3.0",
"node-opcua-basic-types": "^2.3.0",
"node-opcua-binary-stream": "^2.3.0",
"node-opcua-debug": "^2.3.0",
"node-opcua-factory": "^2.3.0",
"node-opcua-utils": "^2.3.0",
"underscore": "^1.9.1"

@@ -41,3 +41,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "e77e0371580d04e874b2023f8a5751c3608bc3f9"
"gitHead": "3fc22180b26cd0d0481e57e7bb6a2cab7623e6d1"
}

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

import chalk from "chalk";
import * as chalk from "chalk";
import { assert } from "node-opcua-assert";

@@ -9,0 +9,0 @@ import * as _ from "underscore";

// @ts-check
import chalk from "chalk";
import * as chalk from "chalk";
import { BinaryStream } from "node-opcua-binary-stream";

@@ -4,0 +4,0 @@ import { hexDump } from "node-opcua-debug";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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