node-opcua-debug
Advanced tools
Comparing version 0.3.0 to 0.4.0
/// <reference types="node" /> | ||
export declare function hexDump(buffer: Buffer | null, width?: number): any; | ||
export declare function hexDump(buffer: Buffer | null, width?: number, maxSize?: number): any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const hexy = require("hexy"); | ||
function hexDump(buffer, width = 32) { | ||
function hexDump(buffer, width = 32, maxSize = 1024) { | ||
if (!buffer) { | ||
@@ -9,4 +9,4 @@ return "<>"; | ||
width = width || 32; | ||
if (buffer.length > 1024) { | ||
return hexy.hexy(buffer.slice(0, 1024), { width: width, format: "twos" }) + "\n .... ( " + buffer.length + ")"; | ||
if (buffer.length > maxSize) { | ||
return hexy.hexy(buffer.slice(0, maxSize), { width: width, format: "twos" }) + "\n .... ( " + buffer.length + ")"; | ||
} | ||
@@ -13,0 +13,0 @@ else { |
{ | ||
"name": "node-opcua-debug", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "pure nodejs OPCUA SDK - module -debug", | ||
@@ -10,10 +10,10 @@ "scripts": { | ||
"dependencies": { | ||
"chalk": "^2.3.2", | ||
"hexy": "^0.2.10", | ||
"node-opcua-assert": "^0.3.0", | ||
"node-opcua-buffer-utils": "^0.3.0", | ||
"underscore": "^1.8.3" | ||
"chalk": "^2.4.1", | ||
"hexy": "^0.2.11", | ||
"node-opcua-assert": "^0.4.0", | ||
"node-opcua-buffer-utils": "^0.4.0", | ||
"underscore": "^1.9.0" | ||
}, | ||
"devDependencies": { | ||
"chalk": "^2.3.2", | ||
"chalk": "^2.4.1", | ||
"should": "13.2.1" | ||
@@ -20,0 +20,0 @@ }, |
const hexy = require("hexy"); | ||
export function hexDump(buffer: Buffer | null, width: number = 32) { | ||
export function hexDump(buffer: Buffer | null, width: number = 32, maxSize: number = 1024) { | ||
if (!buffer) { | ||
@@ -7,4 +7,4 @@ return "<>"; | ||
width = width || 32; | ||
if (buffer.length > 1024) { | ||
return hexy.hexy(buffer.slice(0, 1024), { width: width, format: "twos" }) + "\n .... ( " + buffer.length + ")"; | ||
if (buffer.length > maxSize) { | ||
return hexy.hexy(buffer.slice(0, maxSize), { width: width, format: "twos" }) + "\n .... ( " + buffer.length + ")"; | ||
} else { | ||
@@ -11,0 +11,0 @@ return hexy.hexy(buffer, { width: width, format: "twos" }); |
{ | ||
"compilerOptions": { | ||
"skipLibCheck": true, | ||
"target": "es6", | ||
@@ -4,0 +5,0 @@ "module": "commonjs", |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
32580
539
0
+ Addednode-opcua-assert@0.4.6(transitive)
+ Addednode-opcua-buffer-utils@0.4.6(transitive)
- Removednode-opcua-assert@0.3.0(transitive)
- Removednode-opcua-buffer-utils@0.3.0(transitive)
Updatedchalk@^2.4.1
Updatedhexy@^0.2.11
Updatednode-opcua-assert@^0.4.0
Updatedunderscore@^1.9.0