@rspack/core 1.3.4 → 1.3.6

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/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  <picture>
2
- <source media="(prefers-color-scheme: dark)" srcset="https://assets.rspack.dev/rspack/rspack-banner-plain-dark.png">
3
- <img alt="Rspack Banner" src="https://assets.rspack.dev/rspack/rspack-banner-plain-light.png">
2
+ <img alt="Rspack Banner" src="https://assets.rspack.dev/rspack/rspack-banner.png">
4
3
  </picture>
5
4
 
6
5
  # @rspack/core
@@ -605,7 +605,7 @@ interface JscConfig {
605
605
  *
606
606
  * Second parameter of tuple is JSON based configuration for the plugin.
607
607
  */
608
- plugins?: Array<[string, Record<string, any>]>;
608
+ plugins?: WasmPlugin[];
609
609
  /**
610
610
  * Run Wasm plugins before stripping TypeScript or decorators.
611
611
  *
@@ -2096,5 +2096,14 @@ type Accessibility = "public" | "protected" | "private";
2096
2096
  interface Invalid extends Node, HasSpan {
2097
2097
  type: "Invalid";
2098
2098
  }
2099
+ type WasmAnalysisOptions = {
2100
+ parser?: ParserConfig;
2101
+ module?: true | false | 'unknown';
2102
+ filename?: string;
2103
+ errorFormat?: 'json' | 'normal';
2104
+ cacheRoot?: string;
2105
+ plugins: WasmPlugin[];
2106
+ };
2107
+ type WasmPlugin = [wasmPackage: string, config: Record<string, any>];
2099
2108
 
2100
- export type { Accessibility, AmdConfig, Argument, ArrayExpression, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentOperator, AssignmentPattern, AssignmentPatternProperty, AssignmentProperty, AwaitExpression, BaseModuleConfig, BigIntLiteral, BinaryExpression, BinaryOperator, BindingIdentifier, BlockStatement, BooleanLiteral, BreakStatement, CallExpression, CallerOptions, CatchClause, Class, ClassDeclaration, ClassExpression, ClassMember, ClassMethod, ClassMethodBase, ClassProperty, ClassPropertyBase, CommonJsConfig, ComputedPropName, ConditionalExpression, Config, ConstModulesConfig, Constructor, ContinueStatement, DebuggerStatement, Declaration, Decorator, DefaultDecl, DoWhileStatement, EmptyStatement, EnvConfig, Es6Config, EsParserConfig, ExportAllDeclaration, ExportDeclaration, ExportDefaultDeclaration, ExportDefaultExpression, ExportDefaultSpecifier, ExportNamedDeclaration, ExportNamespaceSpecifier, ExportSpecifier, ExprOrSpread, Expression, ExpressionStatement, Fn, ForInStatement, ForOfStatement, ForStatement, FunctionDeclaration, FunctionExpression, GetterProperty, GlobalPassOption, HasDecorator, HasSpan, Identifier, IfStatement, Import, ImportDeclaration, ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier, Invalid, JSXAttrValue, JSXAttribute, JSXAttributeName, JSXAttributeOrSpread, JSXClosingElement, JSXClosingFragment, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpression, JSXExpression, JSXExpressionContainer, JSXFragment, JSXMemberExpression, JSXNamespacedName, JSXObject, JSXOpeningElement, JSXOpeningFragment, JSXSpreadChild, JSXText, JsFormatOptions, JsMinifyOptions, JscConfig, JscTarget, KeyValuePatternProperty, KeyValueProperty, LabeledStatement, Literal, MatchPattern, MemberExpression, MetaProperty, MethodKind, MethodProperty, Module, ModuleConfig, ModuleDeclaration, ModuleExportName, ModuleItem, NamedExportSpecifier, NamedImportSpecifier, NewExpression, Node, NodeNextConfig, NullLiteral, NumericLiteral, ObjectExpression, ObjectPattern, ObjectPatternProperty, OptimizerConfig, OptionalChainingCall, OptionalChainingExpression, Options, Output, Param, ParenthesisExpression, ParseOptions, ParserConfig, Pattern, Plugin, PrivateMethod, PrivateName, PrivateProperty, Program, Property, PropertyName, ReactConfig, RegExpLiteral, RestElement, ReturnStatement, Script, SequenceExpression, SetterProperty, Span, SpreadElement, Statement, StaticBlock, StringLiteral, Super, SuperPropExpression, Swcrc, SwitchCase, SwitchStatement, SystemjsConfig, TaggedTemplateExpression, TemplateElement, TemplateLiteral, TerserCompressOptions, TerserEcmaVersion, TerserMangleOptions, TerserManglePropertiesOptions, ThisExpression, ThrowStatement, TransformConfig, TruePlusMinus, TryStatement, TsArrayType, TsAsExpression, TsCallSignatureDeclaration, TsConditionalType, TsConstAssertion, TsConstructSignatureDeclaration, TsConstructorType, TsEntityName, TsEnumDeclaration, TsEnumMember, TsEnumMemberId, TsExportAssignment, TsExpressionWithTypeArguments, TsExternalModuleReference, TsFnOrConstructorType, TsFnParameter, TsFunctionType, TsGetterSignature, TsImportEqualsDeclaration, TsImportType, TsIndexSignature, TsIndexedAccessType, TsInferType, TsInstantiation, TsInterfaceBody, TsInterfaceDeclaration, TsIntersectionType, TsKeywordType, TsKeywordTypeKind, TsLiteral, TsLiteralType, TsMappedType, TsMethodSignature, TsModuleBlock, TsModuleDeclaration, TsModuleName, TsModuleReference, TsNamespaceBody, TsNamespaceDeclaration, TsNamespaceExportDeclaration, TsNonNullExpression, TsOptionalType, TsParameterProperty, TsParameterPropertyParameter, TsParenthesizedType, TsParserConfig, TsPropertySignature, TsQualifiedName, TsRestType, TsSatisfiesExpression, TsSetterSignature, TsTemplateLiteralType, TsThisType, TsThisTypeOrIdent, TsTupleElement, TsTupleType, TsType, TsTypeAliasDeclaration, TsTypeAnnotation, TsTypeAssertion, TsTypeElement, TsTypeLiteral, TsTypeOperator, TsTypeOperatorOp, TsTypeParameter, TsTypeParameterDeclaration, TsTypeParameterInstantiation, TsTypePredicate, TsTypeQuery, TsTypeQueryExpr, TsTypeReference, TsUnionOrIntersectionType, TsUnionType, UmdConfig, UnaryExpression, UnaryOperator, UpdateExpression, UpdateOperator, VariableDeclaration, VariableDeclarationKind, VariableDeclarator, WhileStatement, WithStatement, YieldExpression };
2109
+ export type { Accessibility, AmdConfig, Argument, ArrayExpression, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentOperator, AssignmentPattern, AssignmentPatternProperty, AssignmentProperty, AwaitExpression, BaseModuleConfig, BigIntLiteral, BinaryExpression, BinaryOperator, BindingIdentifier, BlockStatement, BooleanLiteral, BreakStatement, CallExpression, CallerOptions, CatchClause, Class, ClassDeclaration, ClassExpression, ClassMember, ClassMethod, ClassMethodBase, ClassProperty, ClassPropertyBase, CommonJsConfig, ComputedPropName, ConditionalExpression, Config, ConstModulesConfig, Constructor, ContinueStatement, DebuggerStatement, Declaration, Decorator, DefaultDecl, DoWhileStatement, EmptyStatement, EnvConfig, Es6Config, EsParserConfig, ExportAllDeclaration, ExportDeclaration, ExportDefaultDeclaration, ExportDefaultExpression, ExportDefaultSpecifier, ExportNamedDeclaration, ExportNamespaceSpecifier, ExportSpecifier, ExprOrSpread, Expression, ExpressionStatement, Fn, ForInStatement, ForOfStatement, ForStatement, FunctionDeclaration, FunctionExpression, GetterProperty, GlobalPassOption, HasDecorator, HasSpan, Identifier, IfStatement, Import, ImportDeclaration, ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier, Invalid, JSXAttrValue, JSXAttribute, JSXAttributeName, JSXAttributeOrSpread, JSXClosingElement, JSXClosingFragment, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpression, JSXExpression, JSXExpressionContainer, JSXFragment, JSXMemberExpression, JSXNamespacedName, JSXObject, JSXOpeningElement, JSXOpeningFragment, JSXSpreadChild, JSXText, JsFormatOptions, JsMinifyOptions, JscConfig, JscTarget, KeyValuePatternProperty, KeyValueProperty, LabeledStatement, Literal, MatchPattern, MemberExpression, MetaProperty, MethodKind, MethodProperty, Module, ModuleConfig, ModuleDeclaration, ModuleExportName, ModuleItem, NamedExportSpecifier, NamedImportSpecifier, NewExpression, Node, NodeNextConfig, NullLiteral, NumericLiteral, ObjectExpression, ObjectPattern, ObjectPatternProperty, OptimizerConfig, OptionalChainingCall, OptionalChainingExpression, Options, Output, Param, ParenthesisExpression, ParseOptions, ParserConfig, Pattern, Plugin, PrivateMethod, PrivateName, PrivateProperty, Program, Property, PropertyName, ReactConfig, RegExpLiteral, RestElement, ReturnStatement, Script, SequenceExpression, SetterProperty, Span, SpreadElement, Statement, StaticBlock, StringLiteral, Super, SuperPropExpression, Swcrc, SwitchCase, SwitchStatement, SystemjsConfig, TaggedTemplateExpression, TemplateElement, TemplateLiteral, TerserCompressOptions, TerserEcmaVersion, TerserMangleOptions, TerserManglePropertiesOptions, ThisExpression, ThrowStatement, TransformConfig, TruePlusMinus, TryStatement, TsArrayType, TsAsExpression, TsCallSignatureDeclaration, TsConditionalType, TsConstAssertion, TsConstructSignatureDeclaration, TsConstructorType, TsEntityName, TsEnumDeclaration, TsEnumMember, TsEnumMemberId, TsExportAssignment, TsExpressionWithTypeArguments, TsExternalModuleReference, TsFnOrConstructorType, TsFnParameter, TsFunctionType, TsGetterSignature, TsImportEqualsDeclaration, TsImportType, TsIndexSignature, TsIndexedAccessType, TsInferType, TsInstantiation, TsInterfaceBody, TsInterfaceDeclaration, TsIntersectionType, TsKeywordType, TsKeywordTypeKind, TsLiteral, TsLiteralType, TsMappedType, TsMethodSignature, TsModuleBlock, TsModuleDeclaration, TsModuleName, TsModuleReference, TsNamespaceBody, TsNamespaceDeclaration, TsNamespaceExportDeclaration, TsNonNullExpression, TsOptionalType, TsParameterProperty, TsParameterPropertyParameter, TsParenthesizedType, TsParserConfig, TsPropertySignature, TsQualifiedName, TsRestType, TsSatisfiesExpression, TsSetterSignature, TsTemplateLiteralType, TsThisType, TsThisTypeOrIdent, TsTupleElement, TsTupleType, TsType, TsTypeAliasDeclaration, TsTypeAnnotation, TsTypeAssertion, TsTypeElement, TsTypeLiteral, TsTypeOperator, TsTypeOperatorOp, TsTypeParameter, TsTypeParameterDeclaration, TsTypeParameterInstantiation, TsTypePredicate, TsTypeQuery, TsTypeQueryExpr, TsTypeReference, TsUnionOrIntersectionType, TsUnionType, UmdConfig, UnaryExpression, UnaryOperator, UpdateExpression, UpdateOperator, VariableDeclaration, VariableDeclarationKind, VariableDeclarator, WasmAnalysisOptions, WasmPlugin, WhileStatement, WithStatement, YieldExpression };
@@ -1 +1 @@
1
- {"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.20","license":"Apache-2.0","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"@swc/types","author":"강동윤 <kdy1997.dev@gmail.com>","version":"0.1.21","license":"Apache-2.0","types":"index.d.ts","type":"commonjs"}
@@ -928,7 +928,7 @@ declare interface ResolveOptionsResolverFactoryObject_2 {
928
928
  */
929
929
  preferAbsolute?: boolean;
930
930
  }
