New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-binary-stream

Package Overview
Dependencies
Maintainers
1
Versions
111
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.5.6 to 0.6.0

32

dist/binaryStream.js

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

node_opcua_assert_1.default(value >= -128 && value < 128);
this._buffer.writeInt8(value, this.length, noAssert);
this._buffer.writeInt8(value, this.length);
this.length += 1;

@@ -87,3 +87,3 @@ }

node_opcua_assert_1.default(value >= 0 && value < 256, " writeUInt8 : out of bound ");
this._buffer.writeUInt8(value, this.length, noAssert);
this._buffer.writeUInt8(value, this.length);
this.length += 1;

@@ -99,3 +99,3 @@ }

node_opcua_assert_1.default(this._buffer.length >= this.length + 2, "not enough space in buffer");
this._buffer.writeInt16LE(value, this.length, noAssert);
this._buffer.writeInt16LE(value, this.length);
this.length += 2;

@@ -111,3 +111,3 @@ }

node_opcua_assert_1.default(this._buffer.length >= this.length + 2, "not enough space in buffer");
this._buffer.writeUInt16LE(value, this.length, noAssert);
this._buffer.writeUInt16LE(value, this.length);
this.length += 2;

@@ -123,3 +123,3 @@ }

node_opcua_assert_1.default(this._buffer.length >= this.length + 4, "not enough space in buffer");
this._buffer.writeInt32LE(value, this.length, noAssert);
this._buffer.writeInt32LE(value, this.length);
this.length += 4;

@@ -139,3 +139,3 @@ }

node_opcua_assert_1.default(value >= 0 && value <= MAXUINT32);
this._buffer.writeUInt32LE(value, this.length, noAssert);
this._buffer.writeUInt32LE(value, this.length);
this.length += 4;

