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

bin-protocol

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bin-protocol - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

test-v4.js

4

package.json

@@ -9,5 +9,5 @@ {

},
"version": "1.0.4",
"version": "1.0.5",
"main": "./lib/index.js",
"keywords": ["buffer"],
"keywords": ["buffer", "raw", "binary", "protocol", "parser", "reader", "builder"],
"dependencies": {

@@ -14,0 +14,0 @@ "lodash": "~=3.10.1",

@@ -21,3 +21,2 @@ "use strict";

write: function(value, primitive) {
console.log(value, primitive);
if (value === null || value === undefined) {

@@ -24,0 +23,0 @@ this.Int8(-1);

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

protocol.write().raw(buffer).result().toJSON().should.be.eql([1, 2, 3, 4]);
protocol.write().raw(buffer).result().should.be.eql(buffer);
});

@@ -60,3 +60,3 @@

writer = new protocol.Writer();
writer.raw(array).result().toJSON().should.be.eql([1, 2, 3, 4]);
writer.raw(array).result().should.be.eql(new Buffer(array));
});

@@ -82,3 +82,3 @@ });

writer = new protocol.Writer();
writer.customArray([2, 3, 4]).result().toJSON().should.be.eql([0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4]);
writer.customArray([2, 3, 4]).result().should.be.eql(new Buffer([0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4]));
});

@@ -96,3 +96,3 @@

writer = new protocol.Writer();
writer.loopArray([2, 3, 4]).result().toJSON().should.be.eql([0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4]);
writer.loopArray([2, 3, 4]).result().should.be.eql(new Buffer([0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4]));
});

@@ -110,3 +110,3 @@

writer = new protocol.Writer();
writer.loopArrayIterations([2, 3, 4]).result().toJSON().should.be.eql([0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3]);
writer.loopArrayIterations([2, 3, 4]).result().should.be.eql(new Buffer([0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3]));
});

@@ -130,3 +130,3 @@

writer = new protocol.Writer();
writer.loopArrayEnd([2, 3, 4]).result().toJSON().should.be.eql([0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3]);
writer.loopArrayEnd([2, 3, 4]).result().should.be.eql(new Buffer([0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3]));
});

@@ -145,5 +145,5 @@ });

writer = new protocol.Writer();
writer.skip(0).demand(1).loop(['a', 'b', 'c', 'd'], writer.char).result().toJSON().should.be.eql([97, 98, 99, 100]);
writer.skip(0).demand(1).loop(['a', 'b', 'c', 'd'], writer.char).result().should.be.eql(new Buffer([97, 98, 99, 100]));
});
});

Sorry, the diff of this file is not supported yet

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