@palmares/schemas 0.0.1

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 (219) hide show
  1. package/.turbo/turbo-build$colon$watch.log +424 -0
  2. package/.turbo/turbo-build.log +13 -0
  3. package/.turbo/turbo-build:watch.log +26 -0
  4. package/CHANGELOG.md +11 -0
  5. package/LICENSE +21 -0
  6. package/dist/cjs/src/adapter/fields/array.js +157 -0
  7. package/dist/cjs/src/adapter/fields/boolean.js +167 -0
  8. package/dist/cjs/src/adapter/fields/datetime.js +167 -0
  9. package/dist/cjs/src/adapter/fields/index.js +311 -0
  10. package/dist/cjs/src/adapter/fields/number.js +167 -0
  11. package/dist/cjs/src/adapter/fields/object.js +167 -0
  12. package/dist/cjs/src/adapter/fields/string.js +167 -0
  13. package/dist/cjs/src/adapter/fields/union.js +167 -0
  14. package/dist/cjs/src/adapter/index.js +198 -0
  15. package/dist/cjs/src/adapter/types.js +4 -0
  16. package/dist/cjs/src/compile.js +262 -0
  17. package/dist/cjs/src/conf.js +27 -0
  18. package/dist/cjs/src/constants.js +42 -0
  19. package/dist/cjs/src/domain.js +12 -0
  20. package/dist/cjs/src/exceptions.js +168 -0
  21. package/dist/cjs/src/index.js +365 -0
  22. package/dist/cjs/src/model.js +628 -0
  23. package/dist/cjs/src/parsers/convert-from-number.js +20 -0
  24. package/dist/cjs/src/parsers/convert-from-string.js +24 -0
  25. package/dist/cjs/src/parsers/index.js +25 -0
  26. package/dist/cjs/src/schema/array.js +890 -0
  27. package/dist/cjs/src/schema/boolean.js +826 -0
  28. package/dist/cjs/src/schema/datetime.js +778 -0
  29. package/dist/cjs/src/schema/index.js +17 -0
  30. package/dist/cjs/src/schema/number.js +960 -0
  31. package/dist/cjs/src/schema/object.js +999 -0
  32. package/dist/cjs/src/schema/schema.js +1788 -0
  33. package/dist/cjs/src/schema/string.js +948 -0
  34. package/dist/cjs/src/schema/types.js +4 -0
  35. package/dist/cjs/src/schema/union.js +952 -0
  36. package/dist/cjs/src/types.js +4 -0
  37. package/dist/cjs/src/utils.js +627 -0
  38. package/dist/cjs/src/validators/array.js +457 -0
  39. package/dist/cjs/src/validators/boolean.js +199 -0
  40. package/dist/cjs/src/validators/datetime.js +287 -0
  41. package/dist/cjs/src/validators/number.js +403 -0
  42. package/dist/cjs/src/validators/object.js +290 -0
  43. package/dist/cjs/src/validators/schema.js +318 -0
  44. package/dist/cjs/src/validators/string.js +439 -0
  45. package/dist/cjs/src/validators/types.js +4 -0
  46. package/dist/cjs/src/validators/union.js +232 -0
  47. package/dist/cjs/src/validators/utils.js +426 -0
  48. package/dist/cjs/tsconfig.types.tsbuildinfo +1 -0
  49. package/dist/cjs/types/adapter/fields/array.d.ts +20 -0
  50. package/dist/cjs/types/adapter/fields/array.d.ts.map +1 -0
  51. package/dist/cjs/types/adapter/fields/boolean.d.ts +25 -0
  52. package/dist/cjs/types/adapter/fields/boolean.d.ts.map +1 -0
  53. package/dist/cjs/types/adapter/fields/datetime.d.ts +25 -0
  54. package/dist/cjs/types/adapter/fields/datetime.d.ts.map +1 -0
  55. package/dist/cjs/types/adapter/fields/index.d.ts +31 -0
  56. package/dist/cjs/types/adapter/fields/index.d.ts.map +1 -0
  57. package/dist/cjs/types/adapter/fields/number.d.ts +25 -0
  58. package/dist/cjs/types/adapter/fields/number.d.ts.map +1 -0
  59. package/dist/cjs/types/adapter/fields/object.d.ts +25 -0
  60. package/dist/cjs/types/adapter/fields/object.d.ts.map +1 -0
  61. package/dist/cjs/types/adapter/fields/string.d.ts +25 -0
  62. package/dist/cjs/types/adapter/fields/string.d.ts.map +1 -0
  63. package/dist/cjs/types/adapter/fields/union.d.ts +25 -0
  64. package/dist/cjs/types/adapter/fields/union.d.ts.map +1 -0
  65. package/dist/cjs/types/adapter/index.d.ts +25 -0
  66. package/dist/cjs/types/adapter/index.d.ts.map +1 -0
  67. package/dist/cjs/types/adapter/types.d.ts +144 -0
  68. package/dist/cjs/types/adapter/types.d.ts.map +1 -0
  69. package/dist/cjs/types/compile.d.ts +3 -0
  70. package/dist/cjs/types/compile.d.ts.map +1 -0
  71. package/dist/cjs/types/conf.d.ts +16 -0
  72. package/dist/cjs/types/conf.d.ts.map +1 -0
  73. package/dist/cjs/types/constants.d.ts +6 -0
  74. package/dist/cjs/types/constants.d.ts.map +1 -0
  75. package/dist/cjs/types/domain.d.ts +21 -0
  76. package/dist/cjs/types/domain.d.ts.map +1 -0
  77. package/dist/cjs/types/exceptions.d.ts +13 -0
  78. package/dist/cjs/types/exceptions.d.ts.map +1 -0
  79. package/dist/cjs/types/index.d.ts +240 -0
  80. package/dist/cjs/types/index.d.ts.map +1 -0
  81. package/dist/cjs/types/model.d.ts +136 -0
  82. package/dist/cjs/types/model.d.ts.map +1 -0
  83. package/dist/cjs/types/parsers/convert-from-number.d.ts +15 -0
  84. package/dist/cjs/types/parsers/convert-from-number.d.ts.map +1 -0
  85. package/dist/cjs/types/parsers/convert-from-string.d.ts +9 -0
  86. package/dist/cjs/types/parsers/convert-from-string.d.ts.map +1 -0
  87. package/dist/cjs/types/parsers/index.d.ts +3 -0
  88. package/dist/cjs/types/parsers/index.d.ts.map +1 -0
  89. package/dist/cjs/types/schema/array.d.ts +429 -0
  90. package/dist/cjs/types/schema/array.d.ts.map +1 -0
  91. package/dist/cjs/types/schema/boolean.d.ts +501 -0
  92. package/dist/cjs/types/schema/boolean.d.ts.map +1 -0
  93. package/dist/cjs/types/schema/datetime.d.ts +474 -0
  94. package/dist/cjs/types/schema/datetime.d.ts.map +1 -0
  95. package/dist/cjs/types/schema/index.d.ts +4 -0
  96. package/dist/cjs/types/schema/index.d.ts.map +1 -0
  97. package/dist/cjs/types/schema/number.d.ts +667 -0
  98. package/dist/cjs/types/schema/number.d.ts.map +1 -0
  99. package/dist/cjs/types/schema/object.d.ts +450 -0
  100. package/dist/cjs/types/schema/object.d.ts.map +1 -0
  101. package/dist/cjs/types/schema/schema.d.ts +646 -0
  102. package/dist/cjs/types/schema/schema.d.ts.map +1 -0
  103. package/dist/cjs/types/schema/string.d.ts +606 -0
  104. package/dist/cjs/types/schema/string.d.ts.map +1 -0
  105. package/dist/cjs/types/schema/types.d.ts +70 -0
  106. package/dist/cjs/types/schema/types.d.ts.map +1 -0
  107. package/dist/cjs/types/schema/union.d.ts +388 -0
  108. package/dist/cjs/types/schema/union.d.ts.map +1 -0
  109. package/dist/cjs/types/types.d.ts +11 -0
  110. package/dist/cjs/types/types.d.ts.map +1 -0
  111. package/dist/cjs/types/utils.d.ts +79 -0
  112. package/dist/cjs/types/utils.d.ts.map +1 -0
  113. package/dist/cjs/types/validators/array.d.ts +8 -0
  114. package/dist/cjs/types/validators/array.d.ts.map +1 -0
  115. package/dist/cjs/types/validators/boolean.d.ts +4 -0
  116. package/dist/cjs/types/validators/boolean.d.ts.map +1 -0
  117. package/dist/cjs/types/validators/datetime.d.ts +7 -0
  118. package/dist/cjs/types/validators/datetime.d.ts.map +1 -0
  119. package/dist/cjs/types/validators/number.d.ts +10 -0
  120. package/dist/cjs/types/validators/number.d.ts.map +1 -0
  121. package/dist/cjs/types/validators/object.d.ts +6 -0
  122. package/dist/cjs/types/validators/object.d.ts.map +1 -0
  123. package/dist/cjs/types/validators/schema.d.ts +10 -0
  124. package/dist/cjs/types/validators/schema.d.ts.map +1 -0
  125. package/dist/cjs/types/validators/string.d.ts +12 -0
  126. package/dist/cjs/types/validators/string.d.ts.map +1 -0
  127. package/dist/cjs/types/validators/types.d.ts +2 -0
  128. package/dist/cjs/types/validators/types.d.ts.map +1 -0
  129. package/dist/cjs/types/validators/union.d.ts +4 -0
  130. package/dist/cjs/types/validators/union.d.ts.map +1 -0
  131. package/dist/cjs/types/validators/utils.d.ts +83 -0
  132. package/dist/cjs/types/validators/utils.d.ts.map +1 -0
  133. package/dist/esm/src/adapter/fields/array.js +13 -0
  134. package/dist/esm/src/adapter/fields/boolean.js +20 -0
  135. package/dist/esm/src/adapter/fields/datetime.js +20 -0
  136. package/dist/esm/src/adapter/fields/index.js +37 -0
  137. package/dist/esm/src/adapter/fields/number.js +20 -0
  138. package/dist/esm/src/adapter/fields/object.js +20 -0
  139. package/dist/esm/src/adapter/fields/string.js +20 -0
  140. package/dist/esm/src/adapter/fields/union.js +20 -0
  141. package/dist/esm/src/adapter/index.js +18 -0
  142. package/dist/esm/src/adapter/types.js +1 -0
  143. package/dist/esm/src/compile.js +10 -0
  144. package/dist/esm/src/conf.js +19 -0
  145. package/dist/esm/src/constants.js +5 -0
  146. package/dist/esm/src/domain.js +2 -0
  147. package/dist/esm/src/exceptions.js +15 -0
  148. package/dist/esm/src/index.js +160 -0
  149. package/dist/esm/src/model.js +255 -0
  150. package/dist/esm/src/parsers/convert-from-number.js +8 -0
  151. package/dist/esm/src/parsers/convert-from-string.js +14 -0
  152. package/dist/esm/src/parsers/index.js +2 -0
  153. package/dist/esm/src/schema/array.js +403 -0
  154. package/dist/esm/src/schema/boolean.js +465 -0
  155. package/dist/esm/src/schema/datetime.js +423 -0
  156. package/dist/esm/src/schema/index.js +3 -0
  157. package/dist/esm/src/schema/number.js +592 -0
  158. package/dist/esm/src/schema/object.js +464 -0
  159. package/dist/esm/src/schema/schema.js +728 -0
  160. package/dist/esm/src/schema/string.js +579 -0
  161. package/dist/esm/src/schema/types.js +1 -0
  162. package/dist/esm/src/schema/union.js +388 -0
  163. package/dist/esm/src/types.js +1 -0
  164. package/dist/esm/src/utils.js +175 -0
  165. package/dist/esm/src/validators/array.js +135 -0
  166. package/dist/esm/src/validators/boolean.js +35 -0
  167. package/dist/esm/src/validators/datetime.js +85 -0
  168. package/dist/esm/src/validators/number.js +162 -0
  169. package/dist/esm/src/validators/object.js +38 -0
  170. package/dist/esm/src/validators/schema.js +114 -0
  171. package/dist/esm/src/validators/string.js +174 -0
  172. package/dist/esm/src/validators/types.js +1 -0
  173. package/dist/esm/src/validators/union.js +38 -0
  174. package/dist/esm/src/validators/utils.js +120 -0
  175. package/package.json +48 -0
  176. package/src/adapter/fields/array.ts +31 -0
  177. package/src/adapter/fields/boolean.ts +48 -0
  178. package/src/adapter/fields/datetime.ts +49 -0
  179. package/src/adapter/fields/index.ts +72 -0
  180. package/src/adapter/fields/number.ts +49 -0
  181. package/src/adapter/fields/object.ts +49 -0
  182. package/src/adapter/fields/string.ts +49 -0
  183. package/src/adapter/fields/union.ts +49 -0
  184. package/src/adapter/index.ts +34 -0
  185. package/src/adapter/types.ts +261 -0
  186. package/src/compile.ts +14 -0
  187. package/src/conf.ts +27 -0
  188. package/src/constants.ts +9 -0
  189. package/src/domain.ts +3 -0
  190. package/src/exceptions.ts +17 -0
  191. package/src/index.ts +338 -0
  192. package/src/model.ts +501 -0
  193. package/src/parsers/convert-from-number.ts +13 -0
  194. package/src/parsers/convert-from-string.ts +19 -0
  195. package/src/parsers/index.ts +2 -0
  196. package/src/schema/array.ts +633 -0
  197. package/src/schema/boolean.ts +700 -0
  198. package/src/schema/datetime.ts +613 -0
  199. package/src/schema/index.ts +5 -0
  200. package/src/schema/number.ts +885 -0
  201. package/src/schema/object.ts +699 -0
  202. package/src/schema/schema.ts +1093 -0
  203. package/src/schema/string.ts +807 -0
  204. package/src/schema/types.ts +126 -0
  205. package/src/schema/union.ts +596 -0
  206. package/src/types.ts +13 -0
  207. package/src/utils.ts +322 -0
  208. package/src/validators/array.ts +164 -0
  209. package/src/validators/boolean.ts +46 -0
  210. package/src/validators/datetime.ts +113 -0
  211. package/src/validators/number.ts +188 -0
  212. package/src/validators/object.ts +55 -0
  213. package/src/validators/schema.ts +134 -0
  214. package/src/validators/string.ts +215 -0
  215. package/src/validators/types.ts +1 -0
  216. package/src/validators/union.ts +52 -0
  217. package/src/validators/utils.ts +200 -0
  218. package/tsconfig.json +9 -0
  219. package/tsconfig.types.json +10 -0
