node-opcua-chunkmanager
Advanced tools
Comparing version 0.3.0 to 0.4.0
{ | ||
"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); |
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
35807
+ Addednode-opcua-assert@0.4.6(transitive)
+ Addednode-opcua-binary-stream@0.4.6(transitive)
+ Addednode-opcua-buffer-utils@0.4.6(transitive)
- Removednode-opcua-assert@0.3.0(transitive)
- Removednode-opcua-binary-stream@0.3.0(transitive)
- Removednode-opcua-buffer-utils@0.3.0(transitive)
Updatednode-opcua-assert@^0.4.0
Updatedunderscore@^1.9.0