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

bare-buffer

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-buffer - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

20

index.js

@@ -238,2 +238,9 @@ const constants = require('./lib/constants')

writeUInt16LE (value, offset = 0) {
const view = new DataView(this.buffer, this.byteOffset, this.byteLength)
view.setUint16(offset, value, true)
return offset + 2
}
writeUInt32LE (value, offset = 0) {

@@ -291,2 +298,9 @@ const view = new DataView(this.buffer, this.byteOffset, this.byteLength)

writeUInt16BE (value, offset = 0) {
const view = new DataView(this.buffer, this.byteOffset, this.byteLength)
view.setUint16(offset, value, false)
return offset + 2
}
writeUInt32BE (value, offset = 0) {

@@ -318,2 +332,8 @@ const view = new DataView(this.buffer, this.byteOffset, this.byteLength)

readUInt16BE (offset = 0) {
const view = new DataView(this.buffer, this.byteOffset, this.byteLength)
return view.getUint16(offset, false)
}
readUInt32BE (offset = 0) {

@@ -320,0 +340,0 @@ const view = new DataView(this.buffer, this.byteOffset, this.byteLength)

2

package.json
{
"name": "bare-buffer",
"version": "2.3.0",
"version": "2.4.0",
"description": "Native buffers for JavaScript",

@@ -5,0 +5,0 @@ "exports": {

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