@@ -0,0 +1,424 @@
1
+
2
+ > @palmares/schemas@0.0.0 build:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
3
+ > pnpm run build:cjs:watch & pnpm run build:module:watch & pnpm run build:types:watch
4
+
5
+
6
+ > @palmares/schemas@0.0.0 build:types:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
7
+ > tsc --project tsconfig.types.json --watch --preserveWatchOutput
8
+
9
+
10
+ > @palmares/schemas@0.0.0 build:cjs:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
11
+ > swc ./src -d ./dist/cjs --config-file ../../build/.commonjs.swcrc --watch
12
+
13
+
14
+ > @palmares/schemas@0.0.0 build:module:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
15
+ > swc ./src -d ./dist/esm --config-file ../../build/.esm.swcrc --watch
16
+
17
+ [12:19:27 PM] Starting compilation in watch mode...
18
+
19
+ Successfully compiled: 42 files with swc (786.78ms)
20
+ Successfully compiled: 42 files with swc (436.11ms)
21
+ Watching for file changes.
22
+ Watching for file changes.
23
+ [12:19:35 PM] Found 0 errors. Watching for file changes.
24
+
25
+ [12:21:11 PM] File change detected. Starting incremental compilation...
26
+
27
+ [12:21:11 PM] Found 0 errors. Watching for file changes.
28
+
29
+ [12:24:53 PM] File change detected. Starting incremental compilation...
30
+
31
+ [12:24:53 PM] Found 0 errors. Watching for file changes.
32
+
33
+ [12:26:10 PM] File change detected. Starting incremental compilation...
34
+
35
+ [12:26:10 PM] Found 0 errors. Watching for file changes.
36
+
37
+ Successfully compiled src/adapter/fields/array.ts with swc (4.79ms)
38
+ Successfully compiled src/adapter/fields/array.ts with swc (3.31ms)
39
+ [12:29:31 PM] File change detected. Starting incremental compilation...
40
+
41
+ [12:29:31 PM] Found 0 errors. Watching for file changes.
42
+
43
+ [12:29:35 PM] File change detected. Starting incremental compilation...
44
+
45
+ [12:29:35 PM] Found 0 errors. Watching for file changes.
46
+
47
+ [12:29:43 PM] File change detected. Starting incremental compilation...
48
+
49
+ [12:29:43 PM] Found 0 errors. Watching for file changes.
50
+
51
+ [12:30:20 PM] File change detected. Starting incremental compilation...
52
+
53
+ [12:30:23 PM] Found 0 errors. Watching for file changes.
54
+
55
+ [12:32:15 PM] File change detected. Starting incremental compilation...
56
+
57
+ [12:32:17 PM] Found 0 errors. Watching for file changes.
58
+
59
+ [12:34:01 PM] File change detected. Starting incremental compilation...
60
+
61
+ [12:34:03 PM] Found 0 errors. Watching for file changes.
62
+
63
+ [12:34:40 PM] File change detected. Starting incremental compilation...
64
+
65
+ [12:34:42 PM] Found 0 errors. Watching for file changes.
66
+
67
+ [12:35:08 PM] File change detected. Starting incremental compilation...
68
+
69
+ [12:35:10 PM] Found 0 errors. Watching for file changes.
70
+
71
+ [12:41:58 PM] File change detected. Starting incremental compilation...
72
+
73
+ [12:42:00 PM] Found 0 errors. Watching for file changes.
74
+
75
+ [12:43:00 PM] File change detected. Starting incremental compilation...
76
+
77
+ [12:43:01 PM] Found 0 errors. Watching for file changes.
78
+
79
+ [12:43:07 PM] File change detected. Starting incremental compilation...
80
+
81
+ [12:43:08 PM] Found 0 errors. Watching for file changes.
82
+
83
+ [12:46:01 PM] File change detected. Starting incremental compilation...
84
+
85
+ [12:46:02 PM] Found 0 errors. Watching for file changes.
86
+
87
+ [12:46:03 PM] File change detected. Starting incremental compilation...
88
+
89
+ [12:46:05 PM] Found 0 errors. Watching for file changes.
90
+
91
+ [12:46:33 PM] File change detected. Starting incremental compilation...
92
+
93
+ [12:46:33 PM] Found 0 errors. Watching for file changes.
94
+
95
+ [12:48:19 PM] File change detected. Starting incremental compilation...
96
+
97
+ [12:48:19 PM] Found 0 errors. Watching for file changes.
98
+
99
+ [12:50:31 PM] File change detected. Starting incremental compilation...
100
+
101
+ [12:50:32 PM] Found 0 errors. Watching for file changes.
102
+
103
+ [12:50:39 PM] File change detected. Starting incremental compilation...
104
+
105
+ [12:50:39 PM] Found 0 errors. Watching for file changes.
106
+
107
+ [12:50:51 PM] File change detected. Starting incremental compilation...
108
+
109
+ [12:50:51 PM] Found 0 errors. Watching for file changes.
110
+
111
+ [12:52:33 PM] File change detected. Starting incremental compilation...
112
+
113
+ [12:52:33 PM] Found 0 errors. Watching for file changes.
114
+
115
+ [12:52:35 PM] File change detected. Starting incremental compilation...
116
+
117
+ [12:52:35 PM] Found 0 errors. Watching for file changes.
118
+
119
+ [12:54:26 PM] File change detected. Starting incremental compilation...
120
+
121
+ [12:54:26 PM] Found 0 errors. Watching for file changes.
122
+
123
+ [12:54:28 PM] File change detected. Starting incremental compilation...
124
+
125
+ [12:54:28 PM] Found 0 errors. Watching for file changes.
126
+
127
+ [12:55:05 PM] File change detected. Starting incremental compilation...
128
+
129
+ [12:55:05 PM] Found 0 errors. Watching for file changes.
130
+
131
+ [12:55:06 PM] File change detected. Starting incremental compilation...
132
+
133
+ [12:55:07 PM] Found 0 errors. Watching for file changes.
134
+
135
+ [12:57:12 PM] File change detected. Starting incremental compilation...
136
+
137
+ [12:57:12 PM] Found 0 errors. Watching for file changes.
138
+
139
+ [12:57:15 PM] File change detected. Starting incremental compilation...
140
+
141
+ [12:57:15 PM] Found 0 errors. Watching for file changes.
142
+
143
+ [12:58:24 PM] File change detected. Starting incremental compilation...
144
+
145
+ [12:58:26 PM] Found 0 errors. Watching for file changes.
146
+
147
+ [12:58:33 PM] File change detected. Starting incremental compilation...
148
+
149
+ [12:58:33 PM] Found 0 errors. Watching for file changes.
150
+
151
+ [12:58:35 PM] File change detected. Starting incremental compilation...
152
+
153
+ [12:58:36 PM] Found 0 errors. Watching for file changes.
154
+
155
+ [12:58:55 PM] File change detected. Starting incremental compilation...
156
+
157
+ [12:58:55 PM] Found 0 errors. Watching for file changes.
158
+
159
+ [12:59:04 PM] File change detected. Starting incremental compilation...
160
+
161
+ [12:59:04 PM] Found 0 errors. Watching for file changes.
162
+
163
+ [12:59:21 PM] File change detected. Starting incremental compilation...
164
+
165
+ [12:59:23 PM] Found 0 errors. Watching for file changes.
166
+
167
+ [1:03:03 PM] File change detected. Starting incremental compilation...
168
+
169
+ [1:03:06 PM] Found 0 errors. Watching for file changes.
170
+
171
+ [1:05:40 PM] File change detected. Starting incremental compilation...
172
+
173
+ [1:05:43 PM] Found 0 errors. Watching for file changes.
174
+
175
+ [1:06:01 PM] File change detected. Starting incremental compilation...
176
+
177
+ [1:06:03 PM] Found 0 errors. Watching for file changes.
178
+
179
+ [1:06:16 PM] File change detected. Starting incremental compilation...
180
+
181
+ [1:06:18 PM] Found 0 errors. Watching for file changes.
182
+
183
+ [1:06:19 PM] File change detected. Starting incremental compilation...
184
+
185
+ [1:06:21 PM] Found 0 errors. Watching for file changes.
186
+
187
+ [1:06:32 PM] File change detected. Starting incremental compilation...
188
+
189
+ [1:06:34 PM] Found 0 errors. Watching for file changes.
190
+
191
+ [1:06:53 PM] File change detected. Starting incremental compilation...
192
+
193
+ [1:06:55 PM] Found 0 errors. Watching for file changes.
194
+
195
+ [1:08:14 PM] File change detected. Starting incremental compilation...
196
+
197
+ [1:08:17 PM] Found 0 errors. Watching for file changes.
198
+
199
+ [1:08:19 PM] File change detected. Starting incremental compilation...
200
+
201
+ [1:08:21 PM] Found 0 errors. Watching for file changes.
202
+
203
+ [1:08:22 PM] File change detected. Starting incremental compilation...
204
+
205
+ [1:08:24 PM] Found 0 errors. Watching for file changes.
206
+
207
+ [1:08:25 PM] File change detected. Starting incremental compilation...
208
+
209
+ [1:08:27 PM] Found 0 errors. Watching for file changes.
210
+
211
+ [1:08:28 PM] File change detected. Starting incremental compilation...
212
+
213
+ [1:08:30 PM] Found 0 errors. Watching for file changes.
214
+
215
+ [1:08:36 PM] File change detected. Starting incremental compilation...
216
+
217
+ [1:08:39 PM] Found 0 errors. Watching for file changes.
218
+
219
+ [1:08:46 PM] File change detected. Starting incremental compilation...
220
+
221
+ [1:08:48 PM] Found 0 errors. Watching for file changes.
222
+
223
+ [1:08:55 PM] File change detected. Starting incremental compilation...
224
+
225
+ [1:08:58 PM] Found 0 errors. Watching for file changes.
226
+
227
+ [1:09:09 PM] File change detected. Starting incremental compilation...
228
+
229
+ [1:09:11 PM] Found 0 errors. Watching for file changes.
230
+
231
+ [1:09:24 PM] File change detected. Starting incremental compilation...
232
+
233
+ [1:09:27 PM] Found 0 errors. Watching for file changes.
234
+
235
+ [1:09:36 PM] File change detected. Starting incremental compilation...
236
+
237
+ [1:09:38 PM] Found 0 errors. Watching for file changes.
238
+
239
+ [1:09:54 PM] File change detected. Starting incremental compilation...
240
+
241
+ [1:09:56 PM] Found 0 errors. Watching for file changes.
242
+
243
+ [1:10:06 PM] File change detected. Starting incremental compilation...
244
+
245
+ [1:10:08 PM] Found 0 errors. Watching for file changes.
246
+
247
+ [1:10:19 PM] File change detected. Starting incremental compilation...
248
+
249
+ [1:10:21 PM] Found 0 errors. Watching for file changes.
250
+
251
+ [1:10:25 PM] File change detected. Starting incremental compilation...
252
+
253
+ [1:10:27 PM] Found 0 errors. Watching for file changes.
254
+
255
+ [1:10:30 PM] File change detected. Starting incremental compilation...
256
+
257
+ [1:10:32 PM] Found 0 errors. Watching for file changes.
258
+
259
+ [1:10:32 PM] File change detected. Starting incremental compilation...
260
+
261
+ [1:10:34 PM] Found 0 errors. Watching for file changes.
262
+
263
+ [1:10:37 PM] File change detected. Starting incremental compilation...
264
+
265
+ [1:10:39 PM] Found 0 errors. Watching for file changes.
266
+
267
+ [1:10:39 PM] File change detected. Starting incremental compilation...
268
+
269
+ [1:10:41 PM] Found 0 errors. Watching for file changes.
270
+
271
+ [1:15:15 PM] File change detected. Starting incremental compilation...
272
+
273
+ [1:15:16 PM] Found 0 errors. Watching for file changes.
274
+
275
+ [1:24:31 PM] File change detected. Starting incremental compilation...
276
+
277
+ [1:24:32 PM] Found 0 errors. Watching for file changes.
278
+
279
+ [1:24:50 PM] File change detected. Starting incremental compilation...
280
+
281
+ [1:24:50 PM] Found 0 errors. Watching for file changes.
282
+
283
+ [1:24:52 PM] File change detected. Starting incremental compilation...
284
+
285
+ [1:24:52 PM] Found 0 errors. Watching for file changes.
286
+
287
+ [1:49:54 PM] File change detected. Starting incremental compilation...
288
+
289
+ [1:49:54 PM] Found 0 errors. Watching for file changes.
290
+
291
+ [1:57:12 PM] File change detected. Starting incremental compilation...
292
+
293
+ [1:57:13 PM] Found 0 errors. Watching for file changes.
294
+
295
+ [1:57:14 PM] File change detected. Starting incremental compilation...
296
+
297
+ [1:57:15 PM] Found 0 errors. Watching for file changes.
298
+
299
+ [1:59:43 PM] File change detected. Starting incremental compilation...
300
+
301
+ [1:59:43 PM] Found 0 errors. Watching for file changes.
302
+
303
+ [2:01:20 PM] File change detected. Starting incremental compilation...
304
+
305
+ [2:01:20 PM] Found 0 errors. Watching for file changes.
306
+
307
+ [2:03:55 PM] File change detected. Starting incremental compilation...
308
+
309
+ [2:03:55 PM] Found 0 errors. Watching for file changes.
310
+
311
+ [2:04:50 PM] File change detected. Starting incremental compilation...
312
+
313
+ [2:04:50 PM] Found 0 errors. Watching for file changes.
314
+
315
+ [2:04:52 PM] File change detected. Starting incremental compilation...
316
+
317
+ [2:04:52 PM] Found 0 errors. Watching for file changes.
318
+
319
+ [2:05:15 PM] File change detected. Starting incremental compilation...
320
+
321
+ [2:05:15 PM] Found 0 errors. Watching for file changes.
322
+
323
+ [2:05:17 PM] File change detected. Starting incremental compilation...
324
+
325
+ [2:05:17 PM] Found 0 errors. Watching for file changes.
326
+
327
+ [2:05:48 PM] File change detected. Starting incremental compilation...
328
+
329
+ [2:05:49 PM] Found 0 errors. Watching for file changes.
330
+
331
+ [2:05:50 PM] File change detected. Starting incremental compilation...
332
+
333
+ [2:05:51 PM] Found 0 errors. Watching for file changes.
334
+
335
+ [2:08:35 PM] File change detected. Starting incremental compilation...
336
+
337
+ [2:08:35 PM] Found 0 errors. Watching for file changes.
338
+
339
+ [2:08:37 PM] File change detected. Starting incremental compilation...
340
+
341
+ [2:08:37 PM] Found 0 errors. Watching for file changes.
342
+
343
+ [2:10:06 PM] File change detected. Starting incremental compilation...
344
+
345
+ [2:10:06 PM] Found 0 errors. Watching for file changes.
346
+
347
+ [2:10:08 PM] File change detected. Starting incremental compilation...
348
+
349
+ [2:10:08 PM] Found 0 errors. Watching for file changes.
350
+
351
+ [2:13:12 PM] File change detected. Starting incremental compilation...
352
+
353
+ [2:13:13 PM] Found 0 errors. Watching for file changes.
354
+
355
+ [2:13:14 PM] File change detected. Starting incremental compilation...
356
+
357
+ [2:13:15 PM] Found 0 errors. Watching for file changes.
358
+
359
+ [2:13:52 PM] File change detected. Starting incremental compilation...
360
+
361
+ [2:13:52 PM] Found 0 errors. Watching for file changes.
362
+
363
+ [2:13:54 PM] File change detected. Starting incremental compilation...
364
+
365
+ [2:13:54 PM] Found 0 errors. Watching for file changes.
366
+
367
+ [2:14:57 PM] File change detected. Starting incremental compilation...
368
+
369
+ [2:14:57 PM] Found 0 errors. Watching for file changes.
370
+
371
+ [2:14:59 PM] File change detected. Starting incremental compilation...
372
+
373
+ [2:14:59 PM] Found 0 errors. Watching for file changes.
374
+
375
+ [2:16:07 PM] File change detected. Starting incremental compilation...
376
+
377
+ [2:16:07 PM] Found 0 errors. Watching for file changes.
378
+
379
+ [2:16:09 PM] File change detected. Starting incremental compilation...
380
+
381
+ [2:16:09 PM] Found 0 errors. Watching for file changes.
382
+
383
+ [2:16:33 PM] File change detected. Starting incremental compilation...
384
+
385
+ [2:16:33 PM] Found 0 errors. Watching for file changes.
386
+
387
+ [2:16:35 PM] File change detected. Starting incremental compilation...
388
+
389
+ [2:16:35 PM] Found 0 errors. Watching for file changes.
390
+
391
+ [2:17:49 PM] File change detected. Starting incremental compilation...
392
+
393
+ [2:17:50 PM] Found 0 errors. Watching for file changes.
394
+
395
+ [2:17:51 PM] File change detected. Starting incremental compilation...
396
+
397
+ [2:17:51 PM] Found 0 errors. Watching for file changes.
398
+
399
+ [2:24:03 PM] File change detected. Starting incremental compilation...
400
+
401
+ [2:24:04 PM] Found 0 errors. Watching for file changes.
402
+
403
+ [2:24:26 PM] File change detected. Starting incremental compilation...
404
+
405
+ [2:24:28 PM] Found 0 errors. Watching for file changes.
406
+
407
+ [2:24:43 PM] File change detected. Starting incremental compilation...
408
+
409
+ [2:24:43 PM] Found 0 errors. Watching for file changes.
410
+
411
+ [2:24:45 PM] File change detected. Starting incremental compilation...
412
+
413
+ [2:24:45 PM] Found 0 errors. Watching for file changes.
414
+
415
+ [2:26:25 PM] File change detected. Starting incremental compilation...
416
+
417
+ Successfully compiled src/adapter/fields/array.ts with swc (84.29ms)
418
+ Successfully compiled src/adapter/fields/array.ts with swc (85.68ms)
419
+ [2:26:25 PM] Found 0 errors. Watching for file changes.
420
+
421
+ [2:26:27 PM] File change detected. Starting incremental compilation...
422
+
423
+ [2:26:29 PM] Found 0 errors. Watching for file changes.
424
+
@@ -0,0 +1,13 @@
1
+
2
+ > @palmares/schemas@0.0.0 build /Users/nicolasmelo/workspace/palmares/packages/schemas
3
+ > pnpm run clear && pnpm run build:cjs && pnpm run build:module && pnpm run build:types
4
+
5
+
6
+ > @palmares/schemas@0.0.0 clear /Users/nicolasmelo/workspace/palmares/packages/schemas
7
+ > rimraf ./dist
8
+
9
+
10
+ > @palmares/schemas@0.0.0 build:cjs /Users/nicolasmelo/workspace/palmares/packages/schemas
11
+ > swc ./src -d ./dist/cjs --config-file ../../build/.commonjs.swcrc
12
+
13
+ Successfully compiled: 42 files with swc (283.83ms)
@@ -0,0 +1,26 @@
1
+ @palmares/schemas:build:watch: cache hit, replaying output 2e7590ff876977be
2
+ @palmares/schemas:build:watch: 
3
+ @palmares/schemas:build:watch: > @palmares/schemas@0.0.0 build:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
4
+ @palmares/schemas:build:watch: > pnpm run build:cjs:watch & pnpm run build:module:watch & pnpm run build:types:watch
5
+ @palmares/schemas:build:watch: 
6
+ @palmares/schemas:build:watch: 
7
+ @palmares/schemas:build:watch: > @palmares/schemas@0.0.0 build:module:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
8
+ @palmares/schemas:build:watch: > swc ./src -d ./dist/esm --config-file ../../build/.esm.swcrc --watch
9
+ @palmares/schemas:build:watch: 
10
+ @palmares/schemas:build:watch: 
11
+ @palmares/schemas:build:watch: > @palmares/schemas@0.0.0 build:cjs:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
12
+ @palmares/schemas:build:watch: > swc ./src -d ./dist/cjs --config-file ../../build/.commonjs.swcrc --watch
13
+ @palmares/schemas:build:watch: 
14
+ @palmares/schemas:build:watch: 
15
+ @palmares/schemas:build:watch: > @palmares/schemas@0.0.0 build:types:watch /Users/nicolasmelo/workspace/palmares/packages/schemas
16
+ @palmares/schemas:build:watch: > tsc --project tsconfig.types.json --watch --preserveWatchOutput
17
+ @palmares/schemas:build:watch: 
18
+ @palmares/schemas:build:watch: Successfully compiled: 32 files with swc (399.75ms)
19
+ @palmares/schemas:build:watch: Watching for file changes.
20
+ @palmares/schemas:build:watch: Successfully compiled: 32 files with swc (545.27ms)
21
+ @palmares/schemas:build:watch: Watching for file changes.
22
+ @palmares/schemas:build:watch: 
23
+ @palmares/schemas:build:watch: 8:20:09 PM - Starting compilation in watch mode...
24
+ @palmares/schemas:build:watch: 
25
+ @palmares/schemas:build:watch: 
26
+ @palmares/schemas:build:watch: 8:20:11 PM - Found 0 errors. Watching for file changes.
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # @palmares/schemas
2
+
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Unstable release, but already on npm
8
+ - Updated dependencies [e35d754]
9
+ - Updated dependencies
10
+ - @palmares/databases@0.0.2
11
+ - @palmares/core@0.0.4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 PalmaresHQ
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ arrayFieldAdapter: function() {
13
+ return arrayFieldAdapter;
14
+ },
15
+ default: function() {
16
+ return ArrayFieldAdapter;
17
+ }
18
+ });
19
+ var _ = /*#__PURE__*/ _interop_require_default(require("."));
20
+ function _assert_this_initialized(self) {
21
+ if (self === void 0) {
22
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
23
+ }
24
+ return self;
25
+ }
26
+ function _class_call_check(instance, Constructor) {
27
+ if (!(instance instanceof Constructor)) {
28
+ throw new TypeError("Cannot call a class as a function");
29
+ }
30
+ }
31
+ function _defineProperties(target, props) {
32
+ for(var i = 0; i < props.length; i++){
33
+ var descriptor = props[i];
34
+ descriptor.enumerable = descriptor.enumerable || false;
35
+ descriptor.configurable = true;
36
+ if ("value" in descriptor) descriptor.writable = true;
37
+ Object.defineProperty(target, descriptor.key, descriptor);
38
+ }
39
+ }
40
+ function _create_class(Constructor, protoProps, staticProps) {
41
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
42
+ if (staticProps) _defineProperties(Constructor, staticProps);
43
+ return Constructor;
44
+ }
45
+ function _define_property(obj, key, value) {
46
+ if (key in obj) {
47
+ Object.defineProperty(obj, key, {
48
+ value: value,
49
+ enumerable: true,
50
+ configurable: true,
51
+ writable: true
52
+ });
53
+ } else {
54
+ obj[key] = value;
55
+ }
56
+ return obj;
57
+ }
58
+ function _get_prototype_of(o) {
59
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
60
+ return o.__proto__ || Object.getPrototypeOf(o);
61
+ };
62
+ return _get_prototype_of(o);
63
+ }
64
+ function _inherits(subClass, superClass) {
65
+ if (typeof superClass !== "function" && superClass !== null) {
66
+ throw new TypeError("Super expression must either be null or a function");
67
+ }
68
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
69
+ constructor: {
70
+ value: subClass,
71
+ writable: true,
72
+ configurable: true
73
+ }
74
+ });
75
+ if (superClass) _set_prototype_of(subClass, superClass);
76
+ }
77
+ function _interop_require_default(obj) {
78
+ return obj && obj.__esModule ? obj : {
79
+ default: obj
80
+ };
81
+ }
82
+ function _possible_constructor_return(self, call) {
83
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
84
+ return call;
85
+ }
86
+ return _assert_this_initialized(self);
87
+ }
88
+ function _set_prototype_of(o, p) {
89
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
90
+ o.__proto__ = p;
91
+ return o;
92
+ };
93
+ return _set_prototype_of(o, p);
94
+ }
95
+ function _type_of(obj) {
96
+ "@swc/helpers - typeof";
97
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
98
+ }
99
+ function _is_native_reflect_construct() {
100
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
101
+ if (Reflect.construct.sham) return false;
102
+ if (typeof Proxy === "function") return true;
103
+ try {
104
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
105
+ return true;
106
+ } catch (e) {
107
+ return false;
108
+ }
109
+ }
110
+ function _create_super(Derived) {
111
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
112
+ return function _createSuperInternal() {
113
+ var Super = _get_prototype_of(Derived), result;
114
+ if (hasNativeReflectConstruct) {
115
+ var NewTarget = _get_prototype_of(this).constructor;
116
+ result = Reflect.construct(Super, arguments, NewTarget);
117
+ } else {
118
+ result = Super.apply(this, arguments);
119
+ }
120
+ return _possible_constructor_return(this, result);
121
+ };
122
+ }
123
+ function arrayFieldAdapter(args) {
124
+ var CustomArrayFieldAdapter = /*#__PURE__*/ function(ArrayFieldAdapter) {
125
+ "use strict";
126
+ _inherits(CustomArrayFieldAdapter, ArrayFieldAdapter);
127
+ var _super = _create_super(CustomArrayFieldAdapter);
128
+ function CustomArrayFieldAdapter() {
129
+ _class_call_check(this, CustomArrayFieldAdapter);
130
+ var _this;
131
+ _this = _super.apply(this, arguments);
132
+ _define_property(_assert_this_initialized(_this), "translate", args.translate);
133
+ _define_property(_assert_this_initialized(_this), "toString", args.toString);
134
+ _define_property(_assert_this_initialized(_this), "formatError", args.formatError);
135
+ _define_property(_assert_this_initialized(_this), "parse", args.parse);
136
+ return _this;
137
+ }
138
+ return CustomArrayFieldAdapter;
139
+ }(ArrayFieldAdapter);
140
+ return CustomArrayFieldAdapter;
141
+ }
142
+ var ArrayFieldAdapter = /*#__PURE__*/ function(FieldAdapter) {
143
+ "use strict";
144
+ _inherits(ArrayFieldAdapter, FieldAdapter);
145
+ var _super = _create_super(ArrayFieldAdapter);
146
+ function ArrayFieldAdapter() {
147
+ _class_call_check(this, ArrayFieldAdapter);
148
+ return _super.apply(this, arguments);
149
+ }
150
+ _create_class(ArrayFieldAdapter, [
151
+ {
152
+ key: "translate",
153
+ value: function translate(_fieldAdapter, _args) {}
154
+ }
155
+ ]);
156
+ return ArrayFieldAdapter;
157
+ }(_.default);