Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-crypto

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-crypto - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

7

dist/source/crypto_utils.js

@@ -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

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