931
- export type ResolveRequest = BaseResolveRequest & Partial<ParsedIdentifier>;
931
+ type ResolveRequest = BaseResolveRequest & Partial<ParsedIdentifier>;
932
932
  declare abstract class Resolver {
933
933
  fileSystem: FileSystem;
934
934
  options: ResolveOptionsResolverFactoryObject_1;
@@ -1117,7 +1117,8 @@ declare namespace exports {
1117
1117
  res?: string | false,
1118
1118
  req?: ResolveRequest
1119
1119
  ) => void;
1120
- export { CachedInputFileSystem, CloneBasenamePlugin, LogInfoPlugin, type ResolveOptionsOptionalFS, type PnpApi, Resolver, type FileSystem, type ResolveContext, type ResolveRequest, type Plugin, type ResolveOptionsResolverFactoryObject_2 as ResolveOptions, type ResolveFunctionAsync, type ResolveFunction };
1120
+ export { CachedInputFileSystem, CloneBasenamePlugin, LogInfoPlugin, Resolver };
1121
+ export type { ResolveOptionsOptionalFS, PnpApi, FileSystem, ResolveContext, ResolveRequest, Plugin, ResolveOptionsResolverFactoryObject_2 as ResolveOptions, ResolveFunctionAsync, ResolveFunction };
1121
1122
  }
1122
1123
 
1123
1124
  export { exports as default };
@@ -22,10 +22,10 @@ declare namespace util {
22
22
  export const isInteger: NumberConstructor["isInteger"];
23
23
  export function joinValues<T extends any[]>(array: T, separator?: string): string;
24
24
  export const jsonStringifyReplacer: (_: string, value: any) => any;
25
- export { };
25
+ export {};
26
26
  }
