@proton/wrap-constants 0.2.123 → 0.2.124
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/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
- package/src/parsers/dex.ts +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -7197,15 +7197,15 @@ declare const depthParser: z.ZodObject<{
|
|
|
7197
7197
|
declare type Depth = z.infer<typeof depthParser>;
|
|
7198
7198
|
declare const getDepthParser: z.ZodObject<{
|
|
7199
7199
|
symbol: z.ZodString;
|
|
7200
|
-
step: z.
|
|
7200
|
+
step: z.ZodNumber;
|
|
7201
7201
|
limit: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, number | undefined>;
|
|
7202
7202
|
}, "strip", z.ZodTypeAny, {
|
|
7203
7203
|
symbol: string;
|
|
7204
7204
|
limit: number;
|
|
7205
|
-
step:
|
|
7205
|
+
step: number;
|
|
7206
7206
|
}, {
|
|
7207
7207
|
symbol: string;
|
|
7208
|
-
step:
|
|
7208
|
+
step: number;
|
|
7209
7209
|
limit?: number | undefined;
|
|
7210
7210
|
}>;
|
|
7211
7211
|
declare type GetDepth = z.infer<typeof getDepthParser>;
|
|
@@ -8209,17 +8209,17 @@ declare const leaderboardParser: z.ZodObject<{
|
|
|
8209
8209
|
}>;
|
|
8210
8210
|
declare type Leaderboard = z.infer<typeof leaderboardParser>;
|
|
8211
8211
|
declare const getLeaderboardParser: z.ZodObject<{
|
|
8212
|
-
market_ids: z.ZodArray<z.
|
|
8212
|
+
market_ids: z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodNumber]>, number[], number | number[]>;
|
|
8213
8213
|
from: z.ZodString;
|
|
8214
8214
|
to: z.ZodString;
|
|
8215
8215
|
}, "strip", z.ZodTypeAny, {
|
|
8216
8216
|
from: string;
|
|
8217
8217
|
to: string;
|
|
8218
|
-
market_ids:
|
|
8218
|
+
market_ids: number[];
|
|
8219
8219
|
}, {
|
|
8220
8220
|
from: string;
|
|
8221
8221
|
to: string;
|
|
8222
|
-
market_ids:
|
|
8222
|
+
market_ids: (number | number[]) & (number | number[] | undefined);
|
|
8223
8223
|
}>;
|
|
8224
8224
|
declare type GetLeaderboard = z.infer<typeof getLeaderboardParser>;
|
|
8225
8225
|
declare const getLeaderboardResponseParser: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -2044,7 +2044,7 @@ var depthParser = z11.object({
|
|
|
2044
2044
|
});
|
|
2045
2045
|
var getDepthParser = z11.object({
|
|
2046
2046
|
symbol: z11.string(),
|
|
2047
|
-
step: z11.
|
|
2047
|
+
step: z11.coerce.number(),
|
|
2048
2048
|
limit: createLimit(100, 250)
|
|
2049
2049
|
});
|
|
2050
2050
|
var getDepthResponseParser = z11.object({
|
|
@@ -2197,7 +2197,7 @@ var leaderboardParser = z11.object({
|
|
|
2197
2197
|
total: z11.number()
|
|
2198
2198
|
});
|
|
2199
2199
|
var getLeaderboardParser = z11.object({
|
|
2200
|
-
market_ids: z11.array(z11.
|
|
2200
|
+
market_ids: z11.array(z11.coerce.number()).or(z11.coerce.number()).transform((mids) => Array.isArray(mids) ? mids : [mids]),
|
|
2201
2201
|
from: z11.string(),
|
|
2202
2202
|
to: z11.string()
|
|
2203
2203
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1901,7 +1901,7 @@ var depthParser = z11.object({
|
|
|
1901
1901
|
});
|
|
1902
1902
|
var getDepthParser = z11.object({
|
|
1903
1903
|
symbol: z11.string(),
|
|
1904
|
-
step: z11.
|
|
1904
|
+
step: z11.coerce.number(),
|
|
1905
1905
|
limit: createLimit(100, 250)
|
|
1906
1906
|
});
|
|
1907
1907
|
var getDepthResponseParser = z11.object({
|
|
@@ -2054,7 +2054,7 @@ var leaderboardParser = z11.object({
|
|
|
2054
2054
|
total: z11.number()
|
|
2055
2055
|
});
|
|
2056
2056
|
var getLeaderboardParser = z11.object({
|
|
2057
|
-
market_ids: z11.array(z11.
|
|
2057
|
+
market_ids: z11.array(z11.coerce.number()).or(z11.coerce.number()).transform((mids) => Array.isArray(mids) ? mids : [mids]),
|
|
2058
2058
|
from: z11.string(),
|
|
2059
2059
|
to: z11.string()
|
|
2060
2060
|
});
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.124",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"resolutions": {
|
|
41
41
|
"typescript": "4.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d5ab0e1097ce68700f76fccbb8e96899f830f9c9"
|
|
44
44
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -213,7 +213,7 @@ export type Depth = z.infer<typeof depthParser>;
|
|
|
213
213
|
|
|
214
214
|
export const getDepthParser = z.object({
|
|
215
215
|
symbol: z.string(),
|
|
216
|
-
step: z.
|
|
216
|
+
step: z.coerce.number(),
|
|
217
217
|
limit: createLimit(100, 250),
|
|
218
218
|
});
|
|
219
219
|
export type GetDepth = z.infer<typeof getDepthParser>;
|
|
@@ -436,7 +436,10 @@ export const leaderboardParser = z.object({
|
|
|
436
436
|
export type Leaderboard = z.infer<typeof leaderboardParser>;
|
|
437
437
|
|
|
438
438
|
export const getLeaderboardParser = z.object({
|
|
439
|
-
market_ids: z
|
|
439
|
+
market_ids: z
|
|
440
|
+
.array(z.coerce.number())
|
|
441
|
+
.or(z.coerce.number())
|
|
442
|
+
.transform((mids) => (Array.isArray(mids) ? mids : [mids])),
|
|
440
443
|
from: z.string(),
|
|
441
444
|
to: z.string(),
|
|
442
445
|
});
|