webpack 5.111.1 → 5.112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/webpack.js +13 -7
- package/lib/Chunk.js +3 -966
- package/lib/Compilation.js +373 -163
- package/lib/Compiler.js +31 -44
- package/lib/Dependency.js +3 -551
- package/lib/DependencyTemplate.js +3 -70
- package/lib/EntryPlugin.js +3 -68
- package/lib/Entrypoint.js +3 -121
- package/lib/ExternalsPlugin.js +3 -92
- package/lib/FileSystemInfo.js +3 -4629
- package/lib/InitFragment.js +3 -204
- package/lib/LibraryTemplatePlugin.js +3 -46
- package/lib/ModuleFilenameHelpers.js +3 -400
- package/lib/ModuleNotFoundError.js +2 -2
- package/lib/MultiCompiler.js +37 -8
- package/lib/NormalModule.js +3 -2242
- package/lib/NullFactory.js +3 -22
- package/lib/ProgressPlugin.js +3 -908
- package/lib/RawModule.js +3 -197
- package/lib/RequestShortener.js +3 -37
- package/lib/SingleEntryPlugin.js +1 -1
- package/lib/WebpackError.js +2 -2
- package/lib/asset/AssetBytesGenerator.js +21 -13
- package/lib/asset/AssetBytesParser.js +12 -10
- package/lib/asset/AssetGenerator.js +71 -69
- package/lib/asset/AssetModule.js +13 -2
- package/lib/asset/AssetModulesPlugin.js +10 -12
- package/lib/asset/AssetParser.js +10 -10
- package/lib/asset/AssetSourceGenerator.js +23 -15
- package/lib/asset/AssetSourceParser.js +12 -10
- package/lib/asset/RawDataUrlModule.js +17 -10
- package/lib/asset/WebManifestGenerator.js +17 -12
- package/lib/asset/WebManifestParser.js +8 -8
- package/lib/async-modules/AsyncModuleHelpers.js +12 -5
- package/lib/async-modules/AwaitDependenciesInitFragment.js +4 -4
- package/lib/async-modules/InferAsyncModulesPlugin.js +9 -3
- package/lib/async-modules/isGeneratorLowered.js +3 -3
- package/lib/bun/BunTargetPlugin.js +1 -1
- package/lib/cache/AddBuildDependenciesPlugin.js +2 -19
- package/lib/{Cache.js → cache/Cache.js} +1 -1
- package/lib/{CacheFacade.js → cache/CacheFacade.js} +6 -6
- package/lib/cache/IdleFileCachePlugin.js +2 -2
- package/lib/cache/MemoryCachePlugin.js +2 -2
- package/lib/cache/MemoryWithGcCachePlugin.js +2 -2
- package/lib/cache/PackFileCacheStrategy.js +13 -19
- package/lib/cache/ResolverCachePlugin.js +65 -11
- package/lib/cache/mergeEtags.js +1 -1
- package/lib/{OptionsApply.js → config/OptionsApply.js} +3 -3
- package/lib/{PlatformPlugin.js → config/PlatformPlugin.js} +2 -2
- package/lib/{WebpackOptionsApply.js → config/WebpackOptionsApply.js} +209 -212
- package/lib/{WebpackOptionsDefaulter.js → config/WebpackOptionsDefaulter.js} +3 -3
- package/lib/config/browserslistTargetHandler.js +1 -1
- package/lib/{cli.js → config/cli.js} +14 -164
- package/lib/config/defaults.js +166 -59
- package/lib/config/getClaimedAssetTypes.js +22 -14
- package/lib/config/normalization.js +18 -7
- package/lib/config/target.js +11 -1
- package/lib/container/ContainerEntryDependency.js +1 -1
- package/lib/container/ContainerEntryModule.js +13 -11
- package/lib/container/ContainerEntryModuleFactory.js +2 -2
- package/lib/container/ContainerExposedDependency.js +1 -1
- package/lib/container/ContainerPlugin.js +178 -5
- package/lib/container/ContainerReferencePlugin.js +75 -14
- package/lib/container/FallbackDependency.js +1 -1
- package/lib/container/FallbackItemDependency.js +1 -1
- package/lib/container/FallbackModule.js +12 -10
- package/lib/container/FallbackModuleFactory.js +2 -2
- package/lib/container/HoistContainerReferencesPlugin.js +10 -11
- package/lib/container/ModuleFederationPlugin.js +306 -7
- package/lib/container/RemoteModule.js +14 -10
- package/lib/container/RemoteRuntimeModule.js +5 -5
- package/lib/container/RemoteToExternalDependency.js +1 -1
- package/lib/container/moduleFederationHooks.js +1 -1
- package/lib/context/ContextModule.js +37 -26
- package/lib/context/ContextModuleFactory.js +14 -11
- package/lib/context/ContextReplacementPlugin.js +6 -12
- package/lib/css/CssGenerator.js +78 -68
- package/lib/css/CssInjectStyleRuntimeModule.js +36 -30
- package/lib/css/CssLoadingRuntimeModule.js +77 -44
- package/lib/css/CssModule.js +37 -29
- package/lib/css/CssModulesPlugin.js +129 -45
- package/lib/css/CssParser.js +714 -322
- package/lib/css/CssServerStylesRuntimeModule.js +3 -3
- package/lib/{util → css}/conventions.js +1 -1
- package/lib/css/cssMinify.js +110 -37
- package/lib/css/data.js +6990 -5125
- package/lib/css/syntax-parser.js +20734 -0
- package/lib/css/syntax-printer.js +6092 -0
- package/lib/css/syntax.js +37 -18686
- package/lib/debug/ProfilingPlugin.js +106 -51
- package/lib/{DefinePlugin.js → define/DefinePlugin.js} +416 -55
- package/lib/{DotenvPlugin.js → define/DotenvPlugin.js} +19 -15
- package/lib/{EnvironmentPlugin.js → define/EnvironmentPlugin.js} +6 -4
- package/lib/deno/DenoTargetPlugin.js +1 -1
- package/lib/dependencies/ConstDependency.js +3 -120
- package/lib/dependencies/ContextElementDependency.js +5 -172
- package/lib/dependencies/NullDependency.js +3 -37
- package/lib/dependencies/{AMDDefineDependency.js → amd/AMDDefineDependency.js} +12 -11
- package/lib/dependencies/{AMDDefineDependencyParserPlugin.js → amd/AMDDefineDependencyParserPlugin.js} +10 -11
- package/lib/dependencies/{AMDPlugin.js → amd/AMDPlugin.js} +11 -11
- package/lib/dependencies/{AMDRequireArrayDependency.js → amd/AMDRequireArrayDependency.js} +15 -13
- package/lib/dependencies/{AMDRequireContextDependency.js → amd/AMDRequireContextDependency.js} +11 -10
- package/lib/dependencies/{AMDRequireDependenciesBlock.js → amd/AMDRequireDependenciesBlock.js} +7 -6
- package/lib/dependencies/{AMDRequireDependenciesBlockParserPlugin.js → amd/AMDRequireDependenciesBlockParserPlugin.js} +14 -11
- package/lib/dependencies/{AMDRequireDependency.js → amd/AMDRequireDependency.js} +13 -12
- package/lib/dependencies/{AMDRequireItemDependency.js → amd/AMDRequireItemDependency.js} +8 -7
- package/lib/dependencies/{AMDRuntimeModules.js → amd/AMDRuntimeModules.js} +3 -3
- package/lib/dependencies/{LocalModule.js → amd/LocalModule.js} +8 -4
- package/lib/dependencies/{LocalModuleDependency.js → amd/LocalModuleDependency.js} +17 -10
- package/lib/dependencies/{LocalModulesHelpers.js → amd/LocalModulesHelpers.js} +1 -1
- package/lib/dependencies/{RequireJsStuffPlugin.js → amd/RequireJsStuffPlugin.js} +9 -9
- package/lib/dependencies/{UnsupportedDependency.js → amd/UnsupportedDependency.js} +11 -10
- package/lib/dependencies/{CommonJsDependencyHelpers.js → commonjs/CommonJsDependencyHelpers.js} +8 -9
- package/lib/dependencies/{CommonJsExportRequireDependency.js → commonjs/CommonJsExportRequireDependency.js} +166 -36
- package/lib/dependencies/{CommonJsExportsDependency.js → commonjs/CommonJsExportsDependency.js} +15 -14
- package/lib/dependencies/{CommonJsExportsParserPlugin.js → commonjs/CommonJsExportsParserPlugin.js} +154 -92
- package/lib/dependencies/{CommonJsFullRequireDependency.js → commonjs/CommonJsFullRequireDependency.js} +32 -24
- package/lib/dependencies/{CommonJsImportsParserPlugin.js → commonjs/CommonJsImportsParserPlugin.js} +36 -33
- package/lib/dependencies/{CommonJsObjectExportDependency.js → commonjs/CommonJsObjectExportDependency.js} +17 -16
- package/lib/dependencies/{CommonJsPlugin.js → commonjs/CommonJsPlugin.js} +48 -39
- package/lib/dependencies/{CommonJsRequireContextDependency.js → commonjs/CommonJsRequireContextDependency.js} +15 -14
- package/lib/dependencies/{CommonJsRequireDependency.js → commonjs/CommonJsRequireDependency.js} +33 -25
- package/lib/dependencies/{CommonJsSelfReferenceDependency.js → commonjs/CommonJsSelfReferenceDependency.js} +17 -16
- package/lib/dependencies/{ModuleDecoratorDependency.js → commonjs/ModuleDecoratorDependency.js} +16 -15
- package/lib/dependencies/{RequireEnsureDependenciesBlock.js → commonjs/RequireEnsureDependenciesBlock.js} +8 -7
- package/lib/dependencies/{RequireEnsureDependenciesBlockParserPlugin.js → commonjs/RequireEnsureDependenciesBlockParserPlugin.js} +9 -6
- package/lib/dependencies/{RequireEnsureDependency.js → commonjs/RequireEnsureDependency.js} +13 -12
- package/lib/dependencies/{RequireEnsureItemDependency.js → commonjs/RequireEnsureItemDependency.js} +7 -6
- package/lib/dependencies/{RequireEnsurePlugin.js → commonjs/RequireEnsurePlugin.js} +8 -8
- package/lib/dependencies/{RequireHeaderDependency.js → commonjs/RequireHeaderDependency.js} +14 -13
- package/lib/dependencies/{RequireIncludeDependency.js → commonjs/RequireIncludeDependency.js} +13 -12
- package/lib/dependencies/{RequireIncludeDependencyParserPlugin.js → commonjs/RequireIncludeDependencyParserPlugin.js} +3 -27
- package/lib/dependencies/{RequireIncludePlugin.js → commonjs/RequireIncludePlugin.js} +4 -4
- package/lib/dependencies/{RequireResolveContextDependency.js → commonjs/RequireResolveContextDependency.js} +11 -10
- package/lib/dependencies/{RequireResolveDependency.js → commonjs/RequireResolveDependency.js} +12 -11
- package/lib/dependencies/{RequireResolveHeaderDependency.js → commonjs/RequireResolveHeaderDependency.js} +13 -12
- package/lib/dependencies/commonjs/TopLevelThisParserPlugin.js +59 -0
- package/lib/dependencies/{ContextDependency.js → context/ContextDependency.js} +15 -14
- package/lib/dependencies/{ContextDependencyHelpers.js → context/ContextDependencyHelpers.js} +31 -9
- package/lib/dependencies/{ContextDependencyTemplateAsId.js → context/ContextDependencyTemplateAsId.js} +3 -3
- package/lib/dependencies/{ContextDependencyTemplateAsRequireCall.js → context/ContextDependencyTemplateAsRequireCall.js} +3 -3
- package/lib/dependencies/context/ContextElementDependency.js +198 -0
- package/lib/dependencies/{ImportMetaContextDependency.js → context/ImportMetaContextDependency.js} +7 -6
- package/lib/dependencies/{ImportMetaContextDependencyParserPlugin.js → context/ImportMetaContextDependencyParserPlugin.js} +10 -11
- package/lib/dependencies/{ImportMetaContextPlugin.js → context/ImportMetaContextPlugin.js} +5 -5
- package/lib/dependencies/{ImportMetaGlobDependency.js → context/ImportMetaGlobDependency.js} +7 -6
- package/lib/dependencies/{ImportMetaGlobDependencyParserPlugin.js → context/ImportMetaGlobDependencyParserPlugin.js} +7 -10
- package/lib/dependencies/{ImportMetaGlobHelpers.js → context/ImportMetaGlobHelpers.js} +17 -19
- package/lib/dependencies/{RequireContextDependency.js → context/RequireContextDependency.js} +7 -6
- package/lib/dependencies/{RequireContextDependencyParserPlugin.js → context/RequireContextDependencyParserPlugin.js} +2 -2
- package/lib/dependencies/{RequireContextPlugin.js → context/RequireContextPlugin.js} +5 -5
- package/lib/dependencies/{CachedConstDependency.js → core/CachedConstDependency.js} +21 -17
- package/lib/dependencies/core/ConstDependency.js +131 -0
- package/lib/dependencies/{ImportPhase.js → core/ImportPhase.js} +5 -4
- package/lib/dependencies/{ModuleDependency.js → core/ModuleDependency.js} +10 -7
- package/lib/dependencies/{ModuleDependencyTemplateAsId.js → core/ModuleDependencyTemplateAsId.js} +3 -3
- package/lib/dependencies/{ModuleDependencyTemplateAsRequireId.js → core/ModuleDependencyTemplateAsRequireId.js} +2 -2
- package/lib/dependencies/{ModuleInitFragmentDependency.js → core/ModuleInitFragmentDependency.js} +10 -9
- package/lib/dependencies/core/NullDependency.js +44 -0
- package/lib/dependencies/{RuntimeRequirementsDependency.js → core/RuntimeRequirementsDependency.js} +10 -9
- package/lib/dependencies/{StaticExportsDependency.js → core/StaticExportsDependency.js} +15 -8
- package/lib/dependencies/{CssIcssExportDependency.js → css/CssIcssExportDependency.js} +375 -99
- package/lib/dependencies/{CssIcssImportDependency.js → css/CssIcssImportDependency.js} +24 -19
- package/lib/dependencies/{CssIcssSymbolDependency.js → css/CssIcssSymbolDependency.js} +13 -12
- package/lib/dependencies/{CssImportDependency.js → css/CssImportDependency.js} +15 -11
- package/lib/dependencies/{CssUrlDependency.js → css/CssUrlDependency.js} +25 -22
- package/lib/dependencies/{CreateRequireParserPlugin.js → esm/CreateRequireParserPlugin.js} +9 -9
- package/lib/dependencies/{HarmonyAcceptDependency.js → esm/ESMAcceptDependency.js} +41 -38
- package/lib/dependencies/esm/ESMAcceptImportDependency.js +39 -0
- package/lib/dependencies/{HarmonyCompatibilityDependency.js → esm/ESMCompatibilityDependency.js} +29 -21
- package/lib/dependencies/{HarmonyDetectionParserPlugin.js → esm/ESMDetectionParserPlugin.js} +20 -20
- package/lib/dependencies/{HarmonyEvaluatedImportSpecifierDependency.js → esm/ESMEvaluatedImportSpecifierDependency.js} +33 -30
- package/lib/dependencies/{HarmonyExportDependencyParserPlugin.js → esm/ESMExportDependencyParserPlugin.js} +60 -89
- package/lib/dependencies/{HarmonyExportExpressionDependency.js → esm/ESMExportExpressionDependency.js} +80 -45
- package/lib/dependencies/{HarmonyExportHeaderDependency.js → esm/ESMExportHeaderDependency.js} +17 -15
- package/lib/dependencies/esm/ESMExportImportedSideEffectDependency.js +37 -0
- package/lib/dependencies/{HarmonyExportImportedSpecifierDependency.js → esm/ESMExportImportedSpecifierDependency.js} +146 -133
- package/lib/dependencies/{HarmonyExportInitFragment.js → esm/ESMExportInitFragment.js} +48 -30
- package/lib/dependencies/{HarmonyExportSpecifierDependency.js → esm/ESMExportSpecifierDependency.js} +78 -37
- package/lib/dependencies/{HarmonyExports.js → esm/ESMExports.js} +4 -12
- package/lib/dependencies/{HarmonyImportBareSideEffectDependency.js → esm/ESMImportBareSideEffectDependency.js} +21 -13
- package/lib/dependencies/{HarmonyImportDependency.js → esm/ESMImportDependency.js} +86 -68
- package/lib/dependencies/{HarmonyImportDependencyParserPlugin.js → esm/ESMImportDependencyParserPlugin.js} +104 -100
- package/lib/dependencies/{HarmonyImportGuard.js → esm/ESMImportGuard.js} +36 -51
- package/lib/dependencies/{HarmonyImportSideEffectDependency.js → esm/ESMImportSideEffectDependency.js} +83 -39
- package/lib/dependencies/{HarmonyImportSpecifierDependency.js → esm/ESMImportSpecifierDependency.js} +98 -60
- package/lib/dependencies/esm/ESMLiveExportDependency.js +311 -0
- package/lib/dependencies/esm/ESMLiveExportParserPlugin.js +862 -0
- package/lib/dependencies/esm/ESMModulesPlugin.js +205 -0
- package/lib/dependencies/{HarmonyTopLevelThisParserPlugin.js → esm/ESMTopLevelThisParserPlugin.js} +7 -7
- package/lib/dependencies/{TopLevelAwaitDependency.js → esm/TopLevelAwaitDependency.js} +12 -18
- package/lib/dependencies/{DynamicExports.js → helpers/DynamicExports.js} +5 -7
- package/lib/{util → dependencies/helpers}/chainedImports.js +5 -5
- package/lib/dependencies/{processExportInfo.js → helpers/processExportInfo.js} +4 -4
- package/lib/{util → dependencies/helpers}/traverseDestructuringAssignmentProperties.js +1 -1
- package/lib/dependencies/{ImportMetaHotAcceptDependency.js → hmr/ImportMetaHotAcceptDependency.js} +8 -7
- package/lib/dependencies/{ImportMetaHotDeclineDependency.js → hmr/ImportMetaHotDeclineDependency.js} +8 -7
- package/lib/dependencies/{ModuleHotAcceptDependency.js → hmr/ModuleHotAcceptDependency.js} +8 -7
- package/lib/dependencies/{ModuleHotDeclineDependency.js → hmr/ModuleHotDeclineDependency.js} +8 -7
- package/lib/dependencies/{HtmlEntryDependency.js → html/HtmlEntryDependency.js} +52 -151
- package/lib/dependencies/{HtmlInlineHtmlDependency.js → html/HtmlInlineHtmlDependency.js} +13 -15
- package/lib/dependencies/{HtmlInlineScriptDependency.js → html/HtmlInlineScriptDependency.js} +69 -23
- package/lib/dependencies/{HtmlInlineStyleDependency.js → html/HtmlInlineStyleDependency.js} +50 -18
- package/lib/dependencies/{HtmlSourceDependency.js → html/HtmlSourceDependency.js} +23 -16
- package/lib/dependencies/{ImportContextDependency.js → import/ImportContextDependency.js} +24 -10
- package/lib/dependencies/{ImportDependency.js → import/ImportDependency.js} +26 -18
- package/lib/dependencies/{ImportEagerDependency.js → import/ImportEagerDependency.js} +18 -10
- package/lib/dependencies/{ImportParserPlugin.js → import/ImportParserPlugin.js} +22 -25
- package/lib/dependencies/{ImportPlugin.js → import/ImportPlugin.js} +4 -4
- package/lib/dependencies/{ImportWeakDependency.js → import/ImportWeakDependency.js} +18 -10
- package/lib/dependencies/{importOptionsCheck.js → import/importOptionsCheck.js} +2 -2
- package/lib/dependencies/{BuildTimeConstDependency.js → import-meta/BuildTimeConstDependency.js} +12 -11
- package/lib/dependencies/{ImportMetaMainDependency.js → import-meta/ImportMetaMainDependency.js} +12 -11
- package/lib/dependencies/{ImportMetaPlugin.js → import-meta/ImportMetaPlugin.js} +122 -103
- package/lib/dependencies/{SystemPlugin.js → system/SystemPlugin.js} +11 -38
- package/lib/dependencies/{SystemRuntimeModule.js → system/SystemRuntimeModule.js} +3 -3
- package/lib/dependencies/{ImportMetaResolveDependency.js → url/ImportMetaResolveDependency.js} +9 -8
- package/lib/dependencies/{URLContextDependency.js → url/URLContextDependency.js} +11 -10
- package/lib/dependencies/{URLDependency.js → url/URLDependency.js} +28 -20
- package/lib/{url → dependencies/url}/URLParserPlugin.js +17 -19
- package/lib/dependencies/{URLPlugin.js → url/URLPlugin.js} +6 -7
- package/lib/dependencies/{WebAssemblyExportImportedDependency.js → wasm/WebAssemblyExportImportedDependency.js} +18 -11
- package/lib/dependencies/{WebAssemblyImportDependency.js → wasm/WebAssemblyImportDependency.js} +19 -12
- package/lib/dependencies/{CreateScriptUrlDependency.js → worker/CreateScriptUrlDependency.js} +12 -11
- package/lib/dependencies/{WorkerAndWorkletPlugin.js → worker/WorkerAndWorkletPlugin.js} +82 -53
- package/lib/dependencies/{WorkerDependency.js → worker/WorkerDependency.js} +22 -15
- package/lib/dependencies/{WorkletDependency.js → worker/WorkletDependency.js} +19 -18
- package/lib/{EvalDevToolModulePlugin.js → devtool/EvalDevToolModulePlugin.js} +20 -6
- package/lib/{EvalSourceMapDevToolPlugin.js → devtool/EvalSourceMapDevToolPlugin.js} +32 -24
- package/lib/devtool/ModuleFilenameHelpers.js +413 -0
- package/lib/{SourceMapDevToolModuleOptionsPlugin.js → devtool/SourceMapDevToolModuleOptionsPlugin.js} +10 -3
- package/lib/{SourceMapDevToolPlugin.js → devtool/SourceMapDevToolPlugin.js} +155 -27
- package/lib/{util → devtool}/generateDebugId.js +1 -1
- package/lib/{IgnoreWarningsPlugin.js → diagnostics/IgnoreWarningsPlugin.js} +2 -2
- package/lib/{NoEmitOnErrorsPlugin.js → diagnostics/NoEmitOnErrorsPlugin.js} +1 -1
- package/lib/diagnostics/WarnCaseSensitiveModulesPlugin.js +64 -0
- package/lib/{WarnDeprecatedOptionPlugin.js → diagnostics/WarnDeprecatedOptionPlugin.js} +2 -22
- package/lib/diagnostics/WarnNoModeSetPlugin.js +27 -0
- package/lib/dll/DelegatedModule.js +23 -21
- package/lib/dll/DelegatedModuleFactoryPlugin.js +2 -2
- package/lib/dll/DelegatedPlugin.js +1 -1
- package/lib/{dependencies → dll}/DelegatedSourceDependency.js +5 -4
- package/lib/{dependencies → dll}/DllEntryDependency.js +6 -5
- package/lib/dll/DllEntryPlugin.js +3 -3
- package/lib/dll/DllModule.js +14 -10
- package/lib/dll/DllModuleFactory.js +3 -3
- package/lib/dll/DllPlugin.js +18 -6
- package/lib/dll/DllReferencePlugin.js +103 -30
- package/lib/dll/LibManifestPlugin.js +9 -7
- package/lib/electron/ElectronTargetPlugin.js +2 -2
- package/lib/{DynamicEntryPlugin.js → entry/DynamicEntryPlugin.js} +3 -3
- package/lib/{dependencies → entry}/EntryDependency.js +11 -2
- package/lib/{EntryOptionPlugin.js → entry/EntryOptionPlugin.js} +6 -6
- package/lib/entry/EntryPlugin.js +75 -0
- package/lib/errors/AbstractMethodError.js +1 -1
- package/lib/{performance → errors}/AssetsOverSizeLimitWarning.js +2 -2
- package/lib/errors/AsyncDependencyToInitialChunkError.js +2 -2
- package/lib/errors/BuildCycleError.js +1 -1
- package/lib/{WarnCaseSensitiveModulesPlugin.js → errors/CaseSensitiveModulesWarning.js} +4 -56
- package/lib/errors/ChunkRenderError.js +1 -1
- package/lib/errors/CodeGenerationError.js +1 -1
- package/lib/errors/CommentCompilationWarning.js +1 -1
- package/lib/errors/ConflictingEntryExportsWarning.js +38 -0
- package/lib/{dependencies → errors}/CriticalDependencyWarning.js +4 -3
- package/lib/errors/DeprecatedOptionWarning.js +30 -0
- package/lib/errors/DllManifestError.js +26 -0
- package/lib/{performance → errors}/DuplicatePackagesWarning.js +6 -6
- package/lib/{dependencies/HarmonyLinkingError.js → errors/ESMLinkingError.js} +4 -4
- package/lib/{performance → errors}/EntrypointsOverSizeLimitWarning.js +2 -2
- package/lib/errors/EnvironmentNotSupportAsyncWarning.js +2 -2
- package/lib/{ErrorHelpers.js → errors/ErrorHelpers.js} +9 -6
- package/lib/errors/ExternalStarReexportError.js +2 -2
- package/lib/{library → errors}/FalseIIFEUmdWarning.js +1 -1
- package/lib/errors/HookWebpackError.js +6 -5
- package/lib/errors/IgnoreErrorModuleFactory.js +3 -3
- package/lib/errors/InvalidDependenciesModuleWarning.js +1 -1
- package/lib/errors/JSONParseError.js +4 -4
- package/lib/{optimize → errors}/MinMaxSizeWarning.js +1 -1
- package/lib/errors/ModuleBuildError.js +1 -1
- package/lib/errors/ModuleDependencyError.js +2 -2
- package/lib/errors/ModuleDependencyWarning.js +2 -2
- package/lib/errors/ModuleError.js +1 -1
- package/lib/errors/ModuleHashingError.js +1 -1
- package/lib/errors/ModuleNotFoundError.js +3 -3
- package/lib/errors/ModuleParseError.js +1 -1
- package/lib/errors/ModuleRestoreError.js +1 -1
- package/lib/errors/ModuleStoreError.js +1 -1
- package/lib/errors/ModuleWarning.js +1 -1
- package/lib/{performance → errors}/NoAsyncChunksWarning.js +1 -1
- package/lib/{WarnNoModeSetPlugin.js → errors/NoModeWarning.js} +2 -19
- package/lib/errors/NodeStuffInWebError.js +7 -2
- package/lib/errors/PathVariableError.js +31 -0
- package/lib/errors/RequireIncludeDeprecationWarning.js +40 -0
- package/lib/{performance → errors}/RuntimeInLargeChunkWarning.js +1 -1
- package/lib/errors/RuntimeModuleGenerationError.js +51 -0
- package/lib/errors/SSRManifestAutoPublicPathWarning.js +24 -0
- package/lib/errors/SystemImportDeprecationWarning.js +43 -0
- package/lib/errors/UnmergeableEntryExportsError.js +34 -0
- package/lib/errors/UnsupportedFeatureWarning.js +1 -1
- package/lib/{wasm-sync → errors}/UnsupportedWebAssemblyFeatureError.js +1 -1
- package/lib/{wasm-sync → errors}/WebAssemblyInInitialChunkError.js +7 -5
- package/lib/errors/WebpackError.js +13 -3
- package/lib/esm/ExportWebpackRequireRuntimeModule.js +2 -2
- package/lib/esm/ModuleChunkFormatPlugin.js +55 -20
- package/lib/esm/ModuleChunkLoadingPlugin.js +3 -3
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +8 -8
- package/lib/{ExternalModule.js → externals/ExternalModule.js} +90 -63
- package/lib/{ExternalModuleFactoryPlugin.js → externals/ExternalModuleFactoryPlugin.js} +42 -41
- package/lib/externals/ExternalsPlugin.js +99 -0
- package/lib/fs/FileSystemInfo.js +4642 -0
- package/lib/{util → fs}/fs.js +22 -9
- package/lib/{AsyncDependenciesBlock.js → graph/AsyncDependenciesBlock.js} +27 -4
- package/lib/graph/Chunk.js +985 -0
- package/lib/{ChunkGraph.js → graph/ChunkGraph.js} +192 -80
- package/lib/{ChunkGroup.js → graph/ChunkGroup.js} +11 -3
- package/lib/{DependenciesBlock.js → graph/DependenciesBlock.js} +16 -4
- package/lib/graph/Dependency.js +634 -0
- package/lib/graph/Entrypoint.js +136 -0
- package/lib/{ExportsInfo.js → graph/ExportsInfo.js} +131 -83
- package/lib/{HotUpdateChunk.js → graph/HotUpdateChunk.js} +8 -0
- package/lib/{ModuleGraph.js → graph/ModuleGraph.js} +44 -33
- package/lib/{ModuleGraphConnection.js → graph/ModuleGraphConnection.js} +2 -2
- package/lib/{buildChunkGraph.js → graph/buildChunkGraph.js} +169 -76
- package/lib/{util → graph}/findGraphRoots.js +15 -9
- package/lib/graph/isDependencyKind.js +23 -0
- package/lib/hmr/HotModuleReplacement.runtime.js +12 -11
- package/lib/{HotModuleReplacementPlugin.js → hmr/HotModuleReplacementPlugin.js} +51 -57
- package/lib/hmr/HotModuleReplacementRuntimeModule.js +3 -3
- package/lib/hmr/JavascriptHotModuleReplacement.runtime.js +25 -26
- package/lib/hmr/JavascriptHotModuleReplacementHelper.js +2 -2
- package/lib/hmr/LazyCompilationPlugin.js +32 -28
- package/lib/html/HtmlGenerator.js +132 -60
- package/lib/html/HtmlModule.js +16 -2
- package/lib/html/HtmlModulesPlugin.js +184 -87
- package/lib/html/HtmlParser.js +511 -160
- package/lib/html/builtinEmbeddedRenderer.js +70 -25
- package/lib/html/data.js +44 -22
- package/lib/html/htmlMinify.js +114 -41
- package/lib/html/syntax-parser.js +15795 -0
- package/lib/html/syntax-printer.js +1033 -0
- package/lib/html/syntax.js +37 -13952
- package/lib/html/xmlMinify.js +70 -0
- package/lib/ids/ChunkModuleIdRangePlugin.js +2 -2
- package/lib/ids/DeterministicModuleIdsPlugin.js +1 -1
- package/lib/ids/HashedModuleIdsPlugin.js +32 -5
- package/lib/ids/IdHelpers.js +4 -4
- package/lib/ids/NaturalChunkIdsPlugin.js +1 -1
- package/lib/ids/OccurrenceChunkIdsPlugin.js +6 -5
- package/lib/ids/OccurrenceModuleIdsPlugin.js +6 -5
- package/lib/{RecordIdsPlugin.js → ids/RecordIdsPlugin.js} +5 -5
- package/lib/ids/SyncModuleIdsPlugin.js +3 -3
- package/lib/{util → ids}/numberHash.js +1 -1
- package/lib/index.js +312 -105
- package/lib/{APIPlugin.js → javascript/APIPlugin.js} +31 -37
- package/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +4 -5
- package/lib/javascript/BasicEvaluatedExpression.js +9 -9
- package/lib/javascript/ChunkHelpers.js +64 -4
- package/lib/javascript/CommonJsChunkFormatPlugin.js +5 -13
- package/lib/{CompatibilityPlugin.js → javascript/CompatibilityPlugin.js} +7 -7
- package/lib/{ConstPlugin.js → javascript/ConstPlugin.js} +75 -8
- package/lib/{ExportsInfoApiPlugin.js → javascript/ExportsInfoApiPlugin.js} +5 -5
- package/lib/{dependencies → javascript}/ExportsInfoDependency.js +10 -9
- package/lib/javascript/JavascriptGenerator.js +32 -27
- package/lib/{JavascriptMetaInfoPlugin.js → javascript/JavascriptMetaInfoPlugin.js} +8 -20
- package/lib/javascript/JavascriptModule.js +14 -3
- package/lib/javascript/JavascriptModulesPlugin.js +441 -214
- package/lib/javascript/JavascriptParser.js +318 -144
- package/lib/javascript/JavascriptParserHelpers.js +1 -1
- package/lib/javascript/MergedEntryExports.js +196 -0
- package/lib/javascript/ScopeAnalyzer.js +3924 -13
- package/lib/javascript/StartupHelpers.js +6 -6
- package/lib/{UseStrictPlugin.js → javascript/UseStrictPlugin.js} +13 -19
- package/lib/{dependencies → javascript}/WebpackIsIncludedDependency.js +10 -9
- package/lib/{WebpackIsIncludedPlugin.js → javascript/WebpackIsIncludedPlugin.js} +8 -8
- package/lib/javascript/data.js +533 -122
- package/lib/javascript/jsMinify.js +272 -0
- package/lib/javascript/regexp.js +67 -32
- package/lib/javascript/syntax-parser.js +19169 -0
- package/lib/javascript/syntax-printer-data.js +1099 -0
- package/lib/javascript/syntax-printer.js +53878 -0
- package/lib/javascript/syntax.js +20 -11274
- package/lib/json/JsonData.js +1 -1
- package/lib/{dependencies → json}/JsonExportsDependency.js +8 -7
- package/lib/json/JsonGenerator.js +24 -16
- package/lib/json/JsonModule.js +13 -2
- package/lib/json/JsonModulesPlugin.js +1 -1
- package/lib/json/JsonParser.js +11 -10
- package/lib/json/jsonMinify.js +69 -0
- package/lib/library/AbstractLibraryPlugin.js +28 -15
- package/lib/library/AmdLibraryPlugin.js +4 -4
- package/lib/library/AssignLibraryPlugin.js +28 -12
- package/lib/library/EnableLibraryPlugin.js +1 -1
- package/lib/library/ExportPropertyLibraryPlugin.js +4 -4
- package/lib/library/JsonpLibraryPlugin.js +2 -2
- package/lib/library/LibraryTemplatePlugin.js +53 -0
- package/lib/library/ModuleLibraryPlugin.js +557 -187
- package/lib/library/SystemLibraryPlugin.js +6 -8
- package/lib/library/UmdLibraryPlugin.js +3 -4
- package/lib/{dependencies → loaders}/LoaderDependency.js +3 -3
- package/lib/{dependencies → loaders}/LoaderImportDependency.js +9 -3
- package/lib/{LoaderOptionsPlugin.js → loaders/LoaderOptionsPlugin.js} +30 -12
- package/lib/{dependencies → loaders}/LoaderPlugin.js +2 -2
- package/lib/loaders/LoaderRunner.js +94 -46
- package/lib/{LoaderTargetPlugin.js → loaders/LoaderTargetPlugin.js} +2 -2
- package/lib/loaders/loadLoader.js +16 -10
- package/lib/logging/Logger.js +7 -9
- package/lib/logging/ProgressPlugin.js +957 -0
- package/lib/{CodeGenerationResults.js → module/CodeGenerationResults.js} +7 -7
- package/lib/{Generator.js → module/Generator.js} +33 -23
- package/lib/{Module.js → module/Module.js} +121 -53
- package/lib/{ModuleFactory.js → module/ModuleFactory.js} +3 -3
- package/lib/module/NormalModule.js +2350 -0
- package/lib/{NormalModuleFactory.js → module/NormalModuleFactory.js} +64 -71
- package/lib/module/NullFactory.js +29 -0
- package/lib/{Parser.js → module/Parser.js} +12 -5
- package/lib/module/RawModule.js +208 -0
- package/lib/{SelfModuleFactory.js → module/SelfModuleFactory.js} +1 -1
- package/lib/{util → module}/extractSourceMap.js +71 -20
- package/lib/{util → module}/findCaseMismatch.js +4 -4
- package/lib/node/CommonJsChunkLoadingPlugin.js +3 -3
- package/lib/{dependencies → node}/ExternalModuleDependency.js +8 -7
- package/lib/{dependencies → node}/ExternalModuleInitFragment.js +7 -6
- package/lib/{dependencies → node}/ExternalModuleInitFragmentDependency.js +14 -9
- package/lib/node/NodeEnvironmentPlugin.js +11 -1
- package/lib/{NodeStuffPlugin.js → node/NodeStuffPlugin.js} +17 -17
- package/lib/node/NodeTargetPlugin.js +1 -1
- package/lib/node/NodeWatchFileSystem.js +58 -6
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +7 -7
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +13 -19
- package/lib/node/ReadFileCompileWasmPlugin.js +9 -11
- package/lib/node/RequireChunkLoadingRuntimeModule.js +7 -7
- package/lib/node/nodeConsole.js +6 -7
- package/lib/optimize/AggressiveMergingPlugin.js +2 -2
- package/lib/optimize/AggressiveSplittingPlugin.js +12 -8
- package/lib/{CircularModulesPlugin.js → optimize/CircularModulesPlugin.js} +14 -14
- package/lib/optimize/ConcatenatedModule.js +231 -220
- package/lib/{ConcatenationScope.js → optimize/ConcatenationScope.js} +39 -6
- package/lib/optimize/ConstExportsPlugin.js +7 -7
- package/lib/optimize/EnsureChunkConditionsPlugin.js +3 -3
- package/lib/{FlagAllModulesAsUsedPlugin.js → optimize/FlagAllModulesAsUsedPlugin.js} +3 -3
- package/lib/{FlagDependencyExportsPlugin.js → optimize/FlagDependencyExportsPlugin.js} +23 -28
- package/lib/{FlagDependencyUsagePlugin.js → optimize/FlagDependencyUsagePlugin.js} +44 -19
- package/lib/{FlagEntryExportAsUsedPlugin.js → optimize/FlagEntryExportAsUsedPlugin.js} +2 -2
- package/lib/optimize/FlagIncludedChunksPlugin.js +2 -2
- package/lib/optimize/InlineExports.js +12 -7
- package/lib/optimize/InnerGraph.js +5 -13
- package/lib/optimize/InnerGraphPlugin.js +10 -10
- package/lib/optimize/LazyBarrels.js +620 -0
- package/lib/{util → optimize}/LazyBucketSortedSet.js +2 -2
- package/lib/optimize/LimitChunkCountPlugin.js +16 -7
- package/lib/optimize/MangleExportsPlugin.js +5 -5
- package/lib/optimize/MergeDuplicateChunksPlugin.js +7 -6
- package/lib/optimize/MinChunkSizePlugin.js +9 -6
- package/lib/optimize/ModuleConcatenationPlugin.js +28 -22
- package/lib/{dependencies → optimize}/PureExpressionDependency.js +11 -10
- package/lib/optimize/RealContentHashPlugin.js +18 -13
- package/lib/optimize/RemoveEmptyChunksPlugin.js +2 -2
- package/lib/optimize/RemoveParentModulesPlugin.js +4 -4
- package/lib/optimize/SideEffectsFlagPlugin.js +24 -38
- package/lib/optimize/SplitChunksPlugin.js +719 -174
- package/lib/{util → optimize}/TupleQueue.js +9 -9
- package/lib/optimize/chunkSetIntersections.js +437 -0
- package/lib/{util → optimize}/deterministicGrouping.js +17 -17
- package/lib/{BannerPlugin.js → output/BannerPlugin.js} +82 -14
- package/lib/{CleanPlugin.js → output/CleanPlugin.js} +69 -25
- package/lib/{CopyPlugin.js → output/CopyPlugin.js} +144 -70
- package/lib/{ManifestPlugin.js → output/ManifestPlugin.js} +91 -17
- package/lib/output/SSRManifestPlugin.js +349 -0
- package/lib/performance/AnalyzableBailoutsPlugin.js +1 -1
- package/lib/performance/AsyncChunkWaterfallsPlugin.js +1 -1
- package/lib/performance/BroadContextsPlugin.js +4 -4
- package/lib/performance/CacheEffectivenessPlugin.js +2 -3
- package/lib/performance/ConflictingResourceHintsPlugin.js +1 -1
- package/lib/performance/DuplicateModulesPlugin.js +3 -4
- package/lib/performance/DuplicatePackagesPlugin.js +3 -3
- package/lib/performance/DynamicExportsPlugin.js +2 -2
- package/lib/performance/EvalUsagePlugin.js +4 -6
- package/lib/performance/HotspotsPlugin.js +39 -14
- package/lib/performance/LargeModulesPlugin.js +2 -3
- package/lib/performance/LegacyJavascriptPlugin.js +1 -2
- package/lib/performance/MissingSideEffectsPlugin.js +2 -3
- package/lib/performance/MissingSourceMapsPlugin.js +5 -6
- package/lib/performance/PureAnnotationsPlugin.js +19 -13
- package/lib/performance/RedundantDynamicImportsPlugin.js +6 -8
- package/lib/performance/ScopeHoistingBailoutsPlugin.js +2 -2
- package/lib/performance/SizeLimitsPlugin.js +11 -12
- package/lib/performance/TopLevelThisPlugin.js +22 -13
- package/lib/performance/UnsplitVendorsPlugin.js +1 -2
- package/lib/performance/UnusedAliasesPlugin.js +6 -7
- package/lib/performance/UnusedAssetsPlugin.js +5 -5
- package/lib/performance/UnusedDefinesPlugin.js +2 -2
- package/lib/performance/UnusedExternalsPlugin.js +3 -4
- package/lib/performance/UnusedFederationPlugin.js +2 -4
- package/lib/performance/UnusedModulesPlugin.js +5 -4
- package/lib/performance/getModuleSize.js +1 -1
- package/lib/performance/hasOnlyUnusedExports.js +4 -4
- package/lib/performance/isOnlyReexported.js +7 -6
- package/lib/{AutomaticPrefetchPlugin.js → prefetch/AutomaticPrefetchPlugin.js} +4 -5
- package/lib/prefetch/ChunkPrefetchFunctionRuntimeModule.js +2 -2
- package/lib/prefetch/ChunkPrefetchPreloadPlugin.js +1 -1
- package/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +4 -4
- package/lib/prefetch/ChunkPrefetchTriggerRuntimeModule.js +4 -4
- package/lib/prefetch/ChunkPreloadTriggerRuntimeModule.js +4 -4
- package/lib/{dependencies → prefetch}/PrefetchDependency.js +1 -1
- package/lib/{PrefetchPlugin.js → prefetch/PrefetchPlugin.js} +2 -2
- package/lib/prefetch/ResourceHintPlugin.js +66 -45
- package/lib/prefetch/ResourceHintRuntimeModule.js +3 -3
- package/lib/prefetch/StartupAssetHintRuntimeModule.js +3 -3
- package/lib/prefetch/parseResourceHintOptions.js +4 -3
- package/lib/{ProvidePlugin.js → provide/ProvidePlugin.js} +7 -7
- package/lib/{dependencies → provide}/ProvidedDependency.js +50 -17
- package/lib/{IgnorePlugin.js → resolve/IgnorePlugin.js} +30 -13
- package/lib/{NormalModuleReplacementPlugin.js → resolve/NormalModuleReplacementPlugin.js} +4 -4
- package/lib/{ResolverFactory.js → resolve/ResolverFactory.js} +18 -5
- package/lib/resolve/getResolveOptionsKey.js +59 -0
- package/lib/rules/BasicEffectRulePlugin.js +1 -1
- package/lib/rules/RuleSetCompiler.js +42 -51
- package/lib/rules/UseEffectRulePlugin.js +1 -3
- package/lib/runtime/AsyncModuleGeneratorRuntimeModule.js +2 -2
- package/lib/runtime/AsyncModuleRuntimeModule.js +14 -5
- package/lib/runtime/AutoPublicPathRuntimeModule.js +5 -5
- package/lib/runtime/BaseUriRuntimeModule.js +3 -3
- package/lib/runtime/ChunkNameRuntimeModule.js +2 -2
- package/lib/runtime/CompatGetDefaultExportRuntimeModule.js +2 -2
- package/lib/runtime/CompatRuntimeModule.js +4 -4
- package/lib/runtime/ConcatenationWrapRuntimeModule.js +2 -2
- package/lib/runtime/ConstructRequireRuntimeModule.js +2 -2
- package/lib/runtime/CreateFakeNamespaceObjectRuntimeModule.js +2 -2
- package/lib/runtime/CreateScriptRuntimeModule.js +2 -2
- package/lib/runtime/CreateScriptUrlRuntimeModule.js +2 -2
- package/lib/runtime/DefinePropertyGettersRuntimeModule.js +6 -6
- package/lib/runtime/EnsureChunkRuntimeModule.js +4 -4
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +7 -11
- package/lib/runtime/GetFullHashRuntimeModule.js +2 -2
- package/lib/runtime/GetMainFilenameRuntimeModule.js +4 -4
- package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +3 -3
- package/lib/runtime/GetWorkletBootstrapRuntimeModule.js +3 -3
- package/lib/runtime/GlobalRuntimeModule.js +3 -3
- package/lib/runtime/HasOwnPropertyRuntimeModule.js +3 -3
- package/lib/runtime/HelperRuntimeModule.js +16 -1
- package/lib/runtime/LoadScriptRuntimeModule.js +3 -3
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +80 -17
- package/lib/runtime/MakeNamespaceObjectRuntimeModule.js +2 -2
- package/lib/runtime/NonceRuntimeModule.js +2 -2
- package/lib/runtime/OnChunksLoadedRuntimeModule.js +4 -4
- package/lib/runtime/PublicPathRuntimeModule.js +2 -2
- package/lib/runtime/RelativeUrlRuntimeModule.js +2 -2
- package/lib/{RuntimeGlobals.js → runtime/RuntimeGlobals.js} +24 -1
- package/lib/runtime/RuntimeIdRuntimeModule.js +4 -4
- package/lib/{RuntimeModule.js → runtime/RuntimeModule.js} +36 -21
- package/lib/{RuntimePlugin.js → runtime/RuntimePlugin.js} +50 -50
- package/lib/runtime/SetAnonymousDefaultNameRuntimeModule.js +2 -2
- package/lib/runtime/SpecNamespaceObjectRuntimeModule.js +2 -2
- package/lib/runtime/StartupChunkDependenciesPlugin.js +2 -2
- package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +5 -5
- package/lib/runtime/StartupEntrypointRuntimeModule.js +3 -3
- package/lib/runtime/SystemContextRuntimeModule.js +2 -2
- package/lib/runtime/ToBinaryRuntimeModule.js +3 -3
- package/lib/runtime/WorkerRuntimeModule.js +1 -1
- package/lib/runtime/baseUri.js +1 -1
- package/lib/schemes/DataUriPlugin.js +1 -1
- package/lib/schemes/HttpUriPlugin.js +68 -13
- package/lib/schemes/VirtualUrlPlugin.js +52 -16
- package/lib/serialization/AggregateErrorSerializer.js +4 -4
- package/lib/serialization/BinaryMiddleware.js +4 -1
- package/lib/serialization/ErrorObjectSerializer.js +2 -5
- package/lib/serialization/FileMiddleware.js +3 -3
- package/lib/serialization/ObjectMiddleware.js +62 -29
- package/lib/serialization/PlainObjectSerializer.js +3 -7
- package/lib/serialization/Serializer.js +21 -11
- package/lib/serialization/SerializerMiddleware.js +10 -8
- package/lib/serialization/SingleItemMiddleware.js +4 -2
- package/lib/sharing/ConsumeSharedFallbackDependency.js +9 -1
- package/lib/sharing/ConsumeSharedModule.js +18 -14
- package/lib/sharing/ConsumeSharedPlugin.js +148 -42
- package/lib/sharing/ConsumeSharedRuntimeModule.js +8 -8
- package/lib/sharing/ProvideForSharedDependency.js +9 -1
- package/lib/sharing/ProvideSharedDependency.js +1 -1
- package/lib/sharing/ProvideSharedModule.js +11 -9
- package/lib/sharing/ProvideSharedModuleFactory.js +2 -2
- package/lib/sharing/ProvideSharedPlugin.js +111 -20
- package/lib/sharing/SharePlugin.js +102 -9
- package/lib/sharing/ShareRuntimeModule.js +6 -6
- package/lib/sharing/resolveMatchedConfigs.js +1 -1
- package/lib/{util → sharing}/semver.js +14 -16
- package/lib/sharing/utils.js +59 -2
- package/lib/stats/DefaultStatsFactoryPlugin.js +57 -54
- package/lib/stats/DefaultStatsPresetPlugin.js +3 -7
- package/lib/stats/DefaultStatsPrinterPlugin.js +15 -14
- package/lib/{MultiStats.js → stats/MultiStats.js} +4 -4
- package/lib/{Stats.js → stats/Stats.js} +4 -4
- package/lib/stats/StatsFactory.js +208 -37
- package/lib/stats/StatsPrinter.js +126 -13
- package/lib/{ChunkTemplate.js → template/ChunkTemplate.js} +7 -7
- package/lib/{ConditionalInitFragment.js → template/ConditionalInitFragment.js} +3 -3
- package/lib/template/DependencyTemplate.js +77 -0
- package/lib/{DependencyTemplates.js → template/DependencyTemplates.js} +9 -4
- package/lib/template/InitFragment.js +223 -0
- package/lib/{MainTemplate.js → template/MainTemplate.js} +11 -11
- package/lib/{ModuleInfoHeaderPlugin.js → template/ModuleInfoHeaderPlugin.js} +30 -8
- package/lib/{ModuleTemplate.js → template/ModuleTemplate.js} +6 -6
- package/lib/{RuntimeTemplate.js → template/RuntimeTemplate.js} +158 -95
- package/lib/{Template.js → template/Template.js} +14 -12
- package/lib/{TemplatedPathPlugin.js → template/TemplatedPathPlugin.js} +19 -23
- package/lib/typescript/TypeScriptPlugin.js +3 -3
- package/lib/util/RequestShortener.js +44 -0
- package/lib/util/SortableSet.js +87 -22
- package/lib/util/SourceProcessor.js +439 -51
- package/lib/util/TupleSet.js +27 -27
- package/lib/util/WeakTupleMap.js +20 -16
- package/lib/util/buildDiagnostics.js +2 -2
- package/lib/util/cleverMerge.js +61 -33
- package/lib/util/comparators.js +19 -15
- package/lib/util/concatenate.js +28 -147
- package/lib/util/createMappings.js +111 -0
- package/lib/util/dataURL.js +96 -15
- package/lib/util/deprecation.js +5 -4
- package/lib/util/extractComments.js +118 -0
- package/lib/util/formatLocation.js +1 -1
- package/lib/util/globUtils.js +198 -20
- package/lib/util/haltVisitors.js +51 -0
- package/lib/util/handlerKeys.js +2 -2
- package/lib/util/identifier.js +117 -1
- package/lib/util/implicitTypeLoaderFallback.js +6 -4
- package/lib/util/internalSerializables.js +296 -102
- package/lib/util/magicComment.js +12 -7
- package/lib/util/makeSerializable.js +28 -7
- package/lib/util/memoize.js +1 -1
- package/lib/util/parseJson.js +2 -2
- package/lib/util/preloadModuleType.js +5 -2
- package/lib/util/registerExternalSerializer.js +2 -2
- package/lib/util/removeBOM.js +1 -1
- package/lib/util/runtime.js +1 -1
- package/lib/util/serialization.js +35 -28
- package/lib/util/source.js +2 -2
- package/lib/util/terminalColors.js +161 -0
- package/lib/{wasm-async → wasm}/AsyncWasmCompileRuntimeModule.js +5 -5
- package/lib/{wasm-async → wasm}/AsyncWasmLoadingRuntimeModule.js +5 -5
- package/lib/{wasm-async → wasm}/AsyncWasmModule.js +19 -5
- package/lib/{wasm-async → wasm}/AsyncWebAssemblyGenerator.js +17 -9
- package/lib/{wasm-async → wasm}/AsyncWebAssemblyJavascriptGenerator.js +24 -15
- package/lib/{wasm-async → wasm}/AsyncWebAssemblyModulesPlugin.js +26 -10
- package/lib/{wasm-async → wasm}/AsyncWebAssemblyParser.js +14 -12
- package/lib/wasm/EnableWasmLoadingPlugin.js +1 -1
- package/lib/{wasm-async → wasm}/UniversalCompileAsyncWasmPlugin.js +11 -13
- package/lib/wasm/wasmModuleFilename.js +2 -2
- package/lib/wasm-sync/SyncWasmModule.js +18 -3
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +8 -8
- package/lib/wasm-sync/WasmFinalizeExportsPlugin.js +3 -3
- package/lib/wasm-sync/WebAssemblyGenerator.js +22 -16
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +28 -21
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +9 -7
- package/lib/wasm-sync/WebAssemblyParser.js +15 -17
- package/lib/wasm-sync/WebAssemblyUtils.js +6 -5
- package/lib/{MultiWatching.js → watch/MultiWatching.js} +3 -3
- package/lib/{WatchIgnorePlugin.js → watch/WatchIgnorePlugin.js} +43 -9
- package/lib/{Watching.js → watch/Watching.js} +8 -8
- package/lib/web/FetchCompileAsyncWasmPlugin.js +12 -18
- package/lib/web/FetchCompileWasmPlugin.js +8 -10
- package/lib/web/JsonpChunkLoadingPlugin.js +3 -3
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +6 -6
- package/lib/web/JsonpTemplatePlugin.js +1 -1
- package/lib/webpack.js +27 -17
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +3 -3
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +6 -6
- package/package.json +57 -36
- package/schemas/WebpackOptions.check.js +4 -3
- package/schemas/WebpackOptions.d.json.ts +2 -0
- package/schemas/WebpackOptions.json +295 -75
- package/schemas/plugins/BannerPlugin.check.js +4 -3
- package/schemas/plugins/BannerPlugin.json +29 -2
- package/schemas/plugins/HtmlGeneratorOptions.check.js +4 -3
- package/schemas/plugins/HtmlParserOptions.check.js +4 -3
- package/schemas/plugins/IgnorePlugin.check.js +4 -3
- package/schemas/plugins/IgnorePlugin.d.json.ts +2 -0
- package/schemas/plugins/IgnorePlugin.json +1 -1
- package/schemas/plugins/LoaderOptionsPlugin.check.js +4 -3
- package/schemas/plugins/ManifestPlugin.check.js +4 -3
- package/schemas/plugins/ManifestPlugin.json +3 -3
- package/schemas/plugins/ProgressPlugin.check.js +4 -3
- package/schemas/plugins/ProgressPlugin.json +2 -7
- package/schemas/plugins/SSRManifestPlugin.check.js +7 -0
- package/schemas/plugins/SSRManifestPlugin.json +20 -0
- package/schemas/plugins/SourceMapDevToolPlugin.check.js +4 -3
- package/schemas/plugins/SourceMapDevToolPlugin.json +44 -12
- package/schemas/plugins/WatchIgnorePlugin.check.js +4 -3
- package/schemas/plugins/WatchIgnorePlugin.json +12 -3
- package/schemas/plugins/asset/AssetGeneratorOptions.check.js +4 -3
- package/schemas/plugins/asset/AssetInlineGeneratorOptions.check.js +4 -3
- package/schemas/plugins/asset/AssetParserOptions.check.js +4 -3
- package/schemas/plugins/asset/AssetResourceGeneratorOptions.check.js +4 -3
- package/schemas/plugins/container/ContainerPlugin.check.js +4 -3
- package/schemas/plugins/container/ContainerPlugin.json +8 -0
- package/schemas/plugins/container/ContainerReferencePlugin.check.js +4 -3
- package/schemas/plugins/container/ExternalsType.check.js +4 -3
- package/schemas/plugins/container/ModuleFederationPlugin.check.js +4 -3
- package/schemas/plugins/container/ModuleFederationPlugin.json +40 -0
- package/schemas/plugins/css/CssAutoOrModuleParserOptions.check.js +4 -3
- package/schemas/plugins/css/CssGeneratorOptions.check.js +4 -3
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +4 -3
- package/schemas/plugins/css/CssModuleParserOptions.check.js +4 -3
- package/schemas/plugins/css/CssParserOptions.check.js +4 -3
- package/schemas/plugins/debug/ProfilingPlugin.check.js +4 -3
- package/schemas/plugins/define/DotenvPluginOptions.check.js +7 -0
- package/schemas/plugins/define/DotenvPluginOptions.json +3 -0
- package/schemas/plugins/dll/DllPlugin.check.js +4 -3
- package/schemas/plugins/dll/DllReferencePlugin.check.js +4 -3
- package/schemas/plugins/dll/DllReferencePlugin.json +3 -18
- package/schemas/plugins/ids/HashedModuleIdsPlugin.check.js +4 -3
- package/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.js +4 -3
- package/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.js +4 -3
- package/schemas/plugins/json/JsonModulesPluginGenerator.check.js +4 -3
- package/schemas/plugins/json/JsonModulesPluginParser.check.js +4 -3
- package/schemas/plugins/optimize/AggressiveSplittingPlugin.check.js +4 -3
- package/schemas/plugins/optimize/LimitChunkCountPlugin.check.js +4 -3
- package/schemas/plugins/optimize/MergeDuplicateChunksPlugin.check.js +4 -3
- package/schemas/plugins/optimize/MinChunkSizePlugin.check.js +4 -3
- package/schemas/plugins/output/CleanOptions.check.js +7 -0
- package/schemas/plugins/output/CleanOptions.json +3 -0
- package/schemas/plugins/schemes/HttpUriPlugin.check.js +4 -3
- package/schemas/plugins/schemes/VirtualUrlPlugin.check.js +4 -3
- package/schemas/plugins/sharing/ConsumeSharedPlugin.check.js +4 -3
- package/schemas/plugins/sharing/ConsumeSharedPlugin.json +32 -0
- package/schemas/plugins/sharing/ProvideSharedPlugin.check.js +4 -3
- package/schemas/plugins/sharing/ProvideSharedPlugin.json +32 -0
- package/schemas/plugins/sharing/SharePlugin.check.js +4 -3
- package/schemas/plugins/sharing/SharePlugin.json +32 -0
- package/types.d.ts +20780 -14174
- package/lib/LazyBarrel.js +0 -388
- package/lib/dependencies/HarmonyAcceptImportDependency.js +0 -39
- package/lib/dependencies/HarmonyModulesPlugin.js +0 -192
- package/lib/javascript/ChunkFormatHelpers.js +0 -72
- package/lib/javascript/grammar.js +0 -5546
- package/lib/javascript/parser.js +0 -1500
- package/lib/javascript/regexpData.js +0 -51
- package/lib/performance/getSourceModules.js +0 -22
- package/lib/util/Semaphore.js +0 -65
- package/lib/util/objectToMap.js +0 -15
- package/schemas/WebpackOptions.check.d.ts +0 -7
- package/schemas/_container.json +0 -155
- package/schemas/_sharing.json +0 -118
- package/schemas/plugins/BannerPlugin.check.d.ts +0 -7
- package/schemas/plugins/HtmlGeneratorOptions.check.d.ts +0 -7
- package/schemas/plugins/HtmlParserOptions.check.d.ts +0 -7
- package/schemas/plugins/IgnorePlugin.check.d.ts +0 -7
- package/schemas/plugins/LoaderOptionsPlugin.check.d.ts +0 -7
- package/schemas/plugins/ManifestPlugin.check.d.ts +0 -7
- package/schemas/plugins/ProgressPlugin.check.d.ts +0 -7
- package/schemas/plugins/SourceMapDevToolPlugin.check.d.ts +0 -7
- package/schemas/plugins/WatchIgnorePlugin.check.d.ts +0 -7
- package/schemas/plugins/asset/AssetGeneratorOptions.check.d.ts +0 -7
- package/schemas/plugins/asset/AssetInlineGeneratorOptions.check.d.ts +0 -7
- package/schemas/plugins/asset/AssetParserOptions.check.d.ts +0 -7
- package/schemas/plugins/asset/AssetResourceGeneratorOptions.check.d.ts +0 -7
- package/schemas/plugins/container/ContainerPlugin.check.d.ts +0 -7
- package/schemas/plugins/container/ContainerReferencePlugin.check.d.ts +0 -7
- package/schemas/plugins/container/ExternalsType.check.d.ts +0 -7
- package/schemas/plugins/container/ModuleFederationPlugin.check.d.ts +0 -7
- package/schemas/plugins/css/CssAutoOrModuleParserOptions.check.d.ts +0 -7
- package/schemas/plugins/css/CssGeneratorOptions.check.d.ts +0 -7
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.d.ts +0 -7
- package/schemas/plugins/css/CssModuleParserOptions.check.d.ts +0 -7
- package/schemas/plugins/css/CssParserOptions.check.d.ts +0 -7
- package/schemas/plugins/debug/ProfilingPlugin.check.d.ts +0 -7
- package/schemas/plugins/dll/DllPlugin.check.d.ts +0 -7
- package/schemas/plugins/dll/DllReferencePlugin.check.d.ts +0 -7
- package/schemas/plugins/ids/HashedModuleIdsPlugin.check.d.ts +0 -7
- package/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.d.ts +0 -7
- package/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.d.ts +0 -7
- package/schemas/plugins/json/JsonModulesPluginGenerator.check.d.ts +0 -7
- package/schemas/plugins/json/JsonModulesPluginParser.check.d.ts +0 -7
- package/schemas/plugins/optimize/AggressiveSplittingPlugin.check.d.ts +0 -7
- package/schemas/plugins/optimize/LimitChunkCountPlugin.check.d.ts +0 -7
- package/schemas/plugins/optimize/MergeDuplicateChunksPlugin.check.d.ts +0 -7
- package/schemas/plugins/optimize/MinChunkSizePlugin.check.d.ts +0 -7
- package/schemas/plugins/schemes/HttpUriPlugin.check.d.ts +0 -7
- package/schemas/plugins/schemes/VirtualUrlPlugin.check.d.ts +0 -7
- package/schemas/plugins/sharing/ConsumeSharedPlugin.check.d.ts +0 -7
- package/schemas/plugins/sharing/ProvideSharedPlugin.check.d.ts +0 -7
- package/schemas/plugins/sharing/SharePlugin.check.d.ts +0 -7
- /package/lib/{validateSchema.js → config/validateSchema.js} +0 -0
- /package/lib/{util → css}/topologicalSort.js +0 -0
- /package/lib/dependencies/{getFunctionExpression.js → helpers/getFunctionExpression.js} +0 -0
- /package/lib/{util → externals}/extractUrlAndGlobal.js +0 -0
- /package/lib/{util → fs}/StackedCacheMap.js +0 -0
- /package/lib/{util → javascript}/StackedMap.js +0 -0
- /package/lib/{ModuleProfile.js → module/ModuleProfile.js} +0 -0
- /package/lib/{ModuleSourceTypeConstants.js → module/ModuleSourceTypeConstants.js} +0 -0
- /package/lib/{ModuleTypeConstants.js → module/ModuleTypeConstants.js} +0 -0
- /package/lib/{OptimizationStages.js → optimize/OptimizationStages.js} +0 -0
- /package/lib/{util → optimize}/Queue.js +0 -0
- /package/lib/{util → stats}/smartGrouping.js +0 -0
|
@@ -193,6 +193,11 @@
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
|
+
"LibraryEntryExports": {
|
|
197
|
+
"description": "Which modules of an entry the library exposes the exports of: only the last one, or all of them, where a name more than one module binds differently is left out, as 'export *' does.",
|
|
198
|
+
"enum": ["last", "all"],
|
|
199
|
+
"added": "5.112.0"
|
|
200
|
+
},
|
|
196
201
|
"LibraryExport": {
|
|
197
202
|
"description": "Specify which export should be exposed as library.",
|
|
198
203
|
"anyOf": [
|
|
@@ -242,6 +247,9 @@
|
|
|
242
247
|
"auxiliaryComment": {
|
|
243
248
|
"$ref": "#/definitions/AuxiliaryComment"
|
|
244
249
|
},
|
|
250
|
+
"entryExports": {
|
|
251
|
+
"$ref": "#/definitions/LibraryEntryExports"
|
|
252
|
+
},
|
|
245
253
|
"export": {
|
|
246
254
|
"$ref": "#/definitions/LibraryExport"
|
|
247
255
|
},
|
|
@@ -397,6 +405,9 @@
|
|
|
397
405
|
"description": "Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.",
|
|
398
406
|
"type": "boolean"
|
|
399
407
|
},
|
|
408
|
+
"exclude": {
|
|
409
|
+
"$ref": "#/definitions/SharedModuleFilter"
|
|
410
|
+
},
|
|
400
411
|
"import": {
|
|
401
412
|
"description": "Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.",
|
|
402
413
|
"anyOf": [
|
|
@@ -409,6 +420,9 @@
|
|
|
409
420
|
}
|
|
410
421
|
]
|
|
411
422
|
},
|
|
423
|
+
"include": {
|
|
424
|
+
"$ref": "#/definitions/SharedModuleFilter"
|
|
425
|
+
},
|
|
412
426
|
"packageName": {
|
|
413
427
|
"description": "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.",
|
|
414
428
|
"type": "string",
|
|
@@ -465,6 +479,32 @@
|
|
|
465
479
|
"type": "string",
|
|
466
480
|
"minLength": 1
|
|
467
481
|
},
|
|
482
|
+
"SharedModuleFilter": {
|
|
483
|
+
"description": "Filters shared modules by version or request: with 'include' only matching modules are shared, with 'exclude' matching ones are not. A filtered-out module is resolved and bundled as if it wasn't shared.",
|
|
484
|
+
"type": "object",
|
|
485
|
+
"additionalProperties": false,
|
|
486
|
+
"properties": {
|
|
487
|
+
"request": {
|
|
488
|
+
"description": "Request remainder after a key ending in a slash (e.g. 'get' for 'lodash/get' under 'lodash/'). Has no effect on other keys.",
|
|
489
|
+
"anyOf": [
|
|
490
|
+
{
|
|
491
|
+
"instanceof": "RegExp",
|
|
492
|
+
"tsType": "RegExp"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"type": "string",
|
|
496
|
+
"minLength": 1
|
|
497
|
+
}
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
"version": {
|
|
501
|
+
"description": "Version range the module's version (from its description file or the 'version' option) is tested against. A consumed module is tested through its fallback module, so this has no effect on consumes without one.",
|
|
502
|
+
"type": "string",
|
|
503
|
+
"minLength": 1
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"added": "5.112.0"
|
|
507
|
+
},
|
|
468
508
|
"SharedObject": {
|
|
469
509
|
"description": "Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.",
|
|
470
510
|
"type": "object",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
"use strict";module.exports=c,module.exports.default=c;const r={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},pure:{$ref:"#/definitions/CssParserPure"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},t=Object.prototype.hasOwnProperty,e={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},o={validate:i};function n(r,{instancePath:t="",parentData:e,parentDataProperty:a,rootData:s=r}={}){let i=null,l=0;if(0===l){if(!Array.isArray(r))return n.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let a=0;a<e;a++){const e=l,p=l;let f=!1,c=null;const u=l;if(o.validate(r[a],{instancePath:t+"/"+a,parentData:r,parentDataProperty:a,rootData:s})||(i=null===i?o.validate.errors:i.concat(o.validate.errors),l=i.length),u===l&&(f=!0,c=0),!f){const r={params:{passingSchemas:c}};return null===i?i=[r]:i.push(r),l++,n.errors=i,!1}if(l=p,null!==i&&(p?i.length=p:i=null),e!==l)break}}}return n.errors=i,0===l}function a(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){if(!Array.isArray(r))return a.errors=[{params:{type:"array"}}],!1;{const t=r.length;for(let e=0;e<t;e++){let t=r[e];const o=0;if("string"!=typeof t)return a.errors=[{params:{type:"string"}}],!1;if(t.length<1)return a.errors=[{params:{}}],!1;if(0!==o)break}}return a.errors=null,!0}function s(r,{instancePath:t="",parentData:e,parentDataProperty:i,rootData:l=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return s.errors=[{params:{type:"object"}}],!1;{const e=f;for(const t in r)if("and"!==t&&"glob"!==t&&"not"!==t&&"or"!==t)return s.errors=[{params:{additionalProperty:t}}],!1;if(e===f){if(void 0!==r.and){const e=f,o=f;let a=!1,i=null;const u=f;if(n(r.and,{instancePath:t+"/and",parentData:r,parentDataProperty:"and",rootData:l})||(p=null===p?n.errors:p.concat(n.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=o,null!==p&&(o?p.length=o:p=null);var c=e===f}else c=!0;if(c){if(void 0!==r.glob){let e=r.glob;const o=f,n=f;let i=!1;const d=f;if(f==f)if("string"==typeof e){if(e.length<1){const r={params:{}};null===p?p=[r]:p.push(r),f++}}else{const r={params:{type:"string"}};null===p?p=[r]:p.push(r),f++}var u=d===f;if(i=i||u,!i){const o=f;a(e,{instancePath:t+"/glob",parentData:r,parentDataProperty:"glob",rootData:l})||(p=null===p?a.errors:p.concat(a.errors),f=p.length),u=o===f,i=i||u}if(!i){const r={params:{}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),c=o===f}else c=!0;if(c){if(void 0!==r.not){const e=f,n=f;let a=!1,i=null;const u=f;if(o.validate(r.not,{instancePath:t+"/not",parentData:r,parentDataProperty:"not",rootData:l})||(p=null===p?o.validate.errors:p.concat(o.validate.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),c=e===f}else c=!0;if(c)if(void 0!==r.or){const e=f,o=f;let a=!1,i=null;const u=f;if(n(r.or,{instancePath:t+"/or",parentData:r,parentDataProperty:"or",rootData:l})||(p=null===p?n.errors:p.concat(n.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=o,null!==p&&(o?p.length=o:p=null),c=e===f}else c=!0}}}}}return s.errors=p,0===f}function i(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:a=r}={}){let l=null,p=0;const f=p;let c=!1;const u=p;if(!(r instanceof RegExp)){const r={params:{}};null===l?l=[r]:l.push(r),p++}var d=u===p;if(c=c||d,!c){const i=p;if("string"!=typeof r){const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}if(d=i===p,c=c||d,!c){const i=p;if(!(r instanceof Function)){const r={params:{}};null===l?l=[r]:l.push(r),p++}if(d=i===p,c=c||d,!c){const i=p;if(s(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:a})||(l=null===l?s.errors:l.concat(s.errors),p=l.length),d=i===p,c=c||d,!c){const s=p;n(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:a})||(l=null===l?n.errors:l.concat(n.errors),p=l.length),d=s===p,c=c||d}}}}if(!c){const r={params:{}};return null===l?l=[r]:l.push(r),p++,i.errors=l,!1}return p=f,null!==l&&(f?l.length=f:l=null),i.errors=l,0===p}function l(r,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:s=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{const n=f;for(const o in r)if(!t.call(e.properties,o))return l.errors=[{params:{additionalProperty:o}}],!1;if(n===f){if(void 0!==r.as){const t=f;if("string"!=typeof r.as)return l.errors=[{params:{type:"string"}}],!1;var c=t===f}else c=!0;if(c){if(void 0!==r.exclude){const t=f;i(r.exclude,{instancePath:o+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c){if(void 0!==r.fetchPriority){let t=r.fetchPriority;const e=f;if("low"!==t&&"high"!==t&&"auto"!==t&&!1!==t)return l.errors=[{params:{}}],!1;c=e===f}else c=!0;if(c){if(void 0!==r.include){const t=f;i(r.include,{instancePath:o+"/include",parentData:r,parentDataProperty:"include",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c){if(void 0!==r.media){const t=f;if("string"!=typeof r.media)return l.errors=[{params:{type:"string"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.prefetch){const t=f;if("boolean"!=typeof r.prefetch)return l.errors=[{params:{type:"boolean"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.preload){const t=f;if("boolean"!=typeof r.preload)return l.errors=[{params:{type:"boolean"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.test){const t=f;i(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c)if(void 0!==r.type){const t=f;if("string"!=typeof r.type)return l.errors=[{params:{type:"string"}}],!1;c=t===f}else c=!0}}}}}}}}}}return l.errors=p,0===f}function p(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;if(0===s){if(!Array.isArray(r))return p.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let o=0;o<e;o++){const e=s;if(l(r[o],{instancePath:t+"/"+o,parentData:r,parentDataProperty:o,rootData:n})||(a=null===a?l.errors:a.concat(l.errors),s=a.length),e!==s)break}}}return p.errors=a,0===s}function f(e,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:s=e}={}){let i=null,l=0;if(0===l){if(!e||"object"!=typeof e||Array.isArray(e))return f.errors=[{params:{type:"object"}}],!1;{const n=l;for(const o in e)if(!t.call(r.properties,o))return f.errors=[{params:{additionalProperty:o}}],!1;if(n===l){if(void 0!==e.animation){const r=l;if("boolean"!=typeof e.animation)return f.errors=[{params:{type:"boolean"}}],!1;var c=r===l}else c=!0;if(c){if(void 0!==e.as){let r=e.as;const t=l;if("stylesheet"!==r&&"block-contents"!==r)return f.errors=[{params:{}}],!1;c=t===l}else c=!0;if(c){if(void 0!==e.container){const r=l;if("boolean"!=typeof e.container)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customIdents){const r=l;if("boolean"!=typeof e.customIdents)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customMedia){const r=l;if("boolean"!=typeof e.customMedia)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customSelectors){const r=l;if("boolean"!=typeof e.customSelectors)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.dashedIdents){const r=l;if("boolean"!=typeof e.dashedIdents)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.exportType){let r=e.exportType;const t=l;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return f.errors=[{params:{}}],!1;c=t===l}else c=!0;if(c){if(void 0!==e.fontPreload){const r=l;if("boolean"!=typeof e.fontPreload)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.function){const r=l;if("boolean"!=typeof e.function)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.grid){const r=l;if("boolean"!=typeof e.grid)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.import){const r=l;if("boolean"!=typeof e.import)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.namedExports){const r=l;if("boolean"!=typeof e.namedExports)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.pure){const r=l;if("boolean"!=typeof e.pure)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.url){const r=l;if("boolean"!=typeof e.url)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c)if(void 0!==e.urlHints){const r=l;p(e.urlHints,{instancePath:o+"/urlHints",parentData:e,parentDataProperty:"urlHints",rootData:s})||(i=null===i?p.errors:i.concat(p.errors),l=i.length),c=r===l}else c=!0}}}}}}}}}}}}}}}}}return f.errors=i,0===l}function c(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;return f(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:n})||(a=null===a?f.errors:a.concat(f.errors),s=a.length),c.errors=a,0===s}
|
|
7
|
+
"use strict";module.exports=y,module.exports.default=y;let r={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},pure:{$ref:"#/definitions/CssParserPure"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},e={enum:["stylesheet","block-contents"]},t={enum:["link","text","css-style-sheet","style"]},a=Object.prototype.hasOwnProperty,o={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},n={validate:f};function s(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return s.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let i=0;i<o;i++){let o=a,l=a,p=!1,f=null,u=a;if(n.validate(r[i],{instancePath:e+"/"+i,parentData:r,parentDataProperty:i,rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(p=!0,f=0),!p){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,s.errors=t,!1}if(a=l,t!==null&&(l?t.length=l:t=null),o!==a)break}}}return s.errors=t,a===0}let i=function(r){let e=r.length,t,a=0,o=0;for(;o<e;)a++,(t=r.charCodeAt(o++))>=55296&&t<=56319&&o<e&&(64512&(t=r.charCodeAt(o)))==56320&&o++;return a};function l(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){if(!Array.isArray(r))return l.errors=[{params:{type:"array"}}],!1;{let e=r.length;for(let t=0;t<e;t++){let e=r[t];if("string"!=typeof e)return l.errors=[{params:{type:"string"}}],!1;if(i(e)<1)return l.errors=[{params:{limit:1}}],!1}}return l.errors=null,!0}function p(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!r||"object"!=typeof r||Array.isArray(r))return p.errors=[{params:{type:"object"}}],!1;{let u=a;for(let e in r)if("and"!==e&&"glob"!==e&&"not"!==e&&"or"!==e)return p.errors=[{params:{additionalProperty:e}}],!1;if(u===a){if(r.and!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.and,{instancePath:e+"/and",parentData:r,parentDataProperty:"and",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null);var o=n===a}else o=!0;if(o){if(r.glob!==void 0){let n=r.glob,s=a,u=a,c=!1,d=a;if(a==a)if("string"==typeof n){if(i(n)<1){let r={params:{limit:1}};t===null?t=[r]:t.push(r),a++}}else{let r={params:{type:"string"}};t===null?t=[r]:t.push(r),a++}var f=d===a;if(!(c=c||f)){let o=a;l(n,{instancePath:e+"/glob",parentData:r,parentDataProperty:"glob",rootData})||(a=(t=t===null?l.errors:t.concat(l.errors)).length),f=o===a,c=c||f}if(!c){let r={params:{}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=u,t!==null&&(u?t.length=u:t=null),o=s===a}else o=!0;if(o){if(r.not!==void 0){let s=a,i=a,l=!1,f=null,u=a;if(n.validate(r.not,{instancePath:e+"/not",parentData:r,parentDataProperty:"not",rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=s===a}else o=!0;if(o)if(r.or!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.or,{instancePath:e+"/or",parentData:r,parentDataProperty:"or",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=n===a}else o=!0}}}}}return p.errors=t,a===0}function f(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0,a=t,o=!1,n=t;if(!(r instanceof RegExp)){let r={params:{}};e===null?e=[r]:e.push(r),t++}var i=n===t;if(!(o=o||i)){let a=t;if("string"!=typeof r){let r={params:{type:"string"}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(!(r instanceof Function)){let r={params:{}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(p(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?p.errors:e.concat(p.errors)).length),i=a===t,!(o=o||i)){let a=t;s(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?s.errors:e.concat(s.errors)).length),i=a===t,o=o||i}}}}if(!o){let r={params:{}};return e===null?e=[r]:e.push(r),t++,f.errors=e,!1}return t=a,e!==null&&(a?e.length=a:e=null),f.errors=e,t===0}function u(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,n=0;if(n===0){if(!r||"object"!=typeof r||Array.isArray(r))return u.errors=[{params:{type:"object"}}],!1;{let i=n;for(let e in r)if(!a.call(o.properties,e))return u.errors=[{params:{additionalProperty:e}}],!1;if(i===n){if(r.as!==void 0){if("string"!=typeof r.as)return u.errors=[{params:{type:"string"}}],!1;var s=n===n}else s=!0;if(s){if(r.exclude!==void 0){let a=n;f(r.exclude,{instancePath:e+"/exclude",parentData:r,parentDataProperty:"exclude",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.fetchPriority!==void 0){let e=r.fetchPriority;if("low"!==e&&"high"!==e&&"auto"!==e&&!1!==e)return u.errors=[{params:{allowedValues:o.properties.fetchPriority.enum}}],!1;s=n===n}else s=!0;if(s){if(r.include!==void 0){let a=n;f(r.include,{instancePath:e+"/include",parentData:r,parentDataProperty:"include",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.media!==void 0){if("string"!=typeof r.media)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0;if(s){if(r.prefetch!==void 0){if("boolean"!=typeof r.prefetch)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.preload!==void 0){if("boolean"!=typeof r.preload)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.test!==void 0){let a=n;f(r.test,{instancePath:e+"/test",parentData:r,parentDataProperty:"test",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s)if(r.type!==void 0){if("string"!=typeof r.type)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0}}}}}}}}}}return u.errors=t,n===0}function c(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return c.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let n=0;n<o;n++){let o=a;if(u(r[n],{instancePath:e+"/"+n,parentData:r,parentDataProperty:n,rootData})||(a=(t=t===null?u.errors:t.concat(u.errors)).length),o!==a)break}}}return c.errors=t,a===0}function d(o,{instancePath:n="",parentData,parentDataProperty,rootData=o}={}){let s=null,i=0;if(i===0){if(!o||"object"!=typeof o||Array.isArray(o))return d.errors=[{params:{type:"object"}}],!1;{let p=i;for(let e in o)if(!a.call(r.properties,e))return d.errors=[{params:{additionalProperty:e}}],!1;if(p===i){if(o.animation!==void 0){if("boolean"!=typeof o.animation)return d.errors=[{params:{type:"boolean"}}],!1;var l=i===i}else l=!0;if(l){if(o.as!==void 0){let r=o.as;if("stylesheet"!==r&&"block-contents"!==r)return d.errors=[{params:{allowedValues:e.enum}}],!1;l=i===i}else l=!0;if(l){if(o.container!==void 0){if("boolean"!=typeof o.container)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customIdents!==void 0){if("boolean"!=typeof o.customIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customMedia!==void 0){if("boolean"!=typeof o.customMedia)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customSelectors!==void 0){if("boolean"!=typeof o.customSelectors)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.dashedIdents!==void 0){if("boolean"!=typeof o.dashedIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.exportType!==void 0){let r=o.exportType;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return d.errors=[{params:{allowedValues:t.enum}}],!1;l=i===i}else l=!0;if(l){if(o.fontPreload!==void 0){if("boolean"!=typeof o.fontPreload)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.function!==void 0){if("boolean"!=typeof o.function)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.grid!==void 0){if("boolean"!=typeof o.grid)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.import!==void 0){if("boolean"!=typeof o.import)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.namedExports!==void 0){if("boolean"!=typeof o.namedExports)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.pure!==void 0){if("boolean"!=typeof o.pure)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.url!==void 0){if("boolean"!=typeof o.url)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l)if(o.urlHints!==void 0){let r=i;c(o.urlHints,{instancePath:n+"/urlHints",parentData:o,parentDataProperty:"urlHints",rootData})||(i=(s=s===null?c.errors:s.concat(c.errors)).length),l=r===i}else l=!0}}}}}}}}}}}}}}}}}return d.errors=s,i===0}function y(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0;return d(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?d.errors:e.concat(d.errors)).length),y.errors=e,t===0}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
"use strict";function r(e,{instancePath
|
|
7
|
+
"use strict";function r(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;for(let t in e)if("esModule"!==t&&"exportsOnly"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(e.esModule!==void 0){if("boolean"!=typeof e.esModule)return r.errors=[{params:{type:"boolean"}}],!1;var t=!0}else t=!0;if(t)if(e.exportsOnly!==void 0){if("boolean"!=typeof e.exportsOnly)return r.errors=[{params:{type:"boolean"}}],!1;t=!0}else t=!0;return r.errors=null,!0}function e(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){let a=null,o=0;return r(t,{instancePath,parentData,parentDataProperty,rootData})||(o=(a=a===null?r.errors:a.concat(r.errors)).length),e.errors=a,o===0}module.exports=e,module.exports.default=e;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
"use strict";module.exports=
|
|
7
|
+
"use strict";module.exports=a,module.exports.default=a;let e={type:"object",additionalProperties:!1,properties:{esModule:{$ref:"#/definitions/CssGeneratorEsModule"},exportType:{$ref:"#/definitions/CssParserExportType"},exportsConvention:{$ref:"#/definitions/CssGeneratorExportsConvention"},exportsOnly:{$ref:"#/definitions/CssGeneratorExportsOnly"},localIdentHashDigest:{$ref:"#/definitions/HashDigest"},localIdentHashDigestLength:{$ref:"#/definitions/HashDigestLength"},localIdentHashFunction:{$ref:"#/definitions/HashFunction"},localIdentHashSalt:{$ref:"#/definitions/HashSalt"},localIdentName:{$ref:"#/definitions/CssGeneratorLocalIdentName"}}},t={enum:["link","text","css-style-sheet","style"]},n={anyOf:[{enum:["as-is","camel-case","camel-case-only","dashes","dashes-only"]},{instanceof:"Function"}]},s=Object.prototype.hasOwnProperty,r=function(e){let t=e.length,n,s=0,r=0;for(;r<t;)s++,(n=e.charCodeAt(r++))>=55296&&n<=56319&&r<t&&(64512&(n=e.charCodeAt(r)))==56320&&r++;return s};function o(a,{instancePath="",parentData,parentDataProperty,rootData=a}={}){let l=null,i=0;if(i===0){if(!a||"object"!=typeof a||Array.isArray(a))return o.errors=[{params:{type:"object"}}],!1;{let d=i;for(let t in a)if(!s.call(e.properties,t))return o.errors=[{params:{additionalProperty:t}}],!1;if(d===i){if(a.esModule!==void 0){if("boolean"!=typeof a.esModule)return o.errors=[{params:{type:"boolean"}}],!1;var p=i===i}else p=!0;if(p){if(a.exportType!==void 0){let e=a.exportType;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e&&"style"!==e)return o.errors=[{params:{allowedValues:t.enum}}],!1;p=i===i}else p=!0;if(p){if(a.exportsConvention!==void 0){let e=a.exportsConvention,t=i,s=i,r=!1,c=i;if("as-is"!==e&&"camel-case"!==e&&"camel-case-only"!==e&&"dashes"!==e&&"dashes-only"!==e){let e={params:{allowedValues:n.anyOf[0].enum}};l===null?l=[e]:l.push(e),i++}var f=c===i;if(!(r=r||f)){let t=i;if(!(e instanceof Function)){let e={params:{}};l===null?l=[e]:l.push(e),i++}f=t===i,r=r||f}if(!r){let e={params:{}};return l===null?l=[e]:l.push(e),i++,o.errors=l,!1}i=s,l!==null&&(s?l.length=s:l=null),p=t===i}else p=!0;if(p){if(a.exportsOnly!==void 0){if("boolean"!=typeof a.exportsOnly)return o.errors=[{params:{type:"boolean"}}],!1;p=i===i}else p=!0;if(p){if(a.localIdentHashDigest!==void 0){if("string"!=typeof a.localIdentHashDigest)return o.errors=[{params:{type:"string"}}],!1;p=i===i}else p=!0;if(p){if(a.localIdentHashDigestLength!==void 0){let e=a.localIdentHashDigestLength;if(i==i){if("number"!=typeof e)return o.errors=[{params:{type:"number"}}],!1;if(e<1||isNaN(e))return o.errors=[{params:{comparison:">=",limit:1}}],!1}p=i===i}else p=!0;if(p){if(a.localIdentHashFunction!==void 0){let e=a.localIdentHashFunction,t=i,n=i,s=!1,f=i;if(i===f)if("string"==typeof e){if(r(e)<1){let e={params:{limit:1}};l===null?l=[e]:l.push(e),i++}}else{let e={params:{type:"string"}};l===null?l=[e]:l.push(e),i++}var c=f===i;if(!(s=s||c)){let t=i;if(!(e instanceof Function)){let e={params:{}};l===null?l=[e]:l.push(e),i++}c=t===i,s=s||c}if(!s){let e={params:{}};return l===null?l=[e]:l.push(e),i++,o.errors=l,!1}i=n,l!==null&&(n?l.length=n:l=null),p=t===i}else p=!0;if(p){if(a.localIdentHashSalt!==void 0){let e=a.localIdentHashSalt;if(i==i){if("string"!=typeof e)return o.errors=[{params:{type:"string"}}],!1;if(r(e)<1)return o.errors=[{params:{limit:1}}],!1}p=i===i}else p=!0;if(p)if(a.localIdentName!==void 0){let e=a.localIdentName,t=i,n=i,s=!1,r=i;if("string"!=typeof e){let e={params:{type:"string"}};l===null?l=[e]:l.push(e),i++}var u=r===i;if(!(s=s||u)){let t=i;if(!(e instanceof Function)){let e={params:{}};l===null?l=[e]:l.push(e),i++}u=t===i,s=s||u}if(!s){let e={params:{}};return l===null?l=[e]:l.push(e),i++,o.errors=l,!1}i=n,l!==null&&(n?l.length=n:l=null),p=t===i}else p=!0}}}}}}}}}}return o.errors=l,i===0}function a(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){let t=null,n=0;return o(e,{instancePath,parentData,parentDataProperty,rootData})||(n=(t=t===null?o.errors:t.concat(o.errors)).length),a.errors=t,n===0}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
"use strict";module.exports=c,module.exports.default=c;const r={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},t=Object.prototype.hasOwnProperty,e={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},o={validate:i};function n(r,{instancePath:t="",parentData:e,parentDataProperty:a,rootData:s=r}={}){let i=null,l=0;if(0===l){if(!Array.isArray(r))return n.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let a=0;a<e;a++){const e=l,p=l;let f=!1,c=null;const u=l;if(o.validate(r[a],{instancePath:t+"/"+a,parentData:r,parentDataProperty:a,rootData:s})||(i=null===i?o.validate.errors:i.concat(o.validate.errors),l=i.length),u===l&&(f=!0,c=0),!f){const r={params:{passingSchemas:c}};return null===i?i=[r]:i.push(r),l++,n.errors=i,!1}if(l=p,null!==i&&(p?i.length=p:i=null),e!==l)break}}}return n.errors=i,0===l}function a(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){if(!Array.isArray(r))return a.errors=[{params:{type:"array"}}],!1;{const t=r.length;for(let e=0;e<t;e++){let t=r[e];const o=0;if("string"!=typeof t)return a.errors=[{params:{type:"string"}}],!1;if(t.length<1)return a.errors=[{params:{}}],!1;if(0!==o)break}}return a.errors=null,!0}function s(r,{instancePath:t="",parentData:e,parentDataProperty:i,rootData:l=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return s.errors=[{params:{type:"object"}}],!1;{const e=f;for(const t in r)if("and"!==t&&"glob"!==t&&"not"!==t&&"or"!==t)return s.errors=[{params:{additionalProperty:t}}],!1;if(e===f){if(void 0!==r.and){const e=f,o=f;let a=!1,i=null;const u=f;if(n(r.and,{instancePath:t+"/and",parentData:r,parentDataProperty:"and",rootData:l})||(p=null===p?n.errors:p.concat(n.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=o,null!==p&&(o?p.length=o:p=null);var c=e===f}else c=!0;if(c){if(void 0!==r.glob){let e=r.glob;const o=f,n=f;let i=!1;const d=f;if(f==f)if("string"==typeof e){if(e.length<1){const r={params:{}};null===p?p=[r]:p.push(r),f++}}else{const r={params:{type:"string"}};null===p?p=[r]:p.push(r),f++}var u=d===f;if(i=i||u,!i){const o=f;a(e,{instancePath:t+"/glob",parentData:r,parentDataProperty:"glob",rootData:l})||(p=null===p?a.errors:p.concat(a.errors),f=p.length),u=o===f,i=i||u}if(!i){const r={params:{}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),c=o===f}else c=!0;if(c){if(void 0!==r.not){const e=f,n=f;let a=!1,i=null;const u=f;if(o.validate(r.not,{instancePath:t+"/not",parentData:r,parentDataProperty:"not",rootData:l})||(p=null===p?o.validate.errors:p.concat(o.validate.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),c=e===f}else c=!0;if(c)if(void 0!==r.or){const e=f,o=f;let a=!1,i=null;const u=f;if(n(r.or,{instancePath:t+"/or",parentData:r,parentDataProperty:"or",rootData:l})||(p=null===p?n.errors:p.concat(n.errors),f=p.length),u===f&&(a=!0,i=0),!a){const r={params:{passingSchemas:i}};return null===p?p=[r]:p.push(r),f++,s.errors=p,!1}f=o,null!==p&&(o?p.length=o:p=null),c=e===f}else c=!0}}}}}return s.errors=p,0===f}function i(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:a=r}={}){let l=null,p=0;const f=p;let c=!1;const u=p;if(!(r instanceof RegExp)){const r={params:{}};null===l?l=[r]:l.push(r),p++}var d=u===p;if(c=c||d,!c){const i=p;if("string"!=typeof r){const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}if(d=i===p,c=c||d,!c){const i=p;if(!(r instanceof Function)){const r={params:{}};null===l?l=[r]:l.push(r),p++}if(d=i===p,c=c||d,!c){const i=p;if(s(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:a})||(l=null===l?s.errors:l.concat(s.errors),p=l.length),d=i===p,c=c||d,!c){const s=p;n(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:a})||(l=null===l?n.errors:l.concat(n.errors),p=l.length),d=s===p,c=c||d}}}}if(!c){const r={params:{}};return null===l?l=[r]:l.push(r),p++,i.errors=l,!1}return p=f,null!==l&&(f?l.length=f:l=null),i.errors=l,0===p}function l(r,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:s=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{const n=f;for(const o in r)if(!t.call(e.properties,o))return l.errors=[{params:{additionalProperty:o}}],!1;if(n===f){if(void 0!==r.as){const t=f;if("string"!=typeof r.as)return l.errors=[{params:{type:"string"}}],!1;var c=t===f}else c=!0;if(c){if(void 0!==r.exclude){const t=f;i(r.exclude,{instancePath:o+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c){if(void 0!==r.fetchPriority){let t=r.fetchPriority;const e=f;if("low"!==t&&"high"!==t&&"auto"!==t&&!1!==t)return l.errors=[{params:{}}],!1;c=e===f}else c=!0;if(c){if(void 0!==r.include){const t=f;i(r.include,{instancePath:o+"/include",parentData:r,parentDataProperty:"include",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c){if(void 0!==r.media){const t=f;if("string"!=typeof r.media)return l.errors=[{params:{type:"string"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.prefetch){const t=f;if("boolean"!=typeof r.prefetch)return l.errors=[{params:{type:"boolean"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.preload){const t=f;if("boolean"!=typeof r.preload)return l.errors=[{params:{type:"boolean"}}],!1;c=t===f}else c=!0;if(c){if(void 0!==r.test){const t=f;i(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:s})||(p=null===p?i.errors:p.concat(i.errors),f=p.length),c=t===f}else c=!0;if(c)if(void 0!==r.type){const t=f;if("string"!=typeof r.type)return l.errors=[{params:{type:"string"}}],!1;c=t===f}else c=!0}}}}}}}}}}return l.errors=p,0===f}function p(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;if(0===s){if(!Array.isArray(r))return p.errors=[{params:{type:"array"}}],!1;{const e=r.length;for(let o=0;o<e;o++){const e=s;if(l(r[o],{instancePath:t+"/"+o,parentData:r,parentDataProperty:o,rootData:n})||(a=null===a?l.errors:a.concat(l.errors),s=a.length),e!==s)break}}}return p.errors=a,0===s}function f(e,{instancePath:o="",parentData:n,parentDataProperty:a,rootData:s=e}={}){let i=null,l=0;if(0===l){if(!e||"object"!=typeof e||Array.isArray(e))return f.errors=[{params:{type:"object"}}],!1;{const n=l;for(const o in e)if(!t.call(r.properties,o))return f.errors=[{params:{additionalProperty:o}}],!1;if(n===l){if(void 0!==e.animation){const r=l;if("boolean"!=typeof e.animation)return f.errors=[{params:{type:"boolean"}}],!1;var c=r===l}else c=!0;if(c){if(void 0!==e.as){let r=e.as;const t=l;if("stylesheet"!==r&&"block-contents"!==r)return f.errors=[{params:{}}],!1;c=t===l}else c=!0;if(c){if(void 0!==e.container){const r=l;if("boolean"!=typeof e.container)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customIdents){const r=l;if("boolean"!=typeof e.customIdents)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customMedia){const r=l;if("boolean"!=typeof e.customMedia)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.customSelectors){const r=l;if("boolean"!=typeof e.customSelectors)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.dashedIdents){const r=l;if("boolean"!=typeof e.dashedIdents)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.exportType){let r=e.exportType;const t=l;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return f.errors=[{params:{}}],!1;c=t===l}else c=!0;if(c){if(void 0!==e.fontPreload){const r=l;if("boolean"!=typeof e.fontPreload)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.function){const r=l;if("boolean"!=typeof e.function)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.grid){const r=l;if("boolean"!=typeof e.grid)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.import){const r=l;if("boolean"!=typeof e.import)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.namedExports){const r=l;if("boolean"!=typeof e.namedExports)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c){if(void 0!==e.url){const r=l;if("boolean"!=typeof e.url)return f.errors=[{params:{type:"boolean"}}],!1;c=r===l}else c=!0;if(c)if(void 0!==e.urlHints){const r=l;p(e.urlHints,{instancePath:o+"/urlHints",parentData:e,parentDataProperty:"urlHints",rootData:s})||(i=null===i?p.errors:i.concat(p.errors),l=i.length),c=r===l}else c=!0}}}}}}}}}}}}}}}}return f.errors=i,0===l}function c(r,{instancePath:t="",parentData:e,parentDataProperty:o,rootData:n=r}={}){let a=null,s=0;return f(r,{instancePath:t,parentData:e,parentDataProperty:o,rootData:n})||(a=null===a?f.errors:a.concat(f.errors),s=a.length),c.errors=a,0===s}
|
|
7
|
+
"use strict";module.exports=y,module.exports.default=y;let r={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},as:{$ref:"#/definitions/CssParserAs"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},e={enum:["stylesheet","block-contents"]},t={enum:["link","text","css-style-sheet","style"]},a=Object.prototype.hasOwnProperty,o={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},n={validate:f};function s(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return s.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let i=0;i<o;i++){let o=a,l=a,p=!1,f=null,u=a;if(n.validate(r[i],{instancePath:e+"/"+i,parentData:r,parentDataProperty:i,rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(p=!0,f=0),!p){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,s.errors=t,!1}if(a=l,t!==null&&(l?t.length=l:t=null),o!==a)break}}}return s.errors=t,a===0}let i=function(r){let e=r.length,t,a=0,o=0;for(;o<e;)a++,(t=r.charCodeAt(o++))>=55296&&t<=56319&&o<e&&(64512&(t=r.charCodeAt(o)))==56320&&o++;return a};function l(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){if(!Array.isArray(r))return l.errors=[{params:{type:"array"}}],!1;{let e=r.length;for(let t=0;t<e;t++){let e=r[t];if("string"!=typeof e)return l.errors=[{params:{type:"string"}}],!1;if(i(e)<1)return l.errors=[{params:{limit:1}}],!1}}return l.errors=null,!0}function p(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!r||"object"!=typeof r||Array.isArray(r))return p.errors=[{params:{type:"object"}}],!1;{let u=a;for(let e in r)if("and"!==e&&"glob"!==e&&"not"!==e&&"or"!==e)return p.errors=[{params:{additionalProperty:e}}],!1;if(u===a){if(r.and!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.and,{instancePath:e+"/and",parentData:r,parentDataProperty:"and",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null);var o=n===a}else o=!0;if(o){if(r.glob!==void 0){let n=r.glob,s=a,u=a,c=!1,d=a;if(a==a)if("string"==typeof n){if(i(n)<1){let r={params:{limit:1}};t===null?t=[r]:t.push(r),a++}}else{let r={params:{type:"string"}};t===null?t=[r]:t.push(r),a++}var f=d===a;if(!(c=c||f)){let o=a;l(n,{instancePath:e+"/glob",parentData:r,parentDataProperty:"glob",rootData})||(a=(t=t===null?l.errors:t.concat(l.errors)).length),f=o===a,c=c||f}if(!c){let r={params:{}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=u,t!==null&&(u?t.length=u:t=null),o=s===a}else o=!0;if(o){if(r.not!==void 0){let s=a,i=a,l=!1,f=null,u=a;if(n.validate(r.not,{instancePath:e+"/not",parentData:r,parentDataProperty:"not",rootData})||(a=(t=t===null?n.validate.errors:t.concat(n.validate.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=s===a}else o=!0;if(o)if(r.or!==void 0){let n=a,i=a,l=!1,f=null,u=a;if(s(r.or,{instancePath:e+"/or",parentData:r,parentDataProperty:"or",rootData})||(a=(t=t===null?s.errors:t.concat(s.errors)).length),u===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return t===null?t=[r]:t.push(r),a++,p.errors=t,!1}a=i,t!==null&&(i?t.length=i:t=null),o=n===a}else o=!0}}}}}return p.errors=t,a===0}function f(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0,a=t,o=!1,n=t;if(!(r instanceof RegExp)){let r={params:{}};e===null?e=[r]:e.push(r),t++}var i=n===t;if(!(o=o||i)){let a=t;if("string"!=typeof r){let r={params:{type:"string"}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(!(r instanceof Function)){let r={params:{}};e===null?e=[r]:e.push(r),t++}if(i=a===t,!(o=o||i)){let a=t;if(p(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?p.errors:e.concat(p.errors)).length),i=a===t,!(o=o||i)){let a=t;s(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?s.errors:e.concat(s.errors)).length),i=a===t,o=o||i}}}}if(!o){let r={params:{}};return e===null?e=[r]:e.push(r),t++,f.errors=e,!1}return t=a,e!==null&&(a?e.length=a:e=null),f.errors=e,t===0}function u(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,n=0;if(n===0){if(!r||"object"!=typeof r||Array.isArray(r))return u.errors=[{params:{type:"object"}}],!1;{let i=n;for(let e in r)if(!a.call(o.properties,e))return u.errors=[{params:{additionalProperty:e}}],!1;if(i===n){if(r.as!==void 0){if("string"!=typeof r.as)return u.errors=[{params:{type:"string"}}],!1;var s=n===n}else s=!0;if(s){if(r.exclude!==void 0){let a=n;f(r.exclude,{instancePath:e+"/exclude",parentData:r,parentDataProperty:"exclude",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.fetchPriority!==void 0){let e=r.fetchPriority;if("low"!==e&&"high"!==e&&"auto"!==e&&!1!==e)return u.errors=[{params:{allowedValues:o.properties.fetchPriority.enum}}],!1;s=n===n}else s=!0;if(s){if(r.include!==void 0){let a=n;f(r.include,{instancePath:e+"/include",parentData:r,parentDataProperty:"include",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.media!==void 0){if("string"!=typeof r.media)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0;if(s){if(r.prefetch!==void 0){if("boolean"!=typeof r.prefetch)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.preload!==void 0){if("boolean"!=typeof r.preload)return u.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.test!==void 0){let a=n;f(r.test,{instancePath:e+"/test",parentData:r,parentDataProperty:"test",rootData})||(n=(t=t===null?f.errors:t.concat(f.errors)).length),s=a===n}else s=!0;if(s)if(r.type!==void 0){if("string"!=typeof r.type)return u.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0}}}}}}}}}}return u.errors=t,n===0}function c(r,{instancePath:e="",parentData,parentDataProperty,rootData=r}={}){let t=null,a=0;if(a===0){if(!Array.isArray(r))return c.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let n=0;n<o;n++){let o=a;if(u(r[n],{instancePath:e+"/"+n,parentData:r,parentDataProperty:n,rootData})||(a=(t=t===null?u.errors:t.concat(u.errors)).length),o!==a)break}}}return c.errors=t,a===0}function d(o,{instancePath:n="",parentData,parentDataProperty,rootData=o}={}){let s=null,i=0;if(i===0){if(!o||"object"!=typeof o||Array.isArray(o))return d.errors=[{params:{type:"object"}}],!1;{let p=i;for(let e in o)if(!a.call(r.properties,e))return d.errors=[{params:{additionalProperty:e}}],!1;if(p===i){if(o.animation!==void 0){if("boolean"!=typeof o.animation)return d.errors=[{params:{type:"boolean"}}],!1;var l=i===i}else l=!0;if(l){if(o.as!==void 0){let r=o.as;if("stylesheet"!==r&&"block-contents"!==r)return d.errors=[{params:{allowedValues:e.enum}}],!1;l=i===i}else l=!0;if(l){if(o.container!==void 0){if("boolean"!=typeof o.container)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customIdents!==void 0){if("boolean"!=typeof o.customIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customMedia!==void 0){if("boolean"!=typeof o.customMedia)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customSelectors!==void 0){if("boolean"!=typeof o.customSelectors)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.dashedIdents!==void 0){if("boolean"!=typeof o.dashedIdents)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.exportType!==void 0){let r=o.exportType;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return d.errors=[{params:{allowedValues:t.enum}}],!1;l=i===i}else l=!0;if(l){if(o.fontPreload!==void 0){if("boolean"!=typeof o.fontPreload)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.function!==void 0){if("boolean"!=typeof o.function)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.grid!==void 0){if("boolean"!=typeof o.grid)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.import!==void 0){if("boolean"!=typeof o.import)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.namedExports!==void 0){if("boolean"!=typeof o.namedExports)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.url!==void 0){if("boolean"!=typeof o.url)return d.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l)if(o.urlHints!==void 0){let r=i;c(o.urlHints,{instancePath:n+"/urlHints",parentData:o,parentDataProperty:"urlHints",rootData})||(i=(s=s===null?c.errors:s.concat(c.errors)).length),l=r===i}else l=!0}}}}}}}}}}}}}}}}return d.errors=s,i===0}function y(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let e=null,t=0;return d(r,{instancePath,parentData,parentDataProperty,rootData})||(t=(e=e===null?d.errors:e.concat(d.errors)).length),y.errors=e,t===0}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
"use strict";module.exports=
|
|
7
|
+
"use strict";module.exports=d,module.exports.default=d;let r={type:"object",additionalProperties:!1,properties:{as:{$ref:"#/definitions/CssParserAs"},customMedia:{$ref:"#/definitions/CssParserCustomMedia"},customSelectors:{$ref:"#/definitions/CssParserCustomSelectors"},exportType:{$ref:"#/definitions/CssParserExportType"},fontPreload:{$ref:"#/definitions/CssParserFontPreload"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},url:{$ref:"#/definitions/CssParserUrl"},urlHints:{$ref:"#/definitions/UrlHints"}}},t={enum:["stylesheet","block-contents"]},e={enum:["link","text","css-style-sheet","style"]},a=Object.prototype.hasOwnProperty,o={type:"object",additionalProperties:!1,properties:{as:{type:"string"},exclude:{$ref:"#/definitions/RuleSetCondition"},fetchPriority:{enum:["low","high","auto",!1]},include:{$ref:"#/definitions/RuleSetCondition"},media:{type:"string"},prefetch:{type:"boolean"},preload:{type:"boolean"},test:{$ref:"#/definitions/RuleSetCondition"},type:{type:"string"}}},n={validate:f};function s(r,{instancePath:t="",parentData,parentDataProperty,rootData=r}={}){let e=null,a=0;if(a===0){if(!Array.isArray(r))return s.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let i=0;i<o;i++){let o=a,l=a,p=!1,f=null,c=a;if(n.validate(r[i],{instancePath:t+"/"+i,parentData:r,parentDataProperty:i,rootData})||(a=(e=e===null?n.validate.errors:e.concat(n.validate.errors)).length),c===a&&(p=!0,f=0),!p){let r={params:{passingSchemas:f}};return e===null?e=[r]:e.push(r),a++,s.errors=e,!1}if(a=l,e!==null&&(l?e.length=l:e=null),o!==a)break}}}return s.errors=e,a===0}let i=function(r){let t=r.length,e,a=0,o=0;for(;o<t;)a++,(e=r.charCodeAt(o++))>=55296&&e<=56319&&o<t&&(64512&(e=r.charCodeAt(o)))==56320&&o++;return a};function l(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){if(!Array.isArray(r))return l.errors=[{params:{type:"array"}}],!1;{let t=r.length;for(let e=0;e<t;e++){let t=r[e];if("string"!=typeof t)return l.errors=[{params:{type:"string"}}],!1;if(i(t)<1)return l.errors=[{params:{limit:1}}],!1}}return l.errors=null,!0}function p(r,{instancePath:t="",parentData,parentDataProperty,rootData=r}={}){let e=null,a=0;if(a===0){if(!r||"object"!=typeof r||Array.isArray(r))return p.errors=[{params:{type:"object"}}],!1;{let c=a;for(let t in r)if("and"!==t&&"glob"!==t&&"not"!==t&&"or"!==t)return p.errors=[{params:{additionalProperty:t}}],!1;if(c===a){if(r.and!==void 0){let n=a,i=a,l=!1,f=null,c=a;if(s(r.and,{instancePath:t+"/and",parentData:r,parentDataProperty:"and",rootData})||(a=(e=e===null?s.errors:e.concat(s.errors)).length),c===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return e===null?e=[r]:e.push(r),a++,p.errors=e,!1}a=i,e!==null&&(i?e.length=i:e=null);var o=n===a}else o=!0;if(o){if(r.glob!==void 0){let n=r.glob,s=a,c=a,u=!1,y=a;if(a==a)if("string"==typeof n){if(i(n)<1){let r={params:{limit:1}};e===null?e=[r]:e.push(r),a++}}else{let r={params:{type:"string"}};e===null?e=[r]:e.push(r),a++}var f=y===a;if(!(u=u||f)){let o=a;l(n,{instancePath:t+"/glob",parentData:r,parentDataProperty:"glob",rootData})||(a=(e=e===null?l.errors:e.concat(l.errors)).length),f=o===a,u=u||f}if(!u){let r={params:{}};return e===null?e=[r]:e.push(r),a++,p.errors=e,!1}a=c,e!==null&&(c?e.length=c:e=null),o=s===a}else o=!0;if(o){if(r.not!==void 0){let s=a,i=a,l=!1,f=null,c=a;if(n.validate(r.not,{instancePath:t+"/not",parentData:r,parentDataProperty:"not",rootData})||(a=(e=e===null?n.validate.errors:e.concat(n.validate.errors)).length),c===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return e===null?e=[r]:e.push(r),a++,p.errors=e,!1}a=i,e!==null&&(i?e.length=i:e=null),o=s===a}else o=!0;if(o)if(r.or!==void 0){let n=a,i=a,l=!1,f=null,c=a;if(s(r.or,{instancePath:t+"/or",parentData:r,parentDataProperty:"or",rootData})||(a=(e=e===null?s.errors:e.concat(s.errors)).length),c===a&&(l=!0,f=0),!l){let r={params:{passingSchemas:f}};return e===null?e=[r]:e.push(r),a++,p.errors=e,!1}a=i,e!==null&&(i?e.length=i:e=null),o=n===a}else o=!0}}}}}return p.errors=e,a===0}function f(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let t=null,e=0,a=e,o=!1,n=e;if(!(r instanceof RegExp)){let r={params:{}};t===null?t=[r]:t.push(r),e++}var i=n===e;if(!(o=o||i)){let a=e;if("string"!=typeof r){let r={params:{type:"string"}};t===null?t=[r]:t.push(r),e++}if(i=a===e,!(o=o||i)){let a=e;if(!(r instanceof Function)){let r={params:{}};t===null?t=[r]:t.push(r),e++}if(i=a===e,!(o=o||i)){let a=e;if(p(r,{instancePath,parentData,parentDataProperty,rootData})||(e=(t=t===null?p.errors:t.concat(p.errors)).length),i=a===e,!(o=o||i)){let a=e;s(r,{instancePath,parentData,parentDataProperty,rootData})||(e=(t=t===null?s.errors:t.concat(s.errors)).length),i=a===e,o=o||i}}}}if(!o){let r={params:{}};return t===null?t=[r]:t.push(r),e++,f.errors=t,!1}return e=a,t!==null&&(a?t.length=a:t=null),f.errors=t,e===0}function c(r,{instancePath:t="",parentData,parentDataProperty,rootData=r}={}){let e=null,n=0;if(n===0){if(!r||"object"!=typeof r||Array.isArray(r))return c.errors=[{params:{type:"object"}}],!1;{let i=n;for(let t in r)if(!a.call(o.properties,t))return c.errors=[{params:{additionalProperty:t}}],!1;if(i===n){if(r.as!==void 0){if("string"!=typeof r.as)return c.errors=[{params:{type:"string"}}],!1;var s=n===n}else s=!0;if(s){if(r.exclude!==void 0){let a=n;f(r.exclude,{instancePath:t+"/exclude",parentData:r,parentDataProperty:"exclude",rootData})||(n=(e=e===null?f.errors:e.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.fetchPriority!==void 0){let t=r.fetchPriority;if("low"!==t&&"high"!==t&&"auto"!==t&&!1!==t)return c.errors=[{params:{allowedValues:o.properties.fetchPriority.enum}}],!1;s=n===n}else s=!0;if(s){if(r.include!==void 0){let a=n;f(r.include,{instancePath:t+"/include",parentData:r,parentDataProperty:"include",rootData})||(n=(e=e===null?f.errors:e.concat(f.errors)).length),s=a===n}else s=!0;if(s){if(r.media!==void 0){if("string"!=typeof r.media)return c.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0;if(s){if(r.prefetch!==void 0){if("boolean"!=typeof r.prefetch)return c.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.preload!==void 0){if("boolean"!=typeof r.preload)return c.errors=[{params:{type:"boolean"}}],!1;s=n===n}else s=!0;if(s){if(r.test!==void 0){let a=n;f(r.test,{instancePath:t+"/test",parentData:r,parentDataProperty:"test",rootData})||(n=(e=e===null?f.errors:e.concat(f.errors)).length),s=a===n}else s=!0;if(s)if(r.type!==void 0){if("string"!=typeof r.type)return c.errors=[{params:{type:"string"}}],!1;s=n===n}else s=!0}}}}}}}}}}return c.errors=e,n===0}function u(r,{instancePath:t="",parentData,parentDataProperty,rootData=r}={}){let e=null,a=0;if(a===0){if(!Array.isArray(r))return u.errors=[{params:{type:"array"}}],!1;{let o=r.length;for(let n=0;n<o;n++){let o=a;if(c(r[n],{instancePath:t+"/"+n,parentData:r,parentDataProperty:n,rootData})||(a=(e=e===null?c.errors:e.concat(c.errors)).length),o!==a)break}}}return u.errors=e,a===0}function y(o,{instancePath:n="",parentData,parentDataProperty,rootData=o}={}){let s=null,i=0;if(i===0){if(!o||"object"!=typeof o||Array.isArray(o))return y.errors=[{params:{type:"object"}}],!1;{let p=i;for(let t in o)if(!a.call(r.properties,t))return y.errors=[{params:{additionalProperty:t}}],!1;if(p===i){if(o.as!==void 0){let r=o.as;if("stylesheet"!==r&&"block-contents"!==r)return y.errors=[{params:{allowedValues:t.enum}}],!1;var l=i===i}else l=!0;if(l){if(o.customMedia!==void 0){if("boolean"!=typeof o.customMedia)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.customSelectors!==void 0){if("boolean"!=typeof o.customSelectors)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.exportType!==void 0){let r=o.exportType;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r&&"style"!==r)return y.errors=[{params:{allowedValues:e.enum}}],!1;l=i===i}else l=!0;if(l){if(o.fontPreload!==void 0){if("boolean"!=typeof o.fontPreload)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.import!==void 0){if("boolean"!=typeof o.import)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.namedExports!==void 0){if("boolean"!=typeof o.namedExports)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l){if(o.url!==void 0){if("boolean"!=typeof o.url)return y.errors=[{params:{type:"boolean"}}],!1;l=i===i}else l=!0;if(l)if(o.urlHints!==void 0){let r=i;u(o.urlHints,{instancePath:n+"/urlHints",parentData:o,parentDataProperty:"urlHints",rootData})||(i=(s=s===null?u.errors:s.concat(u.errors)).length),l=r===i}else l=!0}}}}}}}}}}return y.errors=s,i===0}function d(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let t=null,e=0;return y(r,{instancePath,parentData,parentDataProperty,rootData})||(e=(t=t===null?y.errors:t.concat(y.errors)).length),d.errors=t,e===0}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
+
"use strict";module.exports=t,module.exports.default=t;let r=/^(?:file:(?=\/))?(?:[A-Za-z]:(\\|\/)|\\\\|\/)/i;function t(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return t.errors=[{params:{type:"object"}}],!1;for(let r in e)if("outputPath"!==r)return t.errors=[{params:{additionalProperty:r}}],!1;if(e.outputPath!==void 0){let a=e.outputPath;if("string"!=typeof a)return t.errors=[{params:{type:"string"}}],!1;if(a.includes("!")||!0!==r.test(a))return t.errors=[{params:{}}],!1}return t.errors=null,!0}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
5
|
+
* DO NOT MODIFY BY HAND.
|
|
6
|
+
*/
|
|
7
|
+
"use strict";module.exports=s,module.exports.default=s;let t={type:"object",additionalProperties:!1,properties:{dir:{anyOf:[{enum:[!1]},{type:"string",absolutePath:!0}]},prefix:{anyOf:[{type:"array",items:{type:"string",minLength:1}},{type:"string",minLength:1}]},template:{type:"array",items:{type:"string",minLength:1}}}},r=/^(?:file:(?=\/))?(?:[A-Za-z]:(\\|\/)|\\\\|\/)/i,e=function(t){let r=t.length,e,s=0,n=0;for(;n<r;)s++,(e=t.charCodeAt(n++))>=55296&&e<=56319&&n<r&&(64512&(e=t.charCodeAt(n)))==56320&&n++;return s};function s(n,{instancePath="",parentData,parentDataProperty,rootData=n}={}){let i=null,a=0;if(a==a){if(!n||"object"!=typeof n||Array.isArray(n))return s.errors=[{params:{type:"object"}}],!1;{let f=a;for(let t in n)if("dir"!==t&&"prefix"!==t&&"template"!==t)return s.errors=[{params:{additionalProperty:t}}],!1;if(f===a){if(n.dir!==void 0){let e=n.dir,p=a,f=a,u=!1,c=a;if(!1!==e){let r={params:{allowedValues:t.properties.dir.anyOf[0].enum}};i===null?i=[r]:i.push(r),a++}var l=c===a;if(!(u=u||l)){let t=a;if(a===t)if("string"==typeof e){if(e.includes("!")||!0!==r.test(e)){let t={params:{}};i===null?i=[t]:i.push(t),a++}}else{let t={params:{type:"string"}};i===null?i=[t]:i.push(t),a++}l=t===a,u=u||l}if(!u){let t={params:{}};return i===null?i=[t]:i.push(t),a++,s.errors=i,!1}a=f,i!==null&&(f?i.length=f:i=null);var o=p===a}else o=!0;if(o){if(n.prefix!==void 0){let t=n.prefix,r=a,l=a,f=!1,u=a;if(a===u)if(Array.isArray(t)){let r=t.length;for(let s=0;s<r;s++){let r=t[s],n=a;if(a===n)if("string"==typeof r){if(e(r)<1){let t={params:{limit:1}};i===null?i=[t]:i.push(t),a++}}else{let t={params:{type:"string"}};i===null?i=[t]:i.push(t),a++}if(n!==a)break}}else{let t={params:{type:"array"}};i===null?i=[t]:i.push(t),a++}var p=u===a;if(!(f=f||p)){let r=a;if(a===r)if("string"==typeof t){if(e(t)<1){let t={params:{limit:1}};i===null?i=[t]:i.push(t),a++}}else{let t={params:{type:"string"}};i===null?i=[t]:i.push(t),a++}p=r===a,f=f||p}if(!f){let t={params:{}};return i===null?i=[t]:i.push(t),a++,s.errors=i,!1}a=l,i!==null&&(l?i.length=l:i=null),o=r===a}else o=!0;if(o)if(n.template!==void 0){let t=n.template,r=a;if(a===r){if(!Array.isArray(t))return s.errors=[{params:{type:"array"}}],!1;{let r=t.length;for(let n=0;n<r;n++){let r=t[n],i=a;if(a===i){if("string"!=typeof r)return s.errors=[{params:{type:"string"}}],!1;if(e(r)<1)return s.errors=[{params:{limit:1}}],!1}if(i!==a)break}}}o=r===a}else o=!0}}}}return s.errors=i,a===0}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
"use strict";function r(e,{instancePath
|
|
7
|
+
"use strict";module.exports=e,module.exports.default=e;let r=function(r){let e=r.length,t,o=0,a=0;for(;a<e;)o++,(t=r.charCodeAt(a++))>=55296&&t<=56319&&a<e&&(64512&(t=r.charCodeAt(a)))==56320&&a++;return o};function e(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return e.errors=[{params:{type:"object"}}],!1;{let a;if(t.path===void 0&&(a="path"))return e.errors=[{params:{missingProperty:a}}],!1;for(let r in t)if("context"!==r&&"entryOnly"!==r&&"format"!==r&&"name"!==r&&"path"!==r&&"type"!==r)return e.errors=[{params:{additionalProperty:r}}],!1;if(t.context!==void 0){let a=t.context;if("string"!=typeof a)return e.errors=[{params:{type:"string"}}],!1;if(r(a)<1)return e.errors=[{params:{limit:1}}],!1;var o=!0}else o=!0;if(o){if(t.entryOnly!==void 0){if("boolean"!=typeof t.entryOnly)return e.errors=[{params:{type:"boolean"}}],!1;o=!0}else o=!0;if(o){if(t.format!==void 0){if("boolean"!=typeof t.format)return e.errors=[{params:{type:"boolean"}}],!1;o=!0}else o=!0;if(o){if(t.name!==void 0){let a=t.name;if("string"!=typeof a)return e.errors=[{params:{type:"string"}}],!1;if(r(a)<1)return e.errors=[{params:{limit:1}}],!1;o=!0}else o=!0;if(o){if(t.path!==void 0){let a=t.path;if("string"!=typeof a)return e.errors=[{params:{type:"string"}}],!1;if(r(a)<1)return e.errors=[{params:{limit:1}}],!1;o=!0}else o=!0;if(o)if(t.type!==void 0){let a=t.type;if("string"!=typeof a)return e.errors=[{params:{type:"string"}}],!1;if(r(a)<1)return e.errors=[{params:{limit:1}}],!1;o=!0}else o=!0}}}}}return e.errors=null,!0}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
const s=/^(?:file:(?=\/))?(?:[A-Za-z]:[\\/]|\\\\|\/)/i;function t(s,{instancePath:e="",parentData:n,parentDataProperty:l,rootData:o=s}={}){let r=null,i=0;if(0===i){if(!s||"object"!=typeof s||Array.isArray(s))return t.errors=[{params:{type:"object"}}],!1;{let e;if(void 0===s.content&&(e="content"))return t.errors=[{params:{missingProperty:e}}],!1;{const e=i;for(const e in s)if("content"!==e&&"name"!==e&&"type"!==e)return t.errors=[{params:{additionalProperty:e}}],!1;if(e===i){if(void 0!==s.content){let e=s.content;const n=i,l=i;let o=!1,f=null;const m=i;if(i==i)if(e&&"object"==typeof e&&!Array.isArray(e))if(Object.keys(e).length<1){const s={params:{limit:1}};null===r?r=[s]:r.push(s),i++}else for(const s in e){let t=e[s];const n=i;if(i===n)if(t&&"object"==typeof t&&!Array.isArray(t)){let s;if(void 0===t.id&&(s="id")){const t={params:{missingProperty:s}};null===r?r=[t]:r.push(t),i++}else{const s=i;for(const s in t)if("buildMeta"!==s&&"exports"!==s&&"id"!==s){const t={params:{additionalProperty:s}};null===r?r=[t]:r.push(t),i++;break}if(s===i){if(void 0!==t.buildMeta){let s=t.buildMeta;const e=i;if(!s||"object"!=typeof s||Array.isArray(s)){const s={params:{type:"object"}};null===r?r=[s]:r.push(s),i++}var a=e===i}else a=!0;if(a){if(void 0!==t.exports){let s=t.exports;const e=i,n=i;let l=!1;const o=i;if(i===o)if(Array.isArray(s)){const t=s.length;for(let e=0;e<t;e++){let t=s[e];const n=i;if(i===n)if("string"==typeof t){if(t.length<1){const s={params:{}};null===r?r=[s]:r.push(s),i++}}else{const s={params:{type:"string"}};null===r?r=[s]:r.push(s),i++}if(n!==i)break}}else{const s={params:{type:"array"}};null===r?r=[s]:r.push(s),i++}var p=o===i;if(l=l||p,!l){const t=i;if(!0!==s){const s={params:{}};null===r?r=[s]:r.push(s),i++}p=t===i,l=l||p}if(l)i=n,null!==r&&(n?r.length=n:r=null);else{const s={params:{}};null===r?r=[s]:r.push(s),i++}a=e===i}else a=!0;if(a)if(void 0!==t.id){let s=t.id;const e=i,n=i;let l=!1;const o=i;if("number"!=typeof s){const s={params:{type:"number"}};null===r?r=[s]:r.push(s),i++}var u=o===i;if(l=l||u,!l){const t=i;if(i===t)if("string"==typeof s){if(s.length<1){const s={params:{}};null===r?r=[s]:r.push(s),i++}}else{const s={params:{type:"string"}};null===r?r=[s]:r.push(s),i++}u=t===i,l=l||u}if(l)i=n,null!==r&&(n?r.length=n:r=null);else{const s={params:{}};null===r?r=[s]:r.push(s),i++}a=e===i}else a=!0}}}}else{const s={params:{type:"object"}};null===r?r=[s]:r.push(s),i++}if(n!==i)break}else{const s={params:{type:"object"}};null===r?r=[s]:r.push(s),i++}if(m===i&&(o=!0,f=0),!o){const s={params:{passingSchemas:f}};return null===r?r=[s]:r.push(s),i++,t.errors=r,!1}i=l,null!==r&&(l?r.length=l:r=null);var c=n===i}else c=!0;if(c){if(void 0!==s.name){let e=s.name;const n=i;if(i===n){if("string"!=typeof e)return t.errors=[{params:{type:"string"}}],!1;if(e.length<1)return t.errors=[{params:{}}],!1}c=n===i}else c=!0;if(c)if(void 0!==s.type){let e=s.type;const n=i,l=i;let o=!1,a=null;const p=i;if("var"!==e&&"assign"!==e&&"this"!==e&&"window"!==e&&"global"!==e&&"commonjs"!==e&&"commonjs2"!==e&&"commonjs-module"!==e&&"amd"!==e&&"amd-require"!==e&&"umd"!==e&&"umd2"!==e&&"jsonp"!==e&&"system"!==e){const s={params:{}};null===r?r=[s]:r.push(s),i++}if(p===i&&(o=!0,a=0),!o){const s={params:{passingSchemas:a}};return null===r?r=[s]:r.push(s),i++,t.errors=r,!1}i=l,null!==r&&(l?r.length=l:r=null),c=n===i}else c=!0}}}}}return t.errors=r,0===i}function e(n,{instancePath:l="",parentData:o,parentDataProperty:r,rootData:i=n}={}){let a=null,p=0;const u=p;let c=!1;const f=p;if(p===f)if(n&&"object"==typeof n&&!Array.isArray(n)){let e;if(void 0===n.manifest&&(e="manifest")){const s={params:{missingProperty:e}};null===a?a=[s]:a.push(s),p++}else{const e=p;for(const s in n)if("context"!==s&&"extensions"!==s&&"manifest"!==s&&"name"!==s&&"scope"!==s&&"sourceType"!==s&&"type"!==s){const t={params:{additionalProperty:s}};null===a?a=[t]:a.push(t),p++;break}if(e===p){if(void 0!==n.context){let t=n.context;const e=p;if(p===e)if("string"==typeof t){if(t.includes("!")||!0!==s.test(t)){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}var m=e===p}else m=!0;if(m){if(void 0!==n.extensions){let s=n.extensions;const t=p;if(p===t)if(Array.isArray(s)){const t=s.length;for(let e=0;e<t;e++){const t=p;if("string"!=typeof s[e]){const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}if(t!==p)break}}else{const s={params:{type:"array"}};null===a?a=[s]:a.push(s),p++}m=t===p}else m=!0;if(m){if(void 0!==n.manifest){let e=n.manifest;const o=p,r=p;let u=!1;const c=p;if(p===c)if("string"==typeof e){if(e.includes("!")||!0!==s.test(e)){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}var y=c===p;if(u=u||y,!u){const s=p;t(e,{instancePath:l+"/manifest",parentData:n,parentDataProperty:"manifest",rootData:i})||(a=null===a?t.errors:a.concat(t.errors),p=a.length),y=s===p,u=u||y}if(u)p=r,null!==a&&(r?a.length=r:a=null);else{const s={params:{}};null===a?a=[s]:a.push(s),p++}m=o===p}else m=!0;if(m){if(void 0!==n.name){let s=n.name;const t=p;if(p===t)if("string"==typeof s){if(s.length<1){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}m=t===p}else m=!0;if(m){if(void 0!==n.scope){let s=n.scope;const t=p;if(p===t)if("string"==typeof s){if(s.length<1){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}m=t===p}else m=!0;if(m){if(void 0!==n.sourceType){let s=n.sourceType;const t=p,e=p;let l=!1,o=null;const r=p;if("var"!==s&&"assign"!==s&&"this"!==s&&"window"!==s&&"global"!==s&&"commonjs"!==s&&"commonjs2"!==s&&"commonjs-module"!==s&&"amd"!==s&&"amd-require"!==s&&"umd"!==s&&"umd2"!==s&&"jsonp"!==s&&"system"!==s){const s={params:{}};null===a?a=[s]:a.push(s),p++}if(r===p&&(l=!0,o=0),l)p=e,null!==a&&(e?a.length=e:a=null);else{const s={params:{passingSchemas:o}};null===a?a=[s]:a.push(s),p++}m=t===p}else m=!0;if(m)if(void 0!==n.type){let s=n.type;const t=p;if("require"!==s&&"object"!==s){const s={params:{}};null===a?a=[s]:a.push(s),p++}m=t===p}else m=!0}}}}}}}}else{const s={params:{type:"object"}};null===a?a=[s]:a.push(s),p++}var h=f===p;if(c=c||h,!c){const t=p;if(p===t)if(n&&"object"==typeof n&&!Array.isArray(n)){let t;if(void 0===n.content&&(t="content")||void 0===n.name&&(t="name")){const s={params:{missingProperty:t}};null===a?a=[s]:a.push(s),p++}else{const t=p;for(const s in n)if("content"!==s&&"context"!==s&&"extensions"!==s&&"name"!==s&&"scope"!==s&&"sourceType"!==s&&"type"!==s){const t={params:{additionalProperty:s}};null===a?a=[t]:a.push(t),p++;break}if(t===p){if(void 0!==n.content){let s=n.content;const t=p,e=p;let l=!1,o=null;const r=p;if(p==p)if(s&&"object"==typeof s&&!Array.isArray(s))if(Object.keys(s).length<1){const s={params:{limit:1}};null===a?a=[s]:a.push(s),p++}else for(const t in s){let e=s[t];const n=p;if(p===n)if(e&&"object"==typeof e&&!Array.isArray(e)){let s;if(void 0===e.id&&(s="id")){const t={params:{missingProperty:s}};null===a?a=[t]:a.push(t),p++}else{const s=p;for(const s in e)if("buildMeta"!==s&&"exports"!==s&&"id"!==s){const t={params:{additionalProperty:s}};null===a?a=[t]:a.push(t),p++;break}if(s===p){if(void 0!==e.buildMeta){let s=e.buildMeta;const t=p;if(!s||"object"!=typeof s||Array.isArray(s)){const s={params:{type:"object"}};null===a?a=[s]:a.push(s),p++}var d=t===p}else d=!0;if(d){if(void 0!==e.exports){let s=e.exports;const t=p,n=p;let l=!1;const o=p;if(p===o)if(Array.isArray(s)){const t=s.length;for(let e=0;e<t;e++){let t=s[e];const n=p;if(p===n)if("string"==typeof t){if(t.length<1){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}if(n!==p)break}}else{const s={params:{type:"array"}};null===a?a=[s]:a.push(s),p++}var g=o===p;if(l=l||g,!l){const t=p;if(!0!==s){const s={params:{}};null===a?a=[s]:a.push(s),p++}g=t===p,l=l||g}if(l)p=n,null!==a&&(n?a.length=n:a=null);else{const s={params:{}};null===a?a=[s]:a.push(s),p++}d=t===p}else d=!0;if(d)if(void 0!==e.id){let s=e.id;const t=p,n=p;let l=!1;const o=p;if("number"!=typeof s){const s={params:{type:"number"}};null===a?a=[s]:a.push(s),p++}var b=o===p;if(l=l||b,!l){const t=p;if(p===t)if("string"==typeof s){if(s.length<1){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}b=t===p,l=l||b}if(l)p=n,null!==a&&(n?a.length=n:a=null);else{const s={params:{}};null===a?a=[s]:a.push(s),p++}d=t===p}else d=!0}}}}else{const s={params:{type:"object"}};null===a?a=[s]:a.push(s),p++}if(n!==p)break}else{const s={params:{type:"object"}};null===a?a=[s]:a.push(s),p++}if(r===p&&(l=!0,o=0),l)p=e,null!==a&&(e?a.length=e:a=null);else{const s={params:{passingSchemas:o}};null===a?a=[s]:a.push(s),p++}var v=t===p}else v=!0;if(v){if(void 0!==n.context){let t=n.context;const e=p;if(p===e)if("string"==typeof t){if(t.includes("!")||!0!==s.test(t)){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}v=e===p}else v=!0;if(v){if(void 0!==n.extensions){let s=n.extensions;const t=p;if(p===t)if(Array.isArray(s)){const t=s.length;for(let e=0;e<t;e++){const t=p;if("string"!=typeof s[e]){const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}if(t!==p)break}}else{const s={params:{type:"array"}};null===a?a=[s]:a.push(s),p++}v=t===p}else v=!0;if(v){if(void 0!==n.name){let s=n.name;const t=p;if(p===t)if("string"==typeof s){if(s.length<1){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}v=t===p}else v=!0;if(v){if(void 0!==n.scope){let s=n.scope;const t=p;if(p===t)if("string"==typeof s){if(s.length<1){const s={params:{}};null===a?a=[s]:a.push(s),p++}}else{const s={params:{type:"string"}};null===a?a=[s]:a.push(s),p++}v=t===p}else v=!0;if(v){if(void 0!==n.sourceType){let s=n.sourceType;const t=p,e=p;let l=!1,o=null;const r=p;if("var"!==s&&"assign"!==s&&"this"!==s&&"window"!==s&&"global"!==s&&"commonjs"!==s&&"commonjs2"!==s&&"commonjs-module"!==s&&"amd"!==s&&"amd-require"!==s&&"umd"!==s&&"umd2"!==s&&"jsonp"!==s&&"system"!==s){const s={params:{}};null===a?a=[s]:a.push(s),p++}if(r===p&&(l=!0,o=0),l)p=e,null!==a&&(e?a.length=e:a=null);else{const s={params:{passingSchemas:o}};null===a?a=[s]:a.push(s),p++}v=t===p}else v=!0;if(v)if(void 0!==n.type){let s=n.type;const t=p;if("require"!==s&&"object"!==s){const s={params:{}};null===a?a=[s]:a.push(s),p++}v=t===p}else v=!0}}}}}}}}else{const s={params:{type:"object"}};null===a?a=[s]:a.push(s),p++}h=t===p,c=c||h}if(!c){const s={params:{}};return null===a?a=[s]:a.push(s),p++,e.errors=a,!1}return p=u,null!==a&&(u?a.length=u:a=null),e.errors=a,0===p}module.exports=e,module.exports.default=e;
|
|
7
|
+
"use strict";module.exports=o,module.exports.default=o;let e={definitions:{DllReferencePluginOptionsContent:{type:"object",additionalProperties:{type:"object",additionalProperties:!1,properties:{buildMeta:{type:"object"},exports:{anyOf:[{type:"array",items:{type:"string",minLength:1}},{enum:[!0]}]},id:{anyOf:[{type:"number"},{type:"string",minLength:1}]}},required:["id"]},minProperties:1},DllReferencePluginOptionsManifest:{type:"object",additionalProperties:!1,properties:{content:{$ref:"#/definitions/DllReferencePluginOptionsContent"},name:{type:"string",minLength:1},type:{$ref:"#/definitions/DllReferencePluginOptionsSourceType"}},required:["content"]},DllReferencePluginOptionsSourceType:{enum:["var","assign","this","window","global","commonjs","commonjs2","commonjs-module","amd","amd-require","umd","umd2","jsonp","system"]}},anyOf:[{type:"object",additionalProperties:!1,properties:{context:{type:"string",absolutePath:!0},extensions:{type:"array",items:{type:"string"}},manifest:{anyOf:[{type:"string",absolutePath:!0},{$ref:"#/definitions/DllReferencePluginOptionsManifest"}]},name:{type:"string",minLength:1},scope:{type:"string",minLength:1},sourceType:{oneOf:[{$ref:"#/definitions/DllReferencePluginOptionsSourceType"}]},type:{enum:["require","object"]}},required:["manifest"]},{type:"object",additionalProperties:!1,properties:{content:{$ref:"#/definitions/DllReferencePluginOptionsContent"},context:{type:"string",absolutePath:!0},extensions:{type:"array",items:{type:"string"}},name:{type:"string",minLength:1},scope:{type:"string",minLength:1},sourceType:{oneOf:[{$ref:"#/definitions/DllReferencePluginOptionsSourceType"}]},type:{enum:["require","object"]}},required:["content","name"]}],$id:"DllReferencePlugin.json"},t={enum:["var","assign","this","window","global","commonjs","commonjs2","commonjs-module","amd","amd-require","umd","umd2","jsonp","system"]},s={type:"object",additionalProperties:{type:"object",additionalProperties:!1,properties:{buildMeta:{type:"object"},exports:{anyOf:[{type:"array",items:{type:"string",minLength:1}},{enum:[!0]}]},id:{anyOf:[{type:"number"},{type:"string",minLength:1}]}},required:["id"]},minProperties:1},n=/^(?:file:(?=\/))?(?:[A-Za-z]:(\\|\/)|\\\\|\/)/i,i=function(e){let t=e.length,s,n=0,i=0;for(;i<t;)n++,(s=e.charCodeAt(i++))>=55296&&s<=56319&&i<t&&(64512&(s=e.charCodeAt(i)))==56320&&i++;return n};function r(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){let n=null,o=0;if(o===0){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{let f;if(e.content===void 0&&(f="content"))return r.errors=[{params:{missingProperty:f}}],!1;{let f=o;for(let t in e)if("content"!==t&&"name"!==t&&"type"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(f===o){if(e.content!==void 0){let t=e.content,f=o;if(o==o){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;if(Object.keys(t).length<1)return r.errors=[{params:{limit:1}}],!1;for(let e in t){let u=t[e],f=o;if(o===f){if(!u||"object"!=typeof u||Array.isArray(u))return r.errors=[{params:{type:"object"}}],!1;{let e;if(u.id===void 0&&(e="id"))return r.errors=[{params:{missingProperty:e}}],!1;{let e=o;for(let e in u)if("buildMeta"!==e&&"exports"!==e&&"id"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(e===o){if(u.buildMeta!==void 0){let e=u.buildMeta;if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;var l=o===o}else l=!0;if(l){if(u.exports!==void 0){let e=u.exports,t=o,p=o,f=!1,c=o;if(o===c)if(Array.isArray(e)){let t=e.length;for(let s=0;s<t;s++){let t=e[s],r=o;if(o===r)if("string"==typeof t){if(i(t)<1){let e={params:{limit:1}};n===null?n=[e]:n.push(e),o++}}else{let e={params:{type:"string"}};n===null?n=[e]:n.push(e),o++}if(r!==o)break}}else{let e={params:{type:"array"}};n===null?n=[e]:n.push(e),o++}var a=c===o;if(!(f=f||a)){let t=o;if(!0!==e){let e={params:{allowedValues:s.additionalProperties.properties.exports.anyOf[1].enum}};n===null?n=[e]:n.push(e),o++}a=t===o,f=f||a}if(!f){let e={params:{}};return n===null?n=[e]:n.push(e),o++,r.errors=n,!1}o=p,n!==null&&(p?n.length=p:n=null),l=t===o}else l=!0;if(l)if(u.id!==void 0){let e=u.id,t=o,s=o,a=!1,f=o;if("number"!=typeof e){let e={params:{type:"number"}};n===null?n=[e]:n.push(e),o++}var p=f===o;if(!(a=a||p)){let t=o;if(o===t)if("string"==typeof e){if(i(e)<1){let e={params:{limit:1}};n===null?n=[e]:n.push(e),o++}}else{let e={params:{type:"string"}};n===null?n=[e]:n.push(e),o++}p=t===o,a=a||p}if(!a){let e={params:{}};return n===null?n=[e]:n.push(e),o++,r.errors=n,!1}o=s,n!==null&&(s?n.length=s:n=null),l=t===o}else l=!0}}}}}if(f!==o)break}}var u=f===o}else u=!0;if(u){if(e.name!==void 0){let t=e.name,s=o;if(o===s){if("string"!=typeof t)return r.errors=[{params:{type:"string"}}],!1;if(i(t)<1)return r.errors=[{params:{limit:1}}],!1}u=s===o}else u=!0;if(u)if(e.type!==void 0){let s=e.type;if("var"!==s&&"assign"!==s&&"this"!==s&&"window"!==s&&"global"!==s&&"commonjs"!==s&&"commonjs2"!==s&&"commonjs-module"!==s&&"amd"!==s&&"amd-require"!==s&&"umd"!==s&&"umd2"!==s&&"jsonp"!==s&&"system"!==s)return r.errors=[{params:{allowedValues:t.enum}}],!1;u=o===o}else u=!0}}}}}return r.errors=n,o===0}function o(l,{instancePath:a="",parentData,parentDataProperty,rootData=l}={}){let p=null,u=0,f=u,c=!1,m=u;if(u===m)if(l&&"object"==typeof l&&!Array.isArray(l)){let s;if(l.manifest===void 0&&(s="manifest")){let e={params:{missingProperty:s}};p===null?p=[e]:p.push(e),u++}else{let s=u;for(let e in l)if("context"!==e&&"extensions"!==e&&"manifest"!==e&&"name"!==e&&"scope"!==e&&"sourceType"!==e&&"type"!==e){let t={params:{additionalProperty:e}};p===null?p=[t]:p.push(t),u++;break}if(s===u){if(l.context!==void 0){let e=l.context,t=u;if(u===t)if("string"==typeof e){if(e.includes("!")||!0!==n.test(e)){let e={params:{}};p===null?p=[e]:p.push(e),u++}}else{let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}var y=t===u}else y=!0;if(y){if(l.extensions!==void 0){let e=l.extensions,t=u;if(u===t)if(Array.isArray(e)){let t=e.length;for(let s=0;s<t;s++){let t=u;if("string"!=typeof e[s]){let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}if(t!==u)break}}else{let e={params:{type:"array"}};p===null?p=[e]:p.push(e),u++}y=t===u}else y=!0;if(y){if(l.manifest!==void 0){let e=l.manifest,t=u,s=u,i=!1,o=u;if(u===o)if("string"==typeof e){if(e.includes("!")||!0!==n.test(e)){let e={params:{}};p===null?p=[e]:p.push(e),u++}}else{let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}var d=o===u;if(!(i=i||d)){let t=u;r(e,{instancePath:a+"/manifest",parentData:l,parentDataProperty:"manifest",rootData})||(u=(p=p===null?r.errors:p.concat(r.errors)).length),d=t===u,i=i||d}if(i)u=s,p!==null&&(s?p.length=s:p=null);else{let e={params:{}};p===null?p=[e]:p.push(e),u++}y=t===u}else y=!0;if(y){if(l.name!==void 0){let e=l.name,t=u;if(u===t)if("string"==typeof e){if(i(e)<1){let e={params:{limit:1}};p===null?p=[e]:p.push(e),u++}}else{let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}y=t===u}else y=!0;if(y){if(l.scope!==void 0){let e=l.scope,t=u;if(u===t)if("string"==typeof e){if(i(e)<1){let e={params:{limit:1}};p===null?p=[e]:p.push(e),u++}}else{let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}y=t===u}else y=!0;if(y){if(l.sourceType!==void 0){let e=l.sourceType,s=u,n=u,i=!1,r=null,o=u;if("var"!==e&&"assign"!==e&&"this"!==e&&"window"!==e&&"global"!==e&&"commonjs"!==e&&"commonjs2"!==e&&"commonjs-module"!==e&&"amd"!==e&&"amd-require"!==e&&"umd"!==e&&"umd2"!==e&&"jsonp"!==e&&"system"!==e){let e={params:{allowedValues:t.enum}};p===null?p=[e]:p.push(e),u++}if(o===u&&(i=!0,r=0),i)u=n,p!==null&&(n?p.length=n:p=null);else{let e={params:{passingSchemas:r}};p===null?p=[e]:p.push(e),u++}y=s===u}else y=!0;if(y)if(l.type!==void 0){let t=l.type,s=u;if("require"!==t&&"object"!==t){let t={params:{allowedValues:e.anyOf[0].properties.type.enum}};p===null?p=[t]:p.push(t),u++}y=s===u}else y=!0}}}}}}}}else{let e={params:{type:"object"}};p===null?p=[e]:p.push(e),u++}var h=m===u;if(!(c=c||h)){let r=u;if(u===r)if(l&&"object"==typeof l&&!Array.isArray(l)){let r;if(l.content===void 0&&(r="content")||l.name===void 0&&(r="name")){let e={params:{missingProperty:r}};p===null?p=[e]:p.push(e),u++}else{let r=u;for(let e in l)if("content"!==e&&"context"!==e&&"extensions"!==e&&"name"!==e&&"scope"!==e&&"sourceType"!==e&&"type"!==e){let t={params:{additionalProperty:e}};p===null?p=[t]:p.push(t),u++;break}if(r===u){if(l.content!==void 0){let e=l.content,t=u;if(u==u)if(e&&"object"==typeof e&&!Array.isArray(e))if(Object.keys(e).length<1){let e={params:{limit:1}};p===null?p=[e]:p.push(e),u++}else for(let t in e){let n=e[t],r=u;if(u===r)if(n&&"object"==typeof n&&!Array.isArray(n)){let e;if(n.id===void 0&&(e="id")){let t={params:{missingProperty:e}};p===null?p=[t]:p.push(t),u++}else{let e=u;for(let e in n)if("buildMeta"!==e&&"exports"!==e&&"id"!==e){let t={params:{additionalProperty:e}};p===null?p=[t]:p.push(t),u++;break}if(e===u){if(n.buildMeta!==void 0){let e=n.buildMeta,t=u;if(!e||"object"!=typeof e||Array.isArray(e)){let e={params:{type:"object"}};p===null?p=[e]:p.push(e),u++}var g=t===u}else g=!0;if(g){if(n.exports!==void 0){let e=n.exports,t=u,r=u,o=!1,l=u;if(u===l)if(Array.isArray(e)){let t=e.length;for(let s=0;s<t;s++){let t=e[s],n=u;if(u===n)if("string"==typeof t){if(i(t)<1){let e={params:{limit:1}};p===null?p=[e]:p.push(e),u++}}else{let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}if(n!==u)break}}else{let e={params:{type:"array"}};p===null?p=[e]:p.push(e),u++}var b=l===u;if(!(o=o||b)){let t=u;if(!0!==e){let e={params:{allowedValues:s.additionalProperties.properties.exports.anyOf[1].enum}};p===null?p=[e]:p.push(e),u++}b=t===u,o=o||b}if(o)u=r,p!==null&&(r?p.length=r:p=null);else{let e={params:{}};p===null?p=[e]:p.push(e),u++}g=t===u}else g=!0;if(g)if(n.id!==void 0){let e=n.id,t=u,s=u,r=!1,o=u;if("number"!=typeof e){let e={params:{type:"number"}};p===null?p=[e]:p.push(e),u++}var j=o===u;if(!(r=r||j)){let t=u;if(u===t)if("string"==typeof e){if(i(e)<1){let e={params:{limit:1}};p===null?p=[e]:p.push(e),u++}}else{let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}j=t===u,r=r||j}if(r)u=s,p!==null&&(s?p.length=s:p=null);else{let e={params:{}};p===null?p=[e]:p.push(e),u++}g=t===u}else g=!0}}}}else{let e={params:{type:"object"}};p===null?p=[e]:p.push(e),u++}if(r!==u)break}else{let e={params:{type:"object"}};p===null?p=[e]:p.push(e),u++}var v=t===u}else v=!0;if(v){if(l.context!==void 0){let e=l.context,t=u;if(u===t)if("string"==typeof e){if(e.includes("!")||!0!==n.test(e)){let e={params:{}};p===null?p=[e]:p.push(e),u++}}else{let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}v=t===u}else v=!0;if(v){if(l.extensions!==void 0){let e=l.extensions,t=u;if(u===t)if(Array.isArray(e)){let t=e.length;for(let s=0;s<t;s++){let t=u;if("string"!=typeof e[s]){let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}if(t!==u)break}}else{let e={params:{type:"array"}};p===null?p=[e]:p.push(e),u++}v=t===u}else v=!0;if(v){if(l.name!==void 0){let e=l.name,t=u;if(u===t)if("string"==typeof e){if(i(e)<1){let e={params:{limit:1}};p===null?p=[e]:p.push(e),u++}}else{let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}v=t===u}else v=!0;if(v){if(l.scope!==void 0){let e=l.scope,t=u;if(u===t)if("string"==typeof e){if(i(e)<1){let e={params:{limit:1}};p===null?p=[e]:p.push(e),u++}}else{let e={params:{type:"string"}};p===null?p=[e]:p.push(e),u++}v=t===u}else v=!0;if(v){if(l.sourceType!==void 0){let e=l.sourceType,s=u,n=u,i=!1,r=null,o=u;if("var"!==e&&"assign"!==e&&"this"!==e&&"window"!==e&&"global"!==e&&"commonjs"!==e&&"commonjs2"!==e&&"commonjs-module"!==e&&"amd"!==e&&"amd-require"!==e&&"umd"!==e&&"umd2"!==e&&"jsonp"!==e&&"system"!==e){let e={params:{allowedValues:t.enum}};p===null?p=[e]:p.push(e),u++}if(o===u&&(i=!0,r=0),i)u=n,p!==null&&(n?p.length=n:p=null);else{let e={params:{passingSchemas:r}};p===null?p=[e]:p.push(e),u++}v=s===u}else v=!0;if(v)if(l.type!==void 0){let t=l.type,s=u;if("require"!==t&&"object"!==t){let t={params:{allowedValues:e.anyOf[1].properties.type.enum}};p===null?p=[t]:p.push(t),u++}v=s===u}else v=!0}}}}}}}}else{let e={params:{type:"object"}};p===null?p=[e]:p.push(e),u++}h=r===u,c=c||h}if(!c){let e={params:{}};return p===null?p=[e]:p.push(e),u++,o.errors=p,!1}return u=f,p!==null&&(f?p.length=f:p=null),o.errors=p,u===0}
|
|
@@ -53,12 +53,7 @@
|
|
|
53
53
|
"additionalProperties": false,
|
|
54
54
|
"properties": {
|
|
55
55
|
"content": {
|
|
56
|
-
"
|
|
57
|
-
"oneOf": [
|
|
58
|
-
{
|
|
59
|
-
"$ref": "#/definitions/DllReferencePluginOptionsContent"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
56
|
+
"$ref": "#/definitions/DllReferencePluginOptionsContent"
|
|
62
57
|
},
|
|
63
58
|
"name": {
|
|
64
59
|
"description": "The name where the dll is exposed (external name).",
|
|
@@ -66,12 +61,7 @@
|
|
|
66
61
|
"minLength": 1
|
|
67
62
|
},
|
|
68
63
|
"type": {
|
|
69
|
-
"
|
|
70
|
-
"oneOf": [
|
|
71
|
-
{
|
|
72
|
-
"$ref": "#/definitions/DllReferencePluginOptionsSourceType"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
64
|
+
"$ref": "#/definitions/DllReferencePluginOptionsSourceType"
|
|
75
65
|
}
|
|
76
66
|
},
|
|
77
67
|
"required": ["content"]
|
|
@@ -157,12 +147,7 @@
|
|
|
157
147
|
"additionalProperties": false,
|
|
158
148
|
"properties": {
|
|
159
149
|
"content": {
|
|
160
|
-
"
|
|
161
|
-
"oneOf": [
|
|
162
|
-
{
|
|
163
|
-
"$ref": "#/definitions/DllReferencePluginOptionsContent"
|
|
164
|
-
}
|
|
165
|
-
]
|
|
150
|
+
"$ref": "#/definitions/DllReferencePluginOptionsContent"
|
|
166
151
|
},
|
|
167
152
|
"context": {
|
|
168
153
|
"description": "Context of requests in the manifest (or content property) as absolute path.",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
+
"use strict";module.exports=n,module.exports.default=n;let t={definitions:{HashFunction:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]}},type:"object",additionalProperties:!1,properties:{context:{type:"string",absolutePath:!0},hashDigest:{enum:["base64","base64url","hex","binary","utf8","utf-8","utf16le","utf-16le","latin1","ascii","ucs2","ucs-2"]},hashDigestLength:{type:"number",minimum:1},hashFunction:{oneOf:[{$ref:"#/definitions/HashFunction"}]}},$id:"HashedModuleIdsPlugin.json"},e=/^(?:file:(?=\/))?(?:[A-Za-z]:(\\|\/)|\\\\|\/)/i,s=function(t){let e=t.length,s,n=0,r=0;for(;r<e;)n++,(s=t.charCodeAt(r++))>=55296&&s<=56319&&r<e&&(64512&(s=t.charCodeAt(r)))==56320&&r++;return n};function n(r,{instancePath="",parentData,parentDataProperty,rootData=r}={}){let i=null,a=0;if(a===0){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{params:{type:"object"}}],!1;{let l=a;for(let t in r)if("context"!==t&&"hashDigest"!==t&&"hashDigestLength"!==t&&"hashFunction"!==t)return n.errors=[{params:{additionalProperty:t}}],!1;if(l===a){if(r.context!==void 0){let t=r.context,s=a;if(a===s){if("string"!=typeof t)return n.errors=[{params:{type:"string"}}],!1;if(t.includes("!")||!0!==e.test(t))return n.errors=[{params:{}}],!1}var o=s===a}else o=!0;if(o){if(r.hashDigest!==void 0){let e=r.hashDigest;if("base64"!==e&&"base64url"!==e&&"hex"!==e&&"binary"!==e&&"utf8"!==e&&"utf-8"!==e&&"utf16le"!==e&&"utf-16le"!==e&&"latin1"!==e&&"ascii"!==e&&"ucs2"!==e&&"ucs-2"!==e)return n.errors=[{params:{allowedValues:t.properties.hashDigest.enum}}],!1;o=a===a}else o=!0;if(o){if(r.hashDigestLength!==void 0){let t=r.hashDigestLength,e=a;if(a===e){if("number"!=typeof t)return n.errors=[{params:{type:"number"}}],!1;if(t<1||isNaN(t))return n.errors=[{params:{comparison:">=",limit:1}}],!1}o=e===a}else o=!0;if(o)if(r.hashFunction!==void 0){let t=r.hashFunction,e=a,l=a,f=!1,h=null,c=a,p=a,m=!1,g=a;if(a===g)if("string"==typeof t){if(s(t)<1){let t={params:{limit:1}};i===null?i=[t]:i.push(t),a++}}else{let t={params:{type:"string"}};i===null?i=[t]:i.push(t),a++}var u=g===a;if(!(m=m||u)){let e=a;if(!(t instanceof Function)){let t={params:{}};i===null?i=[t]:i.push(t),a++}u=e===a,m=m||u}if(m)a=p,i!==null&&(p?i.length=p:i=null);else{let t={params:{}};i===null?i=[t]:i.push(t),a++}if(c===a&&(f=!0,h=0),!f){let t={params:{passingSchemas:h}};return i===null?i=[t]:i.push(t),a++,n.errors=i,!1}a=l,i!==null&&(l?i.length=l:i=null),o=e===a}else o=!0}}}}}return n.errors=i,a===0}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
"use strict";function r(t,{instancePath
|
|
7
|
+
"use strict";function r(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;for(let e in t)if("prioritiseInitial"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;return t.prioritiseInitial!==void 0&&"boolean"!=typeof t.prioritiseInitial?(r.errors=[{params:{type:"boolean"}}],!1):(r.errors=null,!0)}module.exports=r,module.exports.default=r;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
"use strict";function r(t,{instancePath
|
|
7
|
+
"use strict";function r(t,{instancePath="",parentData,parentDataProperty,rootData=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;for(let e in t)if("prioritiseInitial"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;return t.prioritiseInitial!==void 0&&"boolean"!=typeof t.prioritiseInitial?(r.errors=[{params:{type:"boolean"}}],!1):(r.errors=null,!0)}module.exports=r,module.exports.default=r;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
1
3
|
/*
|
|
2
|
-
* This file was automatically generated.
|
|
4
|
+
* This file was automatically generated by "schema-utils".
|
|
3
5
|
* DO NOT MODIFY BY HAND.
|
|
4
|
-
* Run `yarn fix:special` to update
|
|
5
6
|
*/
|
|
6
|
-
"use strict";function r(e,{instancePath
|
|
7
|
+
"use strict";function r(e,{instancePath="",parentData,parentDataProperty,rootData=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;for(let t in e)if("JSONParse"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;return e.JSONParse!==void 0&&"boolean"!=typeof e.JSONParse?(r.errors=[{params:{type:"boolean"}}],!1):(r.errors=null,!0)}module.exports=r,module.exports.default=r;
|