27
27
  declare namespace objectUtil {
28
- export type MergeShapes<U, V> = {
28
+ export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : {
29
29
  [k in Exclude<keyof U, keyof V>]: U[k];
30
30
  } & V;
31
31
  type optionalKeys<T extends object> = {
@@ -52,12 +52,12 @@ declare namespace objectUtil {
52
52
  [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;
53
53
  }>;
54
54
  export const mergeShapes: <U, T>(first: U, second: T) => T & U;
55
- export type extendShape<A extends object, B extends object> = {
55
+ export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : {
56
56
  [K in keyof A as K extends keyof B ? never : K]: A[K];
57
57
  } & {
58
58
  [K in keyof B]: B[K];
59
59
  };
60
- export { };
60
+ export {};
61
61
  }
62
62
  declare const ZodParsedType: {
63
63
  string: "string";
@@ -333,7 +333,7 @@ declare namespace enumUtil {
333
333
  type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
334
334
  type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
335
335
  export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
336
- export { };
336
+ export {};
337
337
  }
338
338
 
339
339
  declare namespace errorUtil {
@@ -454,7 +454,7 @@ declare namespace StandardSchemaV1 {
454
454
  * Infers the output type of a Standard Schema.
455
455
  */
456
456
  export type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
457
- export { };
457
+ export {};
458
458
  }
459
459
 
460
460
  interface RefinementCtx {
@@ -1764,7 +1764,9 @@ type z_typeToFlattenedError<T, U = string> = typeToFlattenedError<T, U>;
1764
1764
  type z_typecast<A, T> = typecast<A, T>;
1765
1765
  import z_util = util;
1766
1766
  declare namespace z {
1767
- export { type z_AnyZodObject as AnyZodObject, type z_AnyZodTuple as AnyZodTuple, type z_ArrayCardinality as ArrayCardinality, type z_ArrayKeys as ArrayKeys, type z_AssertArray as AssertArray, type z_AsyncParseReturnType as AsyncParseReturnType, type z_BRAND as BRAND, type z_CatchallInput as CatchallInput, type z_CatchallOutput as CatchallOutput, type z_CustomErrorParams as CustomErrorParams, z_DIRTY as DIRTY, type z_DenormalizedError as DenormalizedError, z_EMPTY_PATH as EMPTY_PATH, type z_Effect as Effect, type z_EnumLike as EnumLike, type z_EnumValues as EnumValues, type z_ErrorMapCtx as ErrorMapCtx, type z_FilterEnum as FilterEnum, z_INVALID as INVALID, type z_Indices as Indices, type z_InnerTypeOfFunction as InnerTypeOfFunction, type z_InputTypeOfTuple as InputTypeOfTuple, type z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest, type z_IpVersion as IpVersion, type z_IssueData as IssueData, type z_KeySchema as KeySchema, z_NEVER as NEVER, z_OK as OK, type z_ObjectPair as ObjectPair, type z_OuterTypeOfFunction as OuterTypeOfFunction, type z_OutputTypeOfTuple as OutputTypeOfTuple, type z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest, type z_ParseContext as ParseContext, type z_ParseInput as ParseInput, type z_ParseParams as ParseParams, type z_ParsePath as ParsePath, type z_ParsePathComponent as ParsePathComponent, type z_ParseResult as ParseResult, type z_ParseReturnType as ParseReturnType, z_ParseStatus as ParseStatus, type z_PassthroughType as PassthroughType, type z_PreprocessEffect as PreprocessEffect, type z_Primitive as Primitive, type z_ProcessedCreateParams as ProcessedCreateParams, type z_RawCreateParams as RawCreateParams, type z_RecordType as RecordType, type z_Refinement as Refinement, type z_RefinementCtx as RefinementCtx, type z_RefinementEffect as RefinementEffect, type z_SafeParseError as SafeParseError, type z_SafeParseReturnType as SafeParseReturnType, type z_SafeParseSuccess as SafeParseSuccess, type z_Scalars as Scalars, ZodType as Schema, type z_SomeZodObject as SomeZodObject, type z_StringValidation as StringValidation, type z_SuperRefinement as SuperRefinement, type z_SyncParseReturnType as SyncParseReturnType, type z_TransformEffect as TransformEffect, type z_TypeOf as TypeOf, type z_UnknownKeysParam as UnknownKeysParam, type z_Values as Values, type z_Writeable as Writeable, z_ZodAny as ZodAny, type z_ZodAnyDef as ZodAnyDef, z_ZodArray as ZodArray, type z_ZodArrayDef as ZodArrayDef, z_ZodBigInt as ZodBigInt, type z_ZodBigIntCheck as ZodBigIntCheck, type z_ZodBigIntDef as ZodBigIntDef, z_ZodBoolean as ZodBoolean, type z_ZodBooleanDef as ZodBooleanDef, z_ZodBranded as ZodBranded, type z_ZodBrandedDef as ZodBrandedDef, z_ZodCatch as ZodCatch, type z_ZodCatchDef as ZodCatchDef, type z_ZodCustomIssue as ZodCustomIssue, z_ZodDate as ZodDate, type z_ZodDateCheck as ZodDateCheck, type z_ZodDateDef as ZodDateDef, z_ZodDefault as ZodDefault, type z_ZodDefaultDef as ZodDefaultDef, z_ZodDiscriminatedUnion as ZodDiscriminatedUnion, type z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef, type z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption, z_ZodEffects as ZodEffects, type z_ZodEffectsDef as ZodEffectsDef, z_ZodEnum as ZodEnum, type z_ZodEnumDef as ZodEnumDef, z_ZodError as ZodError, type z_ZodErrorMap as ZodErrorMap, type z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes, z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind, type z_ZodFormattedError as ZodFormattedError, z_ZodFunction as ZodFunction, type z_ZodFunctionDef as ZodFunctionDef, z_ZodIntersection as ZodIntersection, type z_ZodIntersectionDef as ZodIntersectionDef, type z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue, type z_ZodInvalidDateIssue as ZodInvalidDateIssue, type z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue, type z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue, type z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue, type z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue, type z_ZodInvalidStringIssue as ZodInvalidStringIssue, type z_ZodInvalidTypeIssue as ZodInvalidTypeIssue, type z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue, type z_ZodInvalidUnionIssue as ZodInvalidUnionIssue, type z_ZodIssue as ZodIssue, type z_ZodIssueBase as ZodIssueBase, type z_ZodIssueCode as ZodIssueCode, type z_ZodIssueOptionalMessage as ZodIssueOptionalMessage, z_ZodLazy as ZodLazy, type z_ZodLazyDef as ZodLazyDef, z_ZodLiteral as ZodLiteral, type z_ZodLiteralDef as ZodLiteralDef, z_ZodMap as ZodMap, type z_ZodMapDef as ZodMapDef, z_ZodNaN as ZodNaN, type z_ZodNaNDef as ZodNaNDef, z_ZodNativeEnum as ZodNativeEnum, type z_ZodNativeEnumDef as ZodNativeEnumDef, z_ZodNever as ZodNever, type z_ZodNeverDef as ZodNeverDef, type z_ZodNonEmptyArray as ZodNonEmptyArray, type z_ZodNotFiniteIssue as ZodNotFiniteIssue, type z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue, z_ZodNull as ZodNull, type z_ZodNullDef as ZodNullDef, z_ZodNullable as ZodNullable, type z_ZodNullableDef as ZodNullableDef, type z_ZodNullableType as ZodNullableType, z_ZodNumber as ZodNumber, type z_ZodNumberCheck as ZodNumberCheck, type z_ZodNumberDef as ZodNumberDef, z_ZodObject as ZodObject, type z_ZodObjectDef as ZodObjectDef, z_ZodOptional as ZodOptional, type z_ZodOptionalDef as ZodOptionalDef, type z_ZodOptionalType as ZodOptionalType, type z_ZodParsedType as ZodParsedType, z_ZodPipeline as ZodPipeline, type z_ZodPipelineDef as ZodPipelineDef, z_ZodPromise as ZodPromise, type z_ZodPromiseDef as ZodPromiseDef, type z_ZodRawShape as ZodRawShape, z_ZodReadonly as ZodReadonly, type z_ZodReadonlyDef as ZodReadonlyDef, z_ZodRecord as ZodRecord, type z_ZodRecordDef as ZodRecordDef, ZodType as ZodSchema, z_ZodSet as ZodSet, type z_ZodSetDef as ZodSetDef, z_ZodString as ZodString, type z_ZodStringCheck as ZodStringCheck, type z_ZodStringDef as ZodStringDef, z_ZodSymbol as ZodSymbol, type z_ZodSymbolDef as ZodSymbolDef, type z_ZodTooBigIssue as ZodTooBigIssue, type z_ZodTooSmallIssue as ZodTooSmallIssue, ZodEffects as ZodTransformer, z_ZodTuple as ZodTuple, type z_ZodTupleDef as ZodTupleDef, type z_ZodTupleItems as ZodTupleItems, z_ZodType as ZodType, type z_ZodTypeAny as ZodTypeAny, type z_ZodTypeDef as ZodTypeDef, z_ZodUndefined as ZodUndefined, type z_ZodUndefinedDef as ZodUndefinedDef, z_ZodUnion as ZodUnion, type z_ZodUnionDef as ZodUnionDef, type z_ZodUnionOptions as ZodUnionOptions, z_ZodUnknown as ZodUnknown, type z_ZodUnknownDef as ZodUnknownDef, type z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue, z_ZodVoid as ZodVoid, type z_ZodVoidDef as ZodVoidDef, z_addIssueToContext as addIssueToContext, anyType as any, arrayType as array, type z_arrayOutputType as arrayOutputType, type z_baseObjectInputType as baseObjectInputType, type z_baseObjectOutputType as baseObjectOutputType, bigIntType as bigint, booleanType as boolean, z_coerce as coerce, z_custom as custom, dateType as date, z_datetimeRegex as datetimeRegex, errorMap as defaultErrorMap, type z_deoptional as deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, z_getErrorMap as getErrorMap, z_getParsedType as getParsedType, type TypeOf as infer, type z_inferFlattenedErrors as inferFlattenedErrors, type z_inferFormattedError as inferFormattedError, type z_input as input, instanceOfType as instanceof, intersectionType as intersection, z_isAborted as isAborted, z_isAsync as isAsync, z_isDirty as isDirty, z_isValid as isValid, z_late as late, lazyType as lazy, literalType as literal, z_makeIssue as makeIssue, mapType as map, type z_mergeTypes as mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, type z_noUnrecognized as noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, type z_objectInputType as objectInputType, type z_objectOutputType as objectOutputType, z_objectUtil as objectUtil, z_oboolean as oboolean, z_onumber as onumber, optionalType as optional, z_ostring as ostring, type z_output as output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, z_quotelessJson as quotelessJson, recordType as record, setType as set, z_setErrorMap as setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, type z_typeToFlattenedError as typeToFlattenedError, type z_typecast as typecast, undefinedType as undefined, unionType as union, unknownType as unknown, z_util as util, voidType as void };
1767
+ export { z_DIRTY as DIRTY, z_EMPTY_PATH as EMPTY_PATH, z_INVALID as INVALID, z_NEVER as NEVER, z_OK as OK, z_ParseStatus as ParseStatus, ZodType as Schema, z_ZodAny as ZodAny, z_ZodArray as ZodArray, z_ZodBigInt as ZodBigInt, z_ZodBoolean as ZodBoolean, z_ZodBranded as ZodBranded, z_ZodCatch as ZodCatch, z_ZodDate as ZodDate, z_ZodDefault as ZodDefault, z_ZodDiscriminatedUnion as ZodDiscriminatedUnion, z_ZodEffects as ZodEffects, z_ZodEnum as ZodEnum, z_ZodError as ZodError, z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind, z_ZodFunction as ZodFunction, z_ZodIntersection as ZodIntersection, z_ZodLazy as ZodLazy, z_ZodLiteral as ZodLiteral, z_ZodMap as ZodMap, z_ZodNaN as ZodNaN, z_ZodNativeEnum as ZodNativeEnum, z_ZodNever as ZodNever, z_ZodNull as ZodNull, z_ZodNullable as ZodNullable, z_ZodNumber as ZodNumber, z_ZodObject as ZodObject, z_ZodOptional as ZodOptional, z_ZodPipeline as ZodPipeline, z_ZodPromise as ZodPromise, z_ZodReadonly as ZodReadonly, z_ZodRecord as ZodRecord, ZodType as ZodSchema, z_ZodSet as ZodSet, z_ZodString as ZodString, z_ZodSymbol as ZodSymbol, ZodEffects as ZodTransformer, z_ZodTuple as ZodTuple, z_ZodType as ZodType, z_ZodUndefined as ZodUndefined, z_ZodUnion as ZodUnion, z_ZodUnknown as ZodUnknown, z_ZodVoid as ZodVoid, z_addIssueToContext as addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, z_coerce as coerce, z_custom as custom, dateType as date, z_datetimeRegex as datetimeRegex, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, z_getErrorMap as getErrorMap, z_getParsedType as getParsedType, instanceOfType as instanceof, intersectionType as intersection, z_isAborted as isAborted, z_isAsync as isAsync, z_isDirty as isDirty, z_isValid as isValid, z_late as late, lazyType as lazy, literalType as literal, z_makeIssue as makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, z_objectUtil as objectUtil, z_oboolean as oboolean, z_onumber as onumber, optionalType as optional, z_ostring as ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, z_quotelessJson as quotelessJson, recordType as record, setType as set, z_setErrorMap as setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, z_util as util, voidType as void };
1768
+ export type { z_AnyZodObject as AnyZodObject, z_AnyZodTuple as AnyZodTuple, z_ArrayCardinality as ArrayCardinality, z_ArrayKeys as ArrayKeys, z_AssertArray as AssertArray, z_AsyncParseReturnType as AsyncParseReturnType, z_BRAND as BRAND, z_CatchallInput as CatchallInput, z_CatchallOutput as CatchallOutput, z_CustomErrorParams as CustomErrorParams, z_DenormalizedError as DenormalizedError, z_Effect as Effect, z_EnumLike as EnumLike, z_EnumValues as EnumValues, z_ErrorMapCtx as ErrorMapCtx, z_FilterEnum as FilterEnum, z_Indices as Indices, z_InnerTypeOfFunction as InnerTypeOfFunction, z_InputTypeOfTuple as InputTypeOfTuple, z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest, z_IpVersion as IpVersion, z_IssueData as IssueData, z_KeySchema as KeySchema, z_ObjectPair as ObjectPair, z_OuterTypeOfFunction as OuterTypeOfFunction, z_OutputTypeOfTuple as OutputTypeOfTuple, z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest, z_ParseContext as ParseContext, z_ParseInput as ParseInput, z_ParseParams as ParseParams, z_ParsePath as ParsePath, z_ParsePathComponent as ParsePathComponent, z_ParseResult as ParseResult, z_ParseReturnType as ParseReturnType, z_PassthroughType as PassthroughType, z_PreprocessEffect as PreprocessEffect, z_Primitive as Primitive, z_ProcessedCreateParams as ProcessedCreateParams, z_RawCreateParams as RawCreateParams, z_RecordType as RecordType, z_Refinement as Refinement, z_RefinementCtx as RefinementCtx, z_RefinementEffect as RefinementEffect, z_SafeParseError as SafeParseError, z_SafeParseReturnType as SafeParseReturnType, z_SafeParseSuccess as SafeParseSuccess, z_Scalars as Scalars, z_SomeZodObject as SomeZodObject, z_StringValidation as StringValidation, z_SuperRefinement as SuperRefinement, z_SyncParseReturnType as SyncParseReturnType, z_TransformEffect as TransformEffect, z_TypeOf as TypeOf, z_UnknownKeysParam as UnknownKeysParam, z_Values as Values, z_Writeable as Writeable, z_ZodAnyDef as ZodAnyDef, z_ZodArrayDef as ZodArrayDef, z_ZodBigIntCheck as ZodBigIntCheck, z_ZodBigIntDef as ZodBigIntDef, z_ZodBooleanDef as ZodBooleanDef, z_ZodBrandedDef as ZodBrandedDef, z_ZodCatchDef as ZodCatchDef, z_ZodCustomIssue as ZodCustomIssue, z_ZodDateCheck as ZodDateCheck, z_ZodDateDef as ZodDateDef, z_ZodDefaultDef as ZodDefaultDef, z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef, z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption, z_ZodEffectsDef as ZodEffectsDef, z_ZodEnumDef as ZodEnumDef, z_ZodErrorMap as ZodErrorMap, z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes, z_ZodFormattedError as ZodFormattedError, z_ZodFunctionDef as ZodFunctionDef, z_ZodIntersectionDef as ZodIntersectionDef, z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue, z_ZodInvalidDateIssue as ZodInvalidDateIssue, z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue, z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue, z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue, z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue, z_ZodInvalidStringIssue as ZodInvalidStringIssue, z_ZodInvalidTypeIssue as ZodInvalidTypeIssue, z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue, z_ZodInvalidUnionIssue as ZodInvalidUnionIssue, z_ZodIssue as ZodIssue, z_ZodIssueBase as ZodIssueBase, z_ZodIssueCode as ZodIssueCode, z_ZodIssueOptionalMessage as ZodIssueOptionalMessage, z_ZodLazyDef as ZodLazyDef, z_ZodLiteralDef as ZodLiteralDef, z_ZodMapDef as ZodMapDef, z_ZodNaNDef as ZodNaNDef, z_ZodNativeEnumDef as ZodNativeEnumDef, z_ZodNeverDef as ZodNeverDef, z_ZodNonEmptyArray as ZodNonEmptyArray, z_ZodNotFiniteIssue as ZodNotFiniteIssue, z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue, z_ZodNullDef as ZodNullDef, z_ZodNullableDef as ZodNullableDef, z_ZodNullableType as ZodNullableType, z_ZodNumberCheck as ZodNumberCheck, z_ZodNumberDef as ZodNumberDef, z_ZodObjectDef as ZodObjectDef, z_ZodOptionalDef as ZodOptionalDef, z_ZodOptionalType as ZodOptionalType, z_ZodParsedType as ZodParsedType, z_ZodPipelineDef as ZodPipelineDef, z_ZodPromiseDef as ZodPromiseDef, z_ZodRawShape as ZodRawShape, z_ZodReadonlyDef as ZodReadonlyDef, z_ZodRecordDef as ZodRecordDef, z_ZodSetDef as ZodSetDef, z_ZodStringCheck as ZodStringCheck, z_ZodStringDef as ZodStringDef, z_ZodSymbolDef as ZodSymbolDef, z_ZodTooBigIssue as ZodTooBigIssue, z_ZodTooSmallIssue as ZodTooSmallIssue, z_ZodTupleDef as ZodTupleDef, z_ZodTupleItems as ZodTupleItems, z_ZodTypeAny as ZodTypeAny, z_ZodTypeDef as ZodTypeDef, z_ZodUndefinedDef as ZodUndefinedDef, z_ZodUnionDef as ZodUnionDef, z_ZodUnionOptions as ZodUnionOptions, z_ZodUnknownDef as ZodUnknownDef, z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue, z_ZodVoidDef as ZodVoidDef, z_arrayOutputType as arrayOutputType, z_baseObjectInputType as baseObjectInputType, z_baseObjectOutputType as baseObjectOutputType, z_deoptional as deoptional, TypeOf as infer, z_inferFlattenedErrors as inferFlattenedErrors, z_inferFormattedError as inferFormattedError, z_input as input, z_mergeTypes as mergeTypes, z_noUnrecognized as noUnrecognized, z_objectInputType as objectInputType, z_objectOutputType as objectOutputType, z_output as output, z_typeToFlattenedError as typeToFlattenedError, z_typecast as typecast };
1768
1769
  }
1769
1770
 
1770
- export { type AnyZodObject, type AnyZodTuple, type ArrayCardinality, type ArrayKeys, type AssertArray, type AsyncParseReturnType, BRAND, type CatchallInput, type CatchallOutput, type CustomErrorParams, DIRTY, type DenormalizedError, EMPTY_PATH, type Effect, type EnumLike, type EnumValues, type ErrorMapCtx, type FilterEnum, INVALID, type Indices, type InnerTypeOfFunction, type InputTypeOfTuple, type InputTypeOfTupleWithRest, type IpVersion, type IssueData, type KeySchema, NEVER, OK, type ObjectPair, type OuterTypeOfFunction, type OutputTypeOfTuple, type OutputTypeOfTupleWithRest, type ParseContext, type ParseInput, type ParseParams, type ParsePath, type ParsePathComponent, type ParseResult, type ParseReturnType, ParseStatus, type PassthroughType, type PreprocessEffect, type Primitive, type ProcessedCreateParams, type RawCreateParams, type RecordType, type Refinement, type RefinementCtx, type RefinementEffect, type SafeParseError, type SafeParseReturnType, type SafeParseSuccess, type Scalars, ZodType as Schema, type SomeZodObject, type StringValidation, type SuperRefinement, type SyncParseReturnType, type TransformEffect, type TypeOf, type UnknownKeysParam, type Values, type Writeable, ZodAny, type ZodAnyDef, ZodArray, type ZodArrayDef, ZodBigInt, type ZodBigIntCheck, type ZodBigIntDef, ZodBoolean, type ZodBooleanDef, ZodBranded, type ZodBrandedDef, ZodCatch, type ZodCatchDef, type ZodCustomIssue, ZodDate, type ZodDateCheck, type ZodDateDef, ZodDefault, type ZodDefaultDef, ZodDiscriminatedUnion, type ZodDiscriminatedUnionDef, type ZodDiscriminatedUnionOption, ZodEffects, type ZodEffectsDef, ZodEnum, type ZodEnumDef, ZodError, type ZodErrorMap, type ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, type ZodFormattedError, ZodFunction, type ZodFunctionDef, ZodIntersection, type ZodIntersectionDef, type ZodInvalidArgumentsIssue, type ZodInvalidDateIssue, type ZodInvalidEnumValueIssue, type ZodInvalidIntersectionTypesIssue, type ZodInvalidLiteralIssue, type ZodInvalidReturnTypeIssue, type ZodInvalidStringIssue, type ZodInvalidTypeIssue, type ZodInvalidUnionDiscriminatorIssue, type ZodInvalidUnionIssue, type ZodIssue, type ZodIssueBase, ZodIssueCode, type ZodIssueOptionalMessage, ZodLazy, type ZodLazyDef, ZodLiteral, type ZodLiteralDef, ZodMap, type ZodMapDef, ZodNaN, type ZodNaNDef, ZodNativeEnum, type ZodNativeEnumDef, ZodNever, type ZodNeverDef, type ZodNonEmptyArray, type ZodNotFiniteIssue, type ZodNotMultipleOfIssue, ZodNull, type ZodNullDef, ZodNullable, type ZodNullableDef, type ZodNullableType, ZodNumber, type ZodNumberCheck, type ZodNumberDef, ZodObject, type ZodObjectDef, ZodOptional, type ZodOptionalDef, type ZodOptionalType, ZodParsedType, ZodPipeline, type ZodPipelineDef, ZodPromise, type ZodPromiseDef, type ZodRawShape, ZodReadonly, type ZodReadonlyDef, ZodRecord, type ZodRecordDef, ZodType as ZodSchema, ZodSet, type ZodSetDef, ZodString, type ZodStringCheck, type ZodStringDef, ZodSymbol, type ZodSymbolDef, type ZodTooBigIssue, type ZodTooSmallIssue, ZodEffects as ZodTransformer, ZodTuple, type ZodTupleDef, type ZodTupleItems, ZodType, type ZodTypeAny, type ZodTypeDef, ZodUndefined, type ZodUndefinedDef, ZodUnion, type ZodUnionDef, type ZodUnionOptions, ZodUnknown, type ZodUnknownDef, type ZodUnrecognizedKeysIssue, ZodVoid, type ZodVoidDef, addIssueToContext, anyType as any, arrayType as array, type arrayOutputType, type baseObjectInputType, type baseObjectOutputType, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, errorMap as defaultErrorMap, type deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, type TypeOf as infer, type inferFlattenedErrors, type inferFormattedError, type input, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, type mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, type noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, type objectInputType, type objectOutputType, objectUtil, oboolean, onumber, optionalType as optional, ostring, type output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, type typeToFlattenedError, type typecast, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };
1771
+ export { BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, ZodType as Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodType as ZodSchema, ZodSet, ZodString, ZodSymbol, ZodEffects as ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectUtil, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };
1772
+ export type { AnyZodObject, AnyZodTuple, ArrayCardinality, ArrayKeys, AssertArray, AsyncParseReturnType, CatchallInput, CatchallOutput, CustomErrorParams, DenormalizedError, Effect, EnumLike, EnumValues, ErrorMapCtx, FilterEnum, Indices, InnerTypeOfFunction, InputTypeOfTuple, InputTypeOfTupleWithRest, IpVersion, IssueData, KeySchema, ObjectPair, OuterTypeOfFunction, OutputTypeOfTuple, OutputTypeOfTupleWithRest, ParseContext, ParseInput, ParseParams, ParsePath, ParsePathComponent, ParseResult, ParseReturnType, PassthroughType, PreprocessEffect, Primitive, ProcessedCreateParams, RawCreateParams, RecordType, Refinement, RefinementCtx, RefinementEffect, SafeParseError, SafeParseReturnType, SafeParseSuccess, Scalars, SomeZodObject, StringValidation, SuperRefinement, SyncParseReturnType, TransformEffect, TypeOf, UnknownKeysParam, Values, Writeable, ZodAnyDef, ZodArrayDef, ZodBigIntCheck, ZodBigIntDef, ZodBooleanDef, ZodBrandedDef, ZodCatchDef, ZodCustomIssue, ZodDateCheck, ZodDateDef, ZodDefaultDef, ZodDiscriminatedUnionDef, ZodDiscriminatedUnionOption, ZodEffectsDef, ZodEnumDef, ZodErrorMap, ZodFirstPartySchemaTypes, ZodFormattedError, ZodFunctionDef, ZodIntersectionDef, ZodInvalidArgumentsIssue, ZodInvalidDateIssue, ZodInvalidEnumValueIssue, ZodInvalidIntersectionTypesIssue, ZodInvalidLiteralIssue, ZodInvalidReturnTypeIssue, ZodInvalidStringIssue, ZodInvalidTypeIssue, ZodInvalidUnionDiscriminatorIssue, ZodInvalidUnionIssue, ZodIssue, ZodIssueBase, ZodIssueOptionalMessage, ZodLazyDef, ZodLiteralDef, ZodMapDef, ZodNaNDef, ZodNativeEnumDef, ZodNeverDef, ZodNonEmptyArray, ZodNotFiniteIssue, ZodNotMultipleOfIssue, ZodNullDef, ZodNullableDef, ZodNullableType, ZodNumberCheck, ZodNumberDef, ZodObjectDef, ZodOptionalDef, ZodOptionalType, ZodPipelineDef, ZodPromiseDef, ZodRawShape, ZodReadonlyDef, ZodRecordDef, ZodSetDef, ZodStringCheck, ZodStringDef, ZodSymbolDef, ZodTooBigIssue, ZodTooSmallIssue, ZodTupleDef, ZodTupleItems, ZodTypeAny, ZodTypeDef, ZodUndefinedDef, ZodUnionDef, ZodUnionOptions, ZodUnknownDef, ZodUnrecognizedKeysIssue, ZodVoidDef, arrayOutputType, baseObjectInputType, baseObjectOutputType, deoptional, TypeOf as infer, inferFlattenedErrors, inferFormattedError, input, mergeTypes, noUnrecognized, objectInputType, objectOutputType, output, typeToFlattenedError, typecast };
@@ -2,13 +2,13 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ 106:
5
+ /***/ 705:
6
6
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "__esModule", ({ value: true }));
10
10
  exports.ZodError = exports.quotelessJson = exports.ZodIssueCode = void 0;
11
- const util_1 = __nccwpck_require__(241);
11
+ const util_1 = __nccwpck_require__(46);
12
12
  exports.ZodIssueCode = util_1.util.arrayToEnum([
13
13
  "invalid_type",
14
14
  "invalid_literal",
@@ -146,7 +146,7 @@ ZodError.create = (issues) => {
146
146
 
147
147
  /***/ }),
148
148
 
149
- /***/ 508:
149
+ /***/ 503:
150
150
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
151
151
 
152
152
 
@@ -155,7 +155,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
155
155
  };
156
156
  Object.defineProperty(exports, "__esModule", ({ value: true }));
157
157
  exports.getErrorMap = exports.setErrorMap = exports.defaultErrorMap = void 0;
158
- const en_1 = __importDefault(__nccwpck_require__(316));
158
+ const en_1 = __importDefault(__nccwpck_require__(183));
159
159
  exports.defaultErrorMap = en_1.default;
160
160
  let overrideErrorMap = en_1.default;
161
161
  function setErrorMap(map) {
@@ -170,7 +170,7 @@ exports.getErrorMap = getErrorMap;
170
170
 
171
171
  /***/ }),
172
172
 
173
- /***/ 892:
173
+ /***/ 831:
174
174
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
175
175
 
176
176
 
@@ -189,17 +189,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
189
189
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
190
190
  };
191
191
  Object.defineProperty(exports, "__esModule", ({ value: true }));
192
- __exportStar(__nccwpck_require__(508), exports);
193
- __exportStar(__nccwpck_require__(906), exports);
194
- __exportStar(__nccwpck_require__(689), exports);
195
- __exportStar(__nccwpck_require__(241), exports);
196
- __exportStar(__nccwpck_require__(842), exports);
197
- __exportStar(__nccwpck_require__(106), exports);
192
+ __exportStar(__nccwpck_require__(503), exports);
193
+ __exportStar(__nccwpck_require__(707), exports);
194
+ __exportStar(__nccwpck_require__(160), exports);
195
+ __exportStar(__nccwpck_require__(46), exports);
196
+ __exportStar(__nccwpck_require__(735), exports);
197
+ __exportStar(__nccwpck_require__(705), exports);
198
198
 
199
199
 
200
200
  /***/ }),
201
201
 
202
- /***/ 927:
202
+ /***/ 266:
203
203
  /***/ ((__unused_webpack_module, exports) => {
204
204
 
205
205
 
@@ -214,7 +214,7 @@ var errorUtil;
214
214
 
215
215
  /***/ }),
216
216
 
217
- /***/ 906:
217
+ /***/ 707:
218
218
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
219
219
 
220
220
 
@@ -223,8 +223,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
223
223
  };
224
224
  Object.defineProperty(exports, "__esModule", ({ value: true }));
225
225
  exports.isAsync = exports.isValid = exports.isDirty = exports.isAborted = exports.OK = exports.DIRTY = exports.INVALID = exports.ParseStatus = exports.addIssueToContext = exports.EMPTY_PATH = exports.makeIssue = void 0;
226
- const errors_1 = __nccwpck_require__(508);
227
- const en_1 = __importDefault(__nccwpck_require__(316));
226
+ const errors_1 = __nccwpck_require__(503);
227
+ const en_1 = __importDefault(__nccwpck_require__(183));
228
228
  const makeIssue = (params) => {
229
229
  const { data, path, errorMaps, issueData } = params;
230
230
  const fullPath = [...path, ...(issueData.path || [])];
@@ -346,7 +346,7 @@ exports.isAsync = isAsync;
346
346
 
347
347
  /***/ }),
