@xylabs/arraybuffer
Advanced tools
Comparing version 3.5.1 to 3.5.2
@@ -5,7 +5,5 @@ // src/equalArrayBuffers.ts | ||
const u2 = new Uint8Array(a2); | ||
if (u1.byteLength !== u2.byteLength) | ||
return false; | ||
if (u1.byteLength !== u2.byteLength) return false; | ||
for (let i = 0; i < u1.byteLength; i++) { | ||
if (u1[i] !== u2[i]) | ||
return false; | ||
if (u1[i] !== u2[i]) return false; | ||
} | ||
@@ -33,4 +31,3 @@ return true; | ||
function toArrayBuffer(value, padLength, base) { | ||
if (value === void 0) | ||
return void 0; | ||
if (value === void 0) return void 0; | ||
let result = ifTypeOf("string", value, (value2) => stringToArrayBuffer(value2, base)) ?? value; | ||
@@ -37,0 +34,0 @@ if (result === void 0) { |
@@ -5,7 +5,5 @@ // src/equalArrayBuffers.ts | ||
const u2 = new Uint8Array(a2); | ||
if (u1.byteLength !== u2.byteLength) | ||
return false; | ||
if (u1.byteLength !== u2.byteLength) return false; | ||
for (let i = 0; i < u1.byteLength; i++) { | ||
if (u1[i] !== u2[i]) | ||
return false; | ||
if (u1[i] !== u2[i]) return false; | ||
} | ||
@@ -33,4 +31,3 @@ return true; | ||
function toArrayBuffer(value, padLength, base) { | ||
if (value === void 0) | ||
return void 0; | ||
if (value === void 0) return void 0; | ||
let result = ifTypeOf("string", value, (value2) => stringToArrayBuffer(value2, base)) ?? value; | ||
@@ -37,0 +34,0 @@ if (result === void 0) { |
@@ -5,7 +5,5 @@ // src/equalArrayBuffers.ts | ||
const u2 = new Uint8Array(a2); | ||
if (u1.byteLength !== u2.byteLength) | ||
return false; | ||
if (u1.byteLength !== u2.byteLength) return false; | ||
for (let i = 0; i < u1.byteLength; i++) { | ||
if (u1[i] !== u2[i]) | ||
return false; | ||
if (u1[i] !== u2[i]) return false; | ||
} | ||
@@ -33,4 +31,3 @@ return true; | ||
function toArrayBuffer(value, padLength, base) { | ||
if (value === void 0) | ||
return void 0; | ||
if (value === void 0) return void 0; | ||
let result = ifTypeOf("string", value, (value2) => stringToArrayBuffer(value2, base)) ?? value; | ||
@@ -37,0 +34,0 @@ if (result === void 0) { |
@@ -43,11 +43,11 @@ { | ||
"dependencies": { | ||
"@scure/base": "^1.1.6", | ||
"@xylabs/assert": "~3.5.1", | ||
"@xylabs/lodash": "^3.5.1", | ||
"@xylabs/typeof": "~3.5.1" | ||
"@scure/base": "^1.1.7", | ||
"@xylabs/assert": "~3.5.2", | ||
"@xylabs/lodash": "^3.5.2", | ||
"@xylabs/typeof": "~3.5.2" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.10.4", | ||
"@xylabs/tsconfig": "^3.10.4", | ||
"typescript": "^5.4.5" | ||
"@xylabs/ts-scripts-yarn3": "^3.11.10", | ||
"@xylabs/tsconfig": "^3.11.10", | ||
"typescript": "^5.5.2" | ||
}, | ||
@@ -72,4 +72,4 @@ "engines": { | ||
"sideEffects": false, | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"type": "module" | ||
} |
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
73439
468
Updated@scure/base@^1.1.7
Updated@xylabs/assert@~3.5.2
Updated@xylabs/lodash@^3.5.2
Updated@xylabs/typeof@~3.5.2