node-opcua-crypto
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -13,4 +13,3 @@ "use strict"; | ||
const assert = require("assert"); | ||
// tslint:disable:no-var-requires | ||
const hexy = require("hexy"); | ||
const hexy_1 = require("hexy"); | ||
const jsrsasign = require("jsrsasign"); | ||
@@ -86,6 +85,6 @@ const PEM_REGEX = /^(-----BEGIN (.*)-----\r?\n([\/+=a-zA-Z0-9\r\n]*)\r?\n-----END \2-----\r?\n)/gm; | ||
if (buffer.length > 1024) { | ||
return hexy.hexy(buffer.slice(0, 1024), { width, format: "twos" }) + "\n .... ( " + buffer.length + ")"; | ||
return hexy_1.hexy(buffer.slice(0, 1024), { width, format: "twos" }) + "\n .... ( " + buffer.length + ")"; | ||
} | ||
else { | ||
return hexy.hexy(buffer, { width, format: "twos" }); | ||
return hexy_1.hexy(buffer, { width, format: "twos" }); | ||
} | ||
@@ -92,0 +91,0 @@ } |
{ | ||
"name": "node-opcua-crypto", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Crypto tools for Node-OPCUA", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -11,5 +11,4 @@ // tslint:disabled:no-var-requires | ||
import * as assert from "assert"; | ||
import { hexy } from "hexy"; | ||
// tslint:disable:no-var-requires | ||
import hexy = require("hexy"); | ||
const jsrsasign = require("jsrsasign"); | ||
@@ -89,5 +88,5 @@ | ||
if (buffer.length > 1024) { | ||
return hexy.hexy(buffer.slice(0, 1024), { width, format: "twos" }) + "\n .... ( " + buffer.length + ")"; | ||
return hexy(buffer.slice(0, 1024), { width, format: "twos" }) + "\n .... ( " + buffer.length + ")"; | ||
} else { | ||
return hexy.hexy(buffer, { width, format: "twos" }); | ||
return hexy(buffer, { width, format: "twos" }); | ||
} | ||
@@ -94,0 +93,0 @@ } |
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
292905
4736