@xylabs/arraybuffer
Advanced tools
Comparing version 2.13.17 to 2.13.18
@@ -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, |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52668
63
329
Updated@xylabs/assert@~2.13.18
Updated@xylabs/exists@~2.13.18
Updated@xylabs/lodash@^2.13.18
Updated@xylabs/typeof@~2.13.18