@proton/wrap-constants 0.2.150 → 0.2.151

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 CHANGED
@@ -8341,7 +8341,7 @@ declare const getLeaderboardParser: z.ZodObject<{
8341
8341
  market_ids: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodNumber]>, number[], number | number[]>, number[], number | number[]>;
8342
8342
  from: z.ZodString;
8343
8343
  to: z.ZodString;
8344
- exclude_zero_fee: z.ZodDefault<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
8344
+ exclude_zero_fee: z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">]>>;
8345
8345
  }, "strip", z.ZodTypeAny, {
8346
8346
  from: string;
8347
8347
  to: string;
@@ -8351,7 +8351,7 @@ declare const getLeaderboardParser: z.ZodObject<{
8351
8351
  from: string;
8352
8352
  to: string;
8353
8353
  market_ids: (number | number[]) & (number | number[] | undefined);
8354
- exclude_zero_fee?: "true" | "false" | undefined;
8354
+ exclude_zero_fee?: boolean | "true" | "false" | undefined;
8355
8355
  }>;
8356
8356
  declare type GetLeaderboard = z.input<typeof getLeaderboardParser>;
8357
8357
  declare type GetLeaderboardParsed = z.output<typeof getLeaderboardParser>;
package/dist/index.js CHANGED
@@ -1903,7 +1903,7 @@ var wrapParser = z10.object({
1903
1903
 
1904
1904
  // src/parsers/dex.ts
1905
1905
  var z11 = __toESM(require("zod"));
1906
- var booleanParamSchema = z11.enum(["true", "false"]).transform((value) => value === "true");
1906
+ var booleanParamSchema = z11.boolean().or(z11.enum(["true", "false"]).transform((value) => value === "true"));
1907
1907
  var createLimit = (base, max) => z11.coerce.number().default(base).refine((n) => +n > 0 && +n <= max, `Limit must be between 0 and ${max}`);
1908
1908
  var createOffset = (base) => z11.coerce.number().default(base);
1909
1909
  var ordinalOrderIdsParser = z11.array(z11.string()).or(z11.string()).optional().transform((oids) => {
package/dist/index.mjs CHANGED
@@ -1751,7 +1751,7 @@ var wrapParser = z10.object({
1751
1751
 
1752
1752
  // src/parsers/dex.ts
1753
1753
  import * as z11 from "zod";
1754
- var booleanParamSchema = z11.enum(["true", "false"]).transform((value) => value === "true");
1754
+ var booleanParamSchema = z11.boolean().or(z11.enum(["true", "false"]).transform((value) => value === "true"));
1755
1755
  var createLimit = (base, max) => z11.coerce.number().default(base).refine((n) => +n > 0 && +n <= max, `Limit must be between 0 and ${max}`);
1756
1756
  var createOffset = (base) => z11.coerce.number().default(base);
1757
1757
  var ordinalOrderIdsParser = z11.array(z11.string()).or(z11.string()).optional().transform((oids) => {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.150",
8
+ "version": "0.2.151",
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": "ab48ebbe19661adc5d2b8b0bd8b9f7d9c10abfb0"
43
+ "gitHead": "a734bfebd5695f8647f35c3c128ecbc7a0c588cb"
44
44
  }
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod";
2
2
  import { accountRamDeltaParser, authorizationParser } from "./base";
3
3
 
4
- const booleanParamSchema = z.enum(["true", "false"]).transform((value) => value === "true")
4
+ const booleanParamSchema = z.boolean().or(z.enum(["true", "false"]).transform((value) => value === "true"))
5
5
 
6
6
  const createLimit = (base: number, max: number) =>
7
7
  z.coerce