348
348
 
349
- /***/ 689:
349
+ /***/ 160:
350
350
  /***/ ((__unused_webpack_module, exports) => {
351
351
 
352
352
 
@@ -355,7 +355,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
355
355
 
356
356
  /***/ }),
357
357
 
358
- /***/ 241:
358
+ /***/ 46:
359
359
  /***/ ((__unused_webpack_module, exports) => {
360
360
 
361
361
 
@@ -504,7 +504,7 @@ exports.getParsedType = getParsedType;
504
504
 
505
505
  /***/ }),
506
506
 
507
- /***/ 771:
507
+ /***/ 834:
508
508
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
509
509
 
510
510
 
@@ -536,21 +536,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
536
536
  };
537
537
  Object.defineProperty(exports, "__esModule", ({ value: true }));
538
538
  exports.z = void 0;
539
- const z = __importStar(__nccwpck_require__(892));
539
+ const z = __importStar(__nccwpck_require__(831));
540
540
  exports.z = z;
541
- __exportStar(__nccwpck_require__(892), exports);
541
+ __exportStar(__nccwpck_require__(831), exports);
542
542
  exports["default"] = z;
543
543
 
544
544
 
545
545
  /***/ }),
546
546
 
547
- /***/ 316:
547
+ /***/ 183:
548
548
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
549
549
 
