@xylabs/hex 4.12.44 → 4.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/neutral/index.d.ts +94 -0
  2. package/package.json +7 -7
  3. package/dist/types/address.d.ts +0 -9
  4. package/dist/types/address.d.ts.map +0 -1
  5. package/dist/types/assert.d.ts +0 -5
  6. package/dist/types/assert.d.ts.map +0 -1
  7. package/dist/types/hash.d.ts +0 -11
  8. package/dist/types/hash.d.ts.map +0 -1
  9. package/dist/types/hex/as.d.ts +0 -5
  10. package/dist/types/hex/as.d.ts.map +0 -1
  11. package/dist/types/hex/from/from.d.ts +0 -8
  12. package/dist/types/hex/from/from.d.ts.map +0 -1
  13. package/dist/types/hex/from/fromArrayBuffer.d.ts +0 -8
  14. package/dist/types/hex/from/fromArrayBuffer.d.ts.map +0 -1
  15. package/dist/types/hex/from/fromBigInt.d.ts +0 -8
  16. package/dist/types/hex/from/fromBigInt.d.ts.map +0 -1
  17. package/dist/types/hex/from/fromHexString.d.ts +0 -3
  18. package/dist/types/hex/from/fromHexString.d.ts.map +0 -1
  19. package/dist/types/hex/from/fromNumber.d.ts +0 -3
  20. package/dist/types/hex/from/fromNumber.d.ts.map +0 -1
  21. package/dist/types/hex/from/index.d.ts +0 -6
  22. package/dist/types/hex/from/index.d.ts.map +0 -1
  23. package/dist/types/hex/index.d.ts +0 -10
  24. package/dist/types/hex/index.d.ts.map +0 -1
  25. package/dist/types/hex/is.d.ts +0 -3
  26. package/dist/types/hex/is.d.ts.map +0 -1
  27. package/dist/types/hex/isHexZero.d.ts +0 -2
  28. package/dist/types/hex/isHexZero.d.ts.map +0 -1
  29. package/dist/types/hex/legacy.d.ts +0 -2
  30. package/dist/types/hex/legacy.d.ts.map +0 -1
  31. package/dist/types/hex/model.d.ts +0 -8
  32. package/dist/types/hex/model.d.ts.map +0 -1
  33. package/dist/types/hex/nibble.d.ts +0 -3
  34. package/dist/types/hex/nibble.d.ts.map +0 -1
  35. package/dist/types/hex/regex.d.ts +0 -3
  36. package/dist/types/hex/regex.d.ts.map +0 -1
  37. package/dist/types/hex/to.d.ts +0 -8
  38. package/dist/types/hex/to.d.ts.map +0 -1
  39. package/dist/types/hexToBigInt.d.ts +0 -3
  40. package/dist/types/hexToBigInt.d.ts.map +0 -1
  41. package/dist/types/index.d.ts +0 -5
  42. package/dist/types/index.d.ts.map +0 -1
