Huge News!Announcing our $40M Series B led by Abstract Ventures.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 0.0.2 to 1.0.1

14

lib/index.js

@@ -94,3 +94,8 @@ "use strict";

write: function (value) {
var long = Long.fromString(value + '');
var long;
if(typeof value === 'number'){
long = Long.fromNumber(value);
} else {
long = Long.fromString(value + '');
}
this.buffer.writeInt32BE(long.getHighBits(), this.offset);

@@ -109,3 +114,8 @@ this.buffer.writeInt32BE(long.getLowBits(), this.offset + 4);

write: function (value) {
var long = Long.fromString(value + '');
var long;
if(typeof value === 'number'){
long = Long.fromNumber(value);
} else {
long = Long.fromString(value + '');
}
this.buffer.writeInt32LE(long.getHighBits(), this.offset + 4);

@@ -112,0 +122,0 @@ this.buffer.writeInt32LE(long.getLowBits(), this.offset);

2

package.json

@@ -9,3 +9,3 @@ {

},
"version": "0.0.2",
"version": "1.0.1",
"main": "./lib/index.js",

@@ -12,0 +12,0 @@ "keywords": ["buffer"],

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