@kubb/agent 5.0.0-beta.3 → 5.0.0-beta.31

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 (156) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +1965 -1827
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  5. package/.output/server/index.mjs +1 -1
  6. package/.output/server/node_modules/ajv/dist/2019.d.ts +1 -1
  7. package/.output/server/node_modules/ajv/dist/2019.js.map +1 -1
  8. package/.output/server/node_modules/ajv/dist/2020.d.ts +1 -1
  9. package/.output/server/node_modules/ajv/dist/2020.js.map +1 -1
  10. package/.output/server/node_modules/ajv/dist/ajv.d.ts +1 -1
  11. package/.output/server/node_modules/ajv/dist/ajv.js.map +1 -1
  12. package/.output/server/node_modules/ajv/dist/compile/index.d.ts +2 -1
  13. package/.output/server/node_modules/ajv/dist/compile/index.js +10 -3
  14. package/.output/server/node_modules/ajv/dist/compile/index.js.map +1 -1
  15. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.js +1 -1
  16. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -1
  17. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.js +1 -1
  18. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -1
  19. package/.output/server/node_modules/ajv/dist/compile/names.d.ts +1 -0
  20. package/.output/server/node_modules/ajv/dist/compile/names.js +1 -0
  21. package/.output/server/node_modules/ajv/dist/compile/names.js.map +1 -1
  22. package/.output/server/node_modules/ajv/dist/compile/validate/index.d.ts +1 -1
  23. package/.output/server/node_modules/ajv/dist/compile/validate/index.js +18 -4
  24. package/.output/server/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
  25. package/.output/server/node_modules/ajv/dist/core.d.ts +4 -0
  26. package/.output/server/node_modules/ajv/dist/core.js +15 -1
  27. package/.output/server/node_modules/ajv/dist/core.js.map +1 -1
  28. package/.output/server/node_modules/ajv/dist/draft4.d.ts +19 -0
  29. package/.output/server/node_modules/ajv/dist/draft4.js +57 -0
  30. package/.output/server/node_modules/ajv/dist/draft4.js.map +1 -0
  31. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-04.json +138 -0
  32. package/.output/server/node_modules/ajv/dist/types/index.d.ts +3 -0
  33. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +2 -1
  34. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
  35. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +1 -1
  36. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -1
  37. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +2 -1
  38. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
  39. package/.output/server/node_modules/ajv/dist/vocabularies/code.d.ts +1 -1
  40. package/.output/server/node_modules/ajv/dist/vocabularies/code.js +10 -3
  41. package/.output/server/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
  42. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +12 -2
  43. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
  44. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +56 -21
  45. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  46. package/.output/server/node_modules/ajv/dist/vocabularies/draft4.d.ts +3 -0
  47. package/.output/server/node_modules/ajv/dist/vocabularies/draft4.js +29 -0
  48. package/.output/server/node_modules/ajv/dist/vocabularies/draft4.js.map +1 -0
  49. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +10 -2
  50. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -1
  51. package/.output/server/node_modules/ajv/dist/vocabularies/oasContext.d.ts +3 -0
  52. package/.output/server/node_modules/ajv/dist/vocabularies/oasContext.js +26 -0
  53. package/.output/server/node_modules/ajv/dist/vocabularies/oasContext.js.map +1 -0
  54. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +22 -3
  55. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -1
  56. package/.output/server/node_modules/ajv/dist/vocabularies/validation/draft04/limitNumber.d.ts +12 -0
  57. package/.output/server/node_modules/ajv/dist/vocabularies/validation/draft04/limitNumber.js +43 -0
  58. package/.output/server/node_modules/ajv/dist/vocabularies/validation/draft04/limitNumber.js.map +1 -0
  59. package/.output/server/node_modules/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.d.ts +3 -0
  60. package/.output/server/node_modules/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +19 -0
  61. package/.output/server/node_modules/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js.map +1 -0
  62. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +4 -0
  63. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -1
  64. package/.output/server/node_modules/ajv/dist/vocabularies/validation/readOnly.d.ts +3 -0
  65. package/.output/server/node_modules/ajv/dist/vocabularies/validation/readOnly.js +20 -0
  66. package/.output/server/node_modules/ajv/dist/vocabularies/validation/readOnly.js.map +1 -0
  67. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +8 -1
  68. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
  69. package/.output/server/node_modules/ajv/dist/vocabularies/validation/writeOnly.d.ts +3 -0
  70. package/.output/server/node_modules/ajv/dist/vocabularies/validation/writeOnly.js +20 -0
  71. package/.output/server/node_modules/ajv/dist/vocabularies/validation/writeOnly.js.map +1 -0
  72. package/.output/server/node_modules/ajv/lib/2019.ts +1 -0
  73. package/.output/server/node_modules/ajv/lib/2020.ts +1 -0
  74. package/.output/server/node_modules/ajv/lib/ajv.ts +1 -0
  75. package/.output/server/node_modules/ajv/lib/compile/index.ts +16 -3
  76. package/.output/server/node_modules/ajv/lib/compile/jtd/parse.ts +3 -1
  77. package/.output/server/node_modules/ajv/lib/compile/jtd/serialize.ts +3 -1
  78. package/.output/server/node_modules/ajv/lib/compile/names.ts +1 -0
  79. package/.output/server/node_modules/ajv/lib/compile/validate/index.ts +21 -4
  80. package/.output/server/node_modules/ajv/lib/core.ts +20 -1
  81. package/.output/server/node_modules/ajv/lib/draft4.ts +79 -0
  82. package/.output/server/node_modules/ajv/lib/refs/json-schema-draft-04.json +138 -0
  83. package/.output/server/node_modules/ajv/lib/types/index.ts +4 -0
  84. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +2 -1
  85. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +1 -1
  86. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/properties.ts +4 -1
  87. package/.output/server/node_modules/ajv/lib/vocabularies/code.ts +10 -3
  88. package/.output/server/node_modules/ajv/lib/vocabularies/core/ref.ts +21 -5
  89. package/.output/server/node_modules/ajv/lib/vocabularies/discriminator/index.ts +69 -19
  90. package/.output/server/node_modules/ajv/lib/vocabularies/draft4.ts +32 -0
  91. package/.output/server/node_modules/ajv/lib/vocabularies/metadata.ts +10 -2
  92. package/.output/server/node_modules/ajv/lib/vocabularies/oasContext.ts +27 -0
  93. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +29 -7
  94. package/.output/server/node_modules/ajv/lib/vocabularies/validation/draft04/limitNumber.ts +75 -0
  95. package/.output/server/node_modules/ajv/lib/vocabularies/validation/draft04/limitNumberExclusive.ts +26 -0
  96. package/.output/server/node_modules/ajv/lib/vocabularies/validation/index.ts +4 -0
  97. package/.output/server/node_modules/ajv/lib/vocabularies/validation/readOnly.ts +23 -0
  98. package/.output/server/node_modules/ajv/lib/vocabularies/validation/required.ts +7 -1
  99. package/.output/server/node_modules/ajv/lib/vocabularies/validation/writeOnly.ts +22 -0
  100. package/.output/server/node_modules/ajv/package.json +9 -6
  101. package/.output/server/node_modules/fflate/esm/index.mjs +87 -56
  102. package/.output/server/node_modules/fflate/package.json +12 -11
  103. package/.output/server/node_modules/jiti/LICENSE +21 -0
  104. package/.output/server/node_modules/jiti/README.md +258 -0
  105. package/.output/server/node_modules/jiti/dist/babel.cjs +257 -0
  106. package/.output/server/node_modules/jiti/dist/jiti.cjs +1 -0
  107. package/.output/server/node_modules/jiti/lib/jiti-cli.mjs +34 -0
  108. package/.output/server/node_modules/jiti/lib/jiti-hooks.mjs +124 -0
  109. package/.output/server/node_modules/jiti/lib/jiti-native.mjs +121 -0
  110. package/.output/server/node_modules/jiti/lib/jiti-register.d.mts +1 -0
  111. package/.output/server/node_modules/jiti/lib/jiti-register.mjs +4 -0
  112. package/.output/server/node_modules/jiti/lib/jiti-static.mjs +23 -0
  113. package/.output/server/node_modules/jiti/lib/jiti.cjs +30 -0
  114. package/.output/server/node_modules/jiti/lib/jiti.d.cts +8 -0
  115. package/.output/server/node_modules/jiti/lib/jiti.d.mts +8 -0
  116. package/.output/server/node_modules/jiti/lib/jiti.mjs +29 -0
  117. package/.output/server/node_modules/jiti/lib/types.d.ts +420 -0
  118. package/.output/server/node_modules/jiti/package.json +146 -0
  119. package/.output/server/node_modules/remeda/dist/hasProp.js +2 -0
  120. package/.output/server/node_modules/remeda/dist/index.js +1 -1
  121. package/.output/server/node_modules/remeda/package.json +12 -12
  122. package/.output/server/node_modules/ws/lib/receiver.js +54 -0
  123. package/.output/server/node_modules/ws/lib/sender.js +6 -1
  124. package/.output/server/node_modules/ws/lib/websocket-server.js +8 -0
  125. package/.output/server/node_modules/ws/lib/websocket.js +14 -0
  126. package/.output/server/node_modules/ws/package.json +1 -1
  127. package/.output/server/package.json +5 -8
  128. package/README.md +62 -27
  129. package/package.json +15 -14
  130. package/.output/server/node_modules/@rolldown/binding-linux-x64-gnu/package.json +0 -40
  131. package/.output/server/node_modules/@rolldown/binding-linux-x64-gnu/rolldown-binding.linux-x64-gnu.node +0 -0
  132. package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +0 -256
  133. package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +0 -75
  134. package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/index.js +0 -3
  135. package/.output/server/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +0 -70
  136. package/.output/server/node_modules/@rolldown/pluginutils/dist/index.js +0 -1
  137. package/.output/server/node_modules/@rolldown/pluginutils/dist/utils.js +0 -17
  138. package/.output/server/node_modules/@rolldown/pluginutils/package.json +0 -37
  139. package/.output/server/node_modules/rolldown/dist/index.mjs +0 -50
  140. package/.output/server/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
  141. package/.output/server/node_modules/rolldown/dist/shared/binding-BeU_1iEk.mjs +0 -582
  142. package/.output/server/node_modules/rolldown/dist/shared/bindingify-input-options-DbbBhzky.mjs +0 -2211
  143. package/.output/server/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +0 -6
  144. package/.output/server/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs +0 -85
  145. package/.output/server/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +0 -180
  146. package/.output/server/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +0 -21
  147. package/.output/server/node_modules/rolldown/dist/shared/normalize-string-or-regex-CbQQ69gT.mjs +0 -66
  148. package/.output/server/node_modules/rolldown/dist/shared/parse-B_ZnWxLZ.mjs +0 -74
  149. package/.output/server/node_modules/rolldown/dist/shared/prompt-U5ajztzG.mjs +0 -847
  150. package/.output/server/node_modules/rolldown/dist/shared/rolldown-D3JZ9rMt.mjs +0 -40
  151. package/.output/server/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs +0 -3325
  152. package/.output/server/node_modules/rolldown/dist/shared/watch-Bd8v9ewv.mjs +0 -374
  153. package/.output/server/node_modules/rolldown/package.json +0 -153
  154. package/.output/server/node_modules/unrun/dist/index.mjs +0 -2
  155. package/.output/server/node_modules/unrun/dist/src-GU5PtktT.mjs +0 -887
  156. package/.output/server/node_modules/unrun/package.json +0 -125