550
550
 
551
551
  Object.defineProperty(exports, "__esModule", ({ value: true }));
552
- const util_1 = __nccwpck_require__(241);
553
- const ZodError_1 = __nccwpck_require__(106);
552
+ const util_1 = __nccwpck_require__(46);
553
+ const ZodError_1 = __nccwpck_require__(705);
554
554
  const errorMap = (issue, _ctx) => {
555
555
  let message;
556
556
  switch (issue.code) {
@@ -680,7 +680,7 @@ exports["default"] = errorMap;
680
680
 
681
681
  /***/ }),
682
682
 
683
- /***/ 842:
683
+ /***/ 735:
684
684
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
685
685
 
686
686
 
@@ -699,11 +699,11 @@ var _ZodEnum_cache, _ZodNativeEnum_cache;
699
699
  Object.defineProperty(exports, "__esModule", ({ value: true }));
700
700
  exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = 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.datetimeRegex = exports.ZodType = void 0;
701
701
  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 = exports.discriminatedUnion = exports.date = void 0;
702
- const errors_1 = __nccwpck_require__(508);
703
- const errorUtil_1 = __nccwpck_require__(927);
704
- const parseUtil_1 = __nccwpck_require__(906);
705
- const util_1 = __nccwpck_require__(241);
706
- const ZodError_1 = __nccwpck_require__(106);
702
+ const errors_1 = __nccwpck_require__(503);
703
+ const errorUtil_1 = __nccwpck_require__(266);
704
+ const parseUtil_1 = __nccwpck_require__(707);
705
+ const util_1 = __nccwpck_require__(46);
706
+ const ZodError_1 = __nccwpck_require__(705);
707
707
  class ParseInputLazyPath {
708
708
  constructor(parent, value, path, key) {
709
709
  this._cachedPath = [];
@@ -4575,7 +4575,7 @@ exports.NEVER = parseUtil_1.INVALID;
4575
4575
  /******/ // startup
4576
4576
  /******/ // Load entry module and return exports
4577
4577
  /******/ // This entry module is referenced by other modules so it can't be inlined
4578
- /******/ var __webpack_exports__ = __nccwpck_require__(771);
4578
+ /******/ var __webpack_exports__ = __nccwpck_require__(834);
4579
4579
  /******/ module.exports = __webpack_exports__;
4580
4580
  /******/
4581
4581
  /******/ })()