@@ -0,0 +1,94 @@
1
+ export declare type Address = Exclude<Hex, 'reserved-address-value'>;
2
+
3
+ export declare function asAddress(value: unknown): Address | undefined;
4
+
5
+ export declare function asAddress(value: unknown, assert: AssertConfig): Address;
6
+
7
+ export declare function asHash(value: unknown): Hash | undefined;
8
+
9
+ export declare function asHash(value: unknown, assert: AssertConfig): Hash;
10
+
11
+ export declare function asHex(value: unknown): Hex | undefined;
12
+
13
+ export declare function asHex(value: unknown, assert: AssertConfig): Hex;
14
+
15
+ declare type AssertCallback = (value: unknown, message: string) => string | boolean;
16
+
17
+ declare type AssertConfig = string | AssertCallback | boolean;
18
+
19
+ export declare const bitsToNibbles: (value: number) => number;
20
+
21
+ export declare type Hash = Exclude<Hex, 'reserved-hash-value'>;
22
+
23
+ export declare type HashBitLength = 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096;
24
+
25
+ export declare const HashBitLength: HashBitLength[];
26
+
27
+ export declare type Hex = Exclude<Lowercase<string>, 'reserved-hex-value'>;
28
+
29
+ /** Configuration of validation and output format */
30
+ export declare interface HexConfig {
31
+ bitLength?: number;
32
+ byteSize?: number;
33
+ prefix?: boolean;
34
+ }
35
+
36
+ /** Takes unknown value and tries our best to convert it to a hex string */
37
+ export declare const hexFrom: (
38
+ /** Supported types are string, number, bigint, and ArrayBuffer */
39
+ value: string | number | bigint | ArrayBufferLike,
40
+ /** Configuration of output format and validation */
41
+ config?: HexConfig) => Hex;
42
+
43
+ /** Convert an ArrayBuffer to a hex string */
44
+ export declare const hexFromArrayBuffer: (
45
+ /** The buffer to be converted */
46
+ buffer: ArrayBufferLike,
47
+ /** Configuration of output format and validation */
48
+ config?: HexConfig) => Hex;
49
+
50
+ /** Convert a bigint to a hex string */
51
+ export declare const hexFromBigInt: (
52
+ /** The bigint to be converted */
53
+ value: bigint,
54
+ /** Configuration of output format and validation */
55
+ config?: HexConfig) => Hex;
56
+
57
+ export declare const hexFromHexString: (value: string, config?: HexConfig) => Hex;
58
+
59
+ export declare const hexFromNumber: (value: number, config?: HexConfig) => Hex;
60
+
61
+ export declare const hexRegex: RegExp;
62
+
63
+ export declare const hexRegexWithPrefix: RegExp;
64
+
65
+ export declare function hexToBigInt(hex: Hex): bigint;
66
+
67
+ export declare const isAddress: (value: unknown, config?: HexConfig) => value is Address;
68
+
69
+ export declare const isHash: (value: unknown, bitLength?: HashBitLength) => value is Hash;
70
+
71
+ export declare const isHashBitLength: (value: unknown) => value is HashBitLength;
72
+
73
+ export declare const isHex: (value: unknown, config?: HexConfig) => value is Hex;
74
+
75
+ export declare const isHexZero: (value?: string) => boolean | undefined;
76
+
77
+ export declare const nibblesToBits: (value: number) => number;
78
+
79
+ export declare const toAddress: (value: string | number | bigint | ArrayBufferLike, config?: HexConfig) => Lowercase<string>;
80
+
81
+ /** takes any value and tries our best to convert it to a hex string */
82
+ export declare const toHex: (
83
+ /** Supported types are string, number, bigint, and ArrayBuffer */
84
+ value: string | number | bigint | ArrayBufferLike,
85
+ /** Configuration of output format and validation */
86
+ config?: HexConfig) => Lowercase<string>;
87
+
88
+ export declare const toHexLegacy: (buffer: ArrayBuffer) => string;
89
+
90
+ export declare const ZERO_ADDRESS: Address;
91
+
92
+ export declare const ZERO_HASH: Hash;
93
+
94
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/hex",
3
- "version": "4.12.44",
3
+ "version": "4.13.0",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "hex",
@@ -28,23 +28,23 @@
28
28
  "type": "module",
29
29
  "exports": {
30
30
  ".": {
31
- "types": "./dist/types/index.d.ts",
31
+ "types": "./dist/neutral/index.d.ts",
32
32
  "default": "./dist/neutral/index.mjs"
33
33
  },
34
34
  "./package.json": "./package.json"
35
35
  },
36
36
  "module": "./dist/neutral/index.mjs",
37
- "types": "./dist/types/index.d.ts",
37
+ "types": "./dist/neutral/index.d.ts",
38
38
  "workspaces": [
39
39
  "packages/**/*"
40
40
  ],
41
41
  "dependencies": {
42
- "@xylabs/typeof": "^4.12.44"
42
+ "@xylabs/typeof": "^4.13.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
46
- "@xylabs/tsconfig": "^6.5.12",
47
- "@xylabs/vitest-extended": "^4.12.44",
45
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.7",
46
+ "@xylabs/tsconfig": "^7.0.0-rc.7",
47
+ "@xylabs/vitest-extended": "^4.13.0",
48
48
  "typescript": "^5.8.3",
49
49
  "vitest": "^3.2.4"
50
50
  },