@@ -0,0 +1,420 @@
1
+ /**
2
+ * Creates a new {@linkcode Jiti} instance with custom options.
3
+ *
4
+ * @param id - Instance id, usually the current filename.
5
+ * @param userOptions - Custom options to override the default options.
6
+ * @returns A {@linkcode Jiti} instance.
7
+ *
8
+ * @example
9
+ * <caption>ESM Usage</caption>
10
+ *
11
+ * ```ts
12
+ * import { createJiti } from "jiti";
13
+ *
14
+ * const jiti = createJiti(import.meta.url, { debug: true });
15
+ * ```
16
+ *
17
+ * @example
18
+ * <caption>CommonJS Usage **(deprecated)**</caption>
19
+ *
20
+ * ```ts
21
+ * const { createJiti } = require("jiti");
22
+ *
23
+ * const jiti = createJiti(__filename, { debug: true });
24
+ * ```
25
+ *
26
+ * @since 2.0.0
27
+ */
28
+ export declare function createJiti(id: string, userOptions?: JitiOptions): Jiti;
29
+
30
+ /**
31
+ * Jiti instance
32
+ *
33
+ * Calling `jiti()` is similar to CommonJS {@linkcode require()} but adds
34
+ * extra features such as TypeScript and ESM compatibility.
35
+ *
36
+ * **Note:** It is recommended to use
37
+ * {@linkcode Jiti.import | await jiti.import()} instead.
38
+ */
39
+ export interface Jiti extends NodeRequire {
40
+ /**
41
+ * Resolved options
42
+ */
43
+ options: JitiOptions;
44
+
45
+ /**
46
+ * ESM import a module with additional TypeScript and ESM compatibility.
47
+ *
48
+ * If you need the default export of module, you can use
49
+ * `jiti.import(id, { default: true })` as shortcut to `mod?.default ?? mod`.
50
+ */
51
+ import<T = unknown>(
52
+ id: string,
53
+ opts?: JitiResolveOptions & { default?: true },
54
+ ): Promise<T>;
55
+
56
+ /**
57
+ * Resolve with ESM import conditions.
58
+ */
59
+ esmResolve(id: string, parentURL?: string): string;
60
+ esmResolve<T extends JitiResolveOptions = JitiResolveOptions>(
61
+ id: string,
62
+ opts?: T,
63
+ ): T["try"] extends true ? string | undefined : string;
64
+
65
+ /**
66
+ * Transform source code
67
+ */
68
+ transform: (opts: TransformOptions) => string;
69
+
70
+ /**
71
+ * Evaluate transformed code as a module
72
+ */
73
+ evalModule: (source: string, options?: EvalModuleOptions) => unknown;
74
+ }
75
+
76
+ /**
77
+ * Jiti instance options
78
+ */
79
+ export interface JitiOptions {
80
+ /**
81
+ * Filesystem source cache
82
+ *
83
+ * An string can be passed to set the custom cache directory.
84
+ *
85
+ * By default (when set to `true`), jiti uses
86
+ * `node_modules/.cache/jiti` (if exists) or `{TMP_DIR}/jiti`.
87
+ *
88
+ * This option can also be disabled using
89
+ * `JITI_FS_CACHE=false` environment variable.
90
+ *
91
+ * **Note:** It is recommended to keep this option
92
+ * enabled for better performance.
93
+ *
94
+ * @default true
95
+ */
96
+ fsCache?: boolean | string;
97
+
98
+ /**
99
+ * Rebuild the filesystem source cache
100
+ *
101
+ * This option can also be enabled using
102
+ * `JITI_REBUILD_FS_CACHE=true` environment variable.
103
+ *
104
+ * @default false
105
+ */
106
+ rebuildFsCache?: boolean;
107
+
108
+ /**
109
+ * @deprecated Use the {@linkcode fsCache} option.
110
+ *
111
+ * @default true
112
+ */
113
+ cache?: boolean | string;
114
+
115
+ /**
116
+ * Runtime module cache
117
+ *
118
+ * Disabling allows editing code and importing same module multiple times.
119
+ *
120
+ * When enabled, jiti integrates with Node.js native CommonJS cache store.
121
+ *
122
+ * This option can also be disabled using
123
+ * `JITI_MODULE_CACHE=false` environment variable.
124
+ *
125
+ * @default true
126
+ */
127
+ moduleCache?: boolean;
128
+
129
+ /**
130
+ * @deprecated Use the {@linkcode moduleCache} option.
131
+ *
132
+ * @default true
133
+ */
134
+ requireCache?: boolean;
135
+
136
+ /**
137
+ * Custom transform function
138
+ */
139
+ transform?: (opts: TransformOptions) => TransformResult;
140
+
141
+ /**
142
+ * Enable verbose debugging.
143
+ *
144
+ * Can also be enabled using `JITI_DEBUG=1` environment variable.
145
+ *
146
+ * @default false
147
+ */
148
+ debug?: boolean;
149
+
150
+ /**
151
+ * Enable sourcemaps for transformed code.
152
+ *
153
+ * Can also be disabled using `JITI_SOURCE_MAPS=0` environment variable.
154
+ *
155
+ * @default false
156
+ */
157
+ sourceMaps?: boolean;
158
+
159
+ /**
160
+ * Jiti combines module exports with the `default` export using an
161
+ * internal Proxy to improve compatibility with mixed CJS/ESM usage.
162
+ * You can check the current implementation
163
+ * {@link https://github.com/unjs/jiti/blob/main/src/utils.ts#L105 here}.
164
+ *
165
+ * Can be disabled using `JITI_INTEROP_DEFAULT=0` environment variable.
166
+ *
167
+ * @default true
168
+ */
169
+ interopDefault?: boolean;
170
+
171
+ /**
172
+ * Jiti hard source cache version.
173
+ *
174
+ * @internal
175
+ */
176
+ cacheVersion?: string;
177
+
178
+ /**
179
+ * Supported extensions to resolve.
180
+ *
181
+ * @default [".js", ".mjs", ".cjs", ".ts", ".tsx", ".mts", ".cts", ".mtsx", ".ctsx", ".json"]
182
+ */
183
+ extensions?: string[];
184
+
185
+ /**
186
+ * Transform options
187
+ */
188
+ transformOptions?: Omit<TransformOptions, "source">;
189
+
190
+ /**
191
+ * Resolve aliases
192
+ *
193
+ * You can use `JITI_ALIAS` environment variable to set aliases as
194
+ * a JSON string.
195
+ *
196
+ * @default {}
197
+ */
198
+ alias?: Record<string, string>;
199
+
200
+ /**
201
+ * List of modules (within `node_modules`) to always use native
202
+ * require/import for them.
203
+ *
204
+ * You can use `JITI_NATIVE_MODULES` environment variable to set
205
+ * native modules as a JSON string.
206
+ *
207
+ * @default []
208
+ */
209
+ nativeModules?: string[];
210
+
211
+ /**
212
+ * List of modules (within `node_modules`) to transform them
213
+ * regardless of syntax.
214
+ *
215
+ * You can use `JITI_TRANSFORM_MODULES` environment variable to set
216
+ * transform modules as a JSON string.
217
+ *
218
+ * @default []
219
+ */
220
+ transformModules?: string[];
221
+
222
+ /**
223
+ * Parent module's {@linkcode ImportMeta | import.meta} context to use
224
+ * for ESM resolution.
225
+ *
226
+ * (Only used for `jiti/native` import)
227
+ */
228
+ importMeta?: ImportMeta;
229
+
230
+ /**
231
+ * Try to use native require and import without jiti transformations first.
232
+ *
233
+ * Enabled if Bun is detected.
234
+ *
235
+ * @default false
236
+ */
237
+ tryNative?: boolean;
238
+
239
+ /**
240
+ * Always use a temp file (instead of a `data:` URL) for the ESM
241
+ * evaluation fallback path.
242
+ *
243
+ * jiti automatically falls back to a temp file when the `data:` URL
244
+ * import fails with `ENAMETOOLONG` — which happens on filesystems with
245
+ * a strict `NAME_MAX` limit (e.g. ecryptfs-encrypted home directories
246
+ * on Linux, some macOS configurations) once the base64-encoded source
247
+ * exceeds the limit. Setting this to `true` forces the temp-file path
248
+ * up front, skipping the `data:` URL attempt.
249
+ *
250
+ * The temp file is written to `{TMP_DIR}/jiti-esm/` and cleaned up
251
+ * after import.
252
+ *
253
+ * Can also be enabled using the `JITI_ESM_EVAL_TEMP_FILE=true`
254
+ * environment variable.
255
+ *
256
+ * @default false
257
+ */
258
+ esmEvalTempFile?: boolean;
259
+
260
+ /**
261
+ * Enable JSX support Enable JSX support using
262
+ * {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx | `@babel/plugin-transform-react-jsx`}.
263
+ *
264
+ * You can also use `JITI_JSX=1` environment variable to enable JSX support.
265
+ *
266
+ * @default false
267
+ */
268
+ jsx?: boolean | JSXOptions;
269
+
270
+ /**
271
+ * Virtual modules - pre-loaded module objects that bypass filesystem resolution.
272
+ * Useful for bundled modules in compiled binaries (e.g., Bun).
273
+ *
274
+ * When a module ID matches a key in this map, the corresponding value is
275
+ * returned directly without any filesystem resolution or transformation.
276
+ *
277
+ * @example
278
+ * ```ts
279
+ * import * as typebox from "@sinclair/typebox";
280
+ *
281
+ * const jiti = createJiti(import.meta.url, {
282
+ * virtualModules: {
283
+ * "@sinclair/typebox": typebox,
284
+ * },
285
+ * });
286
+ * ```
287
+ */
288
+ virtualModules?: Record<string, unknown>;
289
+
290
+ /**
291
+ * Enable tsconfig paths resolution.
292
+ *
293
+ * - `true`: auto-discover `tsconfig.json` by walking up from the
294
+ * jiti instance's parent path
295
+ * - `string`: explicit path to a `tsconfig.json` file
296
+ * - `false` (default): disabled
297
+ *
298
+ * When enabled, jiti uses
299
+ * {@link https://github.com/privatenumber/get-tsconfig | get-tsconfig}
300
+ * to resolve TypeScript path aliases defined in `compilerOptions.paths`.
301
+ *
302
+ * @default false
303
+ */
304
+ tsconfigPaths?: boolean | string;
305
+ }
306
+
307
+ interface NodeRequire {
308
+ /**
309
+ * Module cache
310
+ */
311
+ cache: ModuleCache;
312
+
313
+ /**
314
+ * @deprecated Prefer {@linkcode Jiti.import | await jiti.import()}
315
+ * for better compatibility.
316
+ */
317
+ (id: string): any;
318
+
319
+ /**
320
+ * @deprecated Prefer {@linkcode Jiti.esmResolve | jiti.esmResolve}
321
+ * for better compatibility.
322
+ */
323
+ resolve: {
324
+ /** @deprecated */
325
+ (id: string, options?: { paths?: string[] | undefined }): string;
326
+ /** @deprecated */
327
+ paths(request: string): string[] | null;
328
+ };
329
+
330
+ /** @deprecated CommonJS API */
331
+ extensions: Record<
332
+ ".js" | ".json" | ".node",
333
+ (m: NodeModule, filename: string) => any | undefined
334
+ >;
335
+
336
+ /** @deprecated CommonJS API */
337
+ main: NodeModule | undefined;
338
+ }
339
+
340
+ export interface NodeModule {
341
+ /**
342
+ * `true` if the module is running during the Node.js preload.
343
+ */
344
+ isPreloading: boolean;
345
+ exports: any;
346
+ require: NodeRequire;
347
+ id: string;
348
+ filename: string;
349
+ loaded: boolean;
350
+ /**
351
+ * @deprecated since Node.js **v14.6.0** Please use
352
+ * {@linkcode NodeRequire.main | require.main} and
353
+ * {@linkcode NodeModule.children | module.children} instead.
354
+ */
355
+ parent: NodeModule | null | undefined;
356
+ children: NodeModule[];
357
+ /**
358
+ * The directory name of the module.
359
+ * This is usually the same as the `path.dirname()` of the `module.id`.
360
+ *
361
+ * @since Node.js **v11.14.0**
362
+ */
363
+ path: string;
364
+ paths: string[];
365
+ }
366
+
367
+ export type ModuleCache = Record<string, NodeModule>;
368
+
369
+ export type EvalModuleOptions = Partial<{
370
+ id: string;
371
+ filename: string;
372
+ ext: string;
373
+ cache: ModuleCache;
374
+ /**
375
+ * @default true
376
+ */
377
+ async: boolean;
378
+ forceTranspile: boolean;
379
+ }>;
380
+
381
+ export interface TransformOptions {
382
+ source: string;
383
+ filename?: string;
384
+ ts?: boolean;
385
+ retainLines?: boolean;
386
+ interopDefault?: boolean;
387
+ /**
388
+ * @default false
389
+ */
390
+ async?: boolean;
391
+ /**
392
+ * @default false
393
+ */
394
+ jsx?: boolean | JSXOptions;
395
+ babel?: Record<string, any>;
396
+ }
397
+
398
+ export interface TransformResult {
399
+ code: string;
400
+ error?: any;
401
+ }
402
+
403
+ export interface JitiResolveOptions {
404
+ conditions?: string[];
405
+ parentURL?: string | URL;
406
+ try?: boolean;
407
+ }
408
+
409
+ /**
410
+ * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#options | Reference}
411
+ */
412
+ export interface JSXOptions {
413
+ throwIfNamespace?: boolean;
414
+ runtime?: "classic" | "automatic";
415
+ importSource?: string;
416
+ pragma?: string;
417
+ pragmaFrag?: string;
418
+ useBuiltIns?: boolean;
419
+ useSpread?: boolean;
420
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "name": "jiti",
3
+ "version": "2.7.0",
4
+ "description": "Runtime typescript and ESM support for Node.js",
5
+ "repository": "unjs/jiti",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./lib/jiti.d.mts",
12
+ "default": "./lib/jiti.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./lib/jiti.d.cts",
16
+ "default": "./lib/jiti.cjs"
17
+ }
18
+ },
19
+ "./register": {
20
+ "types": "./lib/jiti-register.d.mts",
21
+ "import": "./lib/jiti-register.mjs"
22
+ },
23
+ "./native": {
24
+ "types": "./lib/jiti.d.mts",
25
+ "import": "./lib/jiti-native.mjs"
26
+ },
27
+ "./static": {
28
+ "types": "./lib/jiti.d.mts",
29
+ "import": "./lib/jiti-static.mjs"
30
+ },
31
+ "./package.json": "./package.json"
32
+ },
33
+ "main": "./lib/jiti.cjs",
34
+ "module": "./lib/jiti.mjs",
35
+ "types": "./lib/jiti.d.cts",
36
+ "typesVersions": {
37
+ "*": {
38
+ "register": [
39
+ "./lib/jiti-register.d.mts"
40
+ ],
41
+ "native": [
42
+ "./lib/jiti.d.mts"
43
+ ],
44
+ "static": [
45
+ "./lib/jiti.d.mts"
46
+ ]
47
+ }
48
+ },
49
+ "bin": {
50
+ "jiti": "./lib/jiti-cli.mjs"
51
+ },
52
+ "files": [
53
+ "lib",
54
+ "dist",
55
+ "register.cjs"
56
+ ],
57
+ "scripts": {
58
+ "bench": "node test/bench.mjs && deno -A test/bench.mjs && bun --bun test/bench.mjs",
59
+ "build": "pnpm clean && pnpm rspack",
60
+ "build:rolldown": "pnpm clean && pnpm rolldown -c rolldown.config.mjs",
61
+ "clean": "rm -rf dist",
62
+ "dev": "pnpm clean && pnpm rspack --watch",
63
+ "jiti": "JITI_DEBUG=1 JITI_JSX=1 lib/jiti-cli.mjs",
64
+ "lint": "eslint . && prettier -c src lib test stubs",
65
+ "lint:fix": "eslint --fix . && prettier -w src lib test stubs",
66
+ "prepack": "pnpm build",
67
+ "release": "pnpm build && pnpm test && changelogen --release --push && npm publish",
68
+ "test": "pnpm lint && pnpm test:types && vitest run --coverage && pnpm test:node-register && pnpm test:bun && pnpm test:native",
69
+ "test:bun": "bun --bun test test/bun",
70
+ "test:native": "pnpm test:native:bun && pnpm test:native:node && pnpm test:native:deno",
71
+ "test:native:bun": "bun --bun test test/native/bun.test.ts",
72
+ "test:native:deno": "deno test -A --no-check test/native/deno.test.ts",
73
+ "test:native:node": "node --test --experimental-strip-types test/native/node.test.ts",
74
+ "test:node-register": "JITI_JSX=1 node --test test/node-register.test.mjs",
75
+ "test:types": "tsgo --noEmit"
76
+ },
77
+ "devDependencies": {
78
+ "@babel/core": "^7.29.0",
79
+ "@babel/helper-module-imports": "^7.28.6",
80
+ "@babel/helper-module-transforms": "^7.28.6",
81
+ "@babel/helper-plugin-utils": "^7.28.6",
82
+ "@babel/helper-simple-access": "^7.27.1",
83
+ "@babel/plugin-proposal-decorators": "^7.29.0",
84
+ "@babel/plugin-syntax-class-properties": "^7.12.13",
85
+ "@babel/plugin-syntax-import-assertions": "^7.28.6",
86
+ "@babel/plugin-syntax-jsx": "^7.28.6",
87
+ "@babel/plugin-transform-explicit-resource-management": "^7.28.6",
88
+ "@babel/plugin-transform-export-namespace-from": "^7.27.1",
89
+ "@babel/plugin-transform-react-jsx": "^7.28.6",
90
+ "@babel/plugin-transform-typescript": "^7.28.6",
91
+ "@babel/preset-typescript": "^7.28.5",
92
+ "@babel/template": "^7.28.6",
93
+ "@babel/traverse": "^7.29.0",
94
+ "@babel/types": "^7.29.0",
95
+ "@rspack/cli": "^2.0.1",
96
+ "@rspack/core": "^2.0.1",
97
+ "@types/babel__core": "^7.20.5",
98
+ "@types/babel__helper-module-imports": "^7.18.3",
99
+ "@types/babel__helper-plugin-utils": "^7.10.3",
100
+ "@types/babel__template": "^7.4.4",
101
+ "@types/babel__traverse": "^7.28.0",
102
+ "@types/node": "^25.6.0",
103
+ "@typescript/native-preview": "7.0.0-dev.20260505.1",
104
+ "@vitest/coverage-v8": "^4.1.5",
105
+ "acorn": "^8.16.0",
106
+ "babel-plugin-parameter-decorator": "^1.0.16",
107
+ "changelogen": "^0.6.2",
108
+ "config": "^4.4.1",
109
+ "consola": "^3.4.2",
110
+ "defu": "^6.1.7",
111
+ "destr": "^2.0.5",
112
+ "escape-string-regexp": "^5.0.0",
113
+ "eslint": "^10.3.0",
114
+ "eslint-config-unjs": "^0.6.2",
115
+ "estree-walker": "^3.0.3",
116
+ "etag": "^1.8.1",
117
+ "fast-glob": "^3.3.3",
118
+ "get-tsconfig": "^4.14.0",
119
+ "is-installed-globally": "^1.0.0",
120
+ "mime": "^4.1.0",
121
+ "mitata": "^1.0.34",
122
+ "mlly": "^1.8.2",
123
+ "moment-timezone": "^0.6.2",
124
+ "nano-jsx": "^0.2.1",
125
+ "pathe": "^2.0.3",
126
+ "pkg-types": "^2.3.1",
127
+ "preact": "^10.29.1",
128
+ "preact-render-to-string": "^6.6.7",
129
+ "prettier": "^3.8.3",
130
+ "react": "^19.2.5",
131
+ "react-dom": "^19.2.5",
132
+ "reflect-metadata": "^0.2.2",
133
+ "rolldown": "1.0.0-rc.18",
134
+ "solid-js": "^1.9.12",
135
+ "std-env": "^4.1.0",
136
+ "terser-webpack-plugin": "^5.5.0",
137
+ "tinyexec": "^1.1.2",
138
+ "ts-loader": "^9.5.7",
139
+ "typescript": "^5.9.3",
140
+ "vitest": "^4.1.5",
141
+ "vue": "^3.5.33",
142
+ "yoctocolors": "^2.1.2",
143
+ "zod": "^4.4.3"
144
+ },
145
+ "packageManager": "pnpm@10.30.3"
146
+ }
@@ -0,0 +1,2 @@
1
+ import{purry as e}from"./purry.js";function t(...t){return e(n,t)}function n(e,t){return Object.hasOwn(e,t)}export{t as hasProp};
2
+ //# sourceMappingURL=hasProp.js.map
@@ -1 +1 @@
1
- import{purry as e}from"./purry.js";import{add as t}from"./add.js";import{addProp as n}from"./addProp.js";import{allPass as r}from"./allPass.js";import{anyPass as i}from"./anyPass.js";import{capitalize as a}from"./capitalize.js";import{ceil as o}from"./ceil.js";import{chunk as s}from"./chunk.js";import{clamp as c}from"./clamp.js";import{clone as l}from"./clone.js";import{concat as u}from"./concat.js";import{t as d}from"./conditional-CTEJD5TX.js";import{constant as f}from"./constant.js";import{countBy as p}from"./countBy.js";import{debounce as m}from"./debounce.js";import{defaultTo as h}from"./defaultTo.js";import{pipe as g}from"./pipe.js";import{difference as _}from"./difference.js";import{differenceWith as v}from"./differenceWith.js";import{divide as y}from"./divide.js";import{doNothing as b}from"./doNothing.js";import{drop as x}from"./drop.js";import{hasAtLeast as S}from"./hasAtLeast.js";import{dropFirstBy as C}from"./dropFirstBy.js";import{dropLast as w}from"./dropLast.js";import{dropLastWhile as T}from"./dropLastWhile.js";import{dropWhile as E}from"./dropWhile.js";import{endsWith as D}from"./endsWith.js";import{entries as O}from"./entries.js";import{evolve as k}from"./evolve.js";import{filter as A}from"./filter.js";import{find as j}from"./find.js";import{findIndex as M}from"./findIndex.js";import{findLast as N}from"./findLast.js";import{findLastIndex as P}from"./findLastIndex.js";import{first as F}from"./first.js";import{firstBy as I}from"./firstBy.js";import{flat as L}from"./flat.js";import{flatMap as R}from"./flatMap.js";import{floor as z}from"./floor.js";import{forEach as B}from"./forEach.js";import{forEachObj as V}from"./forEachObj.js";import{fromEntries as H}from"./fromEntries.js";import{fromKeys as U}from"./fromKeys.js";import{funnel as W}from"./funnel.js";import{groupBy as G}from"./groupBy.js";import{groupByProp as K}from"./groupByProp.js";import{isDeepEqual as q}from"./isDeepEqual.js";import{hasSubObject as J}from"./hasSubObject.js";import{identity as Y}from"./identity.js";import{indexBy as X}from"./indexBy.js";import{intersection as Z}from"./intersection.js";import{intersectionWith as Q}from"./intersectionWith.js";import{invert as $}from"./invert.js";import{isArray as ee}from"./isArray.js";import{isBigInt as te}from"./isBigInt.js";import{isBoolean as ne}from"./isBoolean.js";import{isDate as re}from"./isDate.js";import{isDefined as ie}from"./isDefined.js";import{isEmpty as ae}from"./isEmpty.js";import{isEmptyish as oe}from"./isEmptyish.js";import{isError as se}from"./isError.js";import{isFunction as ce}from"./isFunction.js";import{isIncludedIn as le}from"./isIncludedIn.js";import{isNonNull as ue}from"./isNonNull.js";import{isNonNullish as de}from"./isNonNullish.js";import{isNot as fe}from"./isNot.js";import{isNullish as pe}from"./isNullish.js";import{isNumber as me}from"./isNumber.js";import{isObjectType as he}from"./isObjectType.js";import{isPlainObject as ge}from"./isPlainObject.js";import{isPromise as _e}from"./isPromise.js";import{isShallowEqual as ve}from"./isShallowEqual.js";import{isStrictEqual as ye}from"./isStrictEqual.js";import{isString as be}from"./isString.js";import{isSymbol as xe}from"./isSymbol.js";import{isTruthy as Se}from"./isTruthy.js";import{join as Ce}from"./join.js";import{keys as we}from"./keys.js";import{last as Te}from"./last.js";import{length as Ee}from"./length.js";import{map as De}from"./map.js";import{mapKeys as Oe}from"./mapKeys.js";import{mapToObj as ke}from"./mapToObj.js";import{mapValues as Ae}from"./mapValues.js";import{mapWithFeedback as je}from"./mapWithFeedback.js";import{sum as Me}from"./sum.js";import{mean as Ne}from"./mean.js";import{meanBy as Pe}from"./meanBy.js";import{median as Fe}from"./median.js";import{merge as Ie}from"./merge.js";import{mergeAll as Le}from"./mergeAll.js";import{mergeDeep as Re}from"./mergeDeep.js";import{multiply as ze}from"./multiply.js";import{t as Be}from"./nthBy-DCn3SK1l.js";import{objOf as Ve}from"./objOf.js";import{omit as He}from"./omit.js";import{omitBy as Ue}from"./omitBy.js";import{once as We}from"./once.js";import{only as Ge}from"./only.js";import{partialBind as Ke}from"./partialBind.js";import{partialLastBind as qe}from"./partialLastBind.js";import{partition as Je}from"./partition.js";import{pathOr as Ye}from"./pathOr.js";import{pick as Xe}from"./pick.js";import{pickBy as Ze}from"./pickBy.js";import{piped as Qe}from"./piped.js";import{product as $e}from"./product.js";import{prop as et}from"./prop.js";import{pullObject as tt}from"./pullObject.js";import{randomBigInt as nt}from"./randomBigInt.js";import{randomInteger as rt}from"./randomInteger.js";import{randomString as it}from"./randomString.js";import{range as at}from"./range.js";import{rankBy as ot}from"./rankBy.js";import{reduce as st}from"./reduce.js";import{reverse as ct}from"./reverse.js";import{round as lt}from"./round.js";import{sample as ut}from"./sample.js";import{set as dt}from"./set.js";import{setPath as ft}from"./setPath.js";import{shuffle as pt}from"./shuffle.js";import{sliceString as mt}from"./sliceString.js";import{sort as ht}from"./sort.js";import{sortBy as gt}from"./sortBy.js";import{sortedIndex as _t}from"./sortedIndex.js";import{sortedIndexBy as vt}from"./sortedIndexBy.js";import{sortedIndexWith as yt}from"./sortedIndexWith.js";import{sortedLastIndex as bt}from"./sortedLastIndex.js";import{sortedLastIndexBy as xt}from"./sortedLastIndexBy.js";import{splice as St}from"./splice.js";import{split as Ct}from"./split.js";import{splitAt as wt}from"./splitAt.js";import{splitWhen as Tt}from"./splitWhen.js";import{startsWith as Et}from"./startsWith.js";import{stringToPath as Dt}from"./stringToPath.js";import{subtract as Ot}from"./subtract.js";import{sumBy as kt}from"./sumBy.js";import{swapIndices as At}from"./swapIndices.js";import{swapProps as jt}from"./swapProps.js";import{take as Mt}from"./take.js";import{takeFirstBy as Nt}from"./takeFirstBy.js";import{takeLast as Pt}from"./takeLast.js";import{takeLastWhile as Ft}from"./takeLastWhile.js";import{takeWhile as It}from"./takeWhile.js";import{tap as Lt}from"./tap.js";import{times as Rt}from"./times.js";import{toCamelCase as zt}from"./toCamelCase.js";import{toKebabCase as Bt}from"./toKebabCase.js";import{toLowerCase as Vt}from"./toLowerCase.js";import{toSnakeCase as Ht}from"./toSnakeCase.js";import{toTitleCase as Ut}from"./toTitleCase.js";import{toUpperCase as Wt}from"./toUpperCase.js";import{truncate as Gt}from"./truncate.js";import{uncapitalize as Kt}from"./uncapitalize.js";import{unique as qt}from"./unique.js";import{uniqueBy as Jt}from"./uniqueBy.js";import{uniqueWith as Yt}from"./uniqueWith.js";import{values as Xt}from"./values.js";import{when as Zt}from"./when.js";import{zip as Qt}from"./zip.js";import{zipWith as $t}from"./zipWith.js";export{t as add,n as addProp,r as allPass,i as anyPass,a as capitalize,o as ceil,s as chunk,c as clamp,l as clone,u as concat,d as conditional,f as constant,p as countBy,m as debounce,h as defaultTo,_ as difference,v as differenceWith,y as divide,b as doNothing,x as drop,C as dropFirstBy,w as dropLast,T as dropLastWhile,E as dropWhile,D as endsWith,O as entries,k as evolve,A as filter,j as find,M as findIndex,N as findLast,P as findLastIndex,F as first,I as firstBy,L as flat,R as flatMap,z as floor,B as forEach,V as forEachObj,H as fromEntries,U as fromKeys,W as funnel,G as groupBy,K as groupByProp,S as hasAtLeast,J as hasSubObject,Y as identity,X as indexBy,Z as intersection,Q as intersectionWith,$ as invert,ee as isArray,te as isBigInt,ne as isBoolean,re as isDate,q as isDeepEqual,ie as isDefined,ae as isEmpty,oe as isEmptyish,se as isError,ce as isFunction,le as isIncludedIn,ue as isNonNull,de as isNonNullish,fe as isNot,pe as isNullish,me as isNumber,he as isObjectType,ge as isPlainObject,_e as isPromise,ve as isShallowEqual,ye as isStrictEqual,be as isString,xe as isSymbol,Se as isTruthy,Ce as join,we as keys,Te as last,Ee as length,De as map,Oe as mapKeys,ke as mapToObj,Ae as mapValues,je as mapWithFeedback,Ne as mean,Pe as meanBy,Fe as median,Ie as merge,Le as mergeAll,Re as mergeDeep,ze as multiply,Be as nthBy,Ve as objOf,He as omit,Ue as omitBy,We as once,Ge as only,Ke as partialBind,qe as partialLastBind,Je as partition,Ye as pathOr,Xe as pick,Ze as pickBy,g as pipe,Qe as piped,$e as product,et as prop,tt as pullObject,e as purry,nt as randomBigInt,rt as randomInteger,it as randomString,at as range,ot as rankBy,st as reduce,ct as reverse,lt as round,ut as sample,dt as set,ft as setPath,pt as shuffle,mt as sliceString,ht as sort,gt as sortBy,_t as sortedIndex,vt as sortedIndexBy,yt as sortedIndexWith,bt as sortedLastIndex,xt as sortedLastIndexBy,St as splice,Ct as split,wt as splitAt,Tt as splitWhen,Et as startsWith,Dt as stringToPath,Ot as subtract,Me as sum,kt as sumBy,At as swapIndices,jt as swapProps,Mt as take,Nt as takeFirstBy,Pt as takeLast,Ft as takeLastWhile,It as takeWhile,Lt as tap,Rt as times,zt as toCamelCase,Bt as toKebabCase,Vt as toLowerCase,Ht as toSnakeCase,Ut as toTitleCase,Wt as toUpperCase,Gt as truncate,Kt as uncapitalize,qt as unique,Jt as uniqueBy,Yt as uniqueWith,Xt as values,Zt as when,Qt as zip,$t as zipWith};
1
+ import{purry as e}from"./purry.js";import{add as t}from"./add.js";import{addProp as n}from"./addProp.js";import{allPass as r}from"./allPass.js";import{anyPass as i}from"./anyPass.js";import{capitalize as a}from"./capitalize.js";import{ceil as o}from"./ceil.js";import{chunk as s}from"./chunk.js";import{clamp as c}from"./clamp.js";import{clone as l}from"./clone.js";import{concat as u}from"./concat.js";import{t as d}from"./conditional-CTEJD5TX.js";import{constant as f}from"./constant.js";import{countBy as p}from"./countBy.js";import{debounce as m}from"./debounce.js";import{defaultTo as h}from"./defaultTo.js";import{pipe as g}from"./pipe.js";import{difference as _}from"./difference.js";import{differenceWith as v}from"./differenceWith.js";import{divide as y}from"./divide.js";import{doNothing as b}from"./doNothing.js";import{drop as x}from"./drop.js";import{hasAtLeast as S}from"./hasAtLeast.js";import{dropFirstBy as C}from"./dropFirstBy.js";import{dropLast as w}from"./dropLast.js";import{dropLastWhile as T}from"./dropLastWhile.js";import{dropWhile as E}from"./dropWhile.js";import{endsWith as D}from"./endsWith.js";import{entries as O}from"./entries.js";import{evolve as k}from"./evolve.js";import{filter as A}from"./filter.js";import{find as j}from"./find.js";import{findIndex as M}from"./findIndex.js";import{findLast as N}from"./findLast.js";import{findLastIndex as P}from"./findLastIndex.js";import{first as F}from"./first.js";import{firstBy as I}from"./firstBy.js";import{flat as L}from"./flat.js";import{flatMap as R}from"./flatMap.js";import{floor as z}from"./floor.js";import{forEach as B}from"./forEach.js";import{forEachObj as V}from"./forEachObj.js";import{fromEntries as H}from"./fromEntries.js";import{fromKeys as U}from"./fromKeys.js";import{funnel as W}from"./funnel.js";import{groupBy as G}from"./groupBy.js";import{groupByProp as K}from"./groupByProp.js";import{hasProp as q}from"./hasProp.js";import{isDeepEqual as J}from"./isDeepEqual.js";import{hasSubObject as Y}from"./hasSubObject.js";import{identity as X}from"./identity.js";import{indexBy as Z}from"./indexBy.js";import{intersection as Q}from"./intersection.js";import{intersectionWith as $}from"./intersectionWith.js";import{invert as ee}from"./invert.js";import{isArray as te}from"./isArray.js";import{isBigInt as ne}from"./isBigInt.js";import{isBoolean as re}from"./isBoolean.js";import{isDate as ie}from"./isDate.js";import{isDefined as ae}from"./isDefined.js";import{isEmpty as oe}from"./isEmpty.js";import{isEmptyish as se}from"./isEmptyish.js";import{isError as ce}from"./isError.js";import{isFunction as le}from"./isFunction.js";import{isIncludedIn as ue}from"./isIncludedIn.js";import{isNonNull as de}from"./isNonNull.js";import{isNonNullish as fe}from"./isNonNullish.js";import{isNot as pe}from"./isNot.js";import{isNullish as me}from"./isNullish.js";import{isNumber as he}from"./isNumber.js";import{isObjectType as ge}from"./isObjectType.js";import{isPlainObject as _e}from"./isPlainObject.js";import{isPromise as ve}from"./isPromise.js";import{isShallowEqual as ye}from"./isShallowEqual.js";import{isStrictEqual as be}from"./isStrictEqual.js";import{isString as xe}from"./isString.js";import{isSymbol as Se}from"./isSymbol.js";import{isTruthy as Ce}from"./isTruthy.js";import{join as we}from"./join.js";import{keys as Te}from"./keys.js";import{last as Ee}from"./last.js";import{length as De}from"./length.js";import{map as Oe}from"./map.js";import{mapKeys as ke}from"./mapKeys.js";import{mapToObj as Ae}from"./mapToObj.js";import{mapValues as je}from"./mapValues.js";import{mapWithFeedback as Me}from"./mapWithFeedback.js";import{sum as Ne}from"./sum.js";import{mean as Pe}from"./mean.js";import{meanBy as Fe}from"./meanBy.js";import{median as Ie}from"./median.js";import{merge as Le}from"./merge.js";import{mergeAll as Re}from"./mergeAll.js";import{mergeDeep as ze}from"./mergeDeep.js";import{multiply as Be}from"./multiply.js";import{t as Ve}from"./nthBy-DCn3SK1l.js";import{objOf as He}from"./objOf.js";import{omit as Ue}from"./omit.js";import{omitBy as We}from"./omitBy.js";import{once as Ge}from"./once.js";import{only as Ke}from"./only.js";import{partialBind as qe}from"./partialBind.js";import{partialLastBind as Je}from"./partialLastBind.js";import{partition as Ye}from"./partition.js";import{pathOr as Xe}from"./pathOr.js";import{pick as Ze}from"./pick.js";import{pickBy as Qe}from"./pickBy.js";import{piped as $e}from"./piped.js";import{product as et}from"./product.js";import{prop as tt}from"./prop.js";import{pullObject as nt}from"./pullObject.js";import{randomBigInt as rt}from"./randomBigInt.js";import{randomInteger as it}from"./randomInteger.js";import{randomString as at}from"./randomString.js";import{range as ot}from"./range.js";import{rankBy as st}from"./rankBy.js";import{reduce as ct}from"./reduce.js";import{reverse as lt}from"./reverse.js";import{round as ut}from"./round.js";import{sample as dt}from"./sample.js";import{set as ft}from"./set.js";import{setPath as pt}from"./setPath.js";import{shuffle as mt}from"./shuffle.js";import{sliceString as ht}from"./sliceString.js";import{sort as gt}from"./sort.js";import{sortBy as _t}from"./sortBy.js";import{sortedIndex as vt}from"./sortedIndex.js";import{sortedIndexBy as yt}from"./sortedIndexBy.js";import{sortedIndexWith as bt}from"./sortedIndexWith.js";import{sortedLastIndex as xt}from"./sortedLastIndex.js";import{sortedLastIndexBy as St}from"./sortedLastIndexBy.js";import{splice as Ct}from"./splice.js";import{split as wt}from"./split.js";import{splitAt as Tt}from"./splitAt.js";import{splitWhen as Et}from"./splitWhen.js";import{startsWith as Dt}from"./startsWith.js";import{stringToPath as Ot}from"./stringToPath.js";import{subtract as kt}from"./subtract.js";import{sumBy as At}from"./sumBy.js";import{swapIndices as jt}from"./swapIndices.js";import{swapProps as Mt}from"./swapProps.js";import{take as Nt}from"./take.js";import{takeFirstBy as Pt}from"./takeFirstBy.js";import{takeLast as Ft}from"./takeLast.js";import{takeLastWhile as It}from"./takeLastWhile.js";import{takeWhile as Lt}from"./takeWhile.js";import{tap as Rt}from"./tap.js";import{times as zt}from"./times.js";import{toCamelCase as Bt}from"./toCamelCase.js";import{toKebabCase as Vt}from"./toKebabCase.js";import{toLowerCase as Ht}from"./toLowerCase.js";import{toSnakeCase as Ut}from"./toSnakeCase.js";import{toTitleCase as Wt}from"./toTitleCase.js";import{toUpperCase as Gt}from"./toUpperCase.js";import{truncate as Kt}from"./truncate.js";import{uncapitalize as qt}from"./uncapitalize.js";import{unique as Jt}from"./unique.js";import{uniqueBy as Yt}from"./uniqueBy.js";import{uniqueWith as Xt}from"./uniqueWith.js";import{values as Zt}from"./values.js";import{when as Qt}from"./when.js";import{zip as $t}from"./zip.js";import{zipWith as en}from"./zipWith.js";export{t as add,n as addProp,r as allPass,i as anyPass,a as capitalize,o as ceil,s as chunk,c as clamp,l as clone,u as concat,d as conditional,f as constant,p as countBy,m as debounce,h as defaultTo,_ as difference,v as differenceWith,y as divide,b as doNothing,x as drop,C as dropFirstBy,w as dropLast,T as dropLastWhile,E as dropWhile,D as endsWith,O as entries,k as evolve,A as filter,j as find,M as findIndex,N as findLast,P as findLastIndex,F as first,I as firstBy,L as flat,R as flatMap,z as floor,B as forEach,V as forEachObj,H as fromEntries,U as fromKeys,W as funnel,G as groupBy,K as groupByProp,S as hasAtLeast,q as hasProp,Y as hasSubObject,X as identity,Z as indexBy,Q as intersection,$ as intersectionWith,ee as invert,te as isArray,ne as isBigInt,re as isBoolean,ie as isDate,J as isDeepEqual,ae as isDefined,oe as isEmpty,se as isEmptyish,ce as isError,le as isFunction,ue as isIncludedIn,de as isNonNull,fe as isNonNullish,pe as isNot,me as isNullish,he as isNumber,ge as isObjectType,_e as isPlainObject,ve as isPromise,ye as isShallowEqual,be as isStrictEqual,xe as isString,Se as isSymbol,Ce as isTruthy,we as join,Te as keys,Ee as last,De as length,Oe as map,ke as mapKeys,Ae as mapToObj,je as mapValues,Me as mapWithFeedback,Pe as mean,Fe as meanBy,Ie as median,Le as merge,Re as mergeAll,ze as mergeDeep,Be as multiply,Ve as nthBy,He as objOf,Ue as omit,We as omitBy,Ge as once,Ke as only,qe as partialBind,Je as partialLastBind,Ye as partition,Xe as pathOr,Ze as pick,Qe as pickBy,g as pipe,$e as piped,et as product,tt as prop,nt as pullObject,e as purry,rt as randomBigInt,it as randomInteger,at as randomString,ot as range,st as rankBy,ct as reduce,lt as reverse,ut as round,dt as sample,ft as set,pt as setPath,mt as shuffle,ht as sliceString,gt as sort,_t as sortBy,vt as sortedIndex,yt as sortedIndexBy,bt as sortedIndexWith,xt as sortedLastIndex,St as sortedLastIndexBy,Ct as splice,wt as split,Tt as splitAt,Et as splitWhen,Dt as startsWith,Ot as stringToPath,kt as subtract,Ne as sum,At as sumBy,jt as swapIndices,Mt as swapProps,Nt as take,Pt as takeFirstBy,Ft as takeLast,It as takeLastWhile,Lt as takeWhile,Rt as tap,zt as times,Bt as toCamelCase,Vt as toKebabCase,Ht as toLowerCase,Ut as toSnakeCase,Wt as toTitleCase,Gt as toUpperCase,Kt as truncate,qt as uncapitalize,Jt as unique,Yt as uniqueBy,Xt as uniqueWith,Zt as values,Qt as when,$t as zip,en as zipWith};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remeda",
3
- "version": "2.34.0",
3
+ "version": "2.34.1",
4
4
  "type": "module",
