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

b4a

Package Overview
Dependencies
Maintainers
2
Versions
24
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.1.1 to 1.1.2

10

lib/hex.js

@@ -7,12 +7,12 @@ function byteLength (string) {

const len = buffer.byteLength
const len32 = len >>> 2
const buffer32 = new Uint32Array(buffer.buffer, buffer.byteOffset, len32)
const view = new DataView(buffer.buffer, buffer.byteOffset, len)
let result = ''
let i = 0
for (let i = 0; i < len32; i++) {
result += buffer32[i].toString(16).padStart(8, '0')
for (let n = len - (len % 4); i < n; i += 4) {
result += view.getUint32(i).toString(16).padStart(8, '0')
}
for (let i = len32 << 2; i < len; i++) {
for (; i < len; i++) {
result += buffer[i].toString(16).padStart(2, '0')

@@ -19,0 +19,0 @@ }

{
"name": "b4a",
"version": "1.1.1",
"version": "1.1.2",
"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