@@ -1 +1 @@
1
- {"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.2","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"zod","author":"Colin McDonnell <colin@colinhacks.com>","version":"3.24.3","funding":"https://github.com/sponsors/colinhacks","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -9,6 +9,7 @@ export declare class ChunkGraph {
9
9
  constructor(binding: JsChunkGraph);
10
10
  getChunkModules(chunk: Chunk): ReadonlyArray<Module>;
11
11
  getChunkModulesIterable(chunk: Chunk): Iterable<Module>;
12
+ getOrderedChunkModulesIterable(chunk: Chunk, compareFn: (a: Module, b: Module) => number): Iterable<Module>;
12
13
  getChunkEntryModulesIterable(chunk: Chunk): Iterable<Module>;
13
14
  getNumberOfEntryModules(chunk: Chunk): number;
14
15
  getChunkEntryDependentChunksIterable(chunk: Chunk): Iterable<Chunk>;
@@ -0,0 +1,13 @@
1
+ import { Chunks } from "@rspack/binding";
2
+ import { Chunk } from "./Chunk";
3
+ declare module "@rspack/binding" {
4
+ interface Chunks {
5
+ [Symbol.iterator](): SetIterator<Chunk>;
6
+ entries(): SetIterator<[Chunk, Chunk]>;
7
+ values(): SetIterator<Chunk>;
8
+ keys(): SetIterator<Chunk>;
9
+ forEach(callbackfn: (value: Chunk, value2: Chunk, set: ReadonlySet<Chunk>) => void, thisArg?: any): void;
10
+ has(value: Chunk): boolean;
11
+ }
12
+ }
13
+ export default Chunks;
@@ -7,7 +7,7 @@
7
7
  * Copyright (c) JS Foundation and other contributors
8
8
  * https://github.com/webpack/webpack/blob/main/LICENSE
9
9
  */
10
- import type * as binding from "@rspack/binding";
10
+ import * as binding from "@rspack/binding";
11
11
  import { type AssetInfo, type Dependency, type ExternalObject, type JsCompilation, type JsRuntimeModule } from "@rspack/binding";
12
12
  export type { AssetInfo } from "@rspack/binding";
13
13
  import * as liteTapable from "@rspack/lite-tapable";
@@ -20,6 +20,7 @@ import type { ContextModuleFactory } from "./ContextModuleFactory";
20
20
  import { Entrypoint } from "./Entrypoint";
21
21
  import type { CodeGenerationResult, Module } from "./Module";
22
22
  import ModuleGraph from "./ModuleGraph";
23
+ import type { NormalModuleCompilationHooks } from "./NormalModule";
23
24
  import type { NormalModuleFactory } from "./NormalModuleFactory";
24
25
  import type { ResolverFactory } from "./ResolverFactory";
25
26
  import { type RspackError } from "./RspackError";
@@ -33,6 +34,7 @@ import { StatsFactory } from "./stats/StatsFactory";
33
34
  import { StatsPrinter } from "./stats/StatsPrinter";
34
35
  import type { InputFileSystem } from "./util/fs";
35
36
  import type Hash from "./util/hash";
37
+ import "./Chunks";
36
38
  export type Assets = Record<string, Source>;
37
39
  export interface Asset {
38
40
  name: string;
@@ -205,6 +207,7 @@ export declare class Compilation {
205
207
  createSnapshot(): null;
206
208
  };
207
209
  needAdditionalPass: boolean;
210
+ [binding.COMPILATION_HOOKS_MAP_SYMBOL]: WeakMap<Compilation, NormalModuleCompilationHooks>;
208
211
  constructor(compiler: Compiler, inner: JsCompilation);
209
212
  get hash(): Readonly<string | null>;
210
213
  get fullHash(): Readonly<string | null>;
@@ -352,12 +355,6 @@ export declare class Compilation {
352
355
  * @internal
353
356
  */
354
357
  __internal__hasAsset(name: string): boolean;
355
- /**
356
- * Note: This is not a webpack public API, maybe removed in future.
357
- *
358
- * @internal
359
- */
360
- __internal__getChunks(): Chunk[];
361
358
  /**
362
359
  * Note: This is not a webpack public API, maybe removed in future.
363
360
  *
package/dist/Module.d.ts CHANGED
@@ -45,6 +45,7 @@ export type ContextModuleFactoryAfterResolveResult = false | ContextModuleFactor
45
45
  declare module "@rspack/binding" {
46
46
  interface Module {
47
47
  identifier(): string;
48
+ readableIdentifier(): string;
48
49
  originalSource(): Source | null;
49
50
  emitFile(filename: string, source: Source, assetInfo?: AssetInfo): void;
50
51
  }
@@ -1,8 +1,8 @@
1
1
  import * as liteTapable from "@rspack/lite-tapable";
2
- import { type Compilation } from "./Compilation";
2
+ import type { Compilation } from "./Compilation";
3
3
  import type { Module } from "./Module";
4
4
  import type { LoaderContext } from "./config";
5
- interface NormalModuleCompilationHooks {
5
+ export interface NormalModuleCompilationHooks {
6
6
  loader: liteTapable.SyncHook<[LoaderContext, Module]>;
7
7
  readResourceForScheme: any;
8
8
  readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext], string | Buffer>>;
@@ -1,3 +1,4 @@
1
+ import z from "../../../compiled/zod";
1
2
  type RawStyleConfig = {
2
3
  styleLibraryDirectory?: string;
3
4
  custom?: string;
@@ -28,6 +29,40 @@ type PluginImportConfig = {
28
29
  ignoreStyleComponent?: string[];
29
30
  };
30
31
  type PluginImportOptions = PluginImportConfig[] | undefined;
32
+ export declare const ZodSwcPluginImportConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ libraryName: z.ZodString;
34
+ libraryDirectory: z.ZodOptional<z.ZodString>;
35
+ customName: z.ZodOptional<z.ZodString>;
36
+ customStyleName: z.ZodOptional<z.ZodString>;
37
+ style: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
38
+ styleLibraryDirectory: z.ZodOptional<z.ZodString>;
39
+ camelToDashComponentName: z.ZodOptional<z.ZodBoolean>;
40
+ transformToDefaultImport: z.ZodOptional<z.ZodBoolean>;
41
+ ignoreEsComponent: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ ignoreStyleComponent: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
+ }, "strict", z.ZodTypeAny, {
44
+ libraryName: string;
45
+ libraryDirectory?: string | undefined;
46
+ customName?: string | undefined;
47
+ customStyleName?: string | undefined;
48
+ style?: string | boolean | undefined;
49
+ styleLibraryDirectory?: string | undefined;
50
+ camelToDashComponentName?: boolean | undefined;
51
+ transformToDefaultImport?: boolean | undefined;
52
+ ignoreEsComponent?: string[] | undefined;
53
+ ignoreStyleComponent?: string[] | undefined;
54
+ }, {
55
+ libraryName: string;
56
+ libraryDirectory?: string | undefined;
57
+ customName?: string | undefined;
58
+ customStyleName?: string | undefined;
59
+ style?: string | boolean | undefined;
60
+ styleLibraryDirectory?: string | undefined;
61
+ camelToDashComponentName?: boolean | undefined;
62
+ transformToDefaultImport?: boolean | undefined;
63
+ ignoreEsComponent?: string[] | undefined;
64
+ ignoreStyleComponent?: string[] | undefined;
65
+ }>, "many">>;
31
66
  declare function resolvePluginImport(pluginImport: PluginImportOptions): RawPluginImportConfig[] | undefined;
32
67
  export { resolvePluginImport };
33
68
  export type { PluginImportOptions };