5
5
  "description": "A utility library for JavaScript and Typescript.",
6
6
  "repository": {
@@ -62,29 +62,29 @@
62
62
  "devDependencies": {
63
63
  "@arethetypeswrong/core": "^0.18.2",
64
64
  "@eslint/js": "^10.0.1",
65
- "@fast-check/vitest": "^0.4.0",
65
+ "@fast-check/vitest": "^0.4.1",
66
66
  "@types/eslint-config-prettier": "^6.11.3",
67
- "@types/node": "^25.5.2",
68
- "@vitest/coverage-v8": "^4.1.2",
69
- "@vitest/eslint-plugin": "^1.6.14",
67
+ "@types/node": "^25.6.0",
68
+ "@vitest/coverage-v8": "^4.1.5",
69
+ "@vitest/eslint-plugin": "^1.6.16",
70
70
  "eslint": "~10.2.0",
71
71
  "eslint-config-prettier": "^10.1.8",
72
72
  "eslint-plugin-jsdoc": "^62.9.0",
73
73
  "eslint-plugin-unicorn": "^64.0.0",
74
74
  "jiti": "^2.6.1",
75
75
  "jsr": "^0.14.3",
76
- "lint-staged": "^16.4.0",
77
- "pkg-pr-new": "^0.0.66",
78
- "prettier": "^3.8.1",
76
+ "lint-staged": "^17.0.2",
77
+ "pkg-pr-new": "^0.0.69",
78
+ "prettier": "^3.8.3",
79
79
  "prettier-plugin-pkg": "^0.22.1",
80
- "prettier-plugin-sh": "^0.18.0",
80
+ "prettier-plugin-sh": "^0.18.1",
81
81
  "publint": "^0.3.18",
82
82
  "semantic-release": "^25.0.3",
83
- "tsdown": "^0.21.7",
83
+ "tsdown": "^0.21.10",
84
84
  "type-fest": "^5.5.0",
85
85
  "typescript": "^6.0.2",
86
- "typescript-eslint": "^8.58.0",
87
- "vitest": "^4.1.2"
86
+ "typescript-eslint": "^8.59.1",
87
+ "vitest": "^4.1.5"
88
88
  },
89
89
  "sideEffects": false
90
90
  }