@proton/wrap-constants 0.2.114 → 0.2.115

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.js CHANGED
@@ -1895,7 +1895,7 @@ var wrapParser = z10.object({
1895
1895
 
1896
1896
  // src/parsers/dex.ts
1897
1897
  var z11 = __toESM(require("zod"));
1898
- var createLimit = (def, max) => z11.string().default(String(def)).refine((n) => +n <= max, "Max limit is 250");
1898
+ var createLimit = (def, max) => z11.string().default(String(def)).refine((n) => +n <= max, `Limit must be between 0 and ${max}`);
1899
1899
  var ohlcvParser = z11.object({
1900
1900
  time: z11.number(),
1901
1901
  open: z11.number(),
package/dist/index.mjs CHANGED
@@ -1753,7 +1753,7 @@ var wrapParser = z10.object({
1753
1753
 
1754
1754
  // src/parsers/dex.ts
1755
1755
  import * as z11 from "zod";
1756
- var createLimit = (def, max) => z11.string().default(String(def)).refine((n) => +n <= max, "Max limit is 250");
1756
+ var createLimit = (def, max) => z11.string().default(String(def)).refine((n) => +n <= max, `Limit must be between 0 and ${max}`);
1757
1757
  var ohlcvParser = z11.object({
1758
1758
  time: z11.number(),
1759
1759
  open: z11.number(),
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.114",
8
+ "version": "0.2.115",
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": "6cb7d77e5e2964a4d350fd1a07d7e5b57e272d79"
43
+ "gitHead": "d9f48cc09e3c3afe65480ba158c42979d85e878d"
44
44
  }
@@ -5,7 +5,7 @@ const createLimit = (def: number, max: number) =>
5
5
  z
6
6
  .string()
7
7
  .default(String(def))
8
- .refine((n) => +n <= max, "Max limit is 250");
8
+ .refine((n) => +n <= max, `Limit must be between 0 and ${max}`);
9
9
 
10
10
  /**
11
11
  * OHLCV