@rspack/core 1.3.13 → 1.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/webpack-sources/index.js +112 -132
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types.d.ts +8 -6
- package/compiled/zod/dist/types/v3/types.d.ts +2 -2
- package/compiled/zod/dist/types/v4/classic/coerce.d.ts +5 -5
- package/compiled/zod/dist/types/v4/classic/external.d.ts +6 -1
- package/compiled/zod/dist/types/v4/classic/schemas.d.ts +88 -130
- package/compiled/zod/dist/types/v4/core/api.d.ts +2 -2
- package/compiled/zod/dist/types/v4/core/core.d.ts +11 -7
- package/compiled/zod/dist/types/v4/core/errors.d.ts +0 -1
- package/compiled/zod/dist/types/v4/core/function.d.ts +16 -11
- package/compiled/zod/dist/types/v4/core/regexes.d.ts +0 -1
- package/compiled/zod/dist/types/v4/core/registries.d.ts +6 -1
- package/compiled/zod/dist/types/v4/core/schemas.d.ts +144 -116
- package/compiled/zod/dist/types/v4/core/util.d.ts +5 -9
- package/compiled/zod/dist/types/v4/locales/ar.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/az.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/be.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/ca.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/cs.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/de.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/en.d.ts +0 -2
- package/compiled/zod/dist/types/v4/locales/es.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/fa.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/fi.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/{frCA.d.ts → fr-CA.d.ts} +0 -3
- package/compiled/zod/dist/types/v4/locales/fr.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/he.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/hu.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/id.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/index.d.ts +5 -2
- package/compiled/zod/dist/types/v4/locales/it.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/ja.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/{zh-tw.d.ts → kh.d.ts} +0 -3
- package/compiled/zod/dist/types/v4/locales/ko.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/mk.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/ms.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/nl.d.ts +4 -0
- package/compiled/zod/dist/types/v4/locales/no.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/ota.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/pl.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/pt.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/ru.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/sl.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/sv.d.ts +4 -0
- package/compiled/zod/dist/types/v4/locales/ta.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/th.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/tr.d.ts +0 -2
- package/compiled/zod/dist/types/v4/locales/ua.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/ur.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/vi.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/zh-TW.d.ts +4 -0
- package/compiled/zod/dist/types/v4/mini/external.d.ts +5 -1
- package/compiled/zod/dist/types/v4/mini/schemas.d.ts +39 -48
- package/compiled/zod/index.js +41 -63
- package/compiled/zod/package.json +1 -1
- package/compiled/zod/v3/index.d.ts +3 -1
- package/compiled/zod/v4/core/index.d.ts +1 -1
- package/compiled/zod/v4/index.d.ts +3 -1
- package/compiled/zod/v4/locales/index.d.ts +1 -1
- package/compiled/zod/v4-mini/index.d.ts +1 -1
- package/dist/ErrorHelpers.d.ts +0 -15
- package/dist/Module.d.ts +5 -1
- package/dist/ModuleTypeConstants.d.ts +0 -85
- package/dist/Resolver.d.ts +2 -1
- package/dist/RspackError.d.ts +0 -3
- package/dist/builtin-loader/lightningcss/index.d.ts +23 -1
- package/dist/builtin-loader/swc/types.d.ts +289 -2426
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +1 -2
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/zod.d.ts +370 -370
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/index.js +57 -30
- package/dist/lib/AbstractMethodError.d.ts +0 -1
- package/dist/lib/CacheFacade.d.ts +0 -28
- package/dist/loader-runner/index.d.ts +1 -0
- package/dist/stats/statsFactoryUtils.d.ts +0 -4
- package/dist/util/cleverMerge.d.ts +0 -30
- package/dist/util/comparators.d.ts +0 -4
- package/dist/util/hash/wasm-hash.d.ts +0 -1
- package/dist/util/identifier.d.ts +0 -12
- package/dist/util/index.d.ts +1 -7
- package/dist/util/memoize.d.ts +0 -1
- package/dist/worker.js +5 -7
- package/package.json +5 -5
- package/dist/util/hash/BatchedHash.d.ts +0 -25
package/compiled/zod/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/******/ "use strict";
|
3
3
|
/******/ var __webpack_modules__ = ({
|
4
4
|
|
5
|
-
/***/
|
5
|
+
/***/ 508:
|
6
6
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
7
7
|
|
8
8
|
|
@@ -24,20 +24,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24
24
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
25
25
|
};
|
26
26
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
27
|
-
const index_js_1 = __importDefault(__nccwpck_require__(
|
28
|
-
__exportStar(__nccwpck_require__(
|
27
|
+
const index_js_1 = __importDefault(__nccwpck_require__(854));
|
28
|
+
__exportStar(__nccwpck_require__(854), exports);
|
29
29
|
exports["default"] = index_js_1.default;
|
30
30
|
|
31
31
|
|
32
32
|
/***/ }),
|
33
33
|
|
34
|
-
/***/
|
34
|
+
/***/ 581:
|
35
35
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
36
36
|
|
37
37
|
|
38
38
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
39
39
|
exports.ZodError = exports.quotelessJson = exports.ZodIssueCode = void 0;
|
40
|
-
const util_js_1 = __nccwpck_require__(
|
40
|
+
const util_js_1 = __nccwpck_require__(378);
|
41
41
|
exports.ZodIssueCode = util_js_1.util.arrayToEnum([
|
42
42
|
"invalid_type",
|
43
43
|
"invalid_literal",
|
@@ -175,7 +175,7 @@ ZodError.create = (issues) => {
|
|
175
175
|
|
176
176
|
/***/ }),
|
177
177
|
|
178
|
-
/***/
|
178
|
+
/***/ 947:
|
179
179
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
180
180
|
|
181
181
|
|
@@ -186,7 +186,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
186
186
|
exports.defaultErrorMap = void 0;
|
187
187
|
exports.setErrorMap = setErrorMap;
|
188
188
|
exports.getErrorMap = getErrorMap;
|
189
|
-
const en_js_1 = __importDefault(__nccwpck_require__(
|
189
|
+
const en_js_1 = __importDefault(__nccwpck_require__(299));
|
190
190
|
exports.defaultErrorMap = en_js_1.default;
|
191
191
|
let overrideErrorMap = en_js_1.default;
|
192
192
|
function setErrorMap(map) {
|
@@ -199,7 +199,7 @@ function getErrorMap() {
|
|
199
199
|
|
200
200
|
/***/ }),
|
201
201
|
|
202
|
-
/***/
|
202
|
+
/***/ 11:
|
203
203
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
204
204
|
|
205
205
|
|
@@ -218,17 +218,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
218
218
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
219
219
|
};
|
220
220
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
221
|
-
__exportStar(__nccwpck_require__(
|
222
|
-
__exportStar(__nccwpck_require__(664), exports);
|
221
|
+
__exportStar(__nccwpck_require__(947), exports);
|
223
222
|
__exportStar(__nccwpck_require__(727), exports);
|
224
|
-
__exportStar(__nccwpck_require__(
|
225
|
-
__exportStar(__nccwpck_require__(
|
226
|
-
__exportStar(__nccwpck_require__(
|
223
|
+
__exportStar(__nccwpck_require__(444), exports);
|
224
|
+
__exportStar(__nccwpck_require__(378), exports);
|
225
|
+
__exportStar(__nccwpck_require__(523), exports);
|
226
|
+
__exportStar(__nccwpck_require__(581), exports);
|
227
227
|
|
228
228
|
|
229
229
|
/***/ }),
|
230
230
|
|
231
|
-
/***/
|
231
|
+
/***/ 814:
|
232
232
|
/***/ ((__unused_webpack_module, exports) => {
|
233
233
|
|
234
234
|
|
@@ -244,7 +244,7 @@ var errorUtil;
|
|
244
244
|
|
245
245
|
/***/ }),
|
246
246
|
|
247
|
-
/***/
|
247
|
+
/***/ 727:
|
248
248
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
249
249
|
|
250
250
|
|
@@ -254,8 +254,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
254
254
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
255
255
|
exports.isAsync = exports.isValid = exports.isDirty = exports.isAborted = exports.OK = exports.DIRTY = exports.INVALID = exports.ParseStatus = exports.EMPTY_PATH = exports.makeIssue = void 0;
|
256
256
|
exports.addIssueToContext = addIssueToContext;
|
257
|
-
const errors_js_1 = __nccwpck_require__(
|
258
|
-
const en_js_1 = __importDefault(__nccwpck_require__(
|
257
|
+
const errors_js_1 = __nccwpck_require__(947);
|
258
|
+
const en_js_1 = __importDefault(__nccwpck_require__(299));
|
259
259
|
const makeIssue = (params) => {
|
260
260
|
const { data, path, errorMaps, issueData } = params;
|
261
261
|
const fullPath = [...path, ...(issueData.path || [])];
|
@@ -375,7 +375,7 @@ exports.isAsync = isAsync;
|
|
375
375
|
|
376
376
|
/***/ }),
|
377
377
|
|
378
|
-
/***/
|
378
|
+
/***/ 444:
|
379
379
|
/***/ ((__unused_webpack_module, exports) => {
|
380
380
|
|
381
381
|
|
@@ -384,7 +384,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
384
384
|
|
385
385
|
/***/ }),
|
386
386
|
|
387
|
-
/***/
|
387
|
+
/***/ 378:
|
388
388
|
/***/ ((__unused_webpack_module, exports) => {
|
389
389
|
|
390
390
|
|
@@ -528,7 +528,7 @@ exports.getParsedType = getParsedType;
|
|
528
528
|
|
529
529
|
/***/ }),
|
530
530
|
|
531
|
-
/***/
|
531
|
+
/***/ 854:
|
532
532
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
533
533
|
|
534
534
|
|
@@ -560,21 +560,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
560
560
|
};
|
561
561
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
562
562
|
exports.z = void 0;
|
563
|
-
const z = __importStar(__nccwpck_require__(
|
563
|
+
const z = __importStar(__nccwpck_require__(11));
|
564
564
|
exports.z = z;
|
565
|
-
__exportStar(__nccwpck_require__(
|
565
|
+
__exportStar(__nccwpck_require__(11), exports);
|
566
566
|
exports["default"] = z;
|
567
567
|
|
568
568
|
|
569
569
|
/***/ }),
|
570
570
|
|
571
|
-
/***/
|
571
|
+
/***/ 299:
|
572
572
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
573
573
|
|
574
574
|
|
575
575
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
576
|
-
const ZodError_js_1 = __nccwpck_require__(
|
577
|
-
const util_js_1 = __nccwpck_require__(
|
576
|
+
const ZodError_js_1 = __nccwpck_require__(581);
|
577
|
+
const util_js_1 = __nccwpck_require__(378);
|
578
578
|
const errorMap = (issue, _ctx) => {
|
579
579
|
let message;
|
580
580
|
switch (issue.code) {
|
@@ -684,32 +684,20 @@ exports["default"] = errorMap;
|
|
684
684
|
|
685
685
|
/***/ }),
|
686
686
|
|
687
|
-
/***/
|
688
|
-
/***/ (
|
687
|
+
/***/ 523:
|
688
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
689
689
|
|
690
690
|
|
691
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
692
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
693
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
694
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
695
|
-
};
|
696
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
697
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
698
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
699
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
700
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
701
|
-
};
|
702
|
-
var _ZodEnum_cache, _ZodNativeEnum_cache;
|
703
691
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
704
692
|
exports.discriminatedUnion = exports.date = exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.ZodType = void 0;
|
705
693
|
exports.NEVER = exports["void"] = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports["null"] = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports["instanceof"] = exports["function"] = exports["enum"] = exports.effect = void 0;
|
706
694
|
exports.datetimeRegex = datetimeRegex;
|
707
695
|
exports.custom = custom;
|
708
|
-
const ZodError_js_1 = __nccwpck_require__(
|
709
|
-
const errors_js_1 = __nccwpck_require__(
|
710
|
-
const errorUtil_js_1 = __nccwpck_require__(
|
711
|
-
const parseUtil_js_1 = __nccwpck_require__(
|
712
|
-
const util_js_1 = __nccwpck_require__(
|
696
|
+
const ZodError_js_1 = __nccwpck_require__(581);
|
697
|
+
const errors_js_1 = __nccwpck_require__(947);
|
698
|
+
const errorUtil_js_1 = __nccwpck_require__(814);
|
699
|
+
const parseUtil_js_1 = __nccwpck_require__(727);
|
700
|
+
const util_js_1 = __nccwpck_require__(378);
|
713
701
|
class ParseInputLazyPath {
|
714
702
|
constructor(parent, value, path, key) {
|
715
703
|
this._cachedPath = [];
|
@@ -3760,10 +3748,6 @@ function createZodEnum(values, params) {
|
|
3760
3748
|
});
|
3761
3749
|
}
|
3762
3750
|
class ZodEnum extends ZodType {
|
3763
|
-
constructor() {
|
3764
|
-
super(...arguments);
|
3765
|
-
_ZodEnum_cache.set(this, void 0);
|
3766
|
-
}
|
3767
3751
|
_parse(input) {
|
3768
3752
|
if (typeof input.data !== "string") {
|
3769
3753
|
const ctx = this._getOrReturnCtx(input);
|
@@ -3775,10 +3759,10 @@ class ZodEnum extends ZodType {
|
|
3775
3759
|
});
|
3776
3760
|
return parseUtil_js_1.INVALID;
|
3777
3761
|
}
|
3778
|
-
if (!
|
3779
|
-
|
3762
|
+
if (!this._cache) {
|
3763
|
+
this._cache = new Set(this._def.values);
|
3780
3764
|
}
|
3781
|
-
if (!
|
3765
|
+
if (!this._cache.has(input.data)) {
|
3782
3766
|
const ctx = this._getOrReturnCtx(input);
|
3783
3767
|
const expectedValues = this._def.values;
|
3784
3768
|
(0, parseUtil_js_1.addIssueToContext)(ctx, {
|
@@ -3828,13 +3812,8 @@ class ZodEnum extends ZodType {
|
|
3828
3812
|
}
|
3829
3813
|
}
|
3830
3814
|
exports.ZodEnum = ZodEnum;
|
3831
|
-
_ZodEnum_cache = new WeakMap();
|
3832
3815
|
ZodEnum.create = createZodEnum;
|
3833
3816
|
class ZodNativeEnum extends ZodType {
|
3834
|
-
constructor() {
|
3835
|
-
super(...arguments);
|
3836
|
-
_ZodNativeEnum_cache.set(this, void 0);
|
3837
|
-
}
|
3838
3817
|
_parse(input) {
|
3839
3818
|
const nativeEnumValues = util_js_1.util.getValidEnumValues(this._def.values);
|
3840
3819
|
const ctx = this._getOrReturnCtx(input);
|
@@ -3847,10 +3826,10 @@ class ZodNativeEnum extends ZodType {
|
|
3847
3826
|
});
|
3848
3827
|
return parseUtil_js_1.INVALID;
|
3849
3828
|
}
|
3850
|
-
if (!
|
3851
|
-
|
3829
|
+
if (!this._cache) {
|
3830
|
+
this._cache = new Set(util_js_1.util.getValidEnumValues(this._def.values));
|
3852
3831
|
}
|
3853
|
-
if (!
|
3832
|
+
if (!this._cache.has(input.data)) {
|
3854
3833
|
const expectedValues = util_js_1.util.objectValues(nativeEnumValues);
|
3855
3834
|
(0, parseUtil_js_1.addIssueToContext)(ctx, {
|
3856
3835
|
received: ctx.data,
|
@@ -3866,7 +3845,6 @@ class ZodNativeEnum extends ZodType {
|
|
3866
3845
|
}
|
3867
3846
|
}
|
3868
3847
|
exports.ZodNativeEnum = ZodNativeEnum;
|
3869
|
-
_ZodNativeEnum_cache = new WeakMap();
|
3870
3848
|
ZodNativeEnum.create = (values, params) => {
|
3871
3849
|
return new ZodNativeEnum({
|
3872
3850
|
values: values,
|
@@ -4014,7 +3992,7 @@ class ZodEffects extends ZodType {
|
|
4014
3992
|
parent: ctx,
|
4015
3993
|
});
|
4016
3994
|
if (!(0, parseUtil_js_1.isValid)(base))
|
4017
|
-
return
|
3995
|
+
return parseUtil_js_1.INVALID;
|
4018
3996
|
const result = effect.transform(base.value, checkCtx);
|
4019
3997
|
if (result instanceof Promise) {
|
4020
3998
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
@@ -4024,7 +4002,7 @@ class ZodEffects extends ZodType {
|
|
4024
4002
|
else {
|
4025
4003
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
4026
4004
|
if (!(0, parseUtil_js_1.isValid)(base))
|
4027
|
-
return
|
4005
|
+
return parseUtil_js_1.INVALID;
|
4028
4006
|
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
4029
4007
|
status: status.value,
|
4030
4008
|
value: result,
|
@@ -4528,7 +4506,7 @@ exports.NEVER = parseUtil_js_1.INVALID;
|
|
4528
4506
|
/******/ // startup
|
4529
4507
|
/******/ // Load entry module and return exports
|
4530
4508
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
4531
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
4509
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(508);
|
4532
4510
|
/******/ module.exports = __webpack_exports__;
|
4533
4511
|
/******/
|
4534
4512
|
/******/ })()
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"zod","author":"Colin McDonnell <zod@colinhacks.com>","version":"3.25.
|
1
|
+
{"name":"zod","author":"Colin McDonnell <zod@colinhacks.com>","version":"3.25.50","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"./dist/types/index.d.ts","type":"commonjs"}
|
@@ -1 +1 @@
|
|
1
|
-
export * from "../../dist/types/v4/core/index.
|
1
|
+
export * from "../../dist/types/v4/core/index.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "../../dist/types/v4/locales/index.
|
1
|
+
export * from "../../dist/types/v4/locales/index.js";
|
@@ -1 +1 @@
|
|
1
|
-
export * from "../dist/types/v4/mini/index.
|
1
|
+
export * from "../dist/types/v4/mini/index.js";
|
package/dist/ErrorHelpers.d.ts
CHANGED
@@ -1,16 +1 @@
|
|
1
|
-
/**
|
2
|
-
* The following code is modified based on
|
3
|
-
* https://github.com/webpack/webpack/blob/4b4ca3b/lib/ErrorHelpers.js
|
4
|
-
*
|
5
|
-
* MIT Licensed
|
6
|
-
* Author Tobias Koppers @sokra
|
7
|
-
* Copyright (c) JS Foundation and other contributors
|
8
|
-
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
|
-
*/
|
10
|
-
export declare const cutOffByFlag: (stack: string, flag: string) => string;
|
11
1
|
export declare const cutOffLoaderExecution: (stack: string) => string;
|
12
|
-
export declare const cutOffWebpackOptions: (stack: string) => string;
|
13
|
-
export declare const cutOffMultilineMessage: (stack: string, message: string) => string;
|
14
|
-
export declare const cutOffMessage: (stack: string, message: string) => string;
|
15
|
-
export declare const cleanUp: (stack: string, message: string) => string;
|
16
|
-
export declare const cleanUpWebpackOptions: (stack: string, message: string) => string;
|
package/dist/Module.d.ts
CHANGED
@@ -47,8 +47,12 @@ declare module "@rspack/binding" {
|
|
47
47
|
interface Assets {
|
48
48
|
[$assets]: Record<string, Source>;
|
49
49
|
}
|
50
|
-
interface
|
50
|
+
interface KnownBuildInfo {
|
51
51
|
assets: Record<string, Source>;
|
52
|
+
fileDependencies: Set<string>;
|
53
|
+
contextDependencies: Set<string>;
|
54
|
+
missingDependencies: Set<string>;
|
55
|
+
buildDependencies: Set<string>;
|
52
56
|
}
|
53
57
|
}
|
54
58
|
declare module "@rspack/binding" {
|
@@ -1,93 +1,8 @@
|
|
1
|
-
export declare const JAVASCRIPT_MODULE_TYPE_AUTO = "javascript/auto";
|
2
|
-
export declare const JAVASCRIPT_MODULE_TYPE_DYNAMIC = "javascript/dynamic";
|
3
|
-
/**
|
4
|
-
* This is the module type used for _strict_ ES Module syntax. This means that all legacy formats
|
5
|
-
* that webpack supports (CommonJS, AMD, SystemJS) are not supported.
|
6
|
-
*/
|
7
|
-
export declare const JAVASCRIPT_MODULE_TYPE_ESM = "javascript/esm";
|
8
1
|
/**
|
9
2
|
* This is the module type used for JSON files. JSON files are always parsed as ES Module.
|
10
3
|
*/
|
11
4
|
export declare const JSON_MODULE_TYPE = "json";
|
12
|
-
/**
|
13
|
-
* This is the module type used for WebAssembly modules. In webpack 5 they are always treated as async modules.
|
14
|
-
*
|
15
|
-
*/
|
16
|
-
export declare const WEBASSEMBLY_MODULE_TYPE_ASYNC = "webassembly/async";
|
17
|
-
/**
|
18
|
-
* This is the module type used for WebAssembly modules. In webpack 4 they are always treated as sync modules.
|
19
|
-
* There is a legacy option to support this usage in webpack 5 and up.
|
20
|
-
*/
|
21
|
-
export declare const WEBASSEMBLY_MODULE_TYPE_SYNC = "webassembly/sync";
|
22
|
-
/**
|
23
|
-
* This is the module type used for CSS files.
|
24
|
-
*/
|
25
|
-
export declare const CSS_MODULE_TYPE = "css";
|
26
|
-
/**
|
27
|
-
* This is the module type used for CSS modules files where you need to use `:local` in selector list to hash classes.
|
28
|
-
*/
|
29
|
-
export declare const CSS_MODULE_TYPE_GLOBAL = "css/global";
|
30
|
-
/**
|
31
|
-
* This is the module type used for CSS modules files, by default all classes are hashed.
|
32
|
-
*/
|
33
|
-
export declare const CSS_MODULE_TYPE_MODULE = "css/module";
|
34
|
-
/**
|
35
|
-
* This is the module type used for CSS files, the module will be parsed as CSS modules if it's filename contains `.module.` or `.modules.`.
|
36
|
-
*/
|
37
|
-
export declare const CSS_MODULE_TYPE_AUTO = "css/auto";
|
38
5
|
/**
|
39
6
|
* This is the module type used for automatically choosing between `asset/inline`, `asset/resource` based on asset size limit (8096).
|
40
7
|
*/
|
41
8
|
export declare const ASSET_MODULE_TYPE = "asset";
|
42
|
-
/**
|
43
|
-
* This is the module type used for assets that are inlined as a data URI. This is the equivalent of `url-loader`.
|
44
|
-
*/
|
45
|
-
export declare const ASSET_MODULE_TYPE_INLINE = "asset/inline";
|
46
|
-
/**
|
47
|
-
* This is the module type used for assets that are copied to the output directory. This is the equivalent of `file-loader`.
|
48
|
-
*/
|
49
|
-
export declare const ASSET_MODULE_TYPE_RESOURCE = "asset/resource";
|
50
|
-
/**
|
51
|
-
* @type {Readonly<"asset/source">}
|
52
|
-
* This is the module type used for assets that are imported as source code. This is the equivalent of `raw-loader`.
|
53
|
-
*/
|
54
|
-
export declare const ASSET_MODULE_TYPE_SOURCE = "asset/source";
|
55
|
-
/**
|
56
|
-
* TODO: Document what this asset type is for. See css-loader tests for its usage.
|
57
|
-
*/
|
58
|
-
export declare const ASSET_MODULE_TYPE_RAW_DATA_URL = "asset/raw-data-url";
|
59
|
-
/**
|
60
|
-
* This is the module type used for the webpack runtime abstractions.
|
61
|
-
*/
|
62
|
-
export declare const WEBPACK_MODULE_TYPE_RUNTIME = "runtime";
|
63
|
-
/**
|
64
|
-
* This is the module type used for the ModuleFederation feature's FallbackModule class.
|
65
|
-
* TODO: Document this better.
|
66
|
-
*/
|
67
|
-
export declare const WEBPACK_MODULE_TYPE_FALLBACK = "fallback-module";
|
68
|
-
/**
|
69
|
-
* This is the module type used for the ModuleFederation feature's RemoteModule class.
|
70
|
-
* TODO: Document this better.
|
71
|
-
*/
|
72
|
-
export declare const WEBPACK_MODULE_TYPE_REMOTE = "remote-module";
|
73
|
-
/**
|
74
|
-
* This is the module type used for the ModuleFederation feature's ProvideModule class.
|
75
|
-
* TODO: Document this better.
|
76
|
-
*/
|
77
|
-
export declare const WEBPACK_MODULE_TYPE_PROVIDE = "provide-module";
|
78
|
-
/**
|
79
|
-
* This is the module type used for the ModuleFederation feature's ConsumeSharedModule class.
|
80
|
-
*/
|
81
|
-
export declare const WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE = "consume-shared-module";
|
82
|
-
/**
|
83
|
-
* Module type used for `experiments.lazyCompilation` feature. See `LazyCompilationPlugin` for more information.
|
84
|
-
*/
|
85
|
-
export declare const WEBPACK_MODULE_TYPE_LAZY_COMPILATION_PROXY = "lazy-compilation-proxy";
|
86
|
-
export type JavaScriptModuleTypes = "javascript/auto" | "javascript/dynamic" | "javascript/esm";
|
87
|
-
export type JSONModuleType = "json";
|
88
|
-
export type WebAssemblyModuleTypes = "webassembly/async" | "webassembly/sync";
|
89
|
-
export type CSSModuleTypes = "css" | "css/global" | "css/module";
|
90
|
-
export type AssetModuleTypes = "asset" | "asset/inline" | "asset/resource" | "asset/source" | "asset/raw-data-url";
|
91
|
-
export type WebpackModuleTypes = "runtime" | "fallback-module" | "remote-module" | "provide-module" | "consume-shared-module" | "lazy-compilation-proxy";
|
92
|
-
export type UnknownModuleTypes = string;
|
93
|
-
export type ModuleTypes = JavaScriptModuleTypes | JSONModuleType | WebAssemblyModuleTypes | CSSModuleTypes | AssetModuleTypes | WebpackModuleTypes | UnknownModuleTypes;
|
package/dist/Resolver.d.ts
CHANGED
@@ -9,10 +9,11 @@ type ResolveOptionsWithDependencyType = Resolve & {
|
|
9
9
|
export type ResourceData = binding.JsResourceData;
|
10
10
|
export type ResolveRequest = ResourceData;
|
11
11
|
export declare class Resolver {
|
12
|
+
#private;
|
12
13
|
binding: binding.JsResolver;
|
13
14
|
constructor(binding: binding.JsResolver);
|
14
15
|
resolveSync(context: object, path: string, request: string): string | false;
|
15
16
|
resolve(context: object, path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void;
|
16
|
-
withOptions(
|
17
|
+
withOptions(options: ResolveOptionsWithDependencyType): Resolver;
|
17
18
|
}
|
18
19
|
export {};
|
package/dist/RspackError.d.ts
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
import type * as binding from "@rspack/binding";
|
2
2
|
export type RspackError = binding.JsRspackError;
|
3
3
|
export type RspackSeverity = binding.JsRspackSeverity;
|
4
|
-
export declare class JsRspackDiagnostic {
|
5
|
-
static __to_binding(error: Error | RspackError, severity: RspackSeverity): binding.JsRspackDiagnostic;
|
6
|
-
}
|
7
4
|
export declare class NonErrorEmittedError extends Error {
|
8
5
|
constructor(error: Error);
|
9
6
|
}
|
@@ -1,4 +1,26 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
MIT License
|
3
|
+
|
4
|
+
Copyright (c) 2021-present Devon Govett
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
SOFTWARE.
|
23
|
+
*/
|
2
24
|
export declare function toFeatures(featureOptions: FeatureOptions): Features;
|
3
25
|
export declare enum Features {
|
4
26
|
Empty = 0,
|