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

@xylabs/arraybuffer

Package Overview
Dependencies
Maintainers
7
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/arraybuffer - npm Package Compare versions

Comparing version 2.13.17 to 2.13.18

dist/browser/equalArrayBuffers.d.cts

1

dist/browser/index.d.ts

@@ -0,1 +1,2 @@

export * from './equalArrayBuffers';
export * from './toArrayBuffer';

@@ -2,0 +3,0 @@ export * from './toUint8Array';

@@ -0,1 +1,14 @@

// src/equalArrayBuffers.ts
var equalArrayBuffers = (a1, a2) => {
const u1 = new Uint8Array(a1);
const u2 = new Uint8Array(a2);
if (u1.byteLength !== u2.byteLength)
return false;
for (let i = 0; i < u1.byteLength; i++) {
if (u1[i] !== u2[i])
return false;
}
return true;
};
// src/toArrayBuffer.ts

@@ -38,2 +51,3 @@ import { base16, base58 } from "@scure/base";

export {
equalArrayBuffers,
isArrayBuffer,

@@ -40,0 +54,0 @@ toArrayBuffer,

@@ -0,1 +1,2 @@

export * from './equalArrayBuffers';
export * from './toArrayBuffer';

@@ -2,0 +3,0 @@ export * from './toUint8Array';

@@ -0,1 +1,14 @@

// src/equalArrayBuffers.ts
var equalArrayBuffers = (a1, a2) => {
const u1 = new Uint8Array(a1);
const u2 = new Uint8Array(a2);
if (u1.byteLength !== u2.byteLength)
return false;
for (let i = 0; i < u1.byteLength; i++) {
if (u1[i] !== u2[i])
return false;
}
return true;
};
// src/toArrayBuffer.ts

@@ -38,2 +51,3 @@ import { base16, base58 } from "@scure/base";

export {
equalArrayBuffers,
isArrayBuffer,

@@ -40,0 +54,0 @@ toArrayBuffer,

10

package.json

@@ -44,6 +44,6 @@ {

"@scure/base": "^1.1.3",
"@xylabs/assert": "~2.13.17",
"@xylabs/exists": "~2.13.17",
"@xylabs/lodash": "^2.13.17",
"@xylabs/typeof": "~2.13.17"
"@xylabs/assert": "~2.13.18",
"@xylabs/exists": "~2.13.18",
"@xylabs/lodash": "^2.13.18",
"@xylabs/typeof": "~2.13.18"
},

@@ -70,4 +70,4 @@ "devDependencies": {

"sideEffects": false,
"version": "2.13.17",
"version": "2.13.18",
"type": "module"
}

@@ -0,3 +1,4 @@

export * from './equalArrayBuffers'
export * from './toArrayBuffer'
export * from './toUint8Array'
export { isArrayBuffer } from '@xylabs/lodash'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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