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.5.10 to 2.6.0-alpha.0

6

dist/source/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var packet_analyzer_1 = require("./packet_analyzer/packet_analyzer");
exports.analyzePacket = packet_analyzer_1.analyzePacket;
exports.analyseExtensionObject = packet_analyzer_1.analyseExtensionObject;
exports.analyze_object_binary_encoding = packet_analyzer_1.analyze_object_binary_encoding;
Object.defineProperty(exports, "analyzePacket", { enumerable: true, get: function () { return packet_analyzer_1.analyzePacket; } });
Object.defineProperty(exports, "analyseExtensionObject", { enumerable: true, get: function () { return packet_analyzer_1.analyseExtensionObject; } });
Object.defineProperty(exports, "analyze_object_binary_encoding", { enumerable: true, get: function () { return packet_analyzer_1.analyze_object_binary_encoding; } });
//# sourceMappingURL=index.js.map
"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 });
exports.analyze_object_binary_encoding = exports.analyseExtensionObject = exports.analyzePacket = void 0;
const chalk = require("chalk");

@@ -36,3 +33,2 @@ const node_opcua_assert_1 = require("node-opcua-assert");

}
// DataValueEncodingByte
}

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

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

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

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

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.compare_obj_by_encoding = void 0;
const node_opcua_binary_stream_1 = require("node-opcua-binary-stream");

@@ -4,0 +5,0 @@ const should = require("should");

/// <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 });
// @ts-check
exports.json_encode_decode_round_trip_test = exports.encode_decode_round_trip_test = void 0;
const chalk = require("chalk");

@@ -12,3 +12,2 @@ 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) {

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

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

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

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

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

}
/**
* @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) {

@@ -95,3 +85,2 @@ 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;

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

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./compare_obj_by_encoding"));
__export(require("./encode_decode_round_trip_test"));
__exportStar(require("./compare_obj_by_encoding"), exports);
__exportStar(require("./encode_decode_round_trip_test"), exports);
//# sourceMappingURL=index.js.map
{
"name": "node-opcua-packet-analyzer",
"version": "2.5.10",
"version": "2.6.0-alpha.0",
"description": "pure nodejs OPCUA SDK - module -packet-analyzer",

@@ -17,7 +17,7 @@ "main": "./dist/source/index.js",

"node-opcua-assert": "2.5.8",
"node-opcua-basic-types": "^2.5.9",
"node-opcua-binary-stream": "^2.5.9",
"node-opcua-debug": "^2.5.9",
"node-opcua-factory": "^2.5.10",
"node-opcua-utils": "^2.5.9",
"node-opcua-basic-types": "^2.6.0-alpha.0",
"node-opcua-binary-stream": "^2.6.0-alpha.0",
"node-opcua-debug": "^2.6.0-alpha.0",
"node-opcua-factory": "^2.6.0-alpha.0",
"node-opcua-utils": "^2.6.0-alpha.0",
"underscore": "^1.10.2"

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

"homepage": "http://node-opcua.github.io/",
"gitHead": "f83ada4e88fdeedc0710c5a3b75bbd4b44d9ff76"
"gitHead": "b4e0776f042c4a1e5c801f38a249f6da46b5057d"
}

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

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