@@ -157,3 +157,3 @@ /*

node_opcua_assert_1.default(this._buffer.length >= this.length + 4, "not enough space in buffer");
this._buffer.writeFloatLE(value, this.length, noAssert);
this._buffer.writeFloatLE(value, this.length);
this.length += 4;

@@ -169,3 +169,3 @@ }

node_opcua_assert_1.default(this._buffer.length >= this.length + 8, "not enough space in buffer");
this._buffer.writeDoubleLE(value, this.length, noAssert);
this._buffer.writeDoubleLE(value, this.length);
this.length += 8;

@@ -205,3 +205,3 @@ }

readByte() {
const retVal = this._buffer.readInt8(this.length, noAssert);
const retVal = this._buffer.readInt8(this.length);
this.length += 1;

@@ -221,3 +221,3 @@ return retVal;

node_opcua_assert_1.default(this._buffer.length >= this.length + 1);
const retVal = this._buffer.readUInt8(this.length, noAssert);
const retVal = this._buffer.readUInt8(this.length);
this.length += 1;

@@ -232,3 +232,3 @@ return retVal;

readInt16() {
const retVal = this._buffer.readInt16LE(this.length, noAssert);
const retVal = this._buffer.readInt16LE(this.length);
this.length += 2;

@@ -243,3 +243,3 @@ return retVal;

readUInt16() {
const retVal = this._buffer.readUInt16LE(this.length, noAssert);
const retVal = this._buffer.readUInt16LE(this.length);
this.length += 2;

@@ -254,3 +254,3 @@ return retVal;

readInteger() {
const retVal = this._buffer.readInt32LE(this.length, noAssert);
const retVal = this._buffer.readInt32LE(this.length);
this.length += 4;

@@ -265,3 +265,3 @@ return retVal;

readUInt32() {
const retVal = this._buffer.readUInt32LE(this.length, noAssert);
const retVal = this._buffer.readUInt32LE(this.length);
this.length += 4;

@@ -276,3 +276,3 @@ return retVal;

readFloat() {
const retVal = this._buffer.readFloatLE(this.length, noAssert);
const retVal = this._buffer.readFloatLE(this.length);
this.length += 4;

@@ -287,3 +287,3 @@ return retVal;

readDouble() {
const retVal = this._buffer.readDoubleLE(this.length, noAssert);
const retVal = this._buffer.readDoubleLE(this.length);
this.length += 8;

@@ -290,0 +290,0 @@ return retVal;

{
"name": "node-opcua-binary-stream",
"version": "0.5.6",
"version": "0.6.0",
"description": "pure nodejs OPCUA SDK - module -binary-stream",

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

"colors": "^1.3.3",
"node-opcua-assert": "^0.5.0",
"node-opcua-buffer-utils": "^0.5.6",
"node-opcua-assert": "^0.6.0",
"node-opcua-buffer-utils": "^0.6.0",
"underscore": "^1.9.1"
},
"devDependencies": {
"@types/underscore": "^1.8.9",
"node-opcua-benchmarker": "^0.5.6",
"@types/underscore": "^1.8.13",
"node-opcua-benchmarker": "^0.6.0",
"should": "13.2.3"

@@ -38,3 +38,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "ea904dab6cf2aeba062cf25e33e26f90696c910a"
"gitHead": "fd8baedf978ca4d7067549cf1997b45577d51931"
}

@@ -74,3 +74,3 @@ /**

if (performCheck) assert(value >= -128 && value < 128);
this._buffer.writeInt8(value, this.length, noAssert);
this._buffer.writeInt8(value, this.length);
this.length += 1;

@@ -87,3 +87,3 @@ }

if (performCheck) assert(value >= 0 && value < 256, " writeUInt8 : out of bound ");
this._buffer.writeUInt8(value, this.length, noAssert);
this._buffer.writeUInt8(value, this.length);
this.length += 1;

@@ -99,3 +99,3 @@ }

if (performCheck) assert(this._buffer.length >= this.length + 2, "not enough space in buffer");
this._buffer.writeInt16LE(value, this.length, noAssert);
this._buffer.writeInt16LE(value, this.length);
this.length += 2;

@@ -111,3 +111,3 @@ }

if (performCheck) assert(this._buffer.length >= this.length + 2, "not enough space in buffer");
this._buffer.writeUInt16LE(value, this.length, noAssert);
this._buffer.writeUInt16LE(value, this.length);
this.length += 2;

@@ -123,3 +123,3 @@ }

if (performCheck) assert(this._buffer.length >= this.length + 4, "not enough space in buffer");
this._buffer.writeInt32LE(value, this.length, noAssert);
this._buffer.writeInt32LE(value, this.length);
this.length += 4;

@@ -137,3 +137,3 @@ }

if (performCheck) assert(value >= 0 && value <= MAXUINT32);
this._buffer.writeUInt32LE(value, this.length, noAssert);
this._buffer.writeUInt32LE(value, this.length);
this.length += 4;

@@ -155,3 +155,3 @@ /*

if (performCheck) assert(this._buffer.length >= this.length + 4, "not enough space in buffer");
this._buffer.writeFloatLE(value, this.length, noAssert);
this._buffer.writeFloatLE(value, this.length);
this.length += 4;

@@ -167,3 +167,3 @@ }

if (performCheck) assert(this._buffer.length >= this.length + 8, "not enough space in buffer");
this._buffer.writeDoubleLE(value, this.length, noAssert);
this._buffer.writeDoubleLE(value, this.length);
this.length += 8;

@@ -205,3 +205,3 @@ }

readByte(): number {
const retVal = this._buffer.readInt8(this.length, noAssert);
const retVal = this._buffer.readInt8(this.length);
this.length += 1;

@@ -222,3 +222,3 @@ return retVal;

if (performCheck) assert(this._buffer.length >= this.length + 1);
const retVal = this._buffer.readUInt8(this.length, noAssert);
const retVal = this._buffer.readUInt8(this.length);
this.length += 1;

@@ -234,3 +234,3 @@ return retVal;

readInt16(): number {
const retVal = this._buffer.readInt16LE(this.length, noAssert);
const retVal = this._buffer.readInt16LE(this.length);
this.length += 2;

@@ -246,3 +246,3 @@ return retVal;

readUInt16(): number {
const retVal = this._buffer.readUInt16LE(this.length, noAssert);
const retVal = this._buffer.readUInt16LE(this.length);
this.length += 2;

@@ -258,3 +258,3 @@ return retVal;

readInteger(): number {
const retVal = this._buffer.readInt32LE(this.length, noAssert);
const retVal = this._buffer.readInt32LE(this.length);
this.length += 4;

@@ -270,3 +270,3 @@ return retVal;

readUInt32(): number {
const retVal = this._buffer.readUInt32LE(this.length, noAssert);
const retVal = this._buffer.readUInt32LE(this.length);
this.length += 4;

@@ -282,3 +282,3 @@ return retVal;

readFloat(): number {
const retVal = this._buffer.readFloatLE(this.length, noAssert);
const retVal = this._buffer.readFloatLE(this.length);
this.length += 4;

@@ -294,3 +294,3 @@ return retVal;

readDouble(): number {
const retVal = this._buffer.readDoubleLE(this.length, noAssert);
const retVal = this._buffer.readDoubleLE(this.length);
this.length += 8;

@@ -297,0 +297,0 @@ return retVal;

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