@acala-network/chopsticks 0.9.3-1 → 0.9.3
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/cjs/schema/index.js
CHANGED
|
@@ -38,7 +38,10 @@ const zHex = _zod.z.custom((val)=>/^0x\w+$/.test(val));
|
|
|
38
38
|
const zHash = _zod.z.string().length(66).and(zHex);
|
|
39
39
|
const configSchema = _zod.z.object({
|
|
40
40
|
port: _zod.z.number().optional(),
|
|
41
|
-
endpoint: _zod.z.
|
|
41
|
+
endpoint: _zod.z.union([
|
|
42
|
+
_zod.z.string(),
|
|
43
|
+
_zod.z.array(_zod.z.string())
|
|
44
|
+
]).optional(),
|
|
42
45
|
block: _zod.z.union([
|
|
43
46
|
_zod.z.string().length(66).startsWith('0x'),
|
|
44
47
|
_zod.z.number(),
|
package/dist/esm/schema/index.js
CHANGED
|
@@ -9,7 +9,10 @@ export const zHex = z.custom((val)=>/^0x\w+$/.test(val));
|
|
|
9
9
|
export const zHash = z.string().length(66).and(zHex);
|
|
10
10
|
export const configSchema = z.object({
|
|
11
11
|
port: z.number().optional(),
|
|
12
|
-
endpoint: z.
|
|
12
|
+
endpoint: z.union([
|
|
13
|
+
z.string(),
|
|
14
|
+
z.array(z.string())
|
|
15
|
+
]).optional(),
|
|
13
16
|
block: z.union([
|
|
14
17
|
z.string().length(66).startsWith('0x'),
|
|
15
18
|
z.number(),
|
|
@@ -4,7 +4,7 @@ export declare const zHex: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>
|
|
|
4
4
|
export declare const zHash: z.ZodIntersection<z.ZodString, z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
5
5
|
export declare const configSchema: z.ZodObject<{
|
|
6
6
|
port: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
endpoint: z.ZodOptional<z.ZodString
|
|
7
|
+
endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
8
8
|
block: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
|
|
9
9
|
'build-block-mode': z.ZodOptional<z.ZodNativeEnum<typeof BuildBlockMode>>;
|
|
10
10
|
'import-storage': z.ZodOptional<z.ZodAny>;
|
|
@@ -79,7 +79,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
79
79
|
resume: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
80
80
|
}, "strict", z.ZodTypeAny, {
|
|
81
81
|
port?: number | undefined;
|
|
82
|
-
endpoint?: string | undefined;
|
|
82
|
+
endpoint?: string | string[] | undefined;
|
|
83
83
|
block?: string | number | null | undefined;
|
|
84
84
|
'build-block-mode'?: BuildBlockMode | undefined;
|
|
85
85
|
'import-storage'?: any;
|
|
@@ -108,7 +108,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
108
108
|
resume?: string | number | boolean | undefined;
|
|
109
109
|
}, {
|
|
110
110
|
port?: number | undefined;
|
|
111
|
-
endpoint?: string | undefined;
|
|
111
|
+
endpoint?: string | string[] | undefined;
|
|
112
112
|
block?: string | number | null | undefined;
|
|
113
113
|
'build-block-mode'?: BuildBlockMode | undefined;
|
|
114
114
|
'import-storage'?: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks",
|
|
3
|
-
"version": "0.9.3
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"author": "Acala Developers <hello@acala.network>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": "./chopsticks.cjs",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"docs:prep": "typedoc"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@acala-network/chopsticks-core": "0.9.3
|
|
18
|
-
"@acala-network/chopsticks-db": "0.9.3
|
|
17
|
+
"@acala-network/chopsticks-core": "0.9.3",
|
|
18
|
+
"@acala-network/chopsticks-db": "0.9.3",
|
|
19
19
|
"@pnpm/npm-conf": "^2.2.2",
|
|
20
20
|
"@polkadot/api-augment": "^10.10.1",
|
|
21
21
|
"@polkadot/types": "^10.10.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/ws": "^8.5.10",
|
|
42
42
|
"@types/yargs": "^17.0.32",
|
|
43
43
|
"typescript": "^5.2.2",
|
|
44
|
-
"vitest": "^0.
|
|
44
|
+
"vitest": "^1.0.0-beta.5"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"dist/esm/**",
|
|
@@ -71,6 +71,12 @@
|
|
|
71
71
|
"import": "./dist/esm/plugins/*.js",
|
|
72
72
|
"default": "./dist/esm/plugins/*.js"
|
|
73
73
|
},
|
|
74
|
+
"./utils/*": {
|
|
75
|
+
"types": "./dist/types/utils/*.d.ts",
|
|
76
|
+
"require": "./dist/cjs/utils/*.js",
|
|
77
|
+
"import": "./dist/esm/utils/*.js",
|
|
78
|
+
"default": "./dist/esm/utils/*.js"
|
|
79
|
+
},
|
|
74
80
|
"./package.json": "./package.json",
|
|
75
81
|
"./package.cjs.json": "./dist/cjs/package.json"
|
|
76
82
|
}
|