@visulima/api-platform 1.1.2 → 1.1.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/chunk-AG2ROSSA.mjs +2 -0
  3. package/dist/{chunk-D5JLMBFH.mjs.map → chunk-AG2ROSSA.mjs.map} +1 -1
  4. package/dist/chunk-HONWWBY6.mjs +2 -0
  5. package/dist/{chunk-YR2QJYUL.mjs.map → chunk-HONWWBY6.mjs.map} +1 -1
  6. package/dist/chunk-JXD3457O.js +2 -0
  7. package/dist/chunk-JXD3457O.js.map +1 -0
  8. package/dist/chunk-M7LGAQP3.mjs +10 -0
  9. package/dist/{chunk-EGE7A4ZK.mjs.map → chunk-M7LGAQP3.mjs.map} +1 -1
  10. package/dist/chunk-OUWZ2PU5.js +2 -0
  11. package/dist/{chunk-JC4IRQUL.js.map → chunk-OUWZ2PU5.js.map} +0 -0
  12. package/dist/chunk-QIHOLJVA.js +2 -0
  13. package/dist/chunk-QIHOLJVA.js.map +1 -0
  14. package/dist/chunk-UI23SSBN.js +10 -0
  15. package/dist/chunk-UI23SSBN.js.map +1 -0
  16. package/dist/chunk-YOXCJZNX.mjs +2 -0
  17. package/dist/{chunk-5VRACIDE.mjs.map → chunk-YOXCJZNX.mjs.map} +0 -0
  18. package/dist/index-browser.js +1 -7
  19. package/dist/index-browser.mjs +1 -7
  20. package/dist/index-server.d.ts +1 -1
  21. package/dist/index-server.js +1 -452
  22. package/dist/index-server.js.map +1 -1
  23. package/dist/index-server.mjs +1 -452
  24. package/dist/index-server.mjs.map +1 -1
  25. package/dist/next/cli/index.js +3 -202
  26. package/dist/next/cli/index.js.map +1 -1
  27. package/dist/next/cli/index.mjs +3 -202
  28. package/dist/next/cli/index.mjs.map +1 -1
  29. package/dist/next/index-browser.js +1 -11
  30. package/dist/next/index-browser.mjs +1 -11
  31. package/dist/next/index-server.js +1 -75
  32. package/dist/next/index-server.js.map +1 -1
  33. package/dist/next/index-server.mjs +1 -75
  34. package/dist/next/index-server.mjs.map +1 -1
  35. package/package.json +2 -2
  36. package/dist/chunk-5VRACIDE.mjs +0 -10
  37. package/dist/chunk-CVURPKKG.js +0 -120
  38. package/dist/chunk-CVURPKKG.js.map +0 -1
  39. package/dist/chunk-D5JLMBFH.mjs +0 -284
  40. package/dist/chunk-EGE7A4ZK.mjs +0 -120
  41. package/dist/chunk-HOWWQBSN.js +0 -99
  42. package/dist/chunk-HOWWQBSN.js.map +0 -1
  43. package/dist/chunk-JC4IRQUL.js +0 -10
  44. package/dist/chunk-R6HXY2JR.js +0 -284
  45. package/dist/chunk-R6HXY2JR.js.map +0 -1
  46. package/dist/chunk-YR2QJYUL.mjs +0 -99
@@ -1,99 +0,0 @@
1
- import {
2
- __export
3
- } from "./chunk-5VRACIDE.mjs";
4
-
5
- // src/zod/index.ts
6
- var zod_exports = {};
7
- __export(zod_exports, {
8
- dateIn: () => dateIn,
9
- dateOut: () => dateOut
10
- });
11
- import { withGetType } from "zod-to-ts";
12
-
13
- // src/zod/date-in-schema.ts
14
- import {
15
- addIssueToContext,
16
- INVALID,
17
- ZodIssueCode,
18
- ZodParsedType,
19
- ZodType
20
- } from "zod";
21
- var zodDateInKind = "ZodDateIn";
22
- var isoDateRegex = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?)?Z?$/;
23
- var _ZodDateIn = class extends ZodType {
24
- _parse(input) {
25
- const { status, ctx } = this._processInputParams(input);
26
- if (ctx.parsedType !== ZodParsedType.string) {
27
- addIssueToContext(ctx, {
28
- code: ZodIssueCode.invalid_type,
29
- expected: ZodParsedType.string,
30
- received: ctx.parsedType
31
- });
32
- return INVALID;
33
- }
34
- if (!isoDateRegex.test(ctx.data)) {
35
- addIssueToContext(ctx, {
36
- code: ZodIssueCode.invalid_string,
37
- validation: "regex"
38
- });
39
- status.dirty();
40
- }
41
- const date = new Date(ctx.data);
42
- if (Number.isNaN(date.getTime())) {
43
- addIssueToContext(ctx, {
44
- code: ZodIssueCode.invalid_date
45
- });
46
- return INVALID;
47
- }
48
- return { status: status.value, value: date };
49
- }
50
- };
51
- var ZodDateIn = _ZodDateIn;
52
- ZodDateIn.create = () => new _ZodDateIn({
53
- typeName: zodDateInKind
54
- });
55
-
56
- // src/zod/date-out-schema.ts
57
- import {
58
- addIssueToContext as addIssueToContext2,
59
- INVALID as INVALID2,
60
- ZodIssueCode as ZodIssueCode2,
61
- ZodParsedType as ZodParsedType2,
62
- ZodType as ZodType2
63
- } from "zod";
64
- var zodDateOutKind = "ZodDateOut";
65
- var _ZodDateOut = class extends ZodType2 {
66
- _parse(input) {
67
- const { status, ctx } = this._processInputParams(input);
68
- if (ctx.parsedType !== ZodParsedType2.date) {
69
- addIssueToContext2(ctx, {
70
- code: ZodIssueCode2.invalid_type,
71
- expected: ZodParsedType2.date,
72
- received: ctx.parsedType
73
- });
74
- return INVALID2;
75
- }
76
- if (Number.isNaN(ctx.data.getTime())) {
77
- addIssueToContext2(ctx, {
78
- code: ZodIssueCode2.invalid_date
79
- });
80
- return INVALID2;
81
- }
82
- return { status: status.value, value: ctx.data.toISOString() };
83
- }
84
- };
85
- var ZodDateOut = _ZodDateOut;
86
- ZodDateOut.create = () => new _ZodDateOut({
87
- typeName: zodDateOutKind
88
- });
89
-
90
- // src/zod/index.ts
91
- var dateIn = (...parameters) => withGetType(ZodDateIn.create(...parameters), (ts) => ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword));
92
- var dateOut = (...parameters) => withGetType(ZodDateOut.create(...parameters), (ts) => ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword));
93
-
94
- export {
95
- dateIn,
96
- dateOut,
97
- zod_exports
98
- };
99
- //# sourceMappingURL=chunk-YR2QJYUL.mjs.map