@@ -1,9 +0,0 @@
1
- import type { AssertConfig } from './assert.ts';
2
- import type { Hex, HexConfig } from './hex/index.ts';
3
- export type Address = Exclude<Hex, 'reserved-address-value'>;
4
- export declare const ZERO_ADDRESS: Address;
5
- export declare const toAddress: (value: string | number | bigint | ArrayBufferLike, config?: HexConfig) => Lowercase<string>;
6
- export declare const isAddress: (value: unknown, config?: HexConfig) => value is Address;
7
- export declare function asAddress(value: unknown): Address | undefined;
8
- export declare function asAddress(value: unknown, assert: AssertConfig): Address;
9
- //# sourceMappingURL=address.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/address.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAKpD,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,wBAAwB,CAAC,CAAA;AAE5D,eAAO,MAAM,YAAY,EAAE,OAA6D,CAAA;AAExF,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe,EAAE,SAAQ,SAAc,sBAKlG,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,EAAE,SAAQ,SAAc,KAAG,KAAK,IAAI,OAG3E,CAAA;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;AAC9D,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAA"}
@@ -1,5 +0,0 @@
1
- type AssertCallback = (value: unknown, message: string) => string | boolean;
2
- export type AssertConfig = string | AssertCallback | boolean;
3
- export declare const assertError: (value: unknown, assert: AssertConfig | undefined, defaultMessage: string) => undefined;
4
- export {};
5
- //# sourceMappingURL=assert.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../src/assert.ts"],"names":[],"mappings":"AAEA,KAAK,cAAc,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,OAAO,CAAA;AAE3E,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,cAAc,GAAG,OAAO,CAAA;AAE5D,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,EAAE,QAAQ,YAAY,GAAG,SAAS,EAAE,gBAAgB,MAAM,cAcnG,CAAA"}
@@ -1,11 +0,0 @@
1
- import type { AssertConfig } from './assert.ts';
2
- import type { Hex } from './hex/index.ts';
3
- export declare const ZERO_HASH: Hash;
4
- export type HashBitLength = 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096;
5
- export declare const HashBitLength: HashBitLength[];
6
- export declare const isHashBitLength: (value: unknown) => value is HashBitLength;
7
- export type Hash = Exclude<Hex, 'reserved-hash-value'>;
8
- export declare const isHash: (value: unknown, bitLength?: HashBitLength) => value is Hash;
9
- export declare function asHash(value: unknown): Hash | undefined;
10
- export declare function asHash(value: unknown, assert: AssertConfig): Hash;
11
- //# sourceMappingURL=hash.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/hash.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAGzC,eAAO,MAAM,SAAS,EAAE,IAAkF,CAAA;AAE1G,MAAM,MAAM,aAAa,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAC1E,eAAO,MAAM,aAAa,EAAE,aAAa,EAA8C,CAAA;AAEvF,eAAO,MAAM,eAAe,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,aAEzD,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAA;AACtD,eAAO,MAAM,MAAM,GAAI,OAAO,OAAO,EAAE,YAAW,aAAmB,KAAG,KAAK,IAAI,IAEhF,CAAA;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAA;AACxD,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { AssertConfig } from '../assert.ts';
2
- import type { Hex } from './model.ts';
3
- export declare function asHex(value: unknown): Hex | undefined;
4
- export declare function asHex(value: unknown, assert: AssertConfig): Hex;
5
- //# sourceMappingURL=as.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"as.d.ts","sourceRoot":"","sources":["../../../src/hex/as.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAIhD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAErC,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,GAAG,GAAG,SAAS,CAAA;AACtD,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,GAAG,GAAG,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { Hex, HexConfig } from '../model.ts';
2
- /** Takes unknown value and tries our best to convert it to a hex string */
3
- export declare const hexFrom: (
4
- /** Supported types are string, number, bigint, and ArrayBuffer */
5
- value: string | number | bigint | ArrayBufferLike,
6
- /** Configuration of output format and validation */
7
- config?: HexConfig) => Hex;
8
- //# sourceMappingURL=from.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"from.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/from.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAMjD,2EAA2E;AAC3E,eAAO,MAAM,OAAO;AAClB,kEAAkE;AAClE,OAAO,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe;AACjD,oDAAoD;AACpD,SAAS,SAAS,KACjB,GAkBF,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { Hex, HexConfig } from '../model.ts';
2
- /** Convert an ArrayBuffer to a hex string */
3
- export declare const hexFromArrayBuffer: (
4
- /** The buffer to be converted */
5
- buffer: ArrayBufferLike,
6
- /** Configuration of output format and validation */
7
- config?: HexConfig) => Hex;
8
- //# sourceMappingURL=fromArrayBuffer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fromArrayBuffer.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/fromArrayBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGjD,6CAA6C;AAC7C,eAAO,MAAM,kBAAkB;AAC7B,iCAAiC;AACjC,QAAQ,eAAe;AACvB,oDAAoD;AACpD,SAAS,SAAS,KACjB,GAGF,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { Hex, HexConfig } from '../model.ts';
2
- /** Convert a bigint to a hex string */
3
- export declare const hexFromBigInt: (
4
- /** The bigint to be converted */
5
- value: bigint,
6
- /** Configuration of output format and validation */
7
- config?: HexConfig) => Hex;
8
- //# sourceMappingURL=fromBigInt.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fromBigInt.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/fromBigInt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGjD,uCAAuC;AACvC,eAAO,MAAM,aAAa;AACxB,iCAAiC;AACjC,OAAO,MAAM;AACb,oDAAoD;AACpD,SAAQ,SAAc,KACrB,GAGF,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { Hex, HexConfig } from '../model.ts';
2
- export declare const hexFromHexString: (value: string, config?: HexConfig) => Hex;
3
- //# sourceMappingURL=fromHexString.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fromHexString.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/fromHexString.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGjD,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,EAAE,SAAQ,SAAc,KAAG,GAaxE,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { Hex, HexConfig } from '../model.ts';
2
- export declare const hexFromNumber: (value: number, config?: HexConfig) => Hex;
3
- //# sourceMappingURL=fromNumber.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fromNumber.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/fromNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGjD,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,EAAE,SAAS,SAAS,KAAG,GAEjE,CAAA"}
@@ -1,6 +0,0 @@
1
- export * from './from.ts';
2
- export * from './fromArrayBuffer.ts';
3
- export * from './fromBigInt.ts';
4
- export * from './fromHexString.ts';
5
- export * from './fromNumber.ts';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hex/from/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA"}
@@ -1,10 +0,0 @@
1
- export * from './as.ts';
2
- export * from './from/index.ts';
3
- export * from './is.ts';
4
- export * from './isHexZero.ts';
5
- export * from './legacy.ts';
6
- export * from './model.ts';
7
- export * from './nibble.ts';
8
- export * from './regex.ts';
9
- export * from './to.ts';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hex/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { Hex, HexConfig } from './model.ts';
2
- export declare const isHex: (value: unknown, config?: HexConfig) => value is Hex;
3
- //# sourceMappingURL=is.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is.d.ts","sourceRoot":"","sources":["../../../src/hex/is.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAIhD,eAAO,MAAM,KAAK,GAAI,OAAO,OAAO,EAAE,SAAS,SAAS,KAAG,KAAK,IAAI,GAWnE,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const isHexZero: (value?: string) => boolean | undefined;
2
- //# sourceMappingURL=isHexZero.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isHexZero.d.ts","sourceRoot":"","sources":["../../../src/hex/isHexZero.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,wBAEvC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const toHexLegacy: (buffer: ArrayBuffer) => string;
2
- //# sourceMappingURL=legacy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../../../src/hex/legacy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,QAAQ,WAAW,WAE9C,CAAA"}
@@ -1,8 +0,0 @@
1
- export type Hex = Exclude<Lowercase<string>, 'reserved-hex-value'>;
2
- /** Configuration of validation and output format */
3
- export interface HexConfig {
4
- bitLength?: number;
5
- byteSize?: number;
6
- prefix?: boolean;
7
- }
8
- //# sourceMappingURL=model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/hex/model.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC,CAAA;AAElE,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB"}
@@ -1,3 +0,0 @@
1
- export declare const bitsToNibbles: (value: number) => number;
2
- export declare const nibblesToBits: (value: number) => number;
3
- //# sourceMappingURL=nibble.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nibble.d.ts","sourceRoot":"","sources":["../../../src/hex/nibble.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAI7C,CAAA;AAGD,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAE7C,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const hexRegex: RegExp;
2
- export declare const hexRegexWithPrefix: RegExp;
3
- //# sourceMappingURL=regex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regex.d.ts","sourceRoot":"","sources":["../../../src/hex/regex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,QAAgB,CAAA;AACrC,eAAO,MAAM,kBAAkB,QAAiB,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { HexConfig } from './model.ts';
2
- /** takes any value and tries our best to convert it to a hex string */
3
- export declare const toHex: (
4
- /** Supported types are string, number, bigint, and ArrayBuffer */
5
- value: string | number | bigint | ArrayBufferLike,
6
- /** Configuration of output format and validation */
7
- config?: HexConfig) => Lowercase<string>;
8
- //# sourceMappingURL=to.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"to.d.ts","sourceRoot":"","sources":["../../../src/hex/to.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,uEAAuE;AACvE,eAAO,MAAM,KAAK;AAChB,kEAAkE;AAClE,OAAO,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe;AACjD,oDAAoD;AACpD,SAAQ,SAAc,sBAIvB,CAAA"}
@@ -1,3 +0,0 @@
1
- import { type Hex } from './hex/index.ts';
2
- export declare function hexToBigInt(hex: Hex): bigint;
3
- //# sourceMappingURL=hexToBigInt.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hexToBigInt.d.ts","sourceRoot":"","sources":["../../src/hexToBigInt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAoB,MAAM,gBAAgB,CAAA;AAE3D,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAE5C"}
@@ -1,5 +0,0 @@
1
- export * from './address.ts';
2
- export * from './hash.ts';
3
- export * from './hex/index.ts';
4
- export * from './hexToBigInt.ts';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA"}