Comparing version 0.0.0-20240814T040617 to 0.0.0-20240814T041200
@@ -0,1 +1,2 @@ | ||
export { type ConcatErrorType, type ConcatReturnType, concat, } from './internal/data/concat.js'; | ||
export { type IsBytesErrorType, isBytes, } from './internal/data/isBytes.js'; | ||
@@ -2,0 +3,0 @@ export { type IsBytesEqualErrorType as IsEqualErrorType, isBytesEqual as isEqual, } from './internal/data/isBytesEqual.js'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toHex = exports.bytesToHex = exports.from = exports.toBytes = exports.fromString = exports.stringToBytes = exports.fromNumber = exports.numberToBytes = exports.fromHex = exports.hexToBytes = exports.fromBool = exports.boolToBytes = exports.toString = exports.bytesToString = exports.toNumber = exports.bytesToNumber = exports.toBoolean = exports.bytesToBoolean = exports.toBigInt = exports.bytesToBigInt = exports.to = exports.fromBytes = exports.random = exports.randomBytes = exports.trimRight = exports.trimLeft = exports.size = exports.slice = exports.padRight = exports.padLeft = exports.isEqual = exports.isBytes = void 0; | ||
exports.toHex = exports.bytesToHex = exports.from = exports.toBytes = exports.fromString = exports.stringToBytes = exports.fromNumber = exports.numberToBytes = exports.fromHex = exports.hexToBytes = exports.fromBool = exports.boolToBytes = exports.toString = exports.bytesToString = exports.toNumber = exports.bytesToNumber = exports.toBoolean = exports.bytesToBoolean = exports.toBigInt = exports.bytesToBigInt = exports.to = exports.fromBytes = exports.random = exports.randomBytes = exports.trimRight = exports.trimLeft = exports.size = exports.slice = exports.padRight = exports.padLeft = exports.isEqual = exports.isBytes = exports.concat = void 0; | ||
var concat_js_1 = require("./internal/data/concat.js"); | ||
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_js_1.concat; } }); | ||
var isBytes_js_1 = require("./internal/data/isBytes.js"); | ||
@@ -5,0 +7,0 @@ Object.defineProperty(exports, "isBytes", { enumerable: true, get: function () { return isBytes_js_1.isBytes; } }); |
@@ -0,1 +1,2 @@ | ||
export { type ConcatErrorType, type ConcatReturnType, concat, } from './internal/data/concat.js'; | ||
export { type IsHexErrorType, isHex, } from './internal/data/isHex.js'; | ||
@@ -7,3 +8,3 @@ export { type IsBytesEqualErrorType as IsEqualErrorType, isBytesEqual as isEqual, } from './internal/data/isBytesEqual.js'; | ||
export { type TrimLeftErrorType, type TrimLeftReturnType, type TrimRightErrorType, type TrimRightReturnType, trimLeft, trimRight, } from './internal/data/trim.js'; | ||
export { type FromHexErrorType, type FromHexParameters, type FromHexReturnType, type HexToBigIntErrorType, type HexToBigIntOptions, type HexToBooleanErrorType, type HexToBooleanOptions, type HexToNumberErrorType, type HexToNumberOptions, type HexToStringErrorType, type HexToStringOptions, fromHex, fromHex as to, hexToBigInt, hexToBigInt as toBigInt, HexToBoolean, HexToBoolean as toBoolean, hexToNumber, hexToNumber as toNumber, hexToString, hexToString as toString, } from './internal/hex/fromHex.js'; | ||
export { type FromHexErrorType, type FromHexParameters, type FromHexReturnType, type HexToBigIntErrorType, type HexToBigIntOptions, type HexToBooleanErrorType, type HexToBooleanOptions, type HexToNumberErrorType, type HexToNumberOptions, type HexToStringErrorType, type HexToStringOptions, fromHex, fromHex as to, hexToBigInt, hexToBigInt as toBigInt, hexToBoolean, hexToBoolean as toBoolean, hexToNumber, hexToNumber as toNumber, hexToString, hexToString as toString, } from './internal/hex/fromHex.js'; | ||
export { type HexToBytesErrorType, type HexToBytesOptions, hexToBytes, hexToBytes as toBytes, } from './internal/bytes/toBytes.js'; | ||
@@ -10,0 +11,0 @@ export { type BoolToHexErrorType, type BoolToHexOptions, type BytesToHexErrorType, type BytesToHexOptions, type NumberToHexErrorType, type NumberToHexOptions, type StringToHexErrorType, type StringToHexOptions, type ToHexErrorType, type ToHexParameters, boolToHex, boolToHex as fromBool, bytesToHex, bytesToHex as fromBytes, numberToHex, numberToHex as fromNumber, stringToHex, stringToHex as fromString, toHex, toHex as from, } from './internal/hex/toHex.js'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.from = exports.toHex = exports.fromString = exports.stringToHex = exports.fromNumber = exports.numberToHex = exports.fromBytes = exports.bytesToHex = exports.fromBool = exports.boolToHex = exports.toBytes = exports.hexToBytes = exports.toString = exports.hexToString = exports.toNumber = exports.hexToNumber = exports.toBoolean = exports.HexToBoolean = exports.toBigInt = exports.hexToBigInt = exports.to = exports.fromHex = exports.trimRight = exports.trimLeft = exports.size = exports.slice = exports.padRight = exports.padLeft = exports.isEqual = exports.isHex = void 0; | ||
exports.from = exports.toHex = exports.fromString = exports.stringToHex = exports.fromNumber = exports.numberToHex = exports.fromBytes = exports.bytesToHex = exports.fromBool = exports.boolToHex = exports.toBytes = exports.hexToBytes = exports.toString = exports.hexToString = exports.toNumber = exports.hexToNumber = exports.toBoolean = exports.hexToBoolean = exports.toBigInt = exports.hexToBigInt = exports.to = exports.fromHex = exports.trimRight = exports.trimLeft = exports.size = exports.slice = exports.padRight = exports.padLeft = exports.isEqual = exports.isHex = exports.concat = void 0; | ||
var concat_js_1 = require("./internal/data/concat.js"); | ||
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_js_1.concat; } }); | ||
var isHex_js_1 = require("./internal/data/isHex.js"); | ||
@@ -23,4 +25,4 @@ Object.defineProperty(exports, "isHex", { enumerable: true, get: function () { return isHex_js_1.isHex; } }); | ||
Object.defineProperty(exports, "toBigInt", { enumerable: true, get: function () { return fromHex_js_1.hexToBigInt; } }); | ||
Object.defineProperty(exports, "HexToBoolean", { enumerable: true, get: function () { return fromHex_js_1.HexToBoolean; } }); | ||
Object.defineProperty(exports, "toBoolean", { enumerable: true, get: function () { return fromHex_js_1.HexToBoolean; } }); | ||
Object.defineProperty(exports, "hexToBoolean", { enumerable: true, get: function () { return fromHex_js_1.hexToBoolean; } }); | ||
Object.defineProperty(exports, "toBoolean", { enumerable: true, get: function () { return fromHex_js_1.hexToBoolean; } }); | ||
Object.defineProperty(exports, "hexToNumber", { enumerable: true, get: function () { return fromHex_js_1.hexToNumber; } }); | ||
@@ -27,0 +29,0 @@ Object.defineProperty(exports, "toNumber", { enumerable: true, get: function () { return fromHex_js_1.hexToNumber; } }); |
@@ -25,3 +25,3 @@ import { type HexToBytesErrorType } from '../bytes/toBytes.js'; | ||
export type HexToBooleanErrorType = AssertSizeErrorType | InvalidHexBooleanErrorType | TrimLeftErrorType | ErrorType; | ||
export declare function HexToBoolean(hex_: Hex, options?: HexToBooleanOptions): boolean; | ||
export declare function hexToBoolean(hex_: Hex, options?: HexToBooleanOptions): boolean; | ||
export type HexToNumberOptions = HexToBigIntOptions; | ||
@@ -28,0 +28,0 @@ export type HexToNumberErrorType = HexToBigIntErrorType | ErrorType; |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.hexToBigInt = hexToBigInt; | ||
exports.HexToBoolean = HexToBoolean; | ||
exports.hexToBoolean = hexToBoolean; | ||
exports.hexToNumber = hexToNumber; | ||
@@ -23,3 +23,3 @@ exports.hexToString = hexToString; | ||
if (to === 'boolean') | ||
return HexToBoolean(hex, options); | ||
return hexToBoolean(hex, options); | ||
if (to === 'bytes') | ||
@@ -42,3 +42,3 @@ return (0, toBytes_js_1.hexToBytes)(hex, options); | ||
} | ||
function HexToBoolean(hex_, options = {}) { | ||
function hexToBoolean(hex_, options = {}) { | ||
let hex = hex_; | ||
@@ -45,0 +45,0 @@ if (options.size) { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.0.0-20240814T040617"; | ||
export declare const version = "0.0.0-20240814T041200"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '0.0.0-20240814T040617'; | ||
exports.version = '0.0.0-20240814T041200'; | ||
//# sourceMappingURL=version.js.map |
@@ -0,1 +1,2 @@ | ||
export { type ConcatErrorType, type ConcatReturnType, concat, } from './internal/data/concat.js'; | ||
export { type IsBytesErrorType, isBytes, } from './internal/data/isBytes.js'; | ||
@@ -2,0 +3,0 @@ export { type IsBytesEqualErrorType as IsEqualErrorType, isBytesEqual as isEqual, } from './internal/data/isBytesEqual.js'; |
@@ -0,1 +1,2 @@ | ||
export { concat, } from './internal/data/concat.js'; | ||
export { isBytes, } from './internal/data/isBytes.js'; | ||
@@ -2,0 +3,0 @@ export { isBytesEqual as isEqual, } from './internal/data/isBytesEqual.js'; |
@@ -0,1 +1,2 @@ | ||
export { type ConcatErrorType, type ConcatReturnType, concat, } from './internal/data/concat.js'; | ||
export { type IsHexErrorType, isHex, } from './internal/data/isHex.js'; | ||
@@ -7,3 +8,3 @@ export { type IsBytesEqualErrorType as IsEqualErrorType, isBytesEqual as isEqual, } from './internal/data/isBytesEqual.js'; | ||
export { type TrimLeftErrorType, type TrimLeftReturnType, type TrimRightErrorType, type TrimRightReturnType, trimLeft, trimRight, } from './internal/data/trim.js'; | ||
export { type FromHexErrorType, type FromHexParameters, type FromHexReturnType, type HexToBigIntErrorType, type HexToBigIntOptions, type HexToBooleanErrorType, type HexToBooleanOptions, type HexToNumberErrorType, type HexToNumberOptions, type HexToStringErrorType, type HexToStringOptions, fromHex, fromHex as to, hexToBigInt, hexToBigInt as toBigInt, HexToBoolean, HexToBoolean as toBoolean, hexToNumber, hexToNumber as toNumber, hexToString, hexToString as toString, } from './internal/hex/fromHex.js'; | ||
export { type FromHexErrorType, type FromHexParameters, type FromHexReturnType, type HexToBigIntErrorType, type HexToBigIntOptions, type HexToBooleanErrorType, type HexToBooleanOptions, type HexToNumberErrorType, type HexToNumberOptions, type HexToStringErrorType, type HexToStringOptions, fromHex, fromHex as to, hexToBigInt, hexToBigInt as toBigInt, hexToBoolean, hexToBoolean as toBoolean, hexToNumber, hexToNumber as toNumber, hexToString, hexToString as toString, } from './internal/hex/fromHex.js'; | ||
export { type HexToBytesErrorType, type HexToBytesOptions, hexToBytes, hexToBytes as toBytes, } from './internal/bytes/toBytes.js'; | ||
@@ -10,0 +11,0 @@ export { type BoolToHexErrorType, type BoolToHexOptions, type BytesToHexErrorType, type BytesToHexOptions, type NumberToHexErrorType, type NumberToHexOptions, type StringToHexErrorType, type StringToHexOptions, type ToHexErrorType, type ToHexParameters, boolToHex, boolToHex as fromBool, bytesToHex, bytesToHex as fromBytes, numberToHex, numberToHex as fromNumber, stringToHex, stringToHex as fromString, toHex, toHex as from, } from './internal/hex/toHex.js'; |
@@ -0,1 +1,2 @@ | ||
export { concat, } from './internal/data/concat.js'; | ||
export { isHex, } from './internal/data/isHex.js'; | ||
@@ -7,5 +8,5 @@ export { isBytesEqual as isEqual, } from './internal/data/isBytesEqual.js'; | ||
export { trimLeft, trimRight, } from './internal/data/trim.js'; | ||
export { fromHex, fromHex as to, hexToBigInt, hexToBigInt as toBigInt, HexToBoolean, HexToBoolean as toBoolean, hexToNumber, hexToNumber as toNumber, hexToString, hexToString as toString, } from './internal/hex/fromHex.js'; | ||
export { fromHex, fromHex as to, hexToBigInt, hexToBigInt as toBigInt, hexToBoolean, hexToBoolean as toBoolean, hexToNumber, hexToNumber as toNumber, hexToString, hexToString as toString, } from './internal/hex/fromHex.js'; | ||
export { hexToBytes, hexToBytes as toBytes, } from './internal/bytes/toBytes.js'; | ||
export { boolToHex, boolToHex as fromBool, bytesToHex, bytesToHex as fromBytes, numberToHex, numberToHex as fromNumber, stringToHex, stringToHex as fromString, toHex, toHex as from, } from './internal/hex/toHex.js'; | ||
//# sourceMappingURL=Hex.js.map |
@@ -77,3 +77,3 @@ import { type HexToBytesErrorType } from '../bytes/toBytes.js'; | ||
*/ | ||
export declare function HexToBoolean(hex_: Hex, options?: HexToBooleanOptions): boolean; | ||
export declare function hexToBoolean(hex_: Hex, options?: HexToBooleanOptions): boolean; | ||
export type HexToNumberOptions = HexToBigIntOptions; | ||
@@ -80,0 +80,0 @@ export type HexToNumberErrorType = HexToBigIntErrorType | ErrorType; |
@@ -36,3 +36,3 @@ import { hexToBytes } from '../bytes/toBytes.js'; | ||
if (to === 'boolean') | ||
return HexToBoolean(hex, options); | ||
return hexToBoolean(hex, options); | ||
if (to === 'bytes') | ||
@@ -81,3 +81,3 @@ return hexToBytes(hex, options); | ||
*/ | ||
export function HexToBoolean(hex_, options = {}) { | ||
export function hexToBoolean(hex_, options = {}) { | ||
let hex = hex_; | ||
@@ -84,0 +84,0 @@ if (options.size) { |
/** @internal */ | ||
export declare const version = "0.0.0-20240814T040617"; | ||
export declare const version = "0.0.0-20240814T041200"; | ||
//# sourceMappingURL=version.d.ts.map |
/** @internal */ | ||
export const version = '0.0.0-20240814T040617'; | ||
export const version = '0.0.0-20240814T041200'; | ||
//# sourceMappingURL=version.js.map |
export { | ||
type ConcatErrorType, | ||
type ConcatReturnType, | ||
concat, | ||
} from './internal/data/concat.js' | ||
export { | ||
type IsBytesErrorType, | ||
@@ -3,0 +9,0 @@ isBytes, |
10
Hex.ts
export { | ||
type ConcatErrorType, | ||
type ConcatReturnType, | ||
concat, | ||
} from './internal/data/concat.js' | ||
export { | ||
type IsHexErrorType, | ||
@@ -55,4 +61,4 @@ isHex, | ||
hexToBigInt as toBigInt, | ||
HexToBoolean, | ||
HexToBoolean as toBoolean, | ||
hexToBoolean, | ||
hexToBoolean as toBoolean, | ||
hexToNumber, | ||
@@ -59,0 +65,0 @@ hexToNumber as toNumber, |
@@ -78,3 +78,3 @@ import { type HexToBytesErrorType, hexToBytes } from '../bytes/toBytes.js' | ||
if (to === 'boolean') | ||
return HexToBoolean(hex, options) as FromHexReturnType<to> | ||
return hexToBoolean(hex, options) as FromHexReturnType<to> | ||
if (to === 'bytes') return hexToBytes(hex, options) as FromHexReturnType<to> | ||
@@ -148,3 +148,3 @@ throw new InvalidTypeError(to) | ||
*/ | ||
export function HexToBoolean( | ||
export function hexToBoolean( | ||
hex_: Hex, | ||
@@ -151,0 +151,0 @@ options: HexToBooleanOptions = {}, |
{ | ||
"name": "ox", | ||
"description": "Ethereum Standard Library", | ||
"version": "0.0.0-20240814T040617", | ||
"version": "0.0.0-20240814T041200", | ||
"main": "./_cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "./_esm/index.js", |
/** @internal */ | ||
export const version = '0.0.0-20240814T040617' | ||
export const version = '0.0.0-20240814T041200' |
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
393923
6563