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.6.0-alpha.7 to 2.6.1

8

dist/source/packet_analyzer/packet_analyzer.js
"use strict";
// tslint:disable:no-bitwise
// tslint:disable:no-console
// tslint:disable:max-line-length
// tslint:disable:no-empty-interface
Object.defineProperty(exports, "__esModule", { value: true });

@@ -33,2 +37,3 @@ exports.analyze_object_binary_encoding = exports.analyseExtensionObject = exports.analyzePacket = void 0;

}
// DataValueEncodingByte
}

@@ -46,2 +51,3 @@ function hex_block(start, end, buffer) {

hexInfo = hexInfo || "";
// account for ESC codes for colors
const nbColorAttributes = _.filter(str, (c) => {

@@ -63,3 +69,3 @@ return c === "\u001b";

const nodeId = node_opcua_basic_types_1.decodeNodeId(stream);
const encodingMask = node_opcua_basic_types_1.decodeByte(stream);
const encodingMask = node_opcua_basic_types_1.decodeByte(stream); // 1 bin 2: xml
const length = node_opcua_basic_types_1.decodeUInt32(stream);

@@ -66,0 +72,0 @@ display(chalk.green(" ExpandedNodId =") + " " + nodeId);

/// <reference types="node" />
declare type encode_decode_round_trip_testCallback = (buffer: Buffer, encoding: any, options: any) => void;
/**
* @method encode_decode_round_trip_test
* @param obj : object to test ( the object must provide a binaryStoreSize,encode,decode method
* @param [options]
* @param callback_buffer
* @return {*}
*/
export declare function encode_decode_round_trip_test(obj: any, options?: any, callback_buffer?: encode_decode_round_trip_testCallback): any;
export declare function json_encode_decode_round_trip_test(obj: any, options: any, callbackBuffer?: any): any;
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.json_encode_decode_round_trip_test = exports.encode_decode_round_trip_test = void 0;
// @ts-check
const chalk = require("chalk");

@@ -12,2 +13,3 @@ const node_opcua_binary_stream_1 = require("node-opcua-binary-stream");

const source_1 = require("../source");
// tslint:disable:no-console
function dump_block_in_debug_mode(buffer, id, options) {

@@ -51,2 +53,3 @@ if (process.env.DEBUG) {

console.log(objReloaded.toString());
// re throw exception
throw err;

@@ -59,2 +62,3 @@ }

if (!process.env.DEBUG) {
// tslint:disable:no-empty
console.log = (...args) => { };

@@ -72,2 +76,9 @@ }

}
/**
* @method encode_decode_round_trip_test
* @param obj : object to test ( the object must provide a binaryStoreSize,encode,decode method
* @param [options]
* @param callback_buffer
* @return {*}
*/
function encode_decode_round_trip_test(obj, options, callback_buffer) {

@@ -85,2 +96,3 @@ if (!callback_buffer && _.isFunction(options)) {

stream.rewind();
// reconstruct a object ( some object may not have a default Binary and should be recreated
const expandedNodeId = obj.encodingDefaultBinary;

@@ -87,0 +99,0 @@ const objReloaded = expandedNodeId ? node_opcua_factory_1.constructObject(expandedNodeId) : new obj.constructor();

18

package.json
{
"name": "node-opcua-packet-analyzer",
"version": "2.6.0-alpha.7",
"version": "2.6.1",
"description": "pure nodejs OPCUA SDK - module -packet-analyzer",

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

"chalk": "^4.0.0",
"node-opcua-assert": "^2.6.0-alpha.1",
"node-opcua-basic-types": "^2.6.0-alpha.1",
"node-opcua-binary-stream": "^2.6.0-alpha.1",
"node-opcua-debug": "^2.6.0-alpha.1",
"node-opcua-factory": "^2.6.0-alpha.7",
"node-opcua-utils": "^2.6.0-alpha.1",
"node-opcua-assert": "^2.6.1",
"node-opcua-basic-types": "^2.6.1",
"node-opcua-binary-stream": "^2.6.1",
"node-opcua-debug": "^2.6.1",
"node-opcua-factory": "^2.6.1",
"node-opcua-utils": "^2.6.1",
"underscore": "^1.10.2"
},
"devDependencies": {
"node-opcua-test-helpers": "^2.6.0-alpha.1",
"node-opcua-test-helpers": "^2.6.1",
"should": "^13.2.3"

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

"homepage": "http://node-opcua.github.io/",
"gitHead": "6af0c6f183dcb96ddc5a2befc98851d0960c5fd0"
"gitHead": "15f0c0f83232fc63310dc04fea187048c7a01e4b"
}

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