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

node-opcua-binary-stream

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-binary-stream - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

10

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

@@ -12,9 +12,9 @@ "main": "dist/binaryStream.js",

"dependencies": {
"colors": "^1.2.1",
"node-opcua-assert": "^0.3.0",
"node-opcua-buffer-utils": "^0.3.0"
"colors": "^1.3.0",
"node-opcua-assert": "^0.4.0",
"node-opcua-buffer-utils": "^0.4.0"
},
"devDependencies": {
"@types/underscore": "^1.8.8",
"node-opcua-benchmarker": "^0.3.0",
"node-opcua-benchmarker": "^0.4.0",
"should": "13.2.1"

@@ -21,0 +21,0 @@ },

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

stream.writeDouble(100000.0);
stream.writeByteStream(new Buffer("Hello"));
stream.writeByteStream(Buffer.from("Hello"));
stream.length.should.equal(4 + 4 + 8 + 4 + 5);

@@ -179,3 +179,3 @@

largeArray[100].should.eql(100 * 0.14);
const binStream = new BinaryStream(new Buffer(n * 8 + 20));
const binStream = new BinaryStream(Buffer.alloc(n * 8 + 20));

@@ -211,4 +211,4 @@ largeArray.length.should.eql(n);

const binStream1 = new BinaryStream(new Buffer(n * 8 + 20));
const binStream2 = new BinaryStream(new Buffer(n * 8 + 20));
const binStream1 = new BinaryStream(Buffer.alloc(n * 8 + 20));
const binStream2 = new BinaryStream(Buffer.alloc(n * 8 + 20));

@@ -241,6 +241,6 @@ largeArray.byteLength.should.eql(n * 8);

const binStream1 = new BinaryStream(new Buffer(n * 8 + 20));
const binStream1 = new BinaryStream(Buffer.alloc(n * 8 + 20));
binStream1.writeArrayBuffer(largeArray.buffer, 0, largeArray.byteLength);
//var binStream2 = new BinaryStream(new Buffer(n * 8 + 20));
//var binStream2 = new BinaryStream(Buffer.alloc(n * 8 + 20));
//binStream2.writeArrayBuffer(largeArray.buffer, 0, largeArray.byteLength);

@@ -294,3 +294,3 @@

const binStream1 = new BinaryStream(new Buffer(n * 8 + 20));
const binStream1 = new BinaryStream(Buffer.alloc(n * 8 + 20));
binStream1.writeArrayBuffer(largeArray.buffer, 0, largeArray.byteLength);

@@ -297,0 +297,0 @@

{
"compilerOptions": {
"skipLibCheck": true,
"target": "es6",

@@ -4,0 +5,0 @@ "module": "commonjs",

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