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 2.0.0-alpha.13 to 2.0.0-alpha.18

32

dist/binaryStream.js

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

}
this.buffer.writeInt8(value, this.length, noAssert);
this.buffer.writeInt8(value, this.length);
this.length += 1;

@@ -89,3 +89,3 @@ }

}
this.buffer.writeUInt8(value, this.length, noAssert);
this.buffer.writeUInt8(value, this.length);
this.length += 1;

@@ -101,3 +101,3 @@ }

}
this.buffer.writeInt16LE(value, this.length, noAssert);
this.buffer.writeInt16LE(value, this.length);
this.length += 2;

@@ -113,3 +113,3 @@ }

}
this.buffer.writeUInt16LE(value, this.length, noAssert);
this.buffer.writeUInt16LE(value, this.length);
this.length += 2;

@@ -125,3 +125,3 @@ }

}
this.buffer.writeInt32LE(value, this.length, noAssert);
this.buffer.writeInt32LE(value, this.length);
this.length += 4;

@@ -144,3 +144,3 @@ }

}
this.buffer.writeUInt32LE(value, this.length, noAssert);
this.buffer.writeUInt32LE(value, this.length);
this.length += 4;

@@ -162,3 +162,3 @@ /*

}
this.buffer.writeFloatLE(value, this.length, noAssert);
this.buffer.writeFloatLE(value, this.length);
this.length += 4;

@@ -174,3 +174,3 @@ }

}
this.buffer.writeDoubleLE(value, this.length, noAssert);
this.buffer.writeDoubleLE(value, this.length);
this.length += 8;

@@ -209,3 +209,3 @@ }

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

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

}
const retVal = this.buffer.readUInt8(this.length, noAssert);
const retVal = this.buffer.readUInt8(this.length);
this.length += 1;

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

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

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

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

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

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

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

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

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

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

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

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

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

{
"name": "node-opcua-binary-stream",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.18",
"description": "pure nodejs OPCUA SDK - module -binary-stream",

@@ -16,8 +16,8 @@ "main": "./dist/index.js",

"node-opcua-assert": "^2.0.0-alpha.10",
"node-opcua-buffer-utils": "^2.0.0-alpha.10",
"node-opcua-buffer-utils": "^2.0.0-alpha.18",
"underscore": "^1.9.1"
},
"devDependencies": {
"@types/underscore": "^1.8.9",
"node-opcua-benchmarker": "^2.0.0-alpha.10",
"@types/underscore": "^1.8.13",
"node-opcua-benchmarker": "^2.0.0-alpha.18",
"should": "13.2.3"

@@ -40,3 +40,3 @@ },

"homepage": "http://node-opcua.github.io/",
"gitHead": "6a0c56afb819a44d5abd453d39ce684df6fb3505"
"gitHead": "a92d7f1be990cfaadd5f52560e2454e252b0b081"
}

@@ -82,3 +82,3 @@ /**

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

@@ -94,3 +94,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;

@@ -105,3 +105,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;

@@ -116,3 +116,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;

@@ -127,3 +127,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;

@@ -141,3 +141,3 @@ }

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

@@ -158,3 +158,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;

@@ -169,3 +169,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 @@ }

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

@@ -220,3 +220,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;

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -6,3 +6,7 @@ {

"outDir": "dist"
}
},
"files": [
"source/index.ts"
]
}

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