Socket
Socket
Sign inDemoInstall

b4a

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

b4a - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

8

browser.js

@@ -7,2 +7,4 @@ const ascii = require('./lib/ascii')

const LE = new Uint8Array(Uint16Array.of(0xff).buffer)[0] === 0xff
function codecFor (encoding) {

@@ -72,4 +74,4 @@ switch (encoding) {

for (let n = len - (len % 4); i < n; i += 4) {
const x = a.getUint32(i)
const y = b.getUint32(i)
const x = a.getUint32(i, LE)
const y = b.getUint32(i, LE)
if (x < y) return -1

@@ -145,3 +147,3 @@ if (x > y) return 1

for (let n = len - (len % 4); i < n; i += 4) {
if (a.getUint32(i) !== b.getUint32(i)) return false
if (a.getUint32(i, LE) !== b.getUint32(i, LE)) return false
}

@@ -148,0 +150,0 @@

{
"name": "b4a",
"version": "1.5.0",
"version": "1.5.1",
"description": "Bridging the gap between buffers and typed arrays",

@@ -5,0 +5,0 @@ "main": "index.js",

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