@chainfuse/helpers 4.2.13 → 4.2.14
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.
- package/dist/crypto.d.mts +2 -2
- package/dist/cryptoInternals.d.mts +2 -2
- package/dist/suru.d.mts +6 -6
- package/package.json +3 -3
package/dist/crypto.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class CryptoHelpers {
|
|
2
|
-
static secretBytes(byteSize: number): Promise<Uint8Array<
|
|
3
|
-
static secretBytesSync(byteSize: number): Uint8Array<
|
|
2
|
+
static secretBytes(byteSize: number): Promise<Uint8Array<ArrayBuffer>>;
|
|
3
|
+
static secretBytesSync(byteSize: number): Uint8Array<ArrayBuffer>;
|
|
4
4
|
static base16secret(secretLength: number): Promise<string>;
|
|
5
5
|
static base62secret(secretLength: number): Promise<string>;
|
|
6
6
|
static getHashStreaming(algorithm: 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512', body: ReadableStream<Uint8Array>): Promise<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class CryptoHelpersInternals {
|
|
2
|
-
static node_secretBytes(byteSize: number): Promise<Uint8Array
|
|
3
|
-
static browser_secretBytes(byteSize: number): Uint8Array
|
|
2
|
+
static node_secretBytes(byteSize: number): Promise<Uint8Array<ArrayBuffer>>;
|
|
3
|
+
static browser_secretBytes(byteSize: number): Uint8Array<ArrayBuffer>;
|
|
4
4
|
private static internal_streamAsyncIterable;
|
|
5
5
|
static node_getHashStreaming(algorithm: 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512', body: ReadableStream<Uint8Array>): Promise<string>;
|
|
6
6
|
static browser_getHashStreaming(algorithm: 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512', body: ReadableStream<Uint8Array>): Promise<string>;
|
package/dist/suru.d.mts
CHANGED
|
@@ -49,8 +49,8 @@ export declare class SuruId {
|
|
|
49
49
|
version: z.ZodMiniDefault<z.ZodMiniEnum<typeof D0Version>>;
|
|
50
50
|
date: z.ZodMiniDefault<z.ZodMiniDate<Date>>;
|
|
51
51
|
shardType: z.ZodMiniDefault<z.ZodMiniEnum<typeof D0ShardType>>;
|
|
52
|
-
suffixRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.
|
|
53
|
-
stableRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.
|
|
52
|
+
suffixRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniTuple<readonly [z.ZodMiniNumberFormat], z.ZodMiniNumberFormat>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, z.ZodMiniPipe<z.ZodMiniBase64, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniPipe<z.ZodMiniBase64URL, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>]>>>;
|
|
53
|
+
stableRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniTuple<readonly [z.ZodMiniNumberFormat], z.ZodMiniNumberFormat>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, z.ZodMiniPipe<z.ZodMiniBase64, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniPipe<z.ZodMiniBase64URL, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>]>>>;
|
|
54
54
|
systemType: z.ZodMiniEnum<typeof D0SystemType>;
|
|
55
55
|
environment: z.ZodMiniEnum<typeof D0Environment>;
|
|
56
56
|
}, z.core.$strip>;
|
|
@@ -58,8 +58,8 @@ export declare class SuruId {
|
|
|
58
58
|
version: z.ZodMiniDefault<z.ZodMiniEnum<typeof D0Version>>;
|
|
59
59
|
date: z.ZodMiniDefault<z.ZodMiniDate<Date>>;
|
|
60
60
|
shardType: z.ZodMiniDefault<z.ZodMiniEnum<typeof D0ShardType>>;
|
|
61
|
-
suffixRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.
|
|
62
|
-
stableRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.
|
|
61
|
+
suffixRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniTuple<readonly [z.ZodMiniNumberFormat], z.ZodMiniNumberFormat>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, z.ZodMiniPipe<z.ZodMiniBase64, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniPipe<z.ZodMiniBase64URL, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>]>>>;
|
|
62
|
+
stableRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniTuple<readonly [z.ZodMiniNumberFormat], z.ZodMiniNumberFormat>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, z.ZodMiniPipe<z.ZodMiniBase64, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniPipe<z.ZodMiniBase64URL, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>]>>>;
|
|
63
63
|
systemType: z.ZodMiniEnum<typeof D0SystemType>;
|
|
64
64
|
environment: z.ZodMiniEnum<typeof D0Environment>;
|
|
65
65
|
locationJurisdiction: z.ZodMiniDefault<z.ZodMiniNullable<z.ZodMiniEnum<typeof DOJurisdictions>>>;
|
|
@@ -68,8 +68,8 @@ export declare class SuruId {
|
|
|
68
68
|
version: z.ZodMiniDefault<z.ZodMiniEnum<typeof D0Version>>;
|
|
69
69
|
date: z.ZodMiniDefault<z.ZodMiniDate<Date>>;
|
|
70
70
|
shardType: z.ZodMiniDefault<z.ZodMiniEnum<typeof D0ShardType>>;
|
|
71
|
-
suffixRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.
|
|
72
|
-
stableRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.
|
|
71
|
+
suffixRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniTuple<readonly [z.ZodMiniNumberFormat], z.ZodMiniNumberFormat>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, z.ZodMiniPipe<z.ZodMiniBase64, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniPipe<z.ZodMiniBase64URL, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>]>>>;
|
|
72
|
+
stableRandom: z.ZodMiniLazy<z.ZodMiniDefault<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniCustomStringFormat<"hex">, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniUnion<readonly [z.ZodMiniCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniCustom<ArrayBuffer, ArrayBuffer>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, ArrayBuffer>>, z.ZodMiniPipe<z.ZodMiniTuple<readonly [z.ZodMiniNumberFormat], z.ZodMiniNumberFormat>, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, [number, ...number[]]>>]>, z.ZodMiniPipe<z.ZodMiniBase64, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>, z.ZodMiniPipe<z.ZodMiniBase64URL, z.ZodMiniTransform<Uint8Array<ArrayBuffer>, string>>]>>>;
|
|
73
73
|
systemType: z.ZodMiniEnum<typeof D0SystemType>;
|
|
74
74
|
environment: z.ZodMiniEnum<typeof D0Environment>;
|
|
75
75
|
locationJurisdiction: z.ZodMiniDefault<z.ZodMiniNull>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainfuse/helpers",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "ChainFuse",
|
|
6
6
|
"homepage": "https://github.com/ChainFuse/packages/tree/main/packages/helpers#readme",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"prettier": "@demosjarco/prettier-config",
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@chainfuse/types": "^4.2.
|
|
83
|
+
"@chainfuse/types": "^4.2.8",
|
|
84
84
|
"@discordjs/rest": "^2.6.0",
|
|
85
85
|
"chalk": "^5.6.2",
|
|
86
86
|
"cloudflare": "^5.2.0",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@cloudflare/workers-types": "^4.20260120.0"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "7465800b60661c071d9ca65c41368bb474e6c94c"
|
|
96
96
|
}
|