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

node-opcua-chunkmanager

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-chunkmanager - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

12

package.json
{
"name": "node-opcua-chunkmanager",
"version": "0.3.0",
"version": "0.4.0",
"description": "pure nodejs OPCUA SDK - module -chunkmanager",

@@ -10,9 +10,9 @@ "main": "index.js",

"dependencies": {
"node-opcua-assert": "^0.3.0",
"node-opcua-binary-stream": "^0.3.0",
"node-opcua-buffer-utils": "^0.3.0",
"underscore": "^1.8.3"
"node-opcua-assert": "^0.4.0",
"node-opcua-binary-stream": "^0.4.0",
"node-opcua-buffer-utils": "^0.4.0",
"underscore": "^1.9.0"
},
"devDependencies": {
"node-opcua-debug": "^0.3.0",
"node-opcua-debug": "^0.4.0",
"should": "13.2.1"

@@ -19,0 +19,0 @@ },

@@ -12,3 +12,3 @@ "use strict";

function make_packet(packet_length) {
const buf = new Buffer(packet_length);
const buf = Buffer.allocUnsafe(packet_length);
buf.length.should.eql(packet_length);

@@ -25,3 +25,3 @@ for (let i = 0; i < buf.length; i++) {

const signature = new Buffer(4);
const signature = Buffer.allocUnsafe(4);
for (let i = 0; i < signature.length; i++) {

@@ -50,3 +50,3 @@ signature.writeUInt8(0xCC, i);

const encrypted_block = new Buffer(block.length + 2);
const encrypted_block = Buffer.alloc(block.length + 2);
encrypted_block.writeUInt8(0xDE, 0);

@@ -66,3 +66,3 @@ block.copy(encrypted_block, 1, 0, block.length);

const outputBuffer = new Buffer(nbBlocks * this.cipherBlockSize);
const outputBuffer = Buffer.alloc(nbBlocks * this.cipherBlockSize);

@@ -87,3 +87,3 @@ for (let i = 0; i < nbBlocks; i++) {

function make_hex_block(hexString) {
return new Buffer(hexString.split(" ").join(""), "hex");
return Buffer.from(hexString.split(" ").join(""), "hex");
}

@@ -155,3 +155,3 @@

const n = 48 * 2 + 12;
const buf = new Buffer(1);
const buf = Buffer.alloc(1);
for (let i = 0; i < n; i += 1) {

@@ -158,0 +158,0 @@ buf.writeInt8(i, 0);

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