Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bfchain/bnrtc2-buffer

Package Overview
Dependencies
Maintainers
5
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bfchain/bnrtc2-buffer - npm Package Compare versions

Comparing version 2.0.15 to 2.0.16

13

build/buffer.js

@@ -66,4 +66,3 @@ "use strict";

this._buf.set(oldData, this._dataOffset);
this._endOffset =
Bnrtc2Buffer.HEAD_RESERVE_SIZE + size + oldDataLen;
this._endOffset = Bnrtc2Buffer.HEAD_RESERVE_SIZE + size + oldDataLen;
}

@@ -93,3 +92,3 @@ this._isClone = false;

get length() {
return this._endOffset - this._dataOffset;
return (this._endOffset - this._dataOffset);
}

@@ -116,3 +115,3 @@ get capacity() {

putU8(value) {
value = value & 0xff;
value = value & 0XFF;
const buf = this.checkSpace(1, WriteDirection.PUT);

@@ -124,3 +123,3 @@ buf._dataOffset -= 1;

putU16(value) {
value = value & 0xffff;
value = value & 0XFFFF;
const buf = this.checkSpace(2, WriteDirection.PUT);

@@ -160,3 +159,3 @@ buf._dataOffset -= 2;

pushU8(value) {
value = value & 0xff;
value = value & 0XFF;
const buf = this.checkSpace(1, WriteDirection.PUSH);

@@ -168,3 +167,3 @@ buf._buf[this._endOffset] = value;

pushU16(value) {
value = value & 0xffff;
value = value & 0XFFFF;
const buf = this.checkSpace(2, WriteDirection.PUSH);

@@ -171,0 +170,0 @@ buf._buf[this._endOffset] = value >> 8;

{
"name": "@bfchain/bnrtc2-buffer",
"version": "2.0.15",
"version": "2.0.16",
"main": "./build/index.js",

@@ -8,3 +8,3 @@ "types": "./build/index.d.ts",

"dependencies": {
"@bfchain/bnrtc2-buffer-typings": "^2.0.15"
"@bfchain/bnrtc2-buffer-typings": "^2.0.16"
},

@@ -11,0 +11,0 @@ "files": [

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