@xylabs/hex
Advanced tools
Comparing version 2.13.10 to 2.13.11
@@ -8,3 +8,2 @@ import { AssertConfig } from './assert'; | ||
export declare const isHash: (value: unknown, bitLength?: HashBitLength) => value is string; | ||
export declare const toHex: (buffer: ArrayBuffer) => string; | ||
export declare function asHash(value: unknown): Hash | undefined; | ||
@@ -11,0 +10,0 @@ export declare function asHash(value: unknown, assert: AssertConfig): Hash; |
@@ -103,5 +103,2 @@ // src/assert.ts | ||
}; | ||
var toHex = (buffer) => { | ||
return [...new Uint8Array(buffer)].map((x) => x.toString(16).padStart(2, "0")).join(""); | ||
}; | ||
function asHash(value, assertOrBitLength, assertOnly) { | ||
@@ -128,5 +125,4 @@ const bitLength = typeof assertOrBitLength === "number" ? assertOrBitLength : 256; | ||
isRoundOctet, | ||
octetsToBits, | ||
toHex | ||
octetsToBits | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -8,3 +8,2 @@ import { AssertConfig } from './assert'; | ||
export declare const isHash: (value: unknown, bitLength?: HashBitLength) => value is string; | ||
export declare const toHex: (buffer: ArrayBuffer) => string; | ||
export declare function asHash(value: unknown): Hash | undefined; | ||
@@ -11,0 +10,0 @@ export declare function asHash(value: unknown, assert: AssertConfig): Hash; |
@@ -103,5 +103,2 @@ // src/assert.ts | ||
}; | ||
var toHex = (buffer) => { | ||
return [...new Uint8Array(buffer)].map((x) => x.toString(16).padStart(2, "0")).join(""); | ||
}; | ||
function asHash(value, assertOrBitLength, assertOnly) { | ||
@@ -128,5 +125,4 @@ const bitLength = typeof assertOrBitLength === "number" ? assertOrBitLength : 256; | ||
isRoundOctet, | ||
octetsToBits, | ||
toHex | ||
octetsToBits | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -41,4 +41,4 @@ { | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.2.8", | ||
"@xylabs/tsconfig": "^3.2.8", | ||
"@xylabs/ts-scripts-yarn3": "^3.2.10", | ||
"@xylabs/tsconfig": "^3.2.10", | ||
"typescript": "^5.3.2" | ||
@@ -54,5 +54,5 @@ }, | ||
"sideEffects": false, | ||
"version": "2.13.10", | ||
"version": "2.13.11", | ||
"packageManager": "yarn@3.3.1", | ||
"type": "module" | ||
} |
@@ -23,6 +23,2 @@ import { AssertConfig, assertError } from './assert' | ||
export const toHex = (buffer: ArrayBuffer) => { | ||
return [...new Uint8Array(buffer)].map((x) => x.toString(16).padStart(2, '0')).join('') | ||
} | ||
export function asHash(value: unknown): Hash | undefined | ||
@@ -29,0 +25,0 @@ export function asHash(value: unknown, assert: AssertConfig): Hash |
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
104489
753