node-opcua-packet-assembler
Advanced tools
Comparing version 2.42.0 to 2.51.0
@@ -15,3 +15,3 @@ "use strict"; | ||
this.minimumSizeInBytes = options.minimumSizeInBytes || 8; | ||
node_opcua_assert_1.assert(typeof this.readMessageFunc === "function", "packet assembler requires a readMessageFunc"); | ||
(0, node_opcua_assert_1.assert)(typeof this.readMessageFunc === "function", "packet assembler requires a readMessageFunc"); | ||
} | ||
@@ -30,4 +30,4 @@ feed(data) { | ||
this.expectedLength = this.packetInfo.length; | ||
node_opcua_assert_1.assert(this.currentLength === 0); | ||
node_opcua_assert_1.assert(this.expectedLength > 0); | ||
(0, node_opcua_assert_1.assert)(this.currentLength === 0); | ||
(0, node_opcua_assert_1.assert)(this.expectedLength > 0); | ||
// we can now emit an event to signal the start of a new packet | ||
@@ -47,4 +47,4 @@ this.emit("newMessage", this.packetInfo, data); | ||
const packetInfo = this._readPacketInfo(messageChunk); | ||
node_opcua_assert_1.assert(this.packetInfo && this.packetInfo.length === packetInfo.length); | ||
node_opcua_assert_1.assert(messageChunk.length === packetInfo.length); | ||
(0, node_opcua_assert_1.assert)(this.packetInfo && this.packetInfo.length === packetInfo.length); | ||
(0, node_opcua_assert_1.assert)(messageChunk.length === packetInfo.length); | ||
} | ||
@@ -51,0 +51,0 @@ // reset |
{ | ||
"name": "node-opcua-packet-assembler", | ||
"version": "2.42.0", | ||
"version": "2.51.0", | ||
"description": "pure nodejs OPCUA SDK - module -packet-assembler", | ||
@@ -15,3 +15,3 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"node-opcua-assert": "2.42.0" | ||
"node-opcua-assert": "2.51.0" | ||
}, | ||
@@ -34,3 +34,3 @@ "devDependencies": { | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "09c4530a94c3ff0529c94269d31088abecd7e144" | ||
"gitHead": "75feb111daf7ec65fa0111e4fa5beb8987fd4945" | ||
} |
Sorry, the diff of this file is not supported yet
14595
+ Addedchalk@4.1.2(transitive)
+ Addednode-opcua-assert@2.51.0(transitive)
- Removedchalk@4.1.1(transitive)
- Removednode-opcua-assert@2.42.0(transitive)
Updatednode-opcua-assert@2.51.0