@rspack/core 0.1.9 → 0.1.11
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/dist/ContextModuleFactory.d.ts +13 -0
- package/dist/ContextModuleFactory.d.ts.map +1 -0
- package/dist/ContextModuleFactory.js +40 -0
- package/dist/ContextModuleFactory.js.map +1 -0
- package/dist/compilation.d.ts +58 -15
- package/dist/compilation.d.ts.map +1 -1
- package/dist/compilation.js +105 -22
- package/dist/compilation.js.map +1 -1
- package/dist/compiler.d.ts +15 -6
- package/dist/compiler.d.ts.map +1 -1
- package/dist/compiler.js +210 -14
- package/dist/compiler.js.map +1 -1
- package/dist/config/adapter.d.ts +2 -1
- package/dist/config/adapter.d.ts.map +1 -1
- package/dist/config/adapter.js +28 -11
- package/dist/config/adapter.js.map +1 -1
- package/dist/config/builtins.d.ts +11 -3
- package/dist/config/builtins.d.ts.map +1 -1
- package/dist/config/builtins.js +32 -9
- package/dist/config/builtins.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +37 -26
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/normalization.d.ts.map +1 -1
- package/dist/config/normalization.js +13 -0
- package/dist/config/normalization.js.map +1 -1
- package/dist/config/schema.check.d.ts.map +1 -1
- package/dist/config/schema.check.js +1539 -1111
- package/dist/config/schema.check.js.map +1 -1
- package/dist/config/schema.d.ts +862 -767
- package/dist/config/schema.js +79 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/config/types.d.ts +19 -1
- package/dist/config/types.d.ts.map +1 -1
- package/dist/lib/ignoreWarningsPlugin.d.ts +8 -0
- package/dist/lib/ignoreWarningsPlugin.d.ts.map +1 -0
- package/dist/lib/ignoreWarningsPlugin.js +19 -0
- package/dist/lib/ignoreWarningsPlugin.js.map +1 -0
- package/dist/loader-runner/index.d.ts.map +1 -1
- package/dist/loader-runner/index.js +11 -0
- package/dist/loader-runner/index.js.map +1 -1
- package/dist/multiStats.d.ts.map +1 -1
- package/dist/multiStats.js +4 -1
- package/dist/multiStats.js.map +1 -1
- package/dist/normalModule.d.ts +6 -0
- package/dist/normalModule.d.ts.map +1 -0
- package/dist/normalModule.js +84 -0
- package/dist/normalModule.js.map +1 -0
- package/dist/normalModuleFactory.d.ts +5 -0
- package/dist/normalModuleFactory.d.ts.map +1 -1
- package/dist/normalModuleFactory.js +2 -8
- package/dist/normalModuleFactory.js.map +1 -1
- package/dist/rspack.d.ts.map +1 -1
- package/dist/rspack.js +4 -0
- package/dist/rspack.js.map +1 -1
- package/dist/stats.d.ts +2 -0
- package/dist/stats.d.ts.map +1 -1
- package/dist/stats.js +2 -2
- package/dist/stats.js.map +1 -1
- package/dist/util/fake.d.ts +1 -0
- package/dist/util/fake.d.ts.map +1 -1
- package/dist/util/fake.js +1 -0
- package/dist/util/fake.js.map +1 -1
- package/dist/util/index.d.ts +5 -1
- package/dist/util/index.d.ts.map +1 -1
- package/dist/util/index.js +26 -2
- package/dist/util/index.js.map +1 -1
- package/dist/util/scheme.d.ts +7 -0
- package/dist/util/scheme.d.ts.map +1 -0
- package/dist/util/scheme.js +58 -0
- package/dist/util/scheme.js.map +1 -0
- package/dist/util/webpack.d.ts +5 -0
- package/dist/util/webpack.d.ts.map +1 -0
- package/dist/util/webpack.js +27 -0
- package/dist/util/webpack.js.map +1 -0
- package/dist/watching.d.ts.map +1 -1
- package/dist/watching.js +5 -3
- package/dist/watching.js.map +1 -1
- package/package.json +10 -10
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
module.exports = validate10;
|
|
4
4
|
module.exports.default = validate10;
|
|
5
|
-
const schema11 = { "definitions": { "AssetModuleFilename": { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] }, "AssetParserDataUrlOptions": { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } }, "AssetParserOptions": { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } }, "AuxiliaryComment": { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] }, "CacheOptions": { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" }, "ChunkFilename": { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "ChunkFormat": { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] }, "ChunkLoading": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] }, "ChunkLoadingType": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] }, "CrossOriginLoading": { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] }, "Context": { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" }, "CssChunkFilename": { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "CssFilename": { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "WebassemblyModuleFilename": { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" }, "EnabledWasmLoadingTypes": { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } }, "EnabledChunkLoadingTypes": { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } }, "WasmLoading": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/WasmLoadingType" }] }, "WasmLoadingType": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["fetch-streaming", "fetch", "async-node"] }, { "type": "string" }] }, "Dependencies": { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } }, "DevServer": { "description": "Options for the rspack-dev-server.", "type": "object" }, "DevTool": { "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).", "anyOf": [{ "enum": [false] }, { "type": "string", "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }] }, "EnabledLibraryTypes": { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } }, "Entry": { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] }, "EntryDescription": { "description": "An object with entry point description.", "type": "object", "additionalProperties": false, "properties": { "import": { "$ref": "#/definitions/EntryItem" }, "runtime": { "$ref": "#/definitions/EntryRuntime" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" } }, "required": ["import"] }, "EntryFilename": { "description": "Specifies the filename of the output file on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "EntryItem": { "description": "Module(s) that are loaded upon startup.", "anyOf": [{ "description": "All modules are loaded upon startup. The last one is exported.", "type": "array", "items": { "description": "A module that is loaded upon startup. Only the last one is exported.", "type": "string", "minLength": 1 }, "minItems": 1, "uniqueItems": true }, { "description": "The string is resolved to a module which is loaded upon startup.", "type": "string", "minLength": 1 }] }, "EntryObject": { "description": "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.", "type": "object", "additionalProperties": { "description": "An entry point with name.", "anyOf": [{ "$ref": "#/definitions/EntryItem" }, { "$ref": "#/definitions/EntryDescription" }] } }, "EntryRuntime": { "description": "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.", "anyOf": [{ "enum": [false] }, { "type": "string", "minLength": 1 }] }, "EntryStatic": { "description": "A static entry description.", "anyOf": [{ "$ref": "#/definitions/EntryObject" }, { "$ref": "#/definitions/EntryUnnamed" }] }, "EntryUnnamed": { "description": "An entry point without name.", "oneOf": [{ "$ref": "#/definitions/EntryItem" }] }, "Experiments": { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" } } }, "ExternalItem": { "description": "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object", "additionalProperties": { "$ref": "#/definitions/ExternalItemValue" } }, { "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).", "instanceof": "Function" }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "description": "The target of the external.", "type": "string" }, { "description": "`true`: The dependency name is used as target of the external.", "type": "boolean" }] }, "Externals": { "description": "Specify dependencies that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "type": "array", "items": { "$ref": "#/definitions/ExternalItem" } }, { "$ref": "#/definitions/ExternalItem" }] }, "ExternalsPresets": { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" } } }, "ExternalsType": { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] }, "Filename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "FilenameTemplate": { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] }, "FilterItemTypes": { "description": "Filtering value, regexp or function.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }] }, "FilterTypes": { "description": "Filtering values.", "anyOf": [{ "type": "array", "items": { "description": "Rule to filter.", "oneOf": [{ "$ref": "#/definitions/FilterItemTypes" }] } }, { "$ref": "#/definitions/FilterItemTypes" }] }, "GlobalObject": { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 }, "ImportFunctionName": { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" }, "InfrastructureLogging": { "description": "Options for infrastructure level logging.", "type": "object", "additionalProperties": false, "properties": { "appendOnly": { "description": "Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output. This option is only used when no custom console is provided.", "type": "boolean" }, "console": { "description": "Custom console used for logging." }, "debug": { "description": "Enable debug logging for specific loggers.", "anyOf": [{ "description": "Enable/Disable debug logging for all loggers.", "type": "boolean" }, { "$ref": "#/definitions/FilterTypes" }] }, "level": { "description": "Log level.", "enum": ["none", "error", "warn", "info", "log", "verbose"] }, "stream": { "description": "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided." } } }, "Library": { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] }, "LibraryCustomUmdCommentObject": { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } }, "LibraryCustomUmdObject": { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } }, "LibraryExport": { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] }, "LibraryName": { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] }, "LibraryOptions": { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] }, "LibraryType": { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] }, "Mode": { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] }, "ModuleOptions": { "description": "Options affecting the normal modules (`NormalModuleFactory`).", "type": "object", "additionalProperties": false, "properties": { "defaultRules": { "description": "An array of rules applied by default for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] }, "parser": { "$ref": "#/definitions/ParserOptionsByModuleType" }, "rules": { "description": "An array of rules applied for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] } } }, "Name": { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" }, "Node": { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] }, "NodeOptions": { "description": "Options object for node compatibility features.", "type": "object", "additionalProperties": false, "properties": { "__dirname": { "description": "Include a polyfill for the '__dirname' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "__filename": { "description": "Include a polyfill for the '__filename' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "global": { "description": "Include a polyfill for the 'global' variable.", "enum": [false, true, "warn"] } } }, "Optimization": { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] } } }, "OptimizationRuntimeChunk": { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] }, "OptimizationSplitChunksCacheGroup": { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } }, "OptimizationSplitChunksSizes": { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] }, "Iife": { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" }, "Clean": { "description": "Clears the output build directory", "type": "boolean" }, "Output": { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] } } }, "OutputModule": { "description": "Output javascript files as module source type.", "type": "boolean" }, "ParserOptionsByModuleType": { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } }, "Path": { "description": "The output directory as **absolute path** (required).", "type": "string" }, "Plugins": { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "PublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] }, "RawPublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] }, "Resolve": { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "ResolveAlias": { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] }, "ResolveOptions": { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" } } }, "RuleSetCondition": { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditionOrConditions": { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditions": { "description": "A list of rule conditions.", "type": "array", "items": { "description": "A rule condition.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] } }, "RuleSetLoader": { "description": "A loader request.", "type": "string", "minLength": 1 }, "RuleSetLoaderOptions": { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] }, "RuleSetLogicalConditions": { "description": "Logic operators used in a condition matcher.", "type": "object", "additionalProperties": false, "properties": { "and": { "description": "Logical AND.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] }, "not": { "description": "Logical NOT.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] }, "or": { "description": "Logical OR.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] } } }, "RuleSetRule": { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } }, "RuleSetRules": { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } }, "RuleSetUse": { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] }, "RuleSetUseItem": { "description": "A description of an applied loader.", "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "loader": { "description": "Loader name.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Loader options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] } } }, { "$ref": "#/definitions/RuleSetLoader" }] }, "SnapshotOptions": { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } }, "StatsOptions": { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" } } }, "StatsValue": { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] }, "StrictModuleErrorHandling": { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" }, "Target": { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] }, "TrustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } }, "UmdNamedDefine": { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" }, "UniqueName": { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 }, "ChunkLoadingGlobal": { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 }, "Watch": { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" }, "WatchOptions": { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } }, "RspackPluginFunction": { "description": "Function acting as plugin.", "instanceof": "Function" }, "RspackPluginInstance": { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] } }, "title": "RspackOptions", "description": "Options object as provided by the user.", "type": "object", "additionalProperties": false, "properties": { "cache": { "$ref": "#/definitions/CacheOptions" }, "context": { "$ref": "#/definitions/Context" }, "dependencies": { "$ref": "#/definitions/Dependencies" }, "devServer": { "$ref": "#/definitions/DevServer" }, "devtool": { "$ref": "#/definitions/DevTool" }, "entry": { "$ref": "#/definitions/Entry" }, "experiments": { "$ref": "#/definitions/Experiments" }, "externals": { "$ref": "#/definitions/Externals" }, "externalsType": { "$ref": "#/definitions/ExternalsType" }, "externalsPresets": { "$ref": "#/definitions/ExternalsPresets" }, "infrastructureLogging": { "$ref": "#/definitions/InfrastructureLogging" }, "mode": { "$ref": "#/definitions/Mode" }, "module": { "$ref": "#/definitions/ModuleOptions" }, "name": { "$ref": "#/definitions/Name" }, "node": { "$ref": "#/definitions/Node" }, "optimization": { "$ref": "#/definitions/Optimization" }, "output": { "$ref": "#/definitions/Output" }, "plugins": { "$ref": "#/definitions/Plugins" }, "resolve": { "$ref": "#/definitions/Resolve" }, "snapshot": { "$ref": "#/definitions/SnapshotOptions" }, "stats": { "$ref": "#/definitions/StatsValue" }, "target": { "$ref": "#/definitions/Target" }, "watch": { "$ref": "#/definitions/Watch" }, "watchOptions": { "$ref": "#/definitions/WatchOptions" }, "builtins": { "description": "Builtins features in rspack", "type": "object", "additionalProperties": true } } };
|
|
5
|
+
const schema11 = { "definitions": { "AssetModuleFilename": { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] }, "AssetParserDataUrlOptions": { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } }, "AssetParserOptions": { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } }, "AuxiliaryComment": { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] }, "CacheOptions": { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" }, "ChunkFilename": { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "ChunkFormat": { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] }, "ChunkLoading": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] }, "ChunkLoadingType": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] }, "CrossOriginLoading": { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] }, "Context": { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" }, "CssChunkFilename": { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "CssFilename": { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "WebassemblyModuleFilename": { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" }, "EnabledWasmLoadingTypes": { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } }, "EnabledChunkLoadingTypes": { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } }, "WasmLoading": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/WasmLoadingType" }] }, "WasmLoadingType": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["fetch-streaming", "fetch", "async-node"] }, { "type": "string" }] }, "Dependencies": { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } }, "DevServer": { "description": "Options for the rspack-dev-server.", "type": "object" }, "DevTool": { "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).", "anyOf": [{ "enum": [false] }, { "type": "string", "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }] }, "EnabledLibraryTypes": { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } }, "Entry": { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] }, "EntryDescription": { "description": "An object with entry point description.", "type": "object", "additionalProperties": false, "properties": { "import": { "$ref": "#/definitions/EntryItem" }, "runtime": { "$ref": "#/definitions/EntryRuntime" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" } }, "required": ["import"] }, "EntryFilename": { "description": "Specifies the filename of the output file on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "EntryItem": { "description": "Module(s) that are loaded upon startup.", "anyOf": [{ "description": "All modules are loaded upon startup. The last one is exported.", "type": "array", "items": { "description": "A module that is loaded upon startup. Only the last one is exported.", "type": "string", "minLength": 1 }, "minItems": 1, "uniqueItems": true }, { "description": "The string is resolved to a module which is loaded upon startup.", "type": "string", "minLength": 1 }] }, "EntryObject": { "description": "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.", "type": "object", "additionalProperties": { "description": "An entry point with name.", "anyOf": [{ "$ref": "#/definitions/EntryItem" }, { "$ref": "#/definitions/EntryDescription" }] } }, "EntryRuntime": { "description": "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.", "anyOf": [{ "enum": [false] }, { "type": "string", "minLength": 1 }] }, "EntryStatic": { "description": "A static entry description.", "anyOf": [{ "$ref": "#/definitions/EntryObject" }, { "$ref": "#/definitions/EntryUnnamed" }] }, "EntryUnnamed": { "description": "An entry point without name.", "oneOf": [{ "$ref": "#/definitions/EntryItem" }] }, "Experiments": { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" }, "newSplitChunks": { "description": "Enable new SplitChunksPlugin", "type": "boolean" } } }, "ExternalItem": { "description": "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object", "additionalProperties": { "$ref": "#/definitions/ExternalItemValue" } }, { "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).", "instanceof": "Function" }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "type": "array", "items": { "description": "A part of the target of the external.", "type": "string", "minLength": 1 } }, { "description": "The target of the external.", "type": "string" }, { "description": "`true`: The dependency name is used as target of the external.", "type": "boolean" }] }, "Externals": { "description": "Specify dependencies that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "type": "array", "items": { "$ref": "#/definitions/ExternalItem" } }, { "$ref": "#/definitions/ExternalItem" }] }, "ExternalsPresets": { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" } } }, "ExternalsType": { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] }, "Filename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "SourceMapFilename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "FilenameTemplate": { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] }, "FilterItemTypes": { "description": "Filtering value, regexp or function.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }] }, "FilterTypes": { "description": "Filtering values.", "anyOf": [{ "type": "array", "items": { "description": "Rule to filter.", "oneOf": [{ "$ref": "#/definitions/FilterItemTypes" }] } }, { "$ref": "#/definitions/FilterItemTypes" }] }, "GlobalObject": { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 }, "ImportFunctionName": { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" }, "InfrastructureLogging": { "description": "Options for infrastructure level logging.", "type": "object", "additionalProperties": false, "properties": { "appendOnly": { "description": "Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output. This option is only used when no custom console is provided.", "type": "boolean" }, "console": { "description": "Custom console used for logging." }, "debug": { "description": "Enable debug logging for specific loggers.", "anyOf": [{ "description": "Enable/Disable debug logging for all loggers.", "type": "boolean" }, { "$ref": "#/definitions/FilterTypes" }] }, "level": { "description": "Log level.", "enum": ["none", "error", "warn", "info", "log", "verbose"] }, "stream": { "description": "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided." } } }, "Library": { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] }, "LibraryCustomUmdCommentObject": { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } }, "LibraryCustomUmdObject": { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } }, "LibraryExport": { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] }, "LibraryName": { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] }, "LibraryOptions": { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] }, "LibraryType": { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] }, "Mode": { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] }, "ignoreWarnings": { "description": "ignore warnings based on pattern", "type": "array", "items": { "anyOf": [{ "instanceof": "RegExp" }, { "instanceof": "Function" }] } }, "ModuleOptions": { "description": "Options affecting the normal modules (`NormalModuleFactory`).", "type": "object", "additionalProperties": false, "properties": { "defaultRules": { "description": "An array of rules applied by default for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] }, "parser": { "$ref": "#/definitions/ParserOptionsByModuleType" }, "rules": { "description": "An array of rules applied for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] } } }, "Name": { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" }, "Node": { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] }, "NodeOptions": { "description": "Options object for node compatibility features.", "type": "object", "additionalProperties": false, "properties": { "__dirname": { "description": "Include a polyfill for the '__dirname' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "__filename": { "description": "Include a polyfill for the '__filename' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "global": { "description": "Include a polyfill for the 'global' variable.", "enum": [false, true, "warn"] } } }, "Optimization": { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } }, "OptimizationRuntimeChunk": { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] }, "OptimizationSplitChunksCacheGroup": { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "enforce": { "description": "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.", "type": "boolean" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name for chunks.", "anyOf": [{ "type": "string" }] }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "reuseExistingChunk": { "description": "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.", "type": "boolean" } } }, "OptimizationSplitChunksSizes": { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] }, "Iife": { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" }, "Clean": { "description": "Clears the output build directory", "type": "boolean" }, "Output": { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] }, "sourceMapFilename": { "$ref": "#/definitions/SourceMapFilename" } } }, "OutputModule": { "description": "Output javascript files as module source type.", "type": "boolean" }, "ParserOptionsByModuleType": { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } }, "Path": { "description": "The output directory as **absolute path** (required).", "type": "string" }, "Plugins": { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "PublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] }, "RawPublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] }, "Resolve": { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "ResolveAlias": { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] }, "ResolveOptions": { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" } } }, "RuleSetCondition": { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditionOrConditions": { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditions": { "description": "A list of rule conditions.", "type": "array", "items": { "description": "A rule condition.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] } }, "RuleSetLoader": { "description": "A loader request.", "type": "string", "minLength": 1 }, "RuleSetLoaderOptions": { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] }, "RuleSetLogicalConditions": { "description": "Logic operators used in a condition matcher.", "type": "object", "additionalProperties": false, "properties": { "and": { "description": "Logical AND.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] }, "not": { "description": "Logical NOT.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] }, "or": { "description": "Logical OR.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] } } }, "RuleSetRule": { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } }, "RuleSetRules": { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } }, "RuleSetUse": { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] }, "RuleSetUseItem": { "description": "A description of an applied loader.", "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "loader": { "description": "Loader name.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Loader options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] } } }, { "$ref": "#/definitions/RuleSetLoader" }] }, "SnapshotOptions": { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } }, "StatsOptions": { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" }, "nestedModules": { "description": "Add information about modules nested in other modules (like with module concatenation).", "type": "boolean" } } }, "StatsValue": { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] }, "StrictModuleErrorHandling": { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" }, "Target": { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] }, "TrustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } }, "UmdNamedDefine": { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" }, "UniqueName": { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 }, "ChunkLoadingGlobal": { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 }, "Watch": { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" }, "WatchOptions": { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } }, "RspackPluginFunction": { "description": "Function acting as plugin.", "instanceof": "Function" }, "RspackPluginInstance": { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] } }, "title": "RspackOptions", "description": "Options object as provided by the user.", "type": "object", "additionalProperties": false, "properties": { "cache": { "$ref": "#/definitions/CacheOptions" }, "context": { "$ref": "#/definitions/Context" }, "dependencies": { "$ref": "#/definitions/Dependencies" }, "devServer": { "$ref": "#/definitions/DevServer" }, "devtool": { "$ref": "#/definitions/DevTool" }, "entry": { "$ref": "#/definitions/Entry" }, "experiments": { "$ref": "#/definitions/Experiments" }, "externals": { "$ref": "#/definitions/Externals" }, "externalsType": { "$ref": "#/definitions/ExternalsType" }, "externalsPresets": { "$ref": "#/definitions/ExternalsPresets" }, "infrastructureLogging": { "$ref": "#/definitions/InfrastructureLogging" }, "mode": { "$ref": "#/definitions/Mode" }, "module": { "$ref": "#/definitions/ModuleOptions" }, "name": { "$ref": "#/definitions/Name" }, "node": { "$ref": "#/definitions/Node" }, "optimization": { "$ref": "#/definitions/Optimization" }, "output": { "$ref": "#/definitions/Output" }, "plugins": { "$ref": "#/definitions/Plugins" }, "resolve": { "$ref": "#/definitions/Resolve" }, "snapshot": { "$ref": "#/definitions/SnapshotOptions" }, "stats": { "$ref": "#/definitions/StatsValue" }, "target": { "$ref": "#/definitions/Target" }, "watch": { "$ref": "#/definitions/Watch" }, "watchOptions": { "$ref": "#/definitions/WatchOptions" }, "builtins": { "description": "Builtins features in rspack", "type": "object", "additionalProperties": true }, "ignoreWarnings": { "$ref": "#/definitions/ignoreWarnings" } } };
|
|
6
6
|
const schema12 = { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" };
|
|
7
7
|
const schema13 = { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" };
|
|
8
8
|
const schema14 = { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } };
|
|
9
9
|
const schema15 = { "description": "Options for the rspack-dev-server.", "type": "object" };
|
|
10
10
|
const schema16 = { "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).", "anyOf": [{ "enum": [false] }, { "type": "string", "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }] };
|
|
11
|
-
const schema28 = { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" } } };
|
|
11
|
+
const schema28 = { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" }, "newSplitChunks": { "description": "Enable new SplitChunksPlugin", "type": "boolean" } } };
|
|
12
12
|
const schema32 = { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] };
|
|
13
13
|
const schema33 = { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" } } };
|
|
14
14
|
const schema38 = { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] };
|
|
15
15
|
const schema57 = { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" };
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
16
|
+
const schema121 = { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } };
|
|
17
|
+
const schema124 = { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] };
|
|
18
|
+
const schema125 = { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" };
|
|
19
|
+
const schema126 = { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } };
|
|
20
|
+
const schema127 = { "description": "ignore warnings based on pattern", "type": "array", "items": { "anyOf": [{ "instanceof": "RegExp" }, { "instanceof": "Function" }] } };
|
|
20
21
|
const func2 = Object.prototype.hasOwnProperty;
|
|
21
22
|
const pattern0 = new RegExp("^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$", "u");
|
|
22
23
|
const schema17 = { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] };
|
|
@@ -796,7 +797,7 @@ else {
|
|
|
796
797
|
} validate11.errors = vErrors; return errors === 0; }
|
|
797
798
|
const schema29 = { "description": "Specify dependencies that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "type": "array", "items": { "$ref": "#/definitions/ExternalItem" } }, { "$ref": "#/definitions/ExternalItem" }] };
|
|
798
799
|
const schema30 = { "description": "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object", "additionalProperties": { "$ref": "#/definitions/ExternalItemValue" } }, { "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).", "instanceof": "Function" }] };
|
|
799
|
-
const schema31 = { "description": "The dependency used for the external.", "anyOf": [{ "description": "The target of the external.", "type": "string" }, { "description": "`true`: The dependency name is used as target of the external.", "type": "boolean" }] };
|
|
800
|
+
const schema31 = { "description": "The dependency used for the external.", "anyOf": [{ "type": "array", "items": { "description": "A part of the target of the external.", "type": "string", "minLength": 1 } }, { "description": "The target of the external.", "type": "string" }, { "description": "`true`: The dependency name is used as target of the external.", "type": "boolean" }] };
|
|
800
801
|
function validate24(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (!(data instanceof RegExp)) {
|
|
801
802
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
802
803
|
if (vErrors === null) {
|
|
@@ -830,40 +831,93 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
830
831
|
const _errs9 = errors;
|
|
831
832
|
let valid3 = false;
|
|
832
833
|
const _errs10 = errors;
|
|
833
|
-
if (
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
834
|
+
if (errors === _errs10) {
|
|
835
|
+
if (Array.isArray(data0)) {
|
|
836
|
+
var valid4 = true;
|
|
837
|
+
const len0 = data0.length;
|
|
838
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
839
|
+
let data1 = data0[i0];
|
|
840
|
+
const _errs12 = errors;
|
|
841
|
+
if (errors === _errs12) {
|
|
842
|
+
if (typeof data1 === "string") {
|
|
843
|
+
if (data1.length < 1) {
|
|
844
|
+
const err2 = { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i0, schemaPath: "#/definitions/ExternalItemValue/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
845
|
+
if (vErrors === null) {
|
|
846
|
+
vErrors = [err2];
|
|
847
|
+
}
|
|
848
|
+
else {
|
|
849
|
+
vErrors.push(err2);
|
|
850
|
+
}
|
|
851
|
+
errors++;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
else {
|
|
855
|
+
const err3 = { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i0, schemaPath: "#/definitions/ExternalItemValue/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
856
|
+
if (vErrors === null) {
|
|
857
|
+
vErrors = [err3];
|
|
858
|
+
}
|
|
859
|
+
else {
|
|
860
|
+
vErrors.push(err3);
|
|
861
|
+
}
|
|
862
|
+
errors++;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
var valid4 = _errs12 === errors;
|
|
866
|
+
if (!valid4) {
|
|
867
|
+
break;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
837
870
|
}
|
|
838
871
|
else {
|
|
839
|
-
|
|
872
|
+
const err4 = { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ExternalItemValue/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
873
|
+
if (vErrors === null) {
|
|
874
|
+
vErrors = [err4];
|
|
875
|
+
}
|
|
876
|
+
else {
|
|
877
|
+
vErrors.push(err4);
|
|
878
|
+
}
|
|
879
|
+
errors++;
|
|
840
880
|
}
|
|
841
|
-
errors++;
|
|
842
881
|
}
|
|
843
882
|
var _valid1 = _errs10 === errors;
|
|
844
883
|
valid3 = valid3 || _valid1;
|
|
845
884
|
if (!valid3) {
|
|
846
|
-
const
|
|
847
|
-
if (typeof data0 !== "
|
|
848
|
-
const
|
|
885
|
+
const _errs14 = errors;
|
|
886
|
+
if (typeof data0 !== "string") {
|
|
887
|
+
const err5 = { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ExternalItemValue/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
849
888
|
if (vErrors === null) {
|
|
850
|
-
vErrors = [
|
|
889
|
+
vErrors = [err5];
|
|
851
890
|
}
|
|
852
891
|
else {
|
|
853
|
-
vErrors.push(
|
|
892
|
+
vErrors.push(err5);
|
|
854
893
|
}
|
|
855
894
|
errors++;
|
|
856
895
|
}
|
|
857
|
-
var _valid1 =
|
|
896
|
+
var _valid1 = _errs14 === errors;
|
|
858
897
|
valid3 = valid3 || _valid1;
|
|
898
|
+
if (!valid3) {
|
|
899
|
+
const _errs16 = errors;
|
|
900
|
+
if (typeof data0 !== "boolean") {
|
|
901
|
+
const err6 = { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ExternalItemValue/anyOf/2/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
902
|
+
if (vErrors === null) {
|
|
903
|
+
vErrors = [err6];
|
|
904
|
+
}
|
|
905
|
+
else {
|
|
906
|
+
vErrors.push(err6);
|
|
907
|
+
}
|
|
908
|
+
errors++;
|
|
909
|
+
}
|
|
910
|
+
var _valid1 = _errs16 === errors;
|
|
911
|
+
valid3 = valid3 || _valid1;
|
|
912
|
+
}
|
|
859
913
|
}
|
|
860
914
|
if (!valid3) {
|
|
861
|
-
const
|
|
915
|
+
const err7 = { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ExternalItemValue/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
862
916
|
if (vErrors === null) {
|
|
863
|
-
vErrors = [
|
|
917
|
+
vErrors = [err7];
|
|
864
918
|
}
|
|
865
919
|
else {
|
|
866
|
-
vErrors.push(
|
|
920
|
+
vErrors.push(err7);
|
|
867
921
|
}
|
|
868
922
|
errors++;
|
|
869
923
|
}
|
|
@@ -885,12 +939,12 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
885
939
|
}
|
|
886
940
|
}
|
|
887
941
|
else {
|
|
888
|
-
const
|
|
942
|
+
const err8 = { instancePath, schemaPath: "#/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
889
943
|
if (vErrors === null) {
|
|
890
|
-
vErrors = [
|
|
944
|
+
vErrors = [err8];
|
|
891
945
|
}
|
|
892
946
|
else {
|
|
893
|
-
vErrors.push(
|
|
947
|
+
vErrors.push(err8);
|
|
894
948
|
}
|
|
895
949
|
errors++;
|
|
896
950
|
}
|
|
@@ -898,28 +952,28 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
898
952
|
var _valid0 = _errs4 === errors;
|
|
899
953
|
valid0 = valid0 || _valid0;
|
|
900
954
|
if (!valid0) {
|
|
901
|
-
const
|
|
955
|
+
const _errs18 = errors;
|
|
902
956
|
if (!(data instanceof Function)) {
|
|
903
|
-
const
|
|
957
|
+
const err9 = { instancePath, schemaPath: "#/anyOf/3/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
904
958
|
if (vErrors === null) {
|
|
905
|
-
vErrors = [
|
|
959
|
+
vErrors = [err9];
|
|
906
960
|
}
|
|
907
961
|
else {
|
|
908
|
-
vErrors.push(
|
|
962
|
+
vErrors.push(err9);
|
|
909
963
|
}
|
|
910
964
|
errors++;
|
|
911
965
|
}
|
|
912
|
-
var _valid0 =
|
|
966
|
+
var _valid0 = _errs18 === errors;
|
|
913
967
|
valid0 = valid0 || _valid0;
|
|
914
968
|
}
|
|
915
969
|
}
|
|
916
970
|
} if (!valid0) {
|
|
917
|
-
const
|
|
971
|
+
const err10 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
918
972
|
if (vErrors === null) {
|
|
919
|
-
vErrors = [
|
|
973
|
+
vErrors = [err10];
|
|
920
974
|
}
|
|
921
975
|
else {
|
|
922
|
-
vErrors.push(
|
|
976
|
+
vErrors.push(err10);
|
|
923
977
|
}
|
|
924
978
|
errors++;
|
|
925
979
|
validate24.errors = vErrors;
|
|
@@ -3903,352 +3957,419 @@ else {
|
|
|
3903
3957
|
}
|
|
3904
3958
|
}
|
|
3905
3959
|
} validate69.errors = vErrors; return errors === 0; }
|
|
3906
|
-
const schema60 = { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] } } };
|
|
3960
|
+
const schema60 = { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } };
|
|
3907
3961
|
const schema61 = { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] };
|
|
3908
3962
|
const schema62 = { "description": "Function acting as plugin.", "instanceof": "Function" };
|
|
3909
3963
|
const schema63 = { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] };
|
|
3910
|
-
const schema64 = { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } };
|
|
3911
|
-
const schema65 = { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] } } };
|
|
3964
|
+
const schema64 = { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name for chunks.", "anyOf": [{ "type": "string" }] }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "reuseExistingChunk": { "description": "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.", "type": "boolean" } } };
|
|
3912
3965
|
const schema66 = { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] };
|
|
3913
|
-
|
|
3966
|
+
const schema65 = { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "enforce": { "description": "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.", "type": "boolean" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } };
|
|
3967
|
+
function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3914
3968
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3915
3969
|
const _errs1 = errors;
|
|
3916
3970
|
for (const key0 in data) {
|
|
3917
|
-
if (!((((((((key0 === "
|
|
3918
|
-
|
|
3971
|
+
if (!((((((((key0 === "chunks") || (key0 === "minChunks")) || (key0 === "name")) || (key0 === "priority")) || (key0 === "reuseExistingChunk")) || (key0 === "enforce")) || (key0 === "test")) || (key0 === "minSize"))) {
|
|
3972
|
+
validate73.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
3919
3973
|
return false;
|
|
3920
3974
|
break;
|
|
3921
3975
|
}
|
|
3922
3976
|
}
|
|
3923
3977
|
if (_errs1 === errors) {
|
|
3924
|
-
if (data.
|
|
3925
|
-
let data0 = data.
|
|
3978
|
+
if (data.chunks !== undefined) {
|
|
3979
|
+
let data0 = data.chunks;
|
|
3926
3980
|
const _errs2 = errors;
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3981
|
+
const _errs3 = errors;
|
|
3982
|
+
let valid1 = false;
|
|
3983
|
+
const _errs4 = errors;
|
|
3984
|
+
if (data0 !== "initial" && data0 !== "async" && data0 !== "all") {
|
|
3985
|
+
const err0 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
3986
|
+
if (vErrors === null) {
|
|
3987
|
+
vErrors = [err0];
|
|
3988
|
+
}
|
|
3989
|
+
else {
|
|
3990
|
+
vErrors.push(err0);
|
|
3991
|
+
}
|
|
3992
|
+
errors++;
|
|
3993
|
+
}
|
|
3994
|
+
var _valid0 = _errs4 === errors;
|
|
3995
|
+
valid1 = valid1 || _valid0;
|
|
3996
|
+
if (!valid1) {
|
|
3997
|
+
const _errs5 = errors;
|
|
3998
|
+
if (!(data0 instanceof Function)) {
|
|
3999
|
+
const err1 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
4000
|
+
if (vErrors === null) {
|
|
4001
|
+
vErrors = [err1];
|
|
4002
|
+
}
|
|
4003
|
+
else {
|
|
4004
|
+
vErrors.push(err1);
|
|
4005
|
+
}
|
|
4006
|
+
errors++;
|
|
4007
|
+
}
|
|
4008
|
+
var _valid0 = _errs5 === errors;
|
|
4009
|
+
valid1 = valid1 || _valid0;
|
|
4010
|
+
}
|
|
4011
|
+
if (!valid1) {
|
|
4012
|
+
const err2 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4013
|
+
if (vErrors === null) {
|
|
4014
|
+
vErrors = [err2];
|
|
4015
|
+
}
|
|
4016
|
+
else {
|
|
4017
|
+
vErrors.push(err2);
|
|
4018
|
+
}
|
|
4019
|
+
errors++;
|
|
4020
|
+
validate73.errors = vErrors;
|
|
4021
|
+
return false;
|
|
4022
|
+
}
|
|
4023
|
+
else {
|
|
4024
|
+
errors = _errs3;
|
|
4025
|
+
if (vErrors !== null) {
|
|
4026
|
+
if (_errs3) {
|
|
4027
|
+
vErrors.length = _errs3;
|
|
4028
|
+
}
|
|
4029
|
+
else {
|
|
4030
|
+
vErrors = null;
|
|
4031
|
+
}
|
|
4032
|
+
}
|
|
4033
|
+
}
|
|
4034
|
+
var valid0 = _errs2 === errors;
|
|
4035
|
+
}
|
|
4036
|
+
else {
|
|
4037
|
+
var valid0 = true;
|
|
4038
|
+
}
|
|
4039
|
+
if (valid0) {
|
|
4040
|
+
if (data.minChunks !== undefined) {
|
|
4041
|
+
let data1 = data.minChunks;
|
|
4042
|
+
const _errs6 = errors;
|
|
4043
|
+
if (errors === _errs6) {
|
|
4044
|
+
if (typeof data1 == "number") {
|
|
4045
|
+
if (data1 < 1 || isNaN(data1)) {
|
|
4046
|
+
validate73.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4047
|
+
return false;
|
|
4048
|
+
}
|
|
4049
|
+
}
|
|
4050
|
+
else {
|
|
4051
|
+
validate73.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4052
|
+
return false;
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
var valid0 = _errs6 === errors;
|
|
4056
|
+
}
|
|
4057
|
+
else {
|
|
4058
|
+
var valid0 = true;
|
|
4059
|
+
}
|
|
4060
|
+
if (valid0) {
|
|
4061
|
+
if (data.name !== undefined) {
|
|
4062
|
+
let data2 = data.name;
|
|
4063
|
+
const _errs8 = errors;
|
|
4064
|
+
const _errs9 = errors;
|
|
4065
|
+
let valid2 = false;
|
|
4066
|
+
const _errs10 = errors;
|
|
4067
|
+
if (data2 !== false) {
|
|
4068
|
+
const err3 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
4069
|
+
if (vErrors === null) {
|
|
4070
|
+
vErrors = [err3];
|
|
4071
|
+
}
|
|
4072
|
+
else {
|
|
4073
|
+
vErrors.push(err3);
|
|
4074
|
+
}
|
|
4075
|
+
errors++;
|
|
4076
|
+
}
|
|
4077
|
+
var _valid1 = _errs10 === errors;
|
|
4078
|
+
valid2 = valid2 || _valid1;
|
|
4079
|
+
if (!valid2) {
|
|
4080
|
+
const _errs11 = errors;
|
|
4081
|
+
if (typeof data2 !== "string") {
|
|
4082
|
+
const err4 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4083
|
+
if (vErrors === null) {
|
|
4084
|
+
vErrors = [err4];
|
|
4085
|
+
}
|
|
4086
|
+
else {
|
|
4087
|
+
vErrors.push(err4);
|
|
4088
|
+
}
|
|
4089
|
+
errors++;
|
|
4090
|
+
}
|
|
4091
|
+
var _valid1 = _errs11 === errors;
|
|
4092
|
+
valid2 = valid2 || _valid1;
|
|
4093
|
+
if (!valid2) {
|
|
4094
|
+
const _errs13 = errors;
|
|
4095
|
+
if (!(data2 instanceof Function)) {
|
|
4096
|
+
const err5 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf/2/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
4097
|
+
if (vErrors === null) {
|
|
4098
|
+
vErrors = [err5];
|
|
4099
|
+
}
|
|
4100
|
+
else {
|
|
4101
|
+
vErrors.push(err5);
|
|
4102
|
+
}
|
|
4103
|
+
errors++;
|
|
4104
|
+
}
|
|
4105
|
+
var _valid1 = _errs13 === errors;
|
|
4106
|
+
valid2 = valid2 || _valid1;
|
|
4107
|
+
}
|
|
4108
|
+
}
|
|
4109
|
+
if (!valid2) {
|
|
4110
|
+
const err6 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4111
|
+
if (vErrors === null) {
|
|
4112
|
+
vErrors = [err6];
|
|
4113
|
+
}
|
|
4114
|
+
else {
|
|
4115
|
+
vErrors.push(err6);
|
|
4116
|
+
}
|
|
4117
|
+
errors++;
|
|
4118
|
+
validate73.errors = vErrors;
|
|
4119
|
+
return false;
|
|
4120
|
+
}
|
|
4121
|
+
else {
|
|
4122
|
+
errors = _errs9;
|
|
4123
|
+
if (vErrors !== null) {
|
|
4124
|
+
if (_errs9) {
|
|
4125
|
+
vErrors.length = _errs9;
|
|
4126
|
+
}
|
|
4127
|
+
else {
|
|
4128
|
+
vErrors = null;
|
|
4129
|
+
}
|
|
4130
|
+
}
|
|
4131
|
+
}
|
|
4132
|
+
var valid0 = _errs8 === errors;
|
|
4133
|
+
}
|
|
4134
|
+
else {
|
|
4135
|
+
var valid0 = true;
|
|
4136
|
+
}
|
|
4137
|
+
if (valid0) {
|
|
4138
|
+
if (data.priority !== undefined) {
|
|
4139
|
+
const _errs14 = errors;
|
|
4140
|
+
if (!(typeof data.priority == "number")) {
|
|
4141
|
+
validate73.errors = [{ instancePath: instancePath + "/priority", schemaPath: "#/properties/priority/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4142
|
+
return false;
|
|
4143
|
+
}
|
|
4144
|
+
var valid0 = _errs14 === errors;
|
|
4145
|
+
}
|
|
4146
|
+
else {
|
|
4147
|
+
var valid0 = true;
|
|
4148
|
+
}
|
|
4149
|
+
if (valid0) {
|
|
4150
|
+
if (data.reuseExistingChunk !== undefined) {
|
|
4151
|
+
const _errs16 = errors;
|
|
4152
|
+
if (typeof data.reuseExistingChunk !== "boolean") {
|
|
4153
|
+
validate73.errors = [{ instancePath: instancePath + "/reuseExistingChunk", schemaPath: "#/properties/reuseExistingChunk/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
4154
|
+
return false;
|
|
4155
|
+
}
|
|
4156
|
+
var valid0 = _errs16 === errors;
|
|
4157
|
+
}
|
|
4158
|
+
else {
|
|
4159
|
+
var valid0 = true;
|
|
4160
|
+
}
|
|
4161
|
+
if (valid0) {
|
|
4162
|
+
if (data.enforce !== undefined) {
|
|
4163
|
+
const _errs18 = errors;
|
|
4164
|
+
if (typeof data.enforce !== "boolean") {
|
|
4165
|
+
validate73.errors = [{ instancePath: instancePath + "/enforce", schemaPath: "#/properties/enforce/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
4166
|
+
return false;
|
|
4167
|
+
}
|
|
4168
|
+
var valid0 = _errs18 === errors;
|
|
4169
|
+
}
|
|
4170
|
+
else {
|
|
4171
|
+
var valid0 = true;
|
|
4172
|
+
}
|
|
4173
|
+
if (valid0) {
|
|
4174
|
+
if (data.test !== undefined) {
|
|
4175
|
+
const _errs20 = errors;
|
|
4176
|
+
const _errs21 = errors;
|
|
4177
|
+
let valid3 = false;
|
|
4178
|
+
const _errs22 = errors;
|
|
4179
|
+
if (!(data.test instanceof RegExp)) {
|
|
4180
|
+
const err7 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
3942
4181
|
if (vErrors === null) {
|
|
3943
|
-
vErrors = [
|
|
4182
|
+
vErrors = [err7];
|
|
3944
4183
|
}
|
|
3945
4184
|
else {
|
|
3946
|
-
vErrors.push(
|
|
4185
|
+
vErrors.push(err7);
|
|
3947
4186
|
}
|
|
3948
4187
|
errors++;
|
|
3949
|
-
break;
|
|
3950
4188
|
}
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
if (
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
4189
|
+
var _valid2 = _errs22 === errors;
|
|
4190
|
+
valid3 = valid3 || _valid2;
|
|
4191
|
+
if (!valid3) {
|
|
4192
|
+
const err8 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4193
|
+
if (vErrors === null) {
|
|
4194
|
+
vErrors = [err8];
|
|
4195
|
+
}
|
|
4196
|
+
else {
|
|
4197
|
+
vErrors.push(err8);
|
|
4198
|
+
}
|
|
4199
|
+
errors++;
|
|
4200
|
+
validate73.errors = vErrors;
|
|
4201
|
+
return false;
|
|
4202
|
+
}
|
|
4203
|
+
else {
|
|
4204
|
+
errors = _errs21;
|
|
4205
|
+
if (vErrors !== null) {
|
|
4206
|
+
if (_errs21) {
|
|
4207
|
+
vErrors.length = _errs21;
|
|
3963
4208
|
}
|
|
3964
4209
|
else {
|
|
3965
|
-
vErrors
|
|
3966
|
-
}
|
|
3967
|
-
errors++;
|
|
3968
|
-
}
|
|
3969
|
-
var _valid1 = _errs13 === errors;
|
|
3970
|
-
valid5 = valid5 || _valid1;
|
|
3971
|
-
if (!valid5) {
|
|
3972
|
-
const _errs14 = errors;
|
|
3973
|
-
if (!(data2 instanceof Function)) {
|
|
3974
|
-
const err2 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/chunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/chunks/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
3975
|
-
if (vErrors === null) {
|
|
3976
|
-
vErrors = [err2];
|
|
3977
|
-
}
|
|
3978
|
-
else {
|
|
3979
|
-
vErrors.push(err2);
|
|
3980
|
-
}
|
|
3981
|
-
errors++;
|
|
4210
|
+
vErrors = null;
|
|
3982
4211
|
}
|
|
3983
|
-
var _valid1 = _errs14 === errors;
|
|
3984
|
-
valid5 = valid5 || _valid1;
|
|
3985
4212
|
}
|
|
3986
|
-
|
|
3987
|
-
|
|
4213
|
+
}
|
|
4214
|
+
var valid0 = _errs20 === errors;
|
|
4215
|
+
}
|
|
4216
|
+
else {
|
|
4217
|
+
var valid0 = true;
|
|
4218
|
+
}
|
|
4219
|
+
if (valid0) {
|
|
4220
|
+
if (data.minSize !== undefined) {
|
|
4221
|
+
let data7 = data.minSize;
|
|
4222
|
+
const _errs23 = errors;
|
|
4223
|
+
const _errs24 = errors;
|
|
4224
|
+
let valid4 = false;
|
|
4225
|
+
let passing0 = null;
|
|
4226
|
+
const _errs25 = errors;
|
|
4227
|
+
const _errs27 = errors;
|
|
4228
|
+
let valid6 = false;
|
|
4229
|
+
const _errs28 = errors;
|
|
4230
|
+
if (errors === _errs28) {
|
|
4231
|
+
if (typeof data7 == "number") {
|
|
4232
|
+
if (data7 < 0 || isNaN(data7)) {
|
|
4233
|
+
const err9 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4234
|
+
if (vErrors === null) {
|
|
4235
|
+
vErrors = [err9];
|
|
4236
|
+
}
|
|
4237
|
+
else {
|
|
4238
|
+
vErrors.push(err9);
|
|
4239
|
+
}
|
|
4240
|
+
errors++;
|
|
4241
|
+
}
|
|
4242
|
+
}
|
|
4243
|
+
else {
|
|
4244
|
+
const err10 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4245
|
+
if (vErrors === null) {
|
|
4246
|
+
vErrors = [err10];
|
|
4247
|
+
}
|
|
4248
|
+
else {
|
|
4249
|
+
vErrors.push(err10);
|
|
4250
|
+
}
|
|
4251
|
+
errors++;
|
|
4252
|
+
}
|
|
4253
|
+
}
|
|
4254
|
+
var _valid4 = _errs28 === errors;
|
|
4255
|
+
valid6 = valid6 || _valid4;
|
|
4256
|
+
if (!valid6) {
|
|
4257
|
+
const err11 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
3988
4258
|
if (vErrors === null) {
|
|
3989
|
-
vErrors = [
|
|
4259
|
+
vErrors = [err11];
|
|
3990
4260
|
}
|
|
3991
4261
|
else {
|
|
3992
|
-
vErrors.push(
|
|
4262
|
+
vErrors.push(err11);
|
|
3993
4263
|
}
|
|
3994
4264
|
errors++;
|
|
3995
4265
|
}
|
|
3996
4266
|
else {
|
|
3997
|
-
errors =
|
|
4267
|
+
errors = _errs27;
|
|
3998
4268
|
if (vErrors !== null) {
|
|
3999
|
-
if (
|
|
4000
|
-
vErrors.length =
|
|
4269
|
+
if (_errs27) {
|
|
4270
|
+
vErrors.length = _errs27;
|
|
4001
4271
|
}
|
|
4002
4272
|
else {
|
|
4003
4273
|
vErrors = null;
|
|
4004
4274
|
}
|
|
4005
4275
|
}
|
|
4006
4276
|
}
|
|
4007
|
-
var
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
}
|
|
4012
|
-
if (valid4) {
|
|
4013
|
-
if (data1.minChunks !== undefined) {
|
|
4014
|
-
let data3 = data1.minChunks;
|
|
4015
|
-
const _errs15 = errors;
|
|
4016
|
-
if (errors === _errs15) {
|
|
4017
|
-
if (typeof data3 == "number") {
|
|
4018
|
-
if (data3 < 1 || isNaN(data3)) {
|
|
4019
|
-
const err4 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/minChunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
4020
|
-
if (vErrors === null) {
|
|
4021
|
-
vErrors = [err4];
|
|
4022
|
-
}
|
|
4023
|
-
else {
|
|
4024
|
-
vErrors.push(err4);
|
|
4025
|
-
}
|
|
4026
|
-
errors++;
|
|
4027
|
-
}
|
|
4028
|
-
}
|
|
4029
|
-
else {
|
|
4030
|
-
const err5 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/minChunks", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/minChunks/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4031
|
-
if (vErrors === null) {
|
|
4032
|
-
vErrors = [err5];
|
|
4033
|
-
}
|
|
4034
|
-
else {
|
|
4035
|
-
vErrors.push(err5);
|
|
4036
|
-
}
|
|
4037
|
-
errors++;
|
|
4038
|
-
}
|
|
4039
|
-
}
|
|
4040
|
-
var valid4 = _errs15 === errors;
|
|
4041
|
-
}
|
|
4042
|
-
else {
|
|
4043
|
-
var valid4 = true;
|
|
4277
|
+
var _valid3 = _errs25 === errors;
|
|
4278
|
+
if (_valid3) {
|
|
4279
|
+
valid4 = true;
|
|
4280
|
+
passing0 = 0;
|
|
4044
4281
|
}
|
|
4045
|
-
if (valid4) {
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
const _errs18 = errors;
|
|
4050
|
-
let valid6 = false;
|
|
4051
|
-
const _errs19 = errors;
|
|
4052
|
-
if (data4 !== false) {
|
|
4053
|
-
const err6 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
4054
|
-
if (vErrors === null) {
|
|
4055
|
-
vErrors = [err6];
|
|
4056
|
-
}
|
|
4057
|
-
else {
|
|
4058
|
-
vErrors.push(err6);
|
|
4059
|
-
}
|
|
4060
|
-
errors++;
|
|
4061
|
-
}
|
|
4062
|
-
var _valid2 = _errs19 === errors;
|
|
4063
|
-
valid6 = valid6 || _valid2;
|
|
4064
|
-
if (!valid6) {
|
|
4065
|
-
const _errs20 = errors;
|
|
4066
|
-
if (typeof data4 !== "string") {
|
|
4067
|
-
const err7 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4068
|
-
if (vErrors === null) {
|
|
4069
|
-
vErrors = [err7];
|
|
4070
|
-
}
|
|
4071
|
-
else {
|
|
4072
|
-
vErrors.push(err7);
|
|
4073
|
-
}
|
|
4074
|
-
errors++;
|
|
4075
|
-
}
|
|
4076
|
-
var _valid2 = _errs20 === errors;
|
|
4077
|
-
valid6 = valid6 || _valid2;
|
|
4078
|
-
if (!valid6) {
|
|
4079
|
-
const _errs22 = errors;
|
|
4080
|
-
if (!(data4 instanceof Function)) {
|
|
4081
|
-
const err8 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf/2/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
4082
|
-
if (vErrors === null) {
|
|
4083
|
-
vErrors = [err8];
|
|
4084
|
-
}
|
|
4085
|
-
else {
|
|
4086
|
-
vErrors.push(err8);
|
|
4087
|
-
}
|
|
4088
|
-
errors++;
|
|
4089
|
-
}
|
|
4090
|
-
var _valid2 = _errs22 === errors;
|
|
4091
|
-
valid6 = valid6 || _valid2;
|
|
4092
|
-
}
|
|
4093
|
-
}
|
|
4094
|
-
if (!valid6) {
|
|
4095
|
-
const err9 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/name", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/name/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4096
|
-
if (vErrors === null) {
|
|
4097
|
-
vErrors = [err9];
|
|
4098
|
-
}
|
|
4099
|
-
else {
|
|
4100
|
-
vErrors.push(err9);
|
|
4101
|
-
}
|
|
4102
|
-
errors++;
|
|
4103
|
-
}
|
|
4104
|
-
else {
|
|
4105
|
-
errors = _errs18;
|
|
4106
|
-
if (vErrors !== null) {
|
|
4107
|
-
if (_errs18) {
|
|
4108
|
-
vErrors.length = _errs18;
|
|
4109
|
-
}
|
|
4110
|
-
else {
|
|
4111
|
-
vErrors = null;
|
|
4112
|
-
}
|
|
4113
|
-
}
|
|
4114
|
-
}
|
|
4115
|
-
var valid4 = _errs17 === errors;
|
|
4282
|
+
if (!valid4) {
|
|
4283
|
+
const err12 = { instancePath: instancePath + "/minSize", schemaPath: "#/properties/minSize/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
4284
|
+
if (vErrors === null) {
|
|
4285
|
+
vErrors = [err12];
|
|
4116
4286
|
}
|
|
4117
4287
|
else {
|
|
4118
|
-
|
|
4288
|
+
vErrors.push(err12);
|
|
4119
4289
|
}
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
vErrors.push(err10);
|
|
4130
|
-
}
|
|
4131
|
-
errors++;
|
|
4132
|
-
}
|
|
4133
|
-
var valid4 = _errs23 === errors;
|
|
4290
|
+
errors++;
|
|
4291
|
+
validate73.errors = vErrors;
|
|
4292
|
+
return false;
|
|
4293
|
+
}
|
|
4294
|
+
else {
|
|
4295
|
+
errors = _errs24;
|
|
4296
|
+
if (vErrors !== null) {
|
|
4297
|
+
if (_errs24) {
|
|
4298
|
+
vErrors.length = _errs24;
|
|
4134
4299
|
}
|
|
4135
4300
|
else {
|
|
4136
|
-
|
|
4137
|
-
}
|
|
4138
|
-
if (valid4) {
|
|
4139
|
-
if (data1.reuseExistingChunk !== undefined) {
|
|
4140
|
-
const _errs25 = errors;
|
|
4141
|
-
if (typeof data1.reuseExistingChunk !== "boolean") {
|
|
4142
|
-
const err11 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/reuseExistingChunk", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/reuseExistingChunk/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
4143
|
-
if (vErrors === null) {
|
|
4144
|
-
vErrors = [err11];
|
|
4145
|
-
}
|
|
4146
|
-
else {
|
|
4147
|
-
vErrors.push(err11);
|
|
4148
|
-
}
|
|
4149
|
-
errors++;
|
|
4150
|
-
}
|
|
4151
|
-
var valid4 = _errs25 === errors;
|
|
4152
|
-
}
|
|
4153
|
-
else {
|
|
4154
|
-
var valid4 = true;
|
|
4155
|
-
}
|
|
4156
|
-
if (valid4) {
|
|
4157
|
-
if (data1.test !== undefined) {
|
|
4158
|
-
const _errs27 = errors;
|
|
4159
|
-
const _errs28 = errors;
|
|
4160
|
-
let valid7 = false;
|
|
4161
|
-
const _errs29 = errors;
|
|
4162
|
-
if (!(data1.test instanceof RegExp)) {
|
|
4163
|
-
const err12 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/test", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/test/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
4164
|
-
if (vErrors === null) {
|
|
4165
|
-
vErrors = [err12];
|
|
4166
|
-
}
|
|
4167
|
-
else {
|
|
4168
|
-
vErrors.push(err12);
|
|
4169
|
-
}
|
|
4170
|
-
errors++;
|
|
4171
|
-
}
|
|
4172
|
-
var _valid3 = _errs29 === errors;
|
|
4173
|
-
valid7 = valid7 || _valid3;
|
|
4174
|
-
if (!valid7) {
|
|
4175
|
-
const err13 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1") + "/test", schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/properties/test/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4176
|
-
if (vErrors === null) {
|
|
4177
|
-
vErrors = [err13];
|
|
4178
|
-
}
|
|
4179
|
-
else {
|
|
4180
|
-
vErrors.push(err13);
|
|
4181
|
-
}
|
|
4182
|
-
errors++;
|
|
4183
|
-
}
|
|
4184
|
-
else {
|
|
4185
|
-
errors = _errs28;
|
|
4186
|
-
if (vErrors !== null) {
|
|
4187
|
-
if (_errs28) {
|
|
4188
|
-
vErrors.length = _errs28;
|
|
4189
|
-
}
|
|
4190
|
-
else {
|
|
4191
|
-
vErrors = null;
|
|
4192
|
-
}
|
|
4193
|
-
}
|
|
4194
|
-
}
|
|
4195
|
-
var valid4 = _errs27 === errors;
|
|
4196
|
-
}
|
|
4197
|
-
else {
|
|
4198
|
-
var valid4 = true;
|
|
4199
|
-
}
|
|
4200
|
-
}
|
|
4301
|
+
vErrors = null;
|
|
4201
4302
|
}
|
|
4202
4303
|
}
|
|
4203
4304
|
}
|
|
4305
|
+
var valid0 = _errs23 === errors;
|
|
4306
|
+
}
|
|
4307
|
+
else {
|
|
4308
|
+
var valid0 = true;
|
|
4204
4309
|
}
|
|
4205
|
-
}
|
|
4206
|
-
}
|
|
4207
|
-
else {
|
|
4208
|
-
const err14 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/OptimizationSplitChunksCacheGroup/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
4209
|
-
if (vErrors === null) {
|
|
4210
|
-
vErrors = [err14];
|
|
4211
|
-
}
|
|
4212
|
-
else {
|
|
4213
|
-
vErrors.push(err14);
|
|
4214
|
-
}
|
|
4215
|
-
errors++;
|
|
4216
|
-
}
|
|
4217
|
-
}
|
|
4218
|
-
var _valid0 = _errs7 === errors;
|
|
4219
|
-
valid2 = valid2 || _valid0;
|
|
4220
|
-
if (!valid2) {
|
|
4221
|
-
const err15 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/cacheGroups/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4222
|
-
if (vErrors === null) {
|
|
4223
|
-
vErrors = [err15];
|
|
4224
|
-
}
|
|
4225
|
-
else {
|
|
4226
|
-
vErrors.push(err15);
|
|
4227
|
-
}
|
|
4228
|
-
errors++;
|
|
4229
|
-
validate72.errors = vErrors;
|
|
4230
|
-
return false;
|
|
4231
|
-
}
|
|
4232
|
-
else {
|
|
4233
|
-
errors = _errs6;
|
|
4234
|
-
if (vErrors !== null) {
|
|
4235
|
-
if (_errs6) {
|
|
4236
|
-
vErrors.length = _errs6;
|
|
4237
|
-
}
|
|
4238
|
-
else {
|
|
4239
|
-
vErrors = null;
|
|
4240
4310
|
}
|
|
4241
4311
|
}
|
|
4242
4312
|
}
|
|
4243
|
-
var valid1 = _errs5 === errors;
|
|
4244
|
-
if (!valid1) {
|
|
4245
|
-
break;
|
|
4246
|
-
}
|
|
4247
4313
|
}
|
|
4248
4314
|
}
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
}
|
|
4319
|
+
else {
|
|
4320
|
+
validate73.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
4321
|
+
return false;
|
|
4322
|
+
}
|
|
4323
|
+
} validate73.errors = vErrors; return errors === 0; }
|
|
4324
|
+
function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
4325
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4326
|
+
const _errs1 = errors;
|
|
4327
|
+
for (const key0 in data) {
|
|
4328
|
+
if (!(func2.call(schema64.properties, key0))) {
|
|
4329
|
+
validate72.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
4330
|
+
return false;
|
|
4331
|
+
break;
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
if (_errs1 === errors) {
|
|
4335
|
+
if (data.name !== undefined) {
|
|
4336
|
+
const _errs2 = errors;
|
|
4337
|
+
const _errs3 = errors;
|
|
4338
|
+
let valid1 = false;
|
|
4339
|
+
const _errs4 = errors;
|
|
4340
|
+
if (typeof data.name !== "string") {
|
|
4341
|
+
const err0 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4342
|
+
if (vErrors === null) {
|
|
4343
|
+
vErrors = [err0];
|
|
4344
|
+
}
|
|
4249
4345
|
else {
|
|
4250
|
-
|
|
4251
|
-
|
|
4346
|
+
vErrors.push(err0);
|
|
4347
|
+
}
|
|
4348
|
+
errors++;
|
|
4349
|
+
}
|
|
4350
|
+
var _valid0 = _errs4 === errors;
|
|
4351
|
+
valid1 = valid1 || _valid0;
|
|
4352
|
+
if (!valid1) {
|
|
4353
|
+
const err1 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4354
|
+
if (vErrors === null) {
|
|
4355
|
+
vErrors = [err1];
|
|
4356
|
+
}
|
|
4357
|
+
else {
|
|
4358
|
+
vErrors.push(err1);
|
|
4359
|
+
}
|
|
4360
|
+
errors++;
|
|
4361
|
+
validate72.errors = vErrors;
|
|
4362
|
+
return false;
|
|
4363
|
+
}
|
|
4364
|
+
else {
|
|
4365
|
+
errors = _errs3;
|
|
4366
|
+
if (vErrors !== null) {
|
|
4367
|
+
if (_errs3) {
|
|
4368
|
+
vErrors.length = _errs3;
|
|
4369
|
+
}
|
|
4370
|
+
else {
|
|
4371
|
+
vErrors = null;
|
|
4372
|
+
}
|
|
4252
4373
|
}
|
|
4253
4374
|
}
|
|
4254
4375
|
var valid0 = _errs2 === errors;
|
|
@@ -4257,388 +4378,458 @@ function validate72(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4257
4378
|
var valid0 = true;
|
|
4258
4379
|
}
|
|
4259
4380
|
if (valid0) {
|
|
4260
|
-
if (data.
|
|
4261
|
-
let
|
|
4262
|
-
const
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4381
|
+
if (data.cacheGroups !== undefined) {
|
|
4382
|
+
let data1 = data.cacheGroups;
|
|
4383
|
+
const _errs6 = errors;
|
|
4384
|
+
if (errors === _errs6) {
|
|
4385
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
4386
|
+
for (const key1 in data1) {
|
|
4387
|
+
const _errs9 = errors;
|
|
4388
|
+
const _errs10 = errors;
|
|
4389
|
+
let valid3 = false;
|
|
4390
|
+
const _errs11 = errors;
|
|
4391
|
+
if (!(validate73(data1[key1], { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data1, parentDataProperty: key1, rootData }))) {
|
|
4392
|
+
vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
|
|
4393
|
+
errors = vErrors.length;
|
|
4394
|
+
}
|
|
4395
|
+
var _valid1 = _errs11 === errors;
|
|
4396
|
+
valid3 = valid3 || _valid1;
|
|
4397
|
+
if (!valid3) {
|
|
4398
|
+
const err2 = { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/cacheGroups/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4399
|
+
if (vErrors === null) {
|
|
4400
|
+
vErrors = [err2];
|
|
4401
|
+
}
|
|
4402
|
+
else {
|
|
4403
|
+
vErrors.push(err2);
|
|
4404
|
+
}
|
|
4405
|
+
errors++;
|
|
4406
|
+
validate72.errors = vErrors;
|
|
4407
|
+
return false;
|
|
4408
|
+
}
|
|
4409
|
+
else {
|
|
4410
|
+
errors = _errs10;
|
|
4411
|
+
if (vErrors !== null) {
|
|
4412
|
+
if (_errs10) {
|
|
4413
|
+
vErrors.length = _errs10;
|
|
4414
|
+
}
|
|
4415
|
+
else {
|
|
4416
|
+
vErrors = null;
|
|
4417
|
+
}
|
|
4418
|
+
}
|
|
4419
|
+
}
|
|
4420
|
+
var valid2 = _errs9 === errors;
|
|
4421
|
+
if (!valid2) {
|
|
4422
|
+
break;
|
|
4423
|
+
}
|
|
4424
|
+
}
|
|
4282
4425
|
}
|
|
4283
4426
|
else {
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
errors++;
|
|
4287
|
-
validate72.errors = vErrors;
|
|
4288
|
-
return false;
|
|
4289
|
-
}
|
|
4290
|
-
else {
|
|
4291
|
-
errors = _errs31;
|
|
4292
|
-
if (vErrors !== null) {
|
|
4293
|
-
if (_errs31) {
|
|
4294
|
-
vErrors.length = _errs31;
|
|
4295
|
-
}
|
|
4296
|
-
else {
|
|
4297
|
-
vErrors = null;
|
|
4298
|
-
}
|
|
4427
|
+
validate72.errors = [{ instancePath: instancePath + "/cacheGroups", schemaPath: "#/properties/cacheGroups/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
4428
|
+
return false;
|
|
4299
4429
|
}
|
|
4300
4430
|
}
|
|
4301
|
-
var valid0 =
|
|
4431
|
+
var valid0 = _errs6 === errors;
|
|
4302
4432
|
}
|
|
4303
4433
|
else {
|
|
4304
4434
|
var valid0 = true;
|
|
4305
4435
|
}
|
|
4306
4436
|
if (valid0) {
|
|
4307
|
-
if (data.
|
|
4308
|
-
let
|
|
4309
|
-
const
|
|
4310
|
-
const
|
|
4311
|
-
let
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
if (errors === _errs38) {
|
|
4318
|
-
if (typeof data9 == "number") {
|
|
4319
|
-
if (data9 < 0 || isNaN(data9)) {
|
|
4320
|
-
const err18 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4321
|
-
if (vErrors === null) {
|
|
4322
|
-
vErrors = [err18];
|
|
4323
|
-
}
|
|
4324
|
-
else {
|
|
4325
|
-
vErrors.push(err18);
|
|
4326
|
-
}
|
|
4327
|
-
errors++;
|
|
4328
|
-
}
|
|
4437
|
+
if (data.chunks !== undefined) {
|
|
4438
|
+
let data3 = data.chunks;
|
|
4439
|
+
const _errs12 = errors;
|
|
4440
|
+
const _errs13 = errors;
|
|
4441
|
+
let valid4 = false;
|
|
4442
|
+
const _errs14 = errors;
|
|
4443
|
+
if (data3 !== "initial" && data3 !== "async" && data3 !== "all") {
|
|
4444
|
+
const err3 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
4445
|
+
if (vErrors === null) {
|
|
4446
|
+
vErrors = [err3];
|
|
4329
4447
|
}
|
|
4330
4448
|
else {
|
|
4331
|
-
|
|
4332
|
-
if (vErrors === null) {
|
|
4333
|
-
vErrors = [err19];
|
|
4334
|
-
}
|
|
4335
|
-
else {
|
|
4336
|
-
vErrors.push(err19);
|
|
4337
|
-
}
|
|
4338
|
-
errors++;
|
|
4449
|
+
vErrors.push(err3);
|
|
4339
4450
|
}
|
|
4451
|
+
errors++;
|
|
4340
4452
|
}
|
|
4341
|
-
var
|
|
4342
|
-
|
|
4343
|
-
if (!
|
|
4344
|
-
const
|
|
4453
|
+
var _valid2 = _errs14 === errors;
|
|
4454
|
+
valid4 = valid4 || _valid2;
|
|
4455
|
+
if (!valid4) {
|
|
4456
|
+
const err4 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4345
4457
|
if (vErrors === null) {
|
|
4346
|
-
vErrors = [
|
|
4458
|
+
vErrors = [err4];
|
|
4347
4459
|
}
|
|
4348
4460
|
else {
|
|
4349
|
-
vErrors.push(
|
|
4461
|
+
vErrors.push(err4);
|
|
4350
4462
|
}
|
|
4351
4463
|
errors++;
|
|
4464
|
+
validate72.errors = vErrors;
|
|
4465
|
+
return false;
|
|
4352
4466
|
}
|
|
4353
4467
|
else {
|
|
4354
|
-
errors =
|
|
4468
|
+
errors = _errs13;
|
|
4355
4469
|
if (vErrors !== null) {
|
|
4356
|
-
if (
|
|
4357
|
-
vErrors.length =
|
|
4470
|
+
if (_errs13) {
|
|
4471
|
+
vErrors.length = _errs13;
|
|
4358
4472
|
}
|
|
4359
4473
|
else {
|
|
4360
4474
|
vErrors = null;
|
|
4361
4475
|
}
|
|
4362
4476
|
}
|
|
4363
4477
|
}
|
|
4364
|
-
var
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4478
|
+
var valid0 = _errs12 === errors;
|
|
4479
|
+
}
|
|
4480
|
+
else {
|
|
4481
|
+
var valid0 = true;
|
|
4482
|
+
}
|
|
4483
|
+
if (valid0) {
|
|
4484
|
+
if (data.enforceSizeThreshold !== undefined) {
|
|
4485
|
+
let data4 = data.enforceSizeThreshold;
|
|
4486
|
+
const _errs15 = errors;
|
|
4487
|
+
const _errs16 = errors;
|
|
4488
|
+
let valid5 = false;
|
|
4489
|
+
let passing0 = null;
|
|
4490
|
+
const _errs17 = errors;
|
|
4491
|
+
const _errs19 = errors;
|
|
4492
|
+
let valid7 = false;
|
|
4493
|
+
const _errs20 = errors;
|
|
4494
|
+
if (errors === _errs20) {
|
|
4495
|
+
if (typeof data4 == "number") {
|
|
4496
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
4497
|
+
const err5 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4498
|
+
if (vErrors === null) {
|
|
4499
|
+
vErrors = [err5];
|
|
4500
|
+
}
|
|
4501
|
+
else {
|
|
4502
|
+
vErrors.push(err5);
|
|
4503
|
+
}
|
|
4504
|
+
errors++;
|
|
4505
|
+
}
|
|
4506
|
+
}
|
|
4507
|
+
else {
|
|
4508
|
+
const err6 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4509
|
+
if (vErrors === null) {
|
|
4510
|
+
vErrors = [err6];
|
|
4511
|
+
}
|
|
4512
|
+
else {
|
|
4513
|
+
vErrors.push(err6);
|
|
4514
|
+
}
|
|
4515
|
+
errors++;
|
|
4516
|
+
}
|
|
4517
|
+
}
|
|
4518
|
+
var _valid4 = _errs20 === errors;
|
|
4519
|
+
valid7 = valid7 || _valid4;
|
|
4520
|
+
if (!valid7) {
|
|
4521
|
+
const err7 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4522
|
+
if (vErrors === null) {
|
|
4523
|
+
vErrors = [err7];
|
|
4524
|
+
}
|
|
4525
|
+
else {
|
|
4526
|
+
vErrors.push(err7);
|
|
4527
|
+
}
|
|
4528
|
+
errors++;
|
|
4373
4529
|
}
|
|
4374
4530
|
else {
|
|
4375
|
-
|
|
4531
|
+
errors = _errs19;
|
|
4532
|
+
if (vErrors !== null) {
|
|
4533
|
+
if (_errs19) {
|
|
4534
|
+
vErrors.length = _errs19;
|
|
4535
|
+
}
|
|
4536
|
+
else {
|
|
4537
|
+
vErrors = null;
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
4376
4540
|
}
|
|
4377
|
-
errors
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
if (
|
|
4385
|
-
vErrors
|
|
4541
|
+
var _valid3 = _errs17 === errors;
|
|
4542
|
+
if (_valid3) {
|
|
4543
|
+
valid5 = true;
|
|
4544
|
+
passing0 = 0;
|
|
4545
|
+
}
|
|
4546
|
+
if (!valid5) {
|
|
4547
|
+
const err8 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/properties/enforceSizeThreshold/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
4548
|
+
if (vErrors === null) {
|
|
4549
|
+
vErrors = [err8];
|
|
4386
4550
|
}
|
|
4387
4551
|
else {
|
|
4388
|
-
vErrors
|
|
4552
|
+
vErrors.push(err8);
|
|
4389
4553
|
}
|
|
4554
|
+
errors++;
|
|
4555
|
+
validate72.errors = vErrors;
|
|
4556
|
+
return false;
|
|
4390
4557
|
}
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
let data10 = data.maxAsyncRequests;
|
|
4400
|
-
const _errs40 = errors;
|
|
4401
|
-
if (errors === _errs40) {
|
|
4402
|
-
if (typeof data10 == "number") {
|
|
4403
|
-
if (data10 < 1 || isNaN(data10)) {
|
|
4404
|
-
validate72.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4405
|
-
return false;
|
|
4558
|
+
else {
|
|
4559
|
+
errors = _errs16;
|
|
4560
|
+
if (vErrors !== null) {
|
|
4561
|
+
if (_errs16) {
|
|
4562
|
+
vErrors.length = _errs16;
|
|
4563
|
+
}
|
|
4564
|
+
else {
|
|
4565
|
+
vErrors = null;
|
|
4406
4566
|
}
|
|
4407
|
-
}
|
|
4408
|
-
else {
|
|
4409
|
-
validate72.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4410
|
-
return false;
|
|
4411
4567
|
}
|
|
4412
4568
|
}
|
|
4413
|
-
var valid0 =
|
|
4569
|
+
var valid0 = _errs15 === errors;
|
|
4414
4570
|
}
|
|
4415
4571
|
else {
|
|
4416
4572
|
var valid0 = true;
|
|
4417
4573
|
}
|
|
4418
4574
|
if (valid0) {
|
|
4419
|
-
if (data.
|
|
4420
|
-
let
|
|
4421
|
-
const
|
|
4422
|
-
if (errors ===
|
|
4423
|
-
if (typeof
|
|
4424
|
-
if (
|
|
4425
|
-
validate72.errors = [{ instancePath: instancePath + "/
|
|
4575
|
+
if (data.maxAsyncRequests !== undefined) {
|
|
4576
|
+
let data5 = data.maxAsyncRequests;
|
|
4577
|
+
const _errs22 = errors;
|
|
4578
|
+
if (errors === _errs22) {
|
|
4579
|
+
if (typeof data5 == "number") {
|
|
4580
|
+
if (data5 < 1 || isNaN(data5)) {
|
|
4581
|
+
validate72.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4426
4582
|
return false;
|
|
4427
4583
|
}
|
|
4428
4584
|
}
|
|
4429
4585
|
else {
|
|
4430
|
-
validate72.errors = [{ instancePath: instancePath + "/
|
|
4586
|
+
validate72.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4431
4587
|
return false;
|
|
4432
4588
|
}
|
|
4433
4589
|
}
|
|
4434
|
-
var valid0 =
|
|
4590
|
+
var valid0 = _errs22 === errors;
|
|
4435
4591
|
}
|
|
4436
4592
|
else {
|
|
4437
4593
|
var valid0 = true;
|
|
4438
4594
|
}
|
|
4439
4595
|
if (valid0) {
|
|
4440
|
-
if (data.
|
|
4441
|
-
let
|
|
4442
|
-
const
|
|
4443
|
-
if (errors ===
|
|
4444
|
-
if (typeof
|
|
4445
|
-
if (
|
|
4446
|
-
validate72.errors = [{ instancePath: instancePath + "/
|
|
4596
|
+
if (data.maxInitialRequests !== undefined) {
|
|
4597
|
+
let data6 = data.maxInitialRequests;
|
|
4598
|
+
const _errs24 = errors;
|
|
4599
|
+
if (errors === _errs24) {
|
|
4600
|
+
if (typeof data6 == "number") {
|
|
4601
|
+
if (data6 < 1 || isNaN(data6)) {
|
|
4602
|
+
validate72.errors = [{ instancePath: instancePath + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4447
4603
|
return false;
|
|
4448
4604
|
}
|
|
4449
4605
|
}
|
|
4450
4606
|
else {
|
|
4451
|
-
validate72.errors = [{ instancePath: instancePath + "/
|
|
4607
|
+
validate72.errors = [{ instancePath: instancePath + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4452
4608
|
return false;
|
|
4453
4609
|
}
|
|
4454
4610
|
}
|
|
4455
|
-
var valid0 =
|
|
4611
|
+
var valid0 = _errs24 === errors;
|
|
4456
4612
|
}
|
|
4457
4613
|
else {
|
|
4458
4614
|
var valid0 = true;
|
|
4459
4615
|
}
|
|
4460
4616
|
if (valid0) {
|
|
4461
|
-
if (data.
|
|
4462
|
-
let
|
|
4463
|
-
const
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
let valid14 = false;
|
|
4470
|
-
const _errs51 = errors;
|
|
4471
|
-
if (errors === _errs51) {
|
|
4472
|
-
if (typeof data13 == "number") {
|
|
4473
|
-
if (data13 < 0 || isNaN(data13)) {
|
|
4474
|
-
const err22 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4475
|
-
if (vErrors === null) {
|
|
4476
|
-
vErrors = [err22];
|
|
4477
|
-
}
|
|
4478
|
-
else {
|
|
4479
|
-
vErrors.push(err22);
|
|
4480
|
-
}
|
|
4481
|
-
errors++;
|
|
4482
|
-
}
|
|
4483
|
-
}
|
|
4484
|
-
else {
|
|
4485
|
-
const err23 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4486
|
-
if (vErrors === null) {
|
|
4487
|
-
vErrors = [err23];
|
|
4488
|
-
}
|
|
4489
|
-
else {
|
|
4490
|
-
vErrors.push(err23);
|
|
4491
|
-
}
|
|
4492
|
-
errors++;
|
|
4493
|
-
}
|
|
4494
|
-
}
|
|
4495
|
-
var _valid8 = _errs51 === errors;
|
|
4496
|
-
valid14 = valid14 || _valid8;
|
|
4497
|
-
if (!valid14) {
|
|
4498
|
-
const err24 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4499
|
-
if (vErrors === null) {
|
|
4500
|
-
vErrors = [err24];
|
|
4501
|
-
}
|
|
4502
|
-
else {
|
|
4503
|
-
vErrors.push(err24);
|
|
4504
|
-
}
|
|
4505
|
-
errors++;
|
|
4506
|
-
}
|
|
4507
|
-
else {
|
|
4508
|
-
errors = _errs50;
|
|
4509
|
-
if (vErrors !== null) {
|
|
4510
|
-
if (_errs50) {
|
|
4511
|
-
vErrors.length = _errs50;
|
|
4512
|
-
}
|
|
4513
|
-
else {
|
|
4514
|
-
vErrors = null;
|
|
4617
|
+
if (data.minChunks !== undefined) {
|
|
4618
|
+
let data7 = data.minChunks;
|
|
4619
|
+
const _errs26 = errors;
|
|
4620
|
+
if (errors === _errs26) {
|
|
4621
|
+
if (typeof data7 == "number") {
|
|
4622
|
+
if (data7 < 1 || isNaN(data7)) {
|
|
4623
|
+
validate72.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4624
|
+
return false;
|
|
4515
4625
|
}
|
|
4516
4626
|
}
|
|
4517
|
-
}
|
|
4518
|
-
var _valid7 = _errs48 === errors;
|
|
4519
|
-
if (_valid7) {
|
|
4520
|
-
valid12 = true;
|
|
4521
|
-
passing1 = 0;
|
|
4522
|
-
}
|
|
4523
|
-
if (!valid12) {
|
|
4524
|
-
const err25 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/properties/minRemainingSize/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
4525
|
-
if (vErrors === null) {
|
|
4526
|
-
vErrors = [err25];
|
|
4527
|
-
}
|
|
4528
4627
|
else {
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
errors++;
|
|
4532
|
-
validate72.errors = vErrors;
|
|
4533
|
-
return false;
|
|
4534
|
-
}
|
|
4535
|
-
else {
|
|
4536
|
-
errors = _errs47;
|
|
4537
|
-
if (vErrors !== null) {
|
|
4538
|
-
if (_errs47) {
|
|
4539
|
-
vErrors.length = _errs47;
|
|
4540
|
-
}
|
|
4541
|
-
else {
|
|
4542
|
-
vErrors = null;
|
|
4543
|
-
}
|
|
4628
|
+
validate72.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4629
|
+
return false;
|
|
4544
4630
|
}
|
|
4545
4631
|
}
|
|
4546
|
-
var valid0 =
|
|
4632
|
+
var valid0 = _errs26 === errors;
|
|
4547
4633
|
}
|
|
4548
4634
|
else {
|
|
4549
4635
|
var valid0 = true;
|
|
4550
4636
|
}
|
|
4551
4637
|
if (valid0) {
|
|
4552
|
-
if (data.
|
|
4553
|
-
let
|
|
4554
|
-
const
|
|
4555
|
-
const
|
|
4556
|
-
let
|
|
4557
|
-
let
|
|
4558
|
-
const
|
|
4559
|
-
const
|
|
4560
|
-
let
|
|
4561
|
-
const
|
|
4562
|
-
if (errors ===
|
|
4563
|
-
if (typeof
|
|
4564
|
-
if (
|
|
4565
|
-
const
|
|
4638
|
+
if (data.minRemainingSize !== undefined) {
|
|
4639
|
+
let data8 = data.minRemainingSize;
|
|
4640
|
+
const _errs28 = errors;
|
|
4641
|
+
const _errs29 = errors;
|
|
4642
|
+
let valid8 = false;
|
|
4643
|
+
let passing1 = null;
|
|
4644
|
+
const _errs30 = errors;
|
|
4645
|
+
const _errs32 = errors;
|
|
4646
|
+
let valid10 = false;
|
|
4647
|
+
const _errs33 = errors;
|
|
4648
|
+
if (errors === _errs33) {
|
|
4649
|
+
if (typeof data8 == "number") {
|
|
4650
|
+
if (data8 < 0 || isNaN(data8)) {
|
|
4651
|
+
const err9 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4566
4652
|
if (vErrors === null) {
|
|
4567
|
-
vErrors = [
|
|
4653
|
+
vErrors = [err9];
|
|
4568
4654
|
}
|
|
4569
4655
|
else {
|
|
4570
|
-
vErrors.push(
|
|
4656
|
+
vErrors.push(err9);
|
|
4571
4657
|
}
|
|
4572
4658
|
errors++;
|
|
4573
4659
|
}
|
|
4574
4660
|
}
|
|
4575
4661
|
else {
|
|
4576
|
-
const
|
|
4662
|
+
const err10 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4577
4663
|
if (vErrors === null) {
|
|
4578
|
-
vErrors = [
|
|
4664
|
+
vErrors = [err10];
|
|
4579
4665
|
}
|
|
4580
4666
|
else {
|
|
4581
|
-
vErrors.push(
|
|
4667
|
+
vErrors.push(err10);
|
|
4582
4668
|
}
|
|
4583
4669
|
errors++;
|
|
4584
4670
|
}
|
|
4585
4671
|
}
|
|
4586
|
-
var
|
|
4587
|
-
|
|
4588
|
-
if (!
|
|
4589
|
-
const
|
|
4672
|
+
var _valid6 = _errs33 === errors;
|
|
4673
|
+
valid10 = valid10 || _valid6;
|
|
4674
|
+
if (!valid10) {
|
|
4675
|
+
const err11 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4590
4676
|
if (vErrors === null) {
|
|
4591
|
-
vErrors = [
|
|
4677
|
+
vErrors = [err11];
|
|
4592
4678
|
}
|
|
4593
4679
|
else {
|
|
4594
|
-
vErrors.push(
|
|
4680
|
+
vErrors.push(err11);
|
|
4595
4681
|
}
|
|
4596
4682
|
errors++;
|
|
4597
4683
|
}
|
|
4598
4684
|
else {
|
|
4599
|
-
errors =
|
|
4685
|
+
errors = _errs32;
|
|
4600
4686
|
if (vErrors !== null) {
|
|
4601
|
-
if (
|
|
4602
|
-
vErrors.length =
|
|
4687
|
+
if (_errs32) {
|
|
4688
|
+
vErrors.length = _errs32;
|
|
4603
4689
|
}
|
|
4604
4690
|
else {
|
|
4605
4691
|
vErrors = null;
|
|
4606
4692
|
}
|
|
4607
4693
|
}
|
|
4608
4694
|
}
|
|
4609
|
-
var
|
|
4610
|
-
if (
|
|
4611
|
-
|
|
4612
|
-
|
|
4695
|
+
var _valid5 = _errs30 === errors;
|
|
4696
|
+
if (_valid5) {
|
|
4697
|
+
valid8 = true;
|
|
4698
|
+
passing1 = 0;
|
|
4613
4699
|
}
|
|
4614
|
-
if (!
|
|
4615
|
-
const
|
|
4700
|
+
if (!valid8) {
|
|
4701
|
+
const err12 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/properties/minRemainingSize/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
4616
4702
|
if (vErrors === null) {
|
|
4617
|
-
vErrors = [
|
|
4703
|
+
vErrors = [err12];
|
|
4618
4704
|
}
|
|
4619
4705
|
else {
|
|
4620
|
-
vErrors.push(
|
|
4706
|
+
vErrors.push(err12);
|
|
4621
4707
|
}
|
|
4622
4708
|
errors++;
|
|
4623
4709
|
validate72.errors = vErrors;
|
|
4624
4710
|
return false;
|
|
4625
4711
|
}
|
|
4626
4712
|
else {
|
|
4627
|
-
errors =
|
|
4713
|
+
errors = _errs29;
|
|
4628
4714
|
if (vErrors !== null) {
|
|
4629
|
-
if (
|
|
4630
|
-
vErrors.length =
|
|
4715
|
+
if (_errs29) {
|
|
4716
|
+
vErrors.length = _errs29;
|
|
4631
4717
|
}
|
|
4632
4718
|
else {
|
|
4633
4719
|
vErrors = null;
|
|
4634
4720
|
}
|
|
4635
4721
|
}
|
|
4636
4722
|
}
|
|
4637
|
-
var valid0 =
|
|
4723
|
+
var valid0 = _errs28 === errors;
|
|
4638
4724
|
}
|
|
4639
4725
|
else {
|
|
4640
4726
|
var valid0 = true;
|
|
4641
4727
|
}
|
|
4728
|
+
if (valid0) {
|
|
4729
|
+
if (data.minSize !== undefined) {
|
|
4730
|
+
let data9 = data.minSize;
|
|
4731
|
+
const _errs35 = errors;
|
|
4732
|
+
const _errs36 = errors;
|
|
4733
|
+
let valid11 = false;
|
|
4734
|
+
let passing2 = null;
|
|
4735
|
+
const _errs37 = errors;
|
|
4736
|
+
const _errs39 = errors;
|
|
4737
|
+
let valid13 = false;
|
|
4738
|
+
const _errs40 = errors;
|
|
4739
|
+
if (errors === _errs40) {
|
|
4740
|
+
if (typeof data9 == "number") {
|
|
4741
|
+
if (data9 < 0 || isNaN(data9)) {
|
|
4742
|
+
const err13 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4743
|
+
if (vErrors === null) {
|
|
4744
|
+
vErrors = [err13];
|
|
4745
|
+
}
|
|
4746
|
+
else {
|
|
4747
|
+
vErrors.push(err13);
|
|
4748
|
+
}
|
|
4749
|
+
errors++;
|
|
4750
|
+
}
|
|
4751
|
+
}
|
|
4752
|
+
else {
|
|
4753
|
+
const err14 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4754
|
+
if (vErrors === null) {
|
|
4755
|
+
vErrors = [err14];
|
|
4756
|
+
}
|
|
4757
|
+
else {
|
|
4758
|
+
vErrors.push(err14);
|
|
4759
|
+
}
|
|
4760
|
+
errors++;
|
|
4761
|
+
}
|
|
4762
|
+
}
|
|
4763
|
+
var _valid8 = _errs40 === errors;
|
|
4764
|
+
valid13 = valid13 || _valid8;
|
|
4765
|
+
if (!valid13) {
|
|
4766
|
+
const err15 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4767
|
+
if (vErrors === null) {
|
|
4768
|
+
vErrors = [err15];
|
|
4769
|
+
}
|
|
4770
|
+
else {
|
|
4771
|
+
vErrors.push(err15);
|
|
4772
|
+
}
|
|
4773
|
+
errors++;
|
|
4774
|
+
}
|
|
4775
|
+
else {
|
|
4776
|
+
errors = _errs39;
|
|
4777
|
+
if (vErrors !== null) {
|
|
4778
|
+
if (_errs39) {
|
|
4779
|
+
vErrors.length = _errs39;
|
|
4780
|
+
}
|
|
4781
|
+
else {
|
|
4782
|
+
vErrors = null;
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
}
|
|
4786
|
+
var _valid7 = _errs37 === errors;
|
|
4787
|
+
if (_valid7) {
|
|
4788
|
+
valid11 = true;
|
|
4789
|
+
passing2 = 0;
|
|
4790
|
+
}
|
|
4791
|
+
if (!valid11) {
|
|
4792
|
+
const err16 = { instancePath: instancePath + "/minSize", schemaPath: "#/properties/minSize/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
|
|
4793
|
+
if (vErrors === null) {
|
|
4794
|
+
vErrors = [err16];
|
|
4795
|
+
}
|
|
4796
|
+
else {
|
|
4797
|
+
vErrors.push(err16);
|
|
4798
|
+
}
|
|
4799
|
+
errors++;
|
|
4800
|
+
validate72.errors = vErrors;
|
|
4801
|
+
return false;
|
|
4802
|
+
}
|
|
4803
|
+
else {
|
|
4804
|
+
errors = _errs36;
|
|
4805
|
+
if (vErrors !== null) {
|
|
4806
|
+
if (_errs36) {
|
|
4807
|
+
vErrors.length = _errs36;
|
|
4808
|
+
}
|
|
4809
|
+
else {
|
|
4810
|
+
vErrors = null;
|
|
4811
|
+
}
|
|
4812
|
+
}
|
|
4813
|
+
}
|
|
4814
|
+
var valid0 = _errs35 === errors;
|
|
4815
|
+
}
|
|
4816
|
+
else {
|
|
4817
|
+
var valid0 = true;
|
|
4818
|
+
}
|
|
4819
|
+
if (valid0) {
|
|
4820
|
+
if (data.reuseExistingChunk !== undefined) {
|
|
4821
|
+
const _errs42 = errors;
|
|
4822
|
+
if (typeof data.reuseExistingChunk !== "boolean") {
|
|
4823
|
+
validate72.errors = [{ instancePath: instancePath + "/reuseExistingChunk", schemaPath: "#/properties/reuseExistingChunk/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
4824
|
+
return false;
|
|
4825
|
+
}
|
|
4826
|
+
var valid0 = _errs42 === errors;
|
|
4827
|
+
}
|
|
4828
|
+
else {
|
|
4829
|
+
var valid0 = true;
|
|
4830
|
+
}
|
|
4831
|
+
}
|
|
4832
|
+
}
|
|
4642
4833
|
}
|
|
4643
4834
|
}
|
|
4644
4835
|
}
|
|
@@ -4657,7 +4848,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4657
4848
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4658
4849
|
const _errs1 = errors;
|
|
4659
4850
|
for (const key0 in data) {
|
|
4660
|
-
if (!((
|
|
4851
|
+
if (!(func2.call(schema60.properties, key0))) {
|
|
4661
4852
|
validate71.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
4662
4853
|
return false;
|
|
4663
4854
|
break;
|
|
@@ -4839,274 +5030,300 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4839
5030
|
var valid0 = true;
|
|
4840
5031
|
}
|
|
4841
5032
|
if (valid0) {
|
|
4842
|
-
if (data.
|
|
4843
|
-
let data7 = data.runtimeChunk;
|
|
5033
|
+
if (data.removeEmptyChunks !== undefined) {
|
|
4844
5034
|
const _errs20 = errors;
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
if (data7 !== "single" && data7 !== "multiple") {
|
|
4849
|
-
const err6 = { instancePath: instancePath + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
4850
|
-
if (vErrors === null) {
|
|
4851
|
-
vErrors = [err6];
|
|
4852
|
-
}
|
|
4853
|
-
else {
|
|
4854
|
-
vErrors.push(err6);
|
|
4855
|
-
}
|
|
4856
|
-
errors++;
|
|
5035
|
+
if (typeof data.removeEmptyChunks !== "boolean") {
|
|
5036
|
+
validate71.errors = [{ instancePath: instancePath + "/removeEmptyChunks", schemaPath: "#/properties/removeEmptyChunks/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
5037
|
+
return false;
|
|
4857
5038
|
}
|
|
4858
|
-
var
|
|
4859
|
-
|
|
4860
|
-
|
|
5039
|
+
var valid0 = _errs20 === errors;
|
|
5040
|
+
}
|
|
5041
|
+
else {
|
|
5042
|
+
var valid0 = true;
|
|
5043
|
+
}
|
|
5044
|
+
if (valid0) {
|
|
5045
|
+
if (data.runtimeChunk !== undefined) {
|
|
5046
|
+
let data8 = data.runtimeChunk;
|
|
5047
|
+
const _errs22 = errors;
|
|
4861
5048
|
const _errs24 = errors;
|
|
4862
|
-
|
|
4863
|
-
|
|
5049
|
+
let valid7 = false;
|
|
5050
|
+
const _errs25 = errors;
|
|
5051
|
+
if (data8 !== "single" && data8 !== "multiple") {
|
|
5052
|
+
const err6 = { instancePath: instancePath + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
4864
5053
|
if (vErrors === null) {
|
|
4865
|
-
vErrors = [
|
|
5054
|
+
vErrors = [err6];
|
|
4866
5055
|
}
|
|
4867
5056
|
else {
|
|
4868
|
-
vErrors.push(
|
|
5057
|
+
vErrors.push(err6);
|
|
4869
5058
|
}
|
|
4870
5059
|
errors++;
|
|
4871
5060
|
}
|
|
4872
|
-
var _valid1 =
|
|
5061
|
+
var _valid1 = _errs25 === errors;
|
|
4873
5062
|
valid7 = valid7 || _valid1;
|
|
4874
5063
|
if (!valid7) {
|
|
4875
5064
|
const _errs26 = errors;
|
|
4876
|
-
if (
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
let valid9 = false;
|
|
4897
|
-
const _errs31 = errors;
|
|
4898
|
-
if (typeof data8 !== "string") {
|
|
4899
|
-
const err9 = { instancePath: instancePath + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5065
|
+
if (typeof data8 !== "boolean") {
|
|
5066
|
+
const err7 = { instancePath: instancePath + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
5067
|
+
if (vErrors === null) {
|
|
5068
|
+
vErrors = [err7];
|
|
5069
|
+
}
|
|
5070
|
+
else {
|
|
5071
|
+
vErrors.push(err7);
|
|
5072
|
+
}
|
|
5073
|
+
errors++;
|
|
5074
|
+
}
|
|
5075
|
+
var _valid1 = _errs26 === errors;
|
|
5076
|
+
valid7 = valid7 || _valid1;
|
|
5077
|
+
if (!valid7) {
|
|
5078
|
+
const _errs28 = errors;
|
|
5079
|
+
if (errors === _errs28) {
|
|
5080
|
+
if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
|
|
5081
|
+
const _errs30 = errors;
|
|
5082
|
+
for (const key1 in data8) {
|
|
5083
|
+
if (!(key1 === "name")) {
|
|
5084
|
+
const err8 = { instancePath: instancePath + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
4900
5085
|
if (vErrors === null) {
|
|
4901
|
-
vErrors = [
|
|
5086
|
+
vErrors = [err8];
|
|
4902
5087
|
}
|
|
4903
5088
|
else {
|
|
4904
|
-
vErrors.push(
|
|
5089
|
+
vErrors.push(err8);
|
|
4905
5090
|
}
|
|
4906
5091
|
errors++;
|
|
5092
|
+
break;
|
|
4907
5093
|
}
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
if (
|
|
5094
|
+
}
|
|
5095
|
+
if (_errs30 === errors) {
|
|
5096
|
+
if (data8.name !== undefined) {
|
|
5097
|
+
let data9 = data8.name;
|
|
5098
|
+
const _errs32 = errors;
|
|
5099
|
+
let valid9 = false;
|
|
4911
5100
|
const _errs33 = errors;
|
|
4912
|
-
if (
|
|
4913
|
-
const
|
|
5101
|
+
if (typeof data9 !== "string") {
|
|
5102
|
+
const err9 = { instancePath: instancePath + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4914
5103
|
if (vErrors === null) {
|
|
4915
|
-
vErrors = [
|
|
5104
|
+
vErrors = [err9];
|
|
4916
5105
|
}
|
|
4917
5106
|
else {
|
|
4918
|
-
vErrors.push(
|
|
5107
|
+
vErrors.push(err9);
|
|
4919
5108
|
}
|
|
4920
5109
|
errors++;
|
|
4921
5110
|
}
|
|
4922
5111
|
var _valid2 = _errs33 === errors;
|
|
4923
5112
|
valid9 = valid9 || _valid2;
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
5113
|
+
if (!valid9) {
|
|
5114
|
+
const _errs35 = errors;
|
|
5115
|
+
if (!(data9 instanceof Function)) {
|
|
5116
|
+
const err10 = { instancePath: instancePath + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
5117
|
+
if (vErrors === null) {
|
|
5118
|
+
vErrors = [err10];
|
|
5119
|
+
}
|
|
5120
|
+
else {
|
|
5121
|
+
vErrors.push(err10);
|
|
5122
|
+
}
|
|
5123
|
+
errors++;
|
|
5124
|
+
}
|
|
5125
|
+
var _valid2 = _errs35 === errors;
|
|
5126
|
+
valid9 = valid9 || _valid2;
|
|
4932
5127
|
}
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
if (vErrors !== null) {
|
|
4938
|
-
if (_errs30) {
|
|
4939
|
-
vErrors.length = _errs30;
|
|
5128
|
+
if (!valid9) {
|
|
5129
|
+
const err11 = { instancePath: instancePath + "/runtimeChunk/name", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/properties/name/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
5130
|
+
if (vErrors === null) {
|
|
5131
|
+
vErrors = [err11];
|
|
4940
5132
|
}
|
|
4941
5133
|
else {
|
|
4942
|
-
vErrors
|
|
5134
|
+
vErrors.push(err11);
|
|
4943
5135
|
}
|
|
5136
|
+
errors++;
|
|
4944
5137
|
}
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
else {
|
|
4970
|
-
vErrors.push(err13);
|
|
4971
|
-
}
|
|
4972
|
-
errors++;
|
|
4973
|
-
validate71.errors = vErrors;
|
|
4974
|
-
return false;
|
|
4975
|
-
}
|
|
4976
|
-
else {
|
|
4977
|
-
errors = _errs22;
|
|
4978
|
-
if (vErrors !== null) {
|
|
4979
|
-
if (_errs22) {
|
|
4980
|
-
vErrors.length = _errs22;
|
|
4981
|
-
}
|
|
4982
|
-
else {
|
|
4983
|
-
vErrors = null;
|
|
4984
|
-
}
|
|
4985
|
-
}
|
|
4986
|
-
}
|
|
4987
|
-
var valid0 = _errs20 === errors;
|
|
4988
|
-
}
|
|
4989
|
-
else {
|
|
4990
|
-
var valid0 = true;
|
|
4991
|
-
}
|
|
4992
|
-
if (valid0) {
|
|
4993
|
-
if (data.sideEffects !== undefined) {
|
|
4994
|
-
let data9 = data.sideEffects;
|
|
4995
|
-
const _errs34 = errors;
|
|
4996
|
-
const _errs35 = errors;
|
|
4997
|
-
let valid10 = false;
|
|
4998
|
-
const _errs36 = errors;
|
|
4999
|
-
if (data9 !== "flag") {
|
|
5000
|
-
const err14 = { instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
5001
|
-
if (vErrors === null) {
|
|
5002
|
-
vErrors = [err14];
|
|
5003
|
-
}
|
|
5004
|
-
else {
|
|
5005
|
-
vErrors.push(err14);
|
|
5006
|
-
}
|
|
5007
|
-
errors++;
|
|
5008
|
-
}
|
|
5009
|
-
var _valid3 = _errs36 === errors;
|
|
5010
|
-
valid10 = valid10 || _valid3;
|
|
5011
|
-
if (!valid10) {
|
|
5012
|
-
const _errs37 = errors;
|
|
5013
|
-
if (typeof data9 !== "boolean") {
|
|
5014
|
-
const err15 = { instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
5015
|
-
if (vErrors === null) {
|
|
5016
|
-
vErrors = [err15];
|
|
5017
|
-
}
|
|
5018
|
-
else {
|
|
5019
|
-
vErrors.push(err15);
|
|
5138
|
+
else {
|
|
5139
|
+
errors = _errs32;
|
|
5140
|
+
if (vErrors !== null) {
|
|
5141
|
+
if (_errs32) {
|
|
5142
|
+
vErrors.length = _errs32;
|
|
5143
|
+
}
|
|
5144
|
+
else {
|
|
5145
|
+
vErrors = null;
|
|
5146
|
+
}
|
|
5147
|
+
}
|
|
5148
|
+
}
|
|
5149
|
+
}
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
5152
|
+
else {
|
|
5153
|
+
const err12 = { instancePath: instancePath + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5154
|
+
if (vErrors === null) {
|
|
5155
|
+
vErrors = [err12];
|
|
5156
|
+
}
|
|
5157
|
+
else {
|
|
5158
|
+
vErrors.push(err12);
|
|
5159
|
+
}
|
|
5160
|
+
errors++;
|
|
5161
|
+
}
|
|
5020
5162
|
}
|
|
5021
|
-
errors
|
|
5163
|
+
var _valid1 = _errs28 === errors;
|
|
5164
|
+
valid7 = valid7 || _valid1;
|
|
5022
5165
|
}
|
|
5023
|
-
var _valid3 = _errs37 === errors;
|
|
5024
|
-
valid10 = valid10 || _valid3;
|
|
5025
5166
|
}
|
|
5026
|
-
if (!
|
|
5027
|
-
const
|
|
5167
|
+
if (!valid7) {
|
|
5168
|
+
const err13 = { instancePath: instancePath + "/runtimeChunk", schemaPath: "#/definitions/OptimizationRuntimeChunk/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
5028
5169
|
if (vErrors === null) {
|
|
5029
|
-
vErrors = [
|
|
5170
|
+
vErrors = [err13];
|
|
5030
5171
|
}
|
|
5031
5172
|
else {
|
|
5032
|
-
vErrors.push(
|
|
5173
|
+
vErrors.push(err13);
|
|
5033
5174
|
}
|
|
5034
5175
|
errors++;
|
|
5035
5176
|
validate71.errors = vErrors;
|
|
5036
5177
|
return false;
|
|
5037
5178
|
}
|
|
5038
5179
|
else {
|
|
5039
|
-
errors =
|
|
5180
|
+
errors = _errs24;
|
|
5040
5181
|
if (vErrors !== null) {
|
|
5041
|
-
if (
|
|
5042
|
-
vErrors.length =
|
|
5182
|
+
if (_errs24) {
|
|
5183
|
+
vErrors.length = _errs24;
|
|
5043
5184
|
}
|
|
5044
5185
|
else {
|
|
5045
5186
|
vErrors = null;
|
|
5046
5187
|
}
|
|
5047
5188
|
}
|
|
5048
5189
|
}
|
|
5049
|
-
var valid0 =
|
|
5190
|
+
var valid0 = _errs22 === errors;
|
|
5050
5191
|
}
|
|
5051
5192
|
else {
|
|
5052
5193
|
var valid0 = true;
|
|
5053
5194
|
}
|
|
5054
5195
|
if (valid0) {
|
|
5055
|
-
if (data.
|
|
5056
|
-
let data10 = data.
|
|
5057
|
-
const
|
|
5058
|
-
const
|
|
5059
|
-
let
|
|
5060
|
-
const
|
|
5061
|
-
if (data10 !==
|
|
5062
|
-
const
|
|
5196
|
+
if (data.sideEffects !== undefined) {
|
|
5197
|
+
let data10 = data.sideEffects;
|
|
5198
|
+
const _errs36 = errors;
|
|
5199
|
+
const _errs37 = errors;
|
|
5200
|
+
let valid10 = false;
|
|
5201
|
+
const _errs38 = errors;
|
|
5202
|
+
if (data10 !== "flag") {
|
|
5203
|
+
const err14 = { instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
5063
5204
|
if (vErrors === null) {
|
|
5064
|
-
vErrors = [
|
|
5205
|
+
vErrors = [err14];
|
|
5065
5206
|
}
|
|
5066
5207
|
else {
|
|
5067
|
-
vErrors.push(
|
|
5208
|
+
vErrors.push(err14);
|
|
5068
5209
|
}
|
|
5069
5210
|
errors++;
|
|
5070
5211
|
}
|
|
5071
|
-
var
|
|
5072
|
-
|
|
5073
|
-
if (!
|
|
5074
|
-
const
|
|
5075
|
-
if (
|
|
5076
|
-
|
|
5077
|
-
|
|
5212
|
+
var _valid3 = _errs38 === errors;
|
|
5213
|
+
valid10 = valid10 || _valid3;
|
|
5214
|
+
if (!valid10) {
|
|
5215
|
+
const _errs39 = errors;
|
|
5216
|
+
if (typeof data10 !== "boolean") {
|
|
5217
|
+
const err15 = { instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
5218
|
+
if (vErrors === null) {
|
|
5219
|
+
vErrors = [err15];
|
|
5220
|
+
}
|
|
5221
|
+
else {
|
|
5222
|
+
vErrors.push(err15);
|
|
5223
|
+
}
|
|
5224
|
+
errors++;
|
|
5078
5225
|
}
|
|
5079
|
-
var
|
|
5080
|
-
|
|
5226
|
+
var _valid3 = _errs39 === errors;
|
|
5227
|
+
valid10 = valid10 || _valid3;
|
|
5081
5228
|
}
|
|
5082
|
-
if (!
|
|
5083
|
-
const
|
|
5229
|
+
if (!valid10) {
|
|
5230
|
+
const err16 = { instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
5084
5231
|
if (vErrors === null) {
|
|
5085
|
-
vErrors = [
|
|
5232
|
+
vErrors = [err16];
|
|
5086
5233
|
}
|
|
5087
5234
|
else {
|
|
5088
|
-
vErrors.push(
|
|
5235
|
+
vErrors.push(err16);
|
|
5089
5236
|
}
|
|
5090
5237
|
errors++;
|
|
5091
5238
|
validate71.errors = vErrors;
|
|
5092
5239
|
return false;
|
|
5093
5240
|
}
|
|
5094
5241
|
else {
|
|
5095
|
-
errors =
|
|
5242
|
+
errors = _errs37;
|
|
5096
5243
|
if (vErrors !== null) {
|
|
5097
|
-
if (
|
|
5098
|
-
vErrors.length =
|
|
5244
|
+
if (_errs37) {
|
|
5245
|
+
vErrors.length = _errs37;
|
|
5099
5246
|
}
|
|
5100
5247
|
else {
|
|
5101
5248
|
vErrors = null;
|
|
5102
5249
|
}
|
|
5103
5250
|
}
|
|
5104
5251
|
}
|
|
5105
|
-
var valid0 =
|
|
5252
|
+
var valid0 = _errs36 === errors;
|
|
5106
5253
|
}
|
|
5107
5254
|
else {
|
|
5108
5255
|
var valid0 = true;
|
|
5109
5256
|
}
|
|
5257
|
+
if (valid0) {
|
|
5258
|
+
if (data.splitChunks !== undefined) {
|
|
5259
|
+
let data11 = data.splitChunks;
|
|
5260
|
+
const _errs41 = errors;
|
|
5261
|
+
const _errs42 = errors;
|
|
5262
|
+
let valid11 = false;
|
|
5263
|
+
const _errs43 = errors;
|
|
5264
|
+
if (data11 !== false) {
|
|
5265
|
+
const err17 = { instancePath: instancePath + "/splitChunks", schemaPath: "#/properties/splitChunks/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
5266
|
+
if (vErrors === null) {
|
|
5267
|
+
vErrors = [err17];
|
|
5268
|
+
}
|
|
5269
|
+
else {
|
|
5270
|
+
vErrors.push(err17);
|
|
5271
|
+
}
|
|
5272
|
+
errors++;
|
|
5273
|
+
}
|
|
5274
|
+
var _valid4 = _errs43 === errors;
|
|
5275
|
+
valid11 = valid11 || _valid4;
|
|
5276
|
+
if (!valid11) {
|
|
5277
|
+
const _errs44 = errors;
|
|
5278
|
+
if (!(validate72(data11, { instancePath: instancePath + "/splitChunks", parentData: data, parentDataProperty: "splitChunks", rootData }))) {
|
|
5279
|
+
vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
|
|
5280
|
+
errors = vErrors.length;
|
|
5281
|
+
}
|
|
5282
|
+
var _valid4 = _errs44 === errors;
|
|
5283
|
+
valid11 = valid11 || _valid4;
|
|
5284
|
+
}
|
|
5285
|
+
if (!valid11) {
|
|
5286
|
+
const err18 = { instancePath: instancePath + "/splitChunks", schemaPath: "#/properties/splitChunks/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
5287
|
+
if (vErrors === null) {
|
|
5288
|
+
vErrors = [err18];
|
|
5289
|
+
}
|
|
5290
|
+
else {
|
|
5291
|
+
vErrors.push(err18);
|
|
5292
|
+
}
|
|
5293
|
+
errors++;
|
|
5294
|
+
validate71.errors = vErrors;
|
|
5295
|
+
return false;
|
|
5296
|
+
}
|
|
5297
|
+
else {
|
|
5298
|
+
errors = _errs42;
|
|
5299
|
+
if (vErrors !== null) {
|
|
5300
|
+
if (_errs42) {
|
|
5301
|
+
vErrors.length = _errs42;
|
|
5302
|
+
}
|
|
5303
|
+
else {
|
|
5304
|
+
vErrors = null;
|
|
5305
|
+
}
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5308
|
+
var valid0 = _errs41 === errors;
|
|
5309
|
+
}
|
|
5310
|
+
else {
|
|
5311
|
+
var valid0 = true;
|
|
5312
|
+
}
|
|
5313
|
+
if (valid0) {
|
|
5314
|
+
if (data.realContentHash !== undefined) {
|
|
5315
|
+
const _errs45 = errors;
|
|
5316
|
+
if (typeof data.realContentHash !== "boolean") {
|
|
5317
|
+
validate71.errors = [{ instancePath: instancePath + "/realContentHash", schemaPath: "#/properties/realContentHash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
5318
|
+
return false;
|
|
5319
|
+
}
|
|
5320
|
+
var valid0 = _errs45 === errors;
|
|
5321
|
+
}
|
|
5322
|
+
else {
|
|
5323
|
+
var valid0 = true;
|
|
5324
|
+
}
|
|
5325
|
+
}
|
|
5326
|
+
}
|
|
5110
5327
|
}
|
|
5111
5328
|
}
|
|
5112
5329
|
}
|
|
@@ -5121,27 +5338,27 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5121
5338
|
return false;
|
|
5122
5339
|
}
|
|
5123
5340
|
} validate71.errors = vErrors; return errors === 0; }
|
|
5124
|
-
const
|
|
5125
|
-
const
|
|
5126
|
-
const
|
|
5127
|
-
const
|
|
5128
|
-
const
|
|
5129
|
-
const
|
|
5130
|
-
const
|
|
5131
|
-
const
|
|
5132
|
-
const
|
|
5133
|
-
const
|
|
5134
|
-
const
|
|
5135
|
-
const
|
|
5136
|
-
const
|
|
5137
|
-
const
|
|
5138
|
-
const
|
|
5139
|
-
const
|
|
5140
|
-
const
|
|
5141
|
-
const
|
|
5142
|
-
const
|
|
5143
|
-
const
|
|
5144
|
-
function
|
|
5341
|
+
const schema70 = { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] }, "sourceMapFilename": { "$ref": "#/definitions/SourceMapFilename" } } };
|
|
5342
|
+
const schema71 = { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" };
|
|
5343
|
+
const schema72 = { "description": "Clears the output build directory", "type": "boolean" };
|
|
5344
|
+
const schema73 = { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] };
|
|
5345
|
+
const schema76 = { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] };
|
|
5346
|
+
const schema83 = { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] };
|
|
5347
|
+
const schema90 = { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" };
|
|
5348
|
+
const schema95 = { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 };
|
|
5349
|
+
const schema96 = { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" };
|
|
5350
|
+
const schema101 = { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] };
|
|
5351
|
+
const schema92 = { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] };
|
|
5352
|
+
const schema106 = { "description": "Output javascript files as module source type.", "type": "boolean" };
|
|
5353
|
+
const schema107 = { "description": "The output directory as **absolute path** (required).", "type": "string" };
|
|
5354
|
+
const schema110 = { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" };
|
|
5355
|
+
const schema103 = { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" };
|
|
5356
|
+
const schema112 = { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 };
|
|
5357
|
+
const schema113 = { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 };
|
|
5358
|
+
const schema114 = { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } };
|
|
5359
|
+
const schema74 = { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] };
|
|
5360
|
+
const schema75 = { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } };
|
|
5361
|
+
function validate78(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (typeof data !== "string") {
|
|
5145
5362
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5146
5363
|
if (vErrors === null) {
|
|
5147
5364
|
vErrors = [err0];
|
|
@@ -5268,7 +5485,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5268
5485
|
vErrors.push(err7);
|
|
5269
5486
|
}
|
|
5270
5487
|
errors++;
|
|
5271
|
-
|
|
5488
|
+
validate78.errors = vErrors;
|
|
5272
5489
|
return false;
|
|
5273
5490
|
}
|
|
5274
5491
|
else {
|
|
@@ -5281,10 +5498,10 @@ else {
|
|
|
5281
5498
|
vErrors = null;
|
|
5282
5499
|
}
|
|
5283
5500
|
}
|
|
5284
|
-
}
|
|
5285
|
-
const
|
|
5286
|
-
const
|
|
5287
|
-
function
|
|
5501
|
+
} validate78.errors = vErrors; return errors === 0; }
|
|
5502
|
+
const schema77 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] };
|
|
5503
|
+
const schema78 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] };
|
|
5504
|
+
function validate80(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== false) {
|
|
5288
5505
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
5289
5506
|
if (vErrors === null) {
|
|
5290
5507
|
vErrors = [err0];
|
|
@@ -5357,7 +5574,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5357
5574
|
vErrors.push(err4);
|
|
5358
5575
|
}
|
|
5359
5576
|
errors++;
|
|
5360
|
-
|
|
5577
|
+
validate80.errors = vErrors;
|
|
5361
5578
|
return false;
|
|
5362
5579
|
}
|
|
5363
5580
|
else {
|
|
@@ -5370,9 +5587,9 @@ else {
|
|
|
5370
5587
|
vErrors = null;
|
|
5371
5588
|
}
|
|
5372
5589
|
}
|
|
5373
|
-
}
|
|
5374
|
-
const
|
|
5375
|
-
function
|
|
5590
|
+
} validate80.errors = vErrors; return errors === 0; }
|
|
5591
|
+
const schema79 = { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } };
|
|
5592
|
+
function validate82(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5376
5593
|
if (Array.isArray(data)) {
|
|
5377
5594
|
var valid0 = true;
|
|
5378
5595
|
const len0 = data.length;
|
|
@@ -5418,7 +5635,7 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5418
5635
|
vErrors.push(err2);
|
|
5419
5636
|
}
|
|
5420
5637
|
errors++;
|
|
5421
|
-
|
|
5638
|
+
validate82.errors = vErrors;
|
|
5422
5639
|
return false;
|
|
5423
5640
|
}
|
|
5424
5641
|
else {
|
|
@@ -5439,13 +5656,13 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5439
5656
|
}
|
|
5440
5657
|
}
|
|
5441
5658
|
else {
|
|
5442
|
-
|
|
5659
|
+
validate82.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5443
5660
|
return false;
|
|
5444
5661
|
}
|
|
5445
|
-
}
|
|
5446
|
-
const
|
|
5447
|
-
const
|
|
5448
|
-
function
|
|
5662
|
+
} validate82.errors = vErrors; return errors === 0; }
|
|
5663
|
+
const schema81 = { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
5664
|
+
const schema82 = { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] };
|
|
5665
|
+
function validate84(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
5449
5666
|
if (typeof data === "string") {
|
|
5450
5667
|
if (data.length < 1) {
|
|
5451
5668
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5514,7 +5731,7 @@ else {
|
|
|
5514
5731
|
vErrors.push(err4);
|
|
5515
5732
|
}
|
|
5516
5733
|
errors++;
|
|
5517
|
-
|
|
5734
|
+
validate84.errors = vErrors;
|
|
5518
5735
|
return false;
|
|
5519
5736
|
}
|
|
5520
5737
|
else {
|
|
@@ -5527,9 +5744,9 @@ else {
|
|
|
5527
5744
|
vErrors = null;
|
|
5528
5745
|
}
|
|
5529
5746
|
}
|
|
5530
|
-
}
|
|
5531
|
-
const
|
|
5532
|
-
function
|
|
5747
|
+
} validate84.errors = vErrors; return errors === 0; }
|
|
5748
|
+
const schema84 = { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
5749
|
+
function validate86(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
5533
5750
|
if (typeof data === "string") {
|
|
5534
5751
|
if (data.length < 1) {
|
|
5535
5752
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5598,7 +5815,7 @@ else {
|
|
|
5598
5815
|
vErrors.push(err4);
|
|
5599
5816
|
}
|
|
5600
5817
|
errors++;
|
|
5601
|
-
|
|
5818
|
+
validate86.errors = vErrors;
|
|
5602
5819
|
return false;
|
|
5603
5820
|
}
|
|
5604
5821
|
else {
|
|
@@ -5611,9 +5828,9 @@ else {
|
|
|
5611
5828
|
vErrors = null;
|
|
5612
5829
|
}
|
|
5613
5830
|
}
|
|
5614
|
-
}
|
|
5615
|
-
const
|
|
5616
|
-
function
|
|
5831
|
+
} validate86.errors = vErrors; return errors === 0; }
|
|
5832
|
+
const schema86 = { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
5833
|
+
function validate88(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
5617
5834
|
if (typeof data === "string") {
|
|
5618
5835
|
if (data.length < 1) {
|
|
5619
5836
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5682,7 +5899,7 @@ else {
|
|
|
5682
5899
|
vErrors.push(err4);
|
|
5683
5900
|
}
|
|
5684
5901
|
errors++;
|
|
5685
|
-
|
|
5902
|
+
validate88.errors = vErrors;
|
|
5686
5903
|
return false;
|
|
5687
5904
|
}
|
|
5688
5905
|
else {
|
|
@@ -5695,9 +5912,9 @@ else {
|
|
|
5695
5912
|
vErrors = null;
|
|
5696
5913
|
}
|
|
5697
5914
|
}
|
|
5698
|
-
}
|
|
5699
|
-
const
|
|
5700
|
-
function
|
|
5915
|
+
} validate88.errors = vErrors; return errors === 0; }
|
|
5916
|
+
const schema88 = { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } };
|
|
5917
|
+
function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5701
5918
|
if (Array.isArray(data)) {
|
|
5702
5919
|
var valid0 = true;
|
|
5703
5920
|
const len0 = data.length;
|
|
@@ -5743,7 +5960,7 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5743
5960
|
vErrors.push(err2);
|
|
5744
5961
|
}
|
|
5745
5962
|
errors++;
|
|
5746
|
-
|
|
5963
|
+
validate90.errors = vErrors;
|
|
5747
5964
|
return false;
|
|
5748
5965
|
}
|
|
5749
5966
|
else {
|
|
@@ -5764,12 +5981,12 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5764
5981
|
}
|
|
5765
5982
|
}
|
|
5766
5983
|
else {
|
|
5767
|
-
|
|
5984
|
+
validate90.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5768
5985
|
return false;
|
|
5769
5986
|
}
|
|
5770
|
-
}
|
|
5771
|
-
const
|
|
5772
|
-
function
|
|
5987
|
+
} validate90.errors = vErrors; return errors === 0; }
|
|
5988
|
+
const schema91 = { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } };
|
|
5989
|
+
function validate93(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5773
5990
|
if (Array.isArray(data)) {
|
|
5774
5991
|
var valid0 = true;
|
|
5775
5992
|
const len0 = data.length;
|
|
@@ -5815,7 +6032,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5815
6032
|
vErrors.push(err2);
|
|
5816
6033
|
}
|
|
5817
6034
|
errors++;
|
|
5818
|
-
|
|
6035
|
+
validate93.errors = vErrors;
|
|
5819
6036
|
return false;
|
|
5820
6037
|
}
|
|
5821
6038
|
else {
|
|
@@ -5836,12 +6053,12 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5836
6053
|
}
|
|
5837
6054
|
}
|
|
5838
6055
|
else {
|
|
5839
|
-
|
|
6056
|
+
validate93.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5840
6057
|
return false;
|
|
5841
6058
|
}
|
|
5842
|
-
}
|
|
5843
|
-
const
|
|
5844
|
-
function
|
|
6059
|
+
} validate93.errors = vErrors; return errors === 0; }
|
|
6060
|
+
const schema93 = { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
6061
|
+
function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
5845
6062
|
if (typeof data === "string") {
|
|
5846
6063
|
if (data.length < 1) {
|
|
5847
6064
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5910,7 +6127,7 @@ else {
|
|
|
5910
6127
|
vErrors.push(err4);
|
|
5911
6128
|
}
|
|
5912
6129
|
errors++;
|
|
5913
|
-
|
|
6130
|
+
validate95.errors = vErrors;
|
|
5914
6131
|
return false;
|
|
5915
6132
|
}
|
|
5916
6133
|
else {
|
|
@@ -5923,11 +6140,11 @@ else {
|
|
|
5923
6140
|
vErrors = null;
|
|
5924
6141
|
}
|
|
5925
6142
|
}
|
|
5926
|
-
}
|
|
5927
|
-
const
|
|
5928
|
-
const
|
|
5929
|
-
const
|
|
5930
|
-
function
|
|
6143
|
+
} validate95.errors = vErrors; return errors === 0; }
|
|
6144
|
+
const schema97 = { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] };
|
|
6145
|
+
const schema98 = { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] };
|
|
6146
|
+
const schema99 = { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } };
|
|
6147
|
+
function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
|
|
5931
6148
|
if (Array.isArray(data)) {
|
|
5932
6149
|
if (data.length < 1) {
|
|
5933
6150
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
@@ -6238,7 +6455,7 @@ function validate96(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6238
6455
|
vErrors.push(err18);
|
|
6239
6456
|
}
|
|
6240
6457
|
errors++;
|
|
6241
|
-
|
|
6458
|
+
validate98.errors = vErrors;
|
|
6242
6459
|
return false;
|
|
6243
6460
|
}
|
|
6244
6461
|
else {
|
|
@@ -6251,20 +6468,20 @@ else {
|
|
|
6251
6468
|
vErrors = null;
|
|
6252
6469
|
}
|
|
6253
6470
|
}
|
|
6254
|
-
}
|
|
6255
|
-
const
|
|
6256
|
-
function
|
|
6471
|
+
} validate98.errors = vErrors; return errors === 0; }
|
|
6472
|
+
const schema100 = { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] };
|
|
6473
|
+
function validate100(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6257
6474
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6258
6475
|
let missing0;
|
|
6259
6476
|
if ((data.type === undefined) && (missing0 = "type")) {
|
|
6260
|
-
|
|
6477
|
+
validate100.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
6261
6478
|
return false;
|
|
6262
6479
|
}
|
|
6263
6480
|
else {
|
|
6264
6481
|
const _errs1 = errors;
|
|
6265
6482
|
for (const key0 in data) {
|
|
6266
6483
|
if (!(((((key0 === "auxiliaryComment") || (key0 === "export")) || (key0 === "name")) || (key0 === "type")) || (key0 === "umdNamedDefine"))) {
|
|
6267
|
-
|
|
6484
|
+
validate100.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
6268
6485
|
return false;
|
|
6269
6486
|
break;
|
|
6270
6487
|
}
|
|
@@ -6272,8 +6489,8 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6272
6489
|
if (_errs1 === errors) {
|
|
6273
6490
|
if (data.auxiliaryComment !== undefined) {
|
|
6274
6491
|
const _errs2 = errors;
|
|
6275
|
-
if (!(
|
|
6276
|
-
vErrors = vErrors === null ?
|
|
6492
|
+
if (!(validate78(data.auxiliaryComment, { instancePath: instancePath + "/auxiliaryComment", parentData: data, parentDataProperty: "auxiliaryComment", rootData }))) {
|
|
6493
|
+
vErrors = vErrors === null ? validate78.errors : vErrors.concat(validate78.errors);
|
|
6277
6494
|
errors = vErrors.length;
|
|
6278
6495
|
}
|
|
6279
6496
|
var valid0 = _errs2 === errors;
|
|
@@ -6376,7 +6593,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6376
6593
|
vErrors.push(err5);
|
|
6377
6594
|
}
|
|
6378
6595
|
errors++;
|
|
6379
|
-
|
|
6596
|
+
validate100.errors = vErrors;
|
|
6380
6597
|
return false;
|
|
6381
6598
|
}
|
|
6382
6599
|
else {
|
|
@@ -6398,8 +6615,8 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6398
6615
|
if (valid0) {
|
|
6399
6616
|
if (data.name !== undefined) {
|
|
6400
6617
|
const _errs12 = errors;
|
|
6401
|
-
if (!(
|
|
6402
|
-
vErrors = vErrors === null ?
|
|
6618
|
+
if (!(validate98(data.name, { instancePath: instancePath + "/name", parentData: data, parentDataProperty: "name", rootData }))) {
|
|
6619
|
+
vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
|
|
6403
6620
|
errors = vErrors.length;
|
|
6404
6621
|
}
|
|
6405
6622
|
var valid0 = _errs12 === errors;
|
|
@@ -6450,7 +6667,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6450
6667
|
vErrors.push(err8);
|
|
6451
6668
|
}
|
|
6452
6669
|
errors++;
|
|
6453
|
-
|
|
6670
|
+
validate100.errors = vErrors;
|
|
6454
6671
|
return false;
|
|
6455
6672
|
}
|
|
6456
6673
|
else {
|
|
@@ -6473,7 +6690,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6473
6690
|
if (data.umdNamedDefine !== undefined) {
|
|
6474
6691
|
const _errs19 = errors;
|
|
6475
6692
|
if (typeof data.umdNamedDefine !== "boolean") {
|
|
6476
|
-
|
|
6693
|
+
validate100.errors = [{ instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6477
6694
|
return false;
|
|
6478
6695
|
}
|
|
6479
6696
|
var valid0 = _errs19 === errors;
|
|
@@ -6489,17 +6706,17 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6489
6706
|
}
|
|
6490
6707
|
}
|
|
6491
6708
|
else {
|
|
6492
|
-
|
|
6709
|
+
validate100.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
6493
6710
|
return false;
|
|
6494
6711
|
}
|
|
6495
|
-
}
|
|
6496
|
-
function
|
|
6497
|
-
vErrors = vErrors === null ?
|
|
6712
|
+
} validate100.errors = vErrors; return errors === 0; }
|
|
6713
|
+
function validate97(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (!(validate98(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
6714
|
+
vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
|
|
6498
6715
|
errors = vErrors.length;
|
|
6499
6716
|
} var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
|
|
6500
6717
|
const _errs2 = errors;
|
|
6501
|
-
if (!(
|
|
6502
|
-
vErrors = vErrors === null ?
|
|
6718
|
+
if (!(validate100(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
6719
|
+
vErrors = vErrors === null ? validate100.errors : vErrors.concat(validate100.errors);
|
|
6503
6720
|
errors = vErrors.length;
|
|
6504
6721
|
}
|
|
6505
6722
|
var _valid0 = _errs2 === errors;
|
|
@@ -6513,7 +6730,7 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6513
6730
|
vErrors.push(err0);
|
|
6514
6731
|
}
|
|
6515
6732
|
errors++;
|
|
6516
|
-
|
|
6733
|
+
validate97.errors = vErrors;
|
|
6517
6734
|
return false;
|
|
6518
6735
|
}
|
|
6519
6736
|
else {
|
|
@@ -6526,10 +6743,10 @@ else {
|
|
|
6526
6743
|
vErrors = null;
|
|
6527
6744
|
}
|
|
6528
6745
|
}
|
|
6529
|
-
}
|
|
6530
|
-
const
|
|
6531
|
-
const
|
|
6532
|
-
function
|
|
6746
|
+
} validate97.errors = vErrors; return errors === 0; }
|
|
6747
|
+
const schema108 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] };
|
|
6748
|
+
const schema109 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] };
|
|
6749
|
+
function validate105(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "auto") {
|
|
6533
6750
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
6534
6751
|
if (vErrors === null) {
|
|
6535
6752
|
vErrors = [err0];
|
|
@@ -6587,7 +6804,91 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
6587
6804
|
vErrors.push(err3);
|
|
6588
6805
|
}
|
|
6589
6806
|
errors++;
|
|
6590
|
-
|
|
6807
|
+
validate105.errors = vErrors;
|
|
6808
|
+
return false;
|
|
6809
|
+
}
|
|
6810
|
+
else {
|
|
6811
|
+
errors = _errs0;
|
|
6812
|
+
if (vErrors !== null) {
|
|
6813
|
+
if (_errs0) {
|
|
6814
|
+
vErrors.length = _errs0;
|
|
6815
|
+
}
|
|
6816
|
+
else {
|
|
6817
|
+
vErrors = null;
|
|
6818
|
+
}
|
|
6819
|
+
}
|
|
6820
|
+
} validate105.errors = vErrors; return errors === 0; }
|
|
6821
|
+
const schema115 = { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
6822
|
+
function validate107(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
6823
|
+
if (typeof data === "string") {
|
|
6824
|
+
if (data.length < 1) {
|
|
6825
|
+
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
6826
|
+
if (vErrors === null) {
|
|
6827
|
+
vErrors = [err0];
|
|
6828
|
+
}
|
|
6829
|
+
else {
|
|
6830
|
+
vErrors.push(err0);
|
|
6831
|
+
}
|
|
6832
|
+
errors++;
|
|
6833
|
+
}
|
|
6834
|
+
}
|
|
6835
|
+
else {
|
|
6836
|
+
const err1 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6837
|
+
if (vErrors === null) {
|
|
6838
|
+
vErrors = [err1];
|
|
6839
|
+
}
|
|
6840
|
+
else {
|
|
6841
|
+
vErrors.push(err1);
|
|
6842
|
+
}
|
|
6843
|
+
errors++;
|
|
6844
|
+
}
|
|
6845
|
+
} var _valid1 = _errs4 === errors; valid2 = valid2 || _valid1; if (!valid2) {
|
|
6846
|
+
const _errs6 = errors;
|
|
6847
|
+
if (!(data instanceof Function)) {
|
|
6848
|
+
const err2 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
6849
|
+
if (vErrors === null) {
|
|
6850
|
+
vErrors = [err2];
|
|
6851
|
+
}
|
|
6852
|
+
else {
|
|
6853
|
+
vErrors.push(err2);
|
|
6854
|
+
}
|
|
6855
|
+
errors++;
|
|
6856
|
+
}
|
|
6857
|
+
var _valid1 = _errs6 === errors;
|
|
6858
|
+
valid2 = valid2 || _valid1;
|
|
6859
|
+
} if (!valid2) {
|
|
6860
|
+
const err3 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6861
|
+
if (vErrors === null) {
|
|
6862
|
+
vErrors = [err3];
|
|
6863
|
+
}
|
|
6864
|
+
else {
|
|
6865
|
+
vErrors.push(err3);
|
|
6866
|
+
}
|
|
6867
|
+
errors++;
|
|
6868
|
+
}
|
|
6869
|
+
else {
|
|
6870
|
+
errors = _errs3;
|
|
6871
|
+
if (vErrors !== null) {
|
|
6872
|
+
if (_errs3) {
|
|
6873
|
+
vErrors.length = _errs3;
|
|
6874
|
+
}
|
|
6875
|
+
else {
|
|
6876
|
+
vErrors = null;
|
|
6877
|
+
}
|
|
6878
|
+
}
|
|
6879
|
+
} var _valid0 = _errs1 === errors; if (_valid0) {
|
|
6880
|
+
valid0 = true;
|
|
6881
|
+
passing0 = 0;
|
|
6882
|
+
} if (!valid0) {
|
|
6883
|
+
const err4 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
6884
|
+
if (vErrors === null) {
|
|
6885
|
+
vErrors = [err4];
|
|
6886
|
+
}
|
|
6887
|
+
else {
|
|
6888
|
+
vErrors.push(err4);
|
|
6889
|
+
}
|
|
6890
|
+
errors++;
|
|
6891
|
+
validate107.errors = vErrors;
|
|
6591
6892
|
return false;
|
|
6592
6893
|
}
|
|
6593
6894
|
else {
|
|
@@ -6600,13 +6901,13 @@ else {
|
|
|
6600
6901
|
vErrors = null;
|
|
6601
6902
|
}
|
|
6602
6903
|
}
|
|
6603
|
-
}
|
|
6604
|
-
function
|
|
6904
|
+
} validate107.errors = vErrors; return errors === 0; }
|
|
6905
|
+
function validate77(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6605
6906
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6606
6907
|
const _errs1 = errors;
|
|
6607
6908
|
for (const key0 in data) {
|
|
6608
|
-
if (!(func2.call(
|
|
6609
|
-
|
|
6909
|
+
if (!(func2.call(schema70.properties, key0))) {
|
|
6910
|
+
validate77.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
6610
6911
|
return false;
|
|
6611
6912
|
break;
|
|
6612
6913
|
}
|
|
@@ -6615,7 +6916,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6615
6916
|
if (data.iife !== undefined) {
|
|
6616
6917
|
const _errs2 = errors;
|
|
6617
6918
|
if (typeof data.iife !== "boolean") {
|
|
6618
|
-
|
|
6919
|
+
validate77.errors = [{ instancePath: instancePath + "/iife", schemaPath: "#/definitions/Iife/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6619
6920
|
return false;
|
|
6620
6921
|
}
|
|
6621
6922
|
var valid0 = _errs2 === errors;
|
|
@@ -6627,7 +6928,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6627
6928
|
if (data.clean !== undefined) {
|
|
6628
6929
|
const _errs5 = errors;
|
|
6629
6930
|
if (typeof data.clean !== "boolean") {
|
|
6630
|
-
|
|
6931
|
+
validate77.errors = [{ instancePath: instancePath + "/clean", schemaPath: "#/definitions/Clean/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6631
6932
|
return false;
|
|
6632
6933
|
}
|
|
6633
6934
|
var valid0 = _errs5 === errors;
|
|
@@ -6662,7 +6963,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6662
6963
|
vErrors.push(err1);
|
|
6663
6964
|
}
|
|
6664
6965
|
errors++;
|
|
6665
|
-
|
|
6966
|
+
validate77.errors = vErrors;
|
|
6666
6967
|
return false;
|
|
6667
6968
|
}
|
|
6668
6969
|
else {
|
|
@@ -6688,8 +6989,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6688
6989
|
let valid5 = false;
|
|
6689
6990
|
let passing0 = null;
|
|
6690
6991
|
const _errs15 = errors;
|
|
6691
|
-
if (!(
|
|
6692
|
-
vErrors = vErrors === null ?
|
|
6992
|
+
if (!(validate78(data.auxiliaryComment, { instancePath: instancePath + "/auxiliaryComment", parentData: data, parentDataProperty: "auxiliaryComment", rootData }))) {
|
|
6993
|
+
vErrors = vErrors === null ? validate78.errors : vErrors.concat(validate78.errors);
|
|
6693
6994
|
errors = vErrors.length;
|
|
6694
6995
|
}
|
|
6695
6996
|
var _valid1 = _errs15 === errors;
|
|
@@ -6706,7 +7007,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6706
7007
|
vErrors.push(err2);
|
|
6707
7008
|
}
|
|
6708
7009
|
errors++;
|
|
6709
|
-
|
|
7010
|
+
validate77.errors = vErrors;
|
|
6710
7011
|
return false;
|
|
6711
7012
|
}
|
|
6712
7013
|
else {
|
|
@@ -6768,7 +7069,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6768
7069
|
vErrors.push(err5);
|
|
6769
7070
|
}
|
|
6770
7071
|
errors++;
|
|
6771
|
-
|
|
7072
|
+
validate77.errors = vErrors;
|
|
6772
7073
|
return false;
|
|
6773
7074
|
}
|
|
6774
7075
|
else {
|
|
@@ -6790,8 +7091,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6790
7091
|
if (valid0) {
|
|
6791
7092
|
if (data.chunkLoading !== undefined) {
|
|
6792
7093
|
const _errs22 = errors;
|
|
6793
|
-
if (!(
|
|
6794
|
-
vErrors = vErrors === null ?
|
|
7094
|
+
if (!(validate80(data.chunkLoading, { instancePath: instancePath + "/chunkLoading", parentData: data, parentDataProperty: "chunkLoading", rootData }))) {
|
|
7095
|
+
vErrors = vErrors === null ? validate80.errors : vErrors.concat(validate80.errors);
|
|
6795
7096
|
errors = vErrors.length;
|
|
6796
7097
|
}
|
|
6797
7098
|
var valid0 = _errs22 === errors;
|
|
@@ -6802,8 +7103,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6802
7103
|
if (valid0) {
|
|
6803
7104
|
if (data.enabledChunkLoadingTypes !== undefined) {
|
|
6804
7105
|
const _errs23 = errors;
|
|
6805
|
-
if (!(
|
|
6806
|
-
vErrors = vErrors === null ?
|
|
7106
|
+
if (!(validate82(data.enabledChunkLoadingTypes, { instancePath: instancePath + "/enabledChunkLoadingTypes", parentData: data, parentDataProperty: "enabledChunkLoadingTypes", rootData }))) {
|
|
7107
|
+
vErrors = vErrors === null ? validate82.errors : vErrors.concat(validate82.errors);
|
|
6807
7108
|
errors = vErrors.length;
|
|
6808
7109
|
}
|
|
6809
7110
|
var valid0 = _errs23 === errors;
|
|
@@ -6814,8 +7115,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6814
7115
|
if (valid0) {
|
|
6815
7116
|
if (data.chunkFilename !== undefined) {
|
|
6816
7117
|
const _errs24 = errors;
|
|
6817
|
-
if (!(
|
|
6818
|
-
vErrors = vErrors === null ?
|
|
7118
|
+
if (!(validate84(data.chunkFilename, { instancePath: instancePath + "/chunkFilename", parentData: data, parentDataProperty: "chunkFilename", rootData }))) {
|
|
7119
|
+
vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
|
|
6819
7120
|
errors = vErrors.length;
|
|
6820
7121
|
}
|
|
6821
7122
|
var valid0 = _errs24 === errors;
|
|
@@ -6828,7 +7129,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6828
7129
|
let data8 = data.crossOriginLoading;
|
|
6829
7130
|
const _errs25 = errors;
|
|
6830
7131
|
if (data8 !== false && data8 !== "anonymous" && data8 !== "use-credentials") {
|
|
6831
|
-
|
|
7132
|
+
validate77.errors = [{ instancePath: instancePath + "/crossOriginLoading", schemaPath: "#/definitions/CrossOriginLoading/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
6832
7133
|
return false;
|
|
6833
7134
|
}
|
|
6834
7135
|
var valid0 = _errs25 === errors;
|
|
@@ -6839,8 +7140,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6839
7140
|
if (valid0) {
|
|
6840
7141
|
if (data.cssChunkFilename !== undefined) {
|
|
6841
7142
|
const _errs27 = errors;
|
|
6842
|
-
if (!(
|
|
6843
|
-
vErrors = vErrors === null ?
|
|
7143
|
+
if (!(validate86(data.cssChunkFilename, { instancePath: instancePath + "/cssChunkFilename", parentData: data, parentDataProperty: "cssChunkFilename", rootData }))) {
|
|
7144
|
+
vErrors = vErrors === null ? validate86.errors : vErrors.concat(validate86.errors);
|
|
6844
7145
|
errors = vErrors.length;
|
|
6845
7146
|
}
|
|
6846
7147
|
var valid0 = _errs27 === errors;
|
|
@@ -6851,8 +7152,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6851
7152
|
if (valid0) {
|
|
6852
7153
|
if (data.cssFilename !== undefined) {
|
|
6853
7154
|
const _errs28 = errors;
|
|
6854
|
-
if (!(
|
|
6855
|
-
vErrors = vErrors === null ?
|
|
7155
|
+
if (!(validate88(data.cssFilename, { instancePath: instancePath + "/cssFilename", parentData: data, parentDataProperty: "cssFilename", rootData }))) {
|
|
7156
|
+
vErrors = vErrors === null ? validate88.errors : vErrors.concat(validate88.errors);
|
|
6856
7157
|
errors = vErrors.length;
|
|
6857
7158
|
}
|
|
6858
7159
|
var valid0 = _errs28 === errors;
|
|
@@ -6863,8 +7164,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6863
7164
|
if (valid0) {
|
|
6864
7165
|
if (data.enabledWasmLoadingTypes !== undefined) {
|
|
6865
7166
|
const _errs29 = errors;
|
|
6866
|
-
if (!(
|
|
6867
|
-
vErrors = vErrors === null ?
|
|
7167
|
+
if (!(validate90(data.enabledWasmLoadingTypes, { instancePath: instancePath + "/enabledWasmLoadingTypes", parentData: data, parentDataProperty: "enabledWasmLoadingTypes", rootData }))) {
|
|
7168
|
+
vErrors = vErrors === null ? validate90.errors : vErrors.concat(validate90.errors);
|
|
6868
7169
|
errors = vErrors.length;
|
|
6869
7170
|
}
|
|
6870
7171
|
var valid0 = _errs29 === errors;
|
|
@@ -6888,7 +7189,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6888
7189
|
if (data.webassemblyModuleFilename !== undefined) {
|
|
6889
7190
|
const _errs31 = errors;
|
|
6890
7191
|
if (typeof data.webassemblyModuleFilename !== "string") {
|
|
6891
|
-
|
|
7192
|
+
validate77.errors = [{ instancePath: instancePath + "/webassemblyModuleFilename", schemaPath: "#/definitions/WebassemblyModuleFilename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6892
7193
|
return false;
|
|
6893
7194
|
}
|
|
6894
7195
|
var valid0 = _errs31 === errors;
|
|
@@ -6899,8 +7200,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6899
7200
|
if (valid0) {
|
|
6900
7201
|
if (data.enabledLibraryTypes !== undefined) {
|
|
6901
7202
|
const _errs34 = errors;
|
|
6902
|
-
if (!(
|
|
6903
|
-
vErrors = vErrors === null ?
|
|
7203
|
+
if (!(validate93(data.enabledLibraryTypes, { instancePath: instancePath + "/enabledLibraryTypes", parentData: data, parentDataProperty: "enabledLibraryTypes", rootData }))) {
|
|
7204
|
+
vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);
|
|
6904
7205
|
errors = vErrors.length;
|
|
6905
7206
|
}
|
|
6906
7207
|
var valid0 = _errs34 === errors;
|
|
@@ -6911,8 +7212,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6911
7212
|
if (valid0) {
|
|
6912
7213
|
if (data.filename !== undefined) {
|
|
6913
7214
|
const _errs35 = errors;
|
|
6914
|
-
if (!(
|
|
6915
|
-
vErrors = vErrors === null ?
|
|
7215
|
+
if (!(validate95(data.filename, { instancePath: instancePath + "/filename", parentData: data, parentDataProperty: "filename", rootData }))) {
|
|
7216
|
+
vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);
|
|
6916
7217
|
errors = vErrors.length;
|
|
6917
7218
|
}
|
|
6918
7219
|
var valid0 = _errs35 === errors;
|
|
@@ -6928,12 +7229,12 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6928
7229
|
if (errors === _errs37) {
|
|
6929
7230
|
if (typeof data16 === "string") {
|
|
6930
7231
|
if (data16.length < 1) {
|
|
6931
|
-
|
|
7232
|
+
validate77.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
6932
7233
|
return false;
|
|
6933
7234
|
}
|
|
6934
7235
|
}
|
|
6935
7236
|
else {
|
|
6936
|
-
|
|
7237
|
+
validate77.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6937
7238
|
return false;
|
|
6938
7239
|
}
|
|
6939
7240
|
}
|
|
@@ -6946,7 +7247,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6946
7247
|
if (data.importFunctionName !== undefined) {
|
|
6947
7248
|
const _errs39 = errors;
|
|
6948
7249
|
if (typeof data.importFunctionName !== "string") {
|
|
6949
|
-
|
|
7250
|
+
validate77.errors = [{ instancePath: instancePath + "/importFunctionName", schemaPath: "#/definitions/ImportFunctionName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6950
7251
|
return false;
|
|
6951
7252
|
}
|
|
6952
7253
|
var valid0 = _errs39 === errors;
|
|
@@ -6957,8 +7258,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6957
7258
|
if (valid0) {
|
|
6958
7259
|
if (data.library !== undefined) {
|
|
6959
7260
|
const _errs42 = errors;
|
|
6960
|
-
if (!(
|
|
6961
|
-
vErrors = vErrors === null ?
|
|
7261
|
+
if (!(validate97(data.library, { instancePath: instancePath + "/library", parentData: data, parentDataProperty: "library", rootData }))) {
|
|
7262
|
+
vErrors = vErrors === null ? validate97.errors : vErrors.concat(validate97.errors);
|
|
6962
7263
|
errors = vErrors.length;
|
|
6963
7264
|
}
|
|
6964
7265
|
var valid0 = _errs42 === errors;
|
|
@@ -7091,7 +7392,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7091
7392
|
vErrors.push(err12);
|
|
7092
7393
|
}
|
|
7093
7394
|
errors++;
|
|
7094
|
-
|
|
7395
|
+
validate77.errors = vErrors;
|
|
7095
7396
|
return false;
|
|
7096
7397
|
}
|
|
7097
7398
|
else {
|
|
@@ -7183,7 +7484,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7183
7484
|
vErrors.push(err16);
|
|
7184
7485
|
}
|
|
7185
7486
|
errors++;
|
|
7186
|
-
|
|
7487
|
+
validate77.errors = vErrors;
|
|
7187
7488
|
return false;
|
|
7188
7489
|
}
|
|
7189
7490
|
else {
|
|
@@ -7206,7 +7507,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7206
7507
|
if (data.module !== undefined) {
|
|
7207
7508
|
const _errs62 = errors;
|
|
7208
7509
|
if (typeof data.module !== "boolean") {
|
|
7209
|
-
|
|
7510
|
+
validate77.errors = [{ instancePath: instancePath + "/module", schemaPath: "#/definitions/OutputModule/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
7210
7511
|
return false;
|
|
7211
7512
|
}
|
|
7212
7513
|
var valid0 = _errs62 === errors;
|
|
@@ -7218,7 +7519,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7218
7519
|
if (data.path !== undefined) {
|
|
7219
7520
|
const _errs65 = errors;
|
|
7220
7521
|
if (typeof data.path !== "string") {
|
|
7221
|
-
|
|
7522
|
+
validate77.errors = [{ instancePath: instancePath + "/path", schemaPath: "#/definitions/Path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
7222
7523
|
return false;
|
|
7223
7524
|
}
|
|
7224
7525
|
var valid0 = _errs65 === errors;
|
|
@@ -7229,8 +7530,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7229
7530
|
if (valid0) {
|
|
7230
7531
|
if (data.publicPath !== undefined) {
|
|
7231
7532
|
const _errs68 = errors;
|
|
7232
|
-
if (!(
|
|
7233
|
-
vErrors = vErrors === null ?
|
|
7533
|
+
if (!(validate105(data.publicPath, { instancePath: instancePath + "/publicPath", parentData: data, parentDataProperty: "publicPath", rootData }))) {
|
|
7534
|
+
vErrors = vErrors === null ? validate105.errors : vErrors.concat(validate105.errors);
|
|
7234
7535
|
errors = vErrors.length;
|
|
7235
7536
|
}
|
|
7236
7537
|
var valid0 = _errs68 === errors;
|
|
@@ -7242,7 +7543,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7242
7543
|
if (data.strictModuleErrorHandling !== undefined) {
|
|
7243
7544
|
const _errs69 = errors;
|
|
7244
7545
|
if (typeof data.strictModuleErrorHandling !== "boolean") {
|
|
7245
|
-
|
|
7546
|
+
validate77.errors = [{ instancePath: instancePath + "/strictModuleErrorHandling", schemaPath: "#/definitions/StrictModuleErrorHandling/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
7246
7547
|
return false;
|
|
7247
7548
|
}
|
|
7248
7549
|
var valid0 = _errs69 === errors;
|
|
@@ -7281,7 +7582,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7281
7582
|
vErrors.push(err18);
|
|
7282
7583
|
}
|
|
7283
7584
|
errors++;
|
|
7284
|
-
|
|
7585
|
+
validate77.errors = vErrors;
|
|
7285
7586
|
return false;
|
|
7286
7587
|
}
|
|
7287
7588
|
else {
|
|
@@ -7308,12 +7609,12 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7308
7609
|
if (errors === _errs78) {
|
|
7309
7610
|
if (typeof data27 === "string") {
|
|
7310
7611
|
if (data27.length < 1) {
|
|
7311
|
-
|
|
7612
|
+
validate77.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
7312
7613
|
return false;
|
|
7313
7614
|
}
|
|
7314
7615
|
}
|
|
7315
7616
|
else {
|
|
7316
|
-
|
|
7617
|
+
validate77.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
7317
7618
|
return false;
|
|
7318
7619
|
}
|
|
7319
7620
|
}
|
|
@@ -7330,12 +7631,12 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7330
7631
|
if (errors === _errs81) {
|
|
7331
7632
|
if (typeof data28 === "string") {
|
|
7332
7633
|
if (data28.length < 1) {
|
|
7333
|
-
|
|
7634
|
+
validate77.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
7334
7635
|
return false;
|
|
7335
7636
|
}
|
|
7336
7637
|
}
|
|
7337
7638
|
else {
|
|
7338
|
-
|
|
7639
|
+
validate77.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
7339
7640
|
return false;
|
|
7340
7641
|
}
|
|
7341
7642
|
}
|
|
@@ -7465,7 +7766,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7465
7766
|
vErrors.push(err26);
|
|
7466
7767
|
}
|
|
7467
7768
|
errors++;
|
|
7468
|
-
|
|
7769
|
+
validate77.errors = vErrors;
|
|
7469
7770
|
return false;
|
|
7470
7771
|
}
|
|
7471
7772
|
else {
|
|
@@ -7484,6 +7785,19 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7484
7785
|
else {
|
|
7485
7786
|
var valid0 = true;
|
|
7486
7787
|
}
|
|
7788
|
+
if (valid0) {
|
|
7789
|
+
if (data.sourceMapFilename !== undefined) {
|
|
7790
|
+
const _errs94 = errors;
|
|
7791
|
+
if (!(validate107(data.sourceMapFilename, { instancePath: instancePath + "/sourceMapFilename", parentData: data, parentDataProperty: "sourceMapFilename", rootData }))) {
|
|
7792
|
+
vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors);
|
|
7793
|
+
errors = vErrors.length;
|
|
7794
|
+
}
|
|
7795
|
+
var valid0 = _errs94 === errors;
|
|
7796
|
+
}
|
|
7797
|
+
else {
|
|
7798
|
+
var valid0 = true;
|
|
7799
|
+
}
|
|
7800
|
+
}
|
|
7487
7801
|
}
|
|
7488
7802
|
}
|
|
7489
7803
|
}
|
|
@@ -7515,12 +7829,12 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7515
7829
|
}
|
|
7516
7830
|
}
|
|
7517
7831
|
else {
|
|
7518
|
-
|
|
7832
|
+
validate77.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
7519
7833
|
return false;
|
|
7520
7834
|
}
|
|
7521
|
-
}
|
|
7522
|
-
const
|
|
7523
|
-
function
|
|
7835
|
+
} validate77.errors = vErrors; return errors === 0; }
|
|
7836
|
+
const schema117 = { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } };
|
|
7837
|
+
function validate110(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
7524
7838
|
if (Array.isArray(data)) {
|
|
7525
7839
|
var valid0 = true;
|
|
7526
7840
|
const len0 = data.length;
|
|
@@ -7596,7 +7910,7 @@ function validate106(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7596
7910
|
vErrors.push(err4);
|
|
7597
7911
|
}
|
|
7598
7912
|
errors++;
|
|
7599
|
-
|
|
7913
|
+
validate110.errors = vErrors;
|
|
7600
7914
|
return false;
|
|
7601
7915
|
}
|
|
7602
7916
|
else {
|
|
@@ -7617,12 +7931,12 @@ function validate106(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7617
7931
|
}
|
|
7618
7932
|
}
|
|
7619
7933
|
else {
|
|
7620
|
-
|
|
7934
|
+
validate110.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
7621
7935
|
return false;
|
|
7622
7936
|
}
|
|
7623
|
-
}
|
|
7624
|
-
const
|
|
7625
|
-
function
|
|
7937
|
+
} validate110.errors = vErrors; return errors === 0; }
|
|
7938
|
+
const schema120 = { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] };
|
|
7939
|
+
function validate112(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; if (!(validate50(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
7626
7940
|
vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
|
|
7627
7941
|
errors = vErrors.length;
|
|
7628
7942
|
} var _valid0 = _errs1 === errors; if (_valid0) {
|
|
@@ -7637,7 +7951,7 @@ function validate108(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7637
7951
|
vErrors.push(err0);
|
|
7638
7952
|
}
|
|
7639
7953
|
errors++;
|
|
7640
|
-
|
|
7954
|
+
validate112.errors = vErrors;
|
|
7641
7955
|
return false;
|
|
7642
7956
|
}
|
|
7643
7957
|
else {
|
|
@@ -7650,10 +7964,10 @@ else {
|
|
|
7650
7964
|
vErrors = null;
|
|
7651
7965
|
}
|
|
7652
7966
|
}
|
|
7653
|
-
}
|
|
7654
|
-
const
|
|
7655
|
-
const
|
|
7656
|
-
function
|
|
7967
|
+
} validate112.errors = vErrors; return errors === 0; }
|
|
7968
|
+
const schema122 = { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] };
|
|
7969
|
+
const schema123 = { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" }, "nestedModules": { "description": "Add information about modules nested in other modules (like with module concatenation).", "type": "boolean" } } };
|
|
7970
|
+
function validate115(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "none" && data !== "errors-only" && data !== "errors-warnings" && data !== "normal" && data !== "verbose") {
|
|
7657
7971
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
7658
7972
|
if (vErrors === null) {
|
|
7659
7973
|
vErrors = [err0];
|
|
@@ -8124,6 +8438,25 @@ function validate111(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8124
8438
|
else {
|
|
8125
8439
|
var valid2 = true;
|
|
8126
8440
|
}
|
|
8441
|
+
if (valid2) {
|
|
8442
|
+
if (data.nestedModules !== undefined) {
|
|
8443
|
+
const _errs55 = errors;
|
|
8444
|
+
if (typeof data.nestedModules !== "boolean") {
|
|
8445
|
+
const err26 = { instancePath: instancePath + "/nestedModules", schemaPath: "#/definitions/StatsOptions/properties/nestedModules/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
8446
|
+
if (vErrors === null) {
|
|
8447
|
+
vErrors = [err26];
|
|
8448
|
+
}
|
|
8449
|
+
else {
|
|
8450
|
+
vErrors.push(err26);
|
|
8451
|
+
}
|
|
8452
|
+
errors++;
|
|
8453
|
+
}
|
|
8454
|
+
var valid2 = _errs55 === errors;
|
|
8455
|
+
}
|
|
8456
|
+
else {
|
|
8457
|
+
var valid2 = true;
|
|
8458
|
+
}
|
|
8459
|
+
}
|
|
8127
8460
|
}
|
|
8128
8461
|
}
|
|
8129
8462
|
}
|
|
@@ -8145,12 +8478,12 @@ function validate111(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8145
8478
|
}
|
|
8146
8479
|
}
|
|
8147
8480
|
else {
|
|
8148
|
-
const
|
|
8481
|
+
const err27 = { instancePath, schemaPath: "#/definitions/StatsOptions/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8149
8482
|
if (vErrors === null) {
|
|
8150
|
-
vErrors = [
|
|
8483
|
+
vErrors = [err27];
|
|
8151
8484
|
}
|
|
8152
8485
|
else {
|
|
8153
|
-
vErrors.push(
|
|
8486
|
+
vErrors.push(err27);
|
|
8154
8487
|
}
|
|
8155
8488
|
errors++;
|
|
8156
8489
|
}
|
|
@@ -8159,15 +8492,15 @@ function validate111(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8159
8492
|
valid0 = valid0 || _valid0;
|
|
8160
8493
|
}
|
|
8161
8494
|
} if (!valid0) {
|
|
8162
|
-
const
|
|
8495
|
+
const err28 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
8163
8496
|
if (vErrors === null) {
|
|
8164
|
-
vErrors = [
|
|
8497
|
+
vErrors = [err28];
|
|
8165
8498
|
}
|
|
8166
8499
|
else {
|
|
8167
|
-
vErrors.push(
|
|
8500
|
+
vErrors.push(err28);
|
|
8168
8501
|
}
|
|
8169
8502
|
errors++;
|
|
8170
|
-
|
|
8503
|
+
validate115.errors = vErrors;
|
|
8171
8504
|
return false;
|
|
8172
8505
|
}
|
|
8173
8506
|
else {
|
|
@@ -8180,7 +8513,7 @@ else {
|
|
|
8180
8513
|
vErrors = null;
|
|
8181
8514
|
}
|
|
8182
8515
|
}
|
|
8183
|
-
}
|
|
8516
|
+
} validate115.errors = vErrors; return errors === 0; }
|
|
8184
8517
|
function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
8185
8518
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8186
8519
|
const _errs1 = errors;
|
|
@@ -8356,7 +8689,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8356
8689
|
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
8357
8690
|
const _errs26 = errors;
|
|
8358
8691
|
for (const key1 in data7) {
|
|
8359
|
-
if (!((((key1 === "asyncWebAssembly") || (key1 === "incrementalRebuild")) || (key1 === "lazyCompilation")) || (key1 === "outputModule"))) {
|
|
8692
|
+
if (!(((((key1 === "asyncWebAssembly") || (key1 === "incrementalRebuild")) || (key1 === "lazyCompilation")) || (key1 === "outputModule")) || (key1 === "newSplitChunks"))) {
|
|
8360
8693
|
validate10.errors = [{ instancePath: instancePath + "/experiments", schemaPath: "#/definitions/Experiments/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
8361
8694
|
return false;
|
|
8362
8695
|
break;
|
|
@@ -8444,6 +8777,19 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8444
8777
|
else {
|
|
8445
8778
|
var valid9 = true;
|
|
8446
8779
|
}
|
|
8780
|
+
if (valid9) {
|
|
8781
|
+
if (data7.newSplitChunks !== undefined) {
|
|
8782
|
+
const _errs37 = errors;
|
|
8783
|
+
if (typeof data7.newSplitChunks !== "boolean") {
|
|
8784
|
+
validate10.errors = [{ instancePath: instancePath + "/experiments/newSplitChunks", schemaPath: "#/definitions/Experiments/properties/newSplitChunks/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8785
|
+
return false;
|
|
8786
|
+
}
|
|
8787
|
+
var valid9 = _errs37 === errors;
|
|
8788
|
+
}
|
|
8789
|
+
else {
|
|
8790
|
+
var valid9 = true;
|
|
8791
|
+
}
|
|
8792
|
+
}
|
|
8447
8793
|
}
|
|
8448
8794
|
}
|
|
8449
8795
|
}
|
|
@@ -8461,47 +8807,47 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8461
8807
|
}
|
|
8462
8808
|
if (valid0) {
|
|
8463
8809
|
if (data.externals !== undefined) {
|
|
8464
|
-
const
|
|
8810
|
+
const _errs39 = errors;
|
|
8465
8811
|
if (!(validate23(data.externals, { instancePath: instancePath + "/externals", parentData: data, parentDataProperty: "externals", rootData }))) {
|
|
8466
8812
|
vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);
|
|
8467
8813
|
errors = vErrors.length;
|
|
8468
8814
|
}
|
|
8469
|
-
var valid0 =
|
|
8815
|
+
var valid0 = _errs39 === errors;
|
|
8470
8816
|
}
|
|
8471
8817
|
else {
|
|
8472
8818
|
var valid0 = true;
|
|
8473
8819
|
}
|
|
8474
8820
|
if (valid0) {
|
|
8475
8821
|
if (data.externalsType !== undefined) {
|
|
8476
|
-
let
|
|
8477
|
-
const
|
|
8478
|
-
if (
|
|
8822
|
+
let data14 = data.externalsType;
|
|
8823
|
+
const _errs40 = errors;
|
|
8824
|
+
if (data14 !== "var" && data14 !== "module" && data14 !== "assign" && data14 !== "this" && data14 !== "window" && data14 !== "self" && data14 !== "global" && data14 !== "commonjs" && data14 !== "commonjs2" && data14 !== "commonjs-module" && data14 !== "commonjs-static" && data14 !== "amd" && data14 !== "amd-require" && data14 !== "umd" && data14 !== "umd2" && data14 !== "jsonp" && data14 !== "system" && data14 !== "promise" && data14 !== "import" && data14 !== "script" && data14 !== "node-commonjs") {
|
|
8479
8825
|
validate10.errors = [{ instancePath: instancePath + "/externalsType", schemaPath: "#/definitions/ExternalsType/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
8480
8826
|
return false;
|
|
8481
8827
|
}
|
|
8482
|
-
var valid0 =
|
|
8828
|
+
var valid0 = _errs40 === errors;
|
|
8483
8829
|
}
|
|
8484
8830
|
else {
|
|
8485
8831
|
var valid0 = true;
|
|
8486
8832
|
}
|
|
8487
8833
|
if (valid0) {
|
|
8488
8834
|
if (data.externalsPresets !== undefined) {
|
|
8489
|
-
let
|
|
8490
|
-
const
|
|
8491
|
-
const
|
|
8492
|
-
if (errors ===
|
|
8493
|
-
if (
|
|
8494
|
-
const
|
|
8495
|
-
for (const key2 in
|
|
8835
|
+
let data15 = data.externalsPresets;
|
|
8836
|
+
const _errs42 = errors;
|
|
8837
|
+
const _errs43 = errors;
|
|
8838
|
+
if (errors === _errs43) {
|
|
8839
|
+
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
8840
|
+
const _errs45 = errors;
|
|
8841
|
+
for (const key2 in data15) {
|
|
8496
8842
|
if (!(key2 === "node")) {
|
|
8497
8843
|
validate10.errors = [{ instancePath: instancePath + "/externalsPresets", schemaPath: "#/definitions/ExternalsPresets/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
8498
8844
|
return false;
|
|
8499
8845
|
break;
|
|
8500
8846
|
}
|
|
8501
8847
|
}
|
|
8502
|
-
if (
|
|
8503
|
-
if (
|
|
8504
|
-
if (typeof
|
|
8848
|
+
if (_errs45 === errors) {
|
|
8849
|
+
if (data15.node !== undefined) {
|
|
8850
|
+
if (typeof data15.node !== "boolean") {
|
|
8505
8851
|
validate10.errors = [{ instancePath: instancePath + "/externalsPresets/node", schemaPath: "#/definitions/ExternalsPresets/properties/node/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8506
8852
|
return false;
|
|
8507
8853
|
}
|
|
@@ -8513,169 +8859,169 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8513
8859
|
return false;
|
|
8514
8860
|
}
|
|
8515
8861
|
}
|
|
8516
|
-
var valid0 =
|
|
8862
|
+
var valid0 = _errs42 === errors;
|
|
8517
8863
|
}
|
|
8518
8864
|
else {
|
|
8519
8865
|
var valid0 = true;
|
|
8520
8866
|
}
|
|
8521
8867
|
if (valid0) {
|
|
8522
8868
|
if (data.infrastructureLogging !== undefined) {
|
|
8523
|
-
const
|
|
8869
|
+
const _errs48 = errors;
|
|
8524
8870
|
if (!(validate28(data.infrastructureLogging, { instancePath: instancePath + "/infrastructureLogging", parentData: data, parentDataProperty: "infrastructureLogging", rootData }))) {
|
|
8525
8871
|
vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);
|
|
8526
8872
|
errors = vErrors.length;
|
|
8527
8873
|
}
|
|
8528
|
-
var valid0 =
|
|
8874
|
+
var valid0 = _errs48 === errors;
|
|
8529
8875
|
}
|
|
8530
8876
|
else {
|
|
8531
8877
|
var valid0 = true;
|
|
8532
8878
|
}
|
|
8533
8879
|
if (valid0) {
|
|
8534
8880
|
if (data.mode !== undefined) {
|
|
8535
|
-
let
|
|
8536
|
-
const
|
|
8537
|
-
if (
|
|
8881
|
+
let data18 = data.mode;
|
|
8882
|
+
const _errs49 = errors;
|
|
8883
|
+
if (data18 !== "development" && data18 !== "production" && data18 !== "none") {
|
|
8538
8884
|
validate10.errors = [{ instancePath: instancePath + "/mode", schemaPath: "#/definitions/Mode/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
8539
8885
|
return false;
|
|
8540
8886
|
}
|
|
8541
|
-
var valid0 =
|
|
8887
|
+
var valid0 = _errs49 === errors;
|
|
8542
8888
|
}
|
|
8543
8889
|
else {
|
|
8544
8890
|
var valid0 = true;
|
|
8545
8891
|
}
|
|
8546
8892
|
if (valid0) {
|
|
8547
8893
|
if (data.module !== undefined) {
|
|
8548
|
-
const
|
|
8894
|
+
const _errs51 = errors;
|
|
8549
8895
|
if (!(validate32(data.module, { instancePath: instancePath + "/module", parentData: data, parentDataProperty: "module", rootData }))) {
|
|
8550
8896
|
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
8551
8897
|
errors = vErrors.length;
|
|
8552
8898
|
}
|
|
8553
|
-
var valid0 =
|
|
8899
|
+
var valid0 = _errs51 === errors;
|
|
8554
8900
|
}
|
|
8555
8901
|
else {
|
|
8556
8902
|
var valid0 = true;
|
|
8557
8903
|
}
|
|
8558
8904
|
if (valid0) {
|
|
8559
8905
|
if (data.name !== undefined) {
|
|
8560
|
-
const
|
|
8906
|
+
const _errs52 = errors;
|
|
8561
8907
|
if (typeof data.name !== "string") {
|
|
8562
8908
|
validate10.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/Name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
8563
8909
|
return false;
|
|
8564
8910
|
}
|
|
8565
|
-
var valid0 =
|
|
8911
|
+
var valid0 = _errs52 === errors;
|
|
8566
8912
|
}
|
|
8567
8913
|
else {
|
|
8568
8914
|
var valid0 = true;
|
|
8569
8915
|
}
|
|
8570
8916
|
if (valid0) {
|
|
8571
8917
|
if (data.node !== undefined) {
|
|
8572
|
-
const
|
|
8918
|
+
const _errs55 = errors;
|
|
8573
8919
|
if (!(validate69(data.node, { instancePath: instancePath + "/node", parentData: data, parentDataProperty: "node", rootData }))) {
|
|
8574
8920
|
vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
|
|
8575
8921
|
errors = vErrors.length;
|
|
8576
8922
|
}
|
|
8577
|
-
var valid0 =
|
|
8923
|
+
var valid0 = _errs55 === errors;
|
|
8578
8924
|
}
|
|
8579
8925
|
else {
|
|
8580
8926
|
var valid0 = true;
|
|
8581
8927
|
}
|
|
8582
8928
|
if (valid0) {
|
|
8583
8929
|
if (data.optimization !== undefined) {
|
|
8584
|
-
const
|
|
8930
|
+
const _errs56 = errors;
|
|
8585
8931
|
if (!(validate71(data.optimization, { instancePath: instancePath + "/optimization", parentData: data, parentDataProperty: "optimization", rootData }))) {
|
|
8586
8932
|
vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
|
|
8587
8933
|
errors = vErrors.length;
|
|
8588
8934
|
}
|
|
8589
|
-
var valid0 =
|
|
8935
|
+
var valid0 = _errs56 === errors;
|
|
8590
8936
|
}
|
|
8591
8937
|
else {
|
|
8592
8938
|
var valid0 = true;
|
|
8593
8939
|
}
|
|
8594
8940
|
if (valid0) {
|
|
8595
8941
|
if (data.output !== undefined) {
|
|
8596
|
-
const
|
|
8597
|
-
if (!(
|
|
8598
|
-
vErrors = vErrors === null ?
|
|
8942
|
+
const _errs57 = errors;
|
|
8943
|
+
if (!(validate77(data.output, { instancePath: instancePath + "/output", parentData: data, parentDataProperty: "output", rootData }))) {
|
|
8944
|
+
vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);
|
|
8599
8945
|
errors = vErrors.length;
|
|
8600
8946
|
}
|
|
8601
|
-
var valid0 =
|
|
8947
|
+
var valid0 = _errs57 === errors;
|
|
8602
8948
|
}
|
|
8603
8949
|
else {
|
|
8604
8950
|
var valid0 = true;
|
|
8605
8951
|
}
|
|
8606
8952
|
if (valid0) {
|
|
8607
8953
|
if (data.plugins !== undefined) {
|
|
8608
|
-
const
|
|
8609
|
-
if (!(
|
|
8610
|
-
vErrors = vErrors === null ?
|
|
8954
|
+
const _errs58 = errors;
|
|
8955
|
+
if (!(validate110(data.plugins, { instancePath: instancePath + "/plugins", parentData: data, parentDataProperty: "plugins", rootData }))) {
|
|
8956
|
+
vErrors = vErrors === null ? validate110.errors : vErrors.concat(validate110.errors);
|
|
8611
8957
|
errors = vErrors.length;
|
|
8612
8958
|
}
|
|
8613
|
-
var valid0 =
|
|
8959
|
+
var valid0 = _errs58 === errors;
|
|
8614
8960
|
}
|
|
8615
8961
|
else {
|
|
8616
8962
|
var valid0 = true;
|
|
8617
8963
|
}
|
|
8618
8964
|
if (valid0) {
|
|
8619
8965
|
if (data.resolve !== undefined) {
|
|
8620
|
-
const
|
|
8621
|
-
if (!(
|
|
8622
|
-
vErrors = vErrors === null ?
|
|
8966
|
+
const _errs59 = errors;
|
|
8967
|
+
if (!(validate112(data.resolve, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
|
|
8968
|
+
vErrors = vErrors === null ? validate112.errors : vErrors.concat(validate112.errors);
|
|
8623
8969
|
errors = vErrors.length;
|
|
8624
8970
|
}
|
|
8625
|
-
var valid0 =
|
|
8971
|
+
var valid0 = _errs59 === errors;
|
|
8626
8972
|
}
|
|
8627
8973
|
else {
|
|
8628
8974
|
var valid0 = true;
|
|
8629
8975
|
}
|
|
8630
8976
|
if (valid0) {
|
|
8631
8977
|
if (data.snapshot !== undefined) {
|
|
8632
|
-
let
|
|
8633
|
-
const
|
|
8634
|
-
const
|
|
8635
|
-
if (errors ===
|
|
8636
|
-
if (
|
|
8637
|
-
const
|
|
8638
|
-
for (const key3 in
|
|
8978
|
+
let data26 = data.snapshot;
|
|
8979
|
+
const _errs60 = errors;
|
|
8980
|
+
const _errs61 = errors;
|
|
8981
|
+
if (errors === _errs61) {
|
|
8982
|
+
if (data26 && typeof data26 == "object" && !Array.isArray(data26)) {
|
|
8983
|
+
const _errs63 = errors;
|
|
8984
|
+
for (const key3 in data26) {
|
|
8639
8985
|
if (!((key3 === "module") || (key3 === "resolve"))) {
|
|
8640
8986
|
validate10.errors = [{ instancePath: instancePath + "/snapshot", schemaPath: "#/definitions/SnapshotOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
8641
8987
|
return false;
|
|
8642
8988
|
break;
|
|
8643
8989
|
}
|
|
8644
8990
|
}
|
|
8645
|
-
if (
|
|
8646
|
-
if (
|
|
8647
|
-
let
|
|
8648
|
-
const
|
|
8649
|
-
if (errors ===
|
|
8650
|
-
if (
|
|
8651
|
-
const
|
|
8652
|
-
for (const key4 in
|
|
8991
|
+
if (_errs63 === errors) {
|
|
8992
|
+
if (data26.module !== undefined) {
|
|
8993
|
+
let data27 = data26.module;
|
|
8994
|
+
const _errs64 = errors;
|
|
8995
|
+
if (errors === _errs64) {
|
|
8996
|
+
if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
|
|
8997
|
+
const _errs66 = errors;
|
|
8998
|
+
for (const key4 in data27) {
|
|
8653
8999
|
if (!((key4 === "hash") || (key4 === "timestamp"))) {
|
|
8654
9000
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/module", schemaPath: "#/definitions/SnapshotOptions/properties/module/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
8655
9001
|
return false;
|
|
8656
9002
|
break;
|
|
8657
9003
|
}
|
|
8658
9004
|
}
|
|
8659
|
-
if (
|
|
8660
|
-
if (
|
|
8661
|
-
const
|
|
8662
|
-
if (typeof
|
|
9005
|
+
if (_errs66 === errors) {
|
|
9006
|
+
if (data27.hash !== undefined) {
|
|
9007
|
+
const _errs67 = errors;
|
|
9008
|
+
if (typeof data27.hash !== "boolean") {
|
|
8663
9009
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/module/hash", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/hash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8664
9010
|
return false;
|
|
8665
9011
|
}
|
|
8666
|
-
var valid18 =
|
|
9012
|
+
var valid18 = _errs67 === errors;
|
|
8667
9013
|
}
|
|
8668
9014
|
else {
|
|
8669
9015
|
var valid18 = true;
|
|
8670
9016
|
}
|
|
8671
9017
|
if (valid18) {
|
|
8672
|
-
if (
|
|
8673
|
-
const
|
|
8674
|
-
if (typeof
|
|
9018
|
+
if (data27.timestamp !== undefined) {
|
|
9019
|
+
const _errs69 = errors;
|
|
9020
|
+
if (typeof data27.timestamp !== "boolean") {
|
|
8675
9021
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/module/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/timestamp/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8676
9022
|
return false;
|
|
8677
9023
|
}
|
|
8678
|
-
var valid18 =
|
|
9024
|
+
var valid18 = _errs69 === errors;
|
|
8679
9025
|
}
|
|
8680
9026
|
else {
|
|
8681
9027
|
var valid18 = true;
|
|
@@ -8688,45 +9034,45 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8688
9034
|
return false;
|
|
8689
9035
|
}
|
|
8690
9036
|
}
|
|
8691
|
-
var valid17 =
|
|
9037
|
+
var valid17 = _errs64 === errors;
|
|
8692
9038
|
}
|
|
8693
9039
|
else {
|
|
8694
9040
|
var valid17 = true;
|
|
8695
9041
|
}
|
|
8696
9042
|
if (valid17) {
|
|
8697
|
-
if (
|
|
8698
|
-
let
|
|
8699
|
-
const
|
|
8700
|
-
if (errors ===
|
|
8701
|
-
if (
|
|
8702
|
-
const
|
|
8703
|
-
for (const key5 in
|
|
9043
|
+
if (data26.resolve !== undefined) {
|
|
9044
|
+
let data30 = data26.resolve;
|
|
9045
|
+
const _errs71 = errors;
|
|
9046
|
+
if (errors === _errs71) {
|
|
9047
|
+
if (data30 && typeof data30 == "object" && !Array.isArray(data30)) {
|
|
9048
|
+
const _errs73 = errors;
|
|
9049
|
+
for (const key5 in data30) {
|
|
8704
9050
|
if (!((key5 === "hash") || (key5 === "timestamp"))) {
|
|
8705
9051
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
8706
9052
|
return false;
|
|
8707
9053
|
break;
|
|
8708
9054
|
}
|
|
8709
9055
|
}
|
|
8710
|
-
if (
|
|
8711
|
-
if (
|
|
8712
|
-
const
|
|
8713
|
-
if (typeof
|
|
9056
|
+
if (_errs73 === errors) {
|
|
9057
|
+
if (data30.hash !== undefined) {
|
|
9058
|
+
const _errs74 = errors;
|
|
9059
|
+
if (typeof data30.hash !== "boolean") {
|
|
8714
9060
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve/hash", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/hash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8715
9061
|
return false;
|
|
8716
9062
|
}
|
|
8717
|
-
var valid19 =
|
|
9063
|
+
var valid19 = _errs74 === errors;
|
|
8718
9064
|
}
|
|
8719
9065
|
else {
|
|
8720
9066
|
var valid19 = true;
|
|
8721
9067
|
}
|
|
8722
9068
|
if (valid19) {
|
|
8723
|
-
if (
|
|
8724
|
-
const
|
|
8725
|
-
if (typeof
|
|
9069
|
+
if (data30.timestamp !== undefined) {
|
|
9070
|
+
const _errs76 = errors;
|
|
9071
|
+
if (typeof data30.timestamp !== "boolean") {
|
|
8726
9072
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/timestamp/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8727
9073
|
return false;
|
|
8728
9074
|
}
|
|
8729
|
-
var valid19 =
|
|
9075
|
+
var valid19 = _errs76 === errors;
|
|
8730
9076
|
}
|
|
8731
9077
|
else {
|
|
8732
9078
|
var valid19 = true;
|
|
@@ -8739,7 +9085,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8739
9085
|
return false;
|
|
8740
9086
|
}
|
|
8741
9087
|
}
|
|
8742
|
-
var valid17 =
|
|
9088
|
+
var valid17 = _errs71 === errors;
|
|
8743
9089
|
}
|
|
8744
9090
|
else {
|
|
8745
9091
|
var valid17 = true;
|
|
@@ -8752,33 +9098,33 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8752
9098
|
return false;
|
|
8753
9099
|
}
|
|
8754
9100
|
}
|
|
8755
|
-
var valid0 =
|
|
9101
|
+
var valid0 = _errs60 === errors;
|
|
8756
9102
|
}
|
|
8757
9103
|
else {
|
|
8758
9104
|
var valid0 = true;
|
|
8759
9105
|
}
|
|
8760
9106
|
if (valid0) {
|
|
8761
9107
|
if (data.stats !== undefined) {
|
|
8762
|
-
const
|
|
8763
|
-
if (!(
|
|
8764
|
-
vErrors = vErrors === null ?
|
|
9108
|
+
const _errs78 = errors;
|
|
9109
|
+
if (!(validate115(data.stats, { instancePath: instancePath + "/stats", parentData: data, parentDataProperty: "stats", rootData }))) {
|
|
9110
|
+
vErrors = vErrors === null ? validate115.errors : vErrors.concat(validate115.errors);
|
|
8765
9111
|
errors = vErrors.length;
|
|
8766
9112
|
}
|
|
8767
|
-
var valid0 =
|
|
9113
|
+
var valid0 = _errs78 === errors;
|
|
8768
9114
|
}
|
|
8769
9115
|
else {
|
|
8770
9116
|
var valid0 = true;
|
|
8771
9117
|
}
|
|
8772
9118
|
if (valid0) {
|
|
8773
9119
|
if (data.target !== undefined) {
|
|
8774
|
-
let
|
|
8775
|
-
const _errs77 = errors;
|
|
9120
|
+
let data34 = data.target;
|
|
8776
9121
|
const _errs79 = errors;
|
|
9122
|
+
const _errs81 = errors;
|
|
8777
9123
|
let valid21 = false;
|
|
8778
|
-
const
|
|
8779
|
-
if (errors ===
|
|
8780
|
-
if (Array.isArray(
|
|
8781
|
-
if (
|
|
9124
|
+
const _errs82 = errors;
|
|
9125
|
+
if (errors === _errs82) {
|
|
9126
|
+
if (Array.isArray(data34)) {
|
|
9127
|
+
if (data34.length < 1) {
|
|
8782
9128
|
const err6 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
8783
9129
|
if (vErrors === null) {
|
|
8784
9130
|
vErrors = [err6];
|
|
@@ -8790,13 +9136,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8790
9136
|
}
|
|
8791
9137
|
else {
|
|
8792
9138
|
var valid22 = true;
|
|
8793
|
-
const len1 =
|
|
9139
|
+
const len1 = data34.length;
|
|
8794
9140
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
8795
|
-
let
|
|
8796
|
-
const
|
|
8797
|
-
if (errors ===
|
|
8798
|
-
if (typeof
|
|
8799
|
-
if (
|
|
9141
|
+
let data35 = data34[i1];
|
|
9142
|
+
const _errs84 = errors;
|
|
9143
|
+
if (errors === _errs84) {
|
|
9144
|
+
if (typeof data35 === "string") {
|
|
9145
|
+
if (data35.length < 1) {
|
|
8800
9146
|
const err7 = { instancePath: instancePath + "/target/" + i1, schemaPath: "#/definitions/Target/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
8801
9147
|
if (vErrors === null) {
|
|
8802
9148
|
vErrors = [err7];
|
|
@@ -8818,7 +9164,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8818
9164
|
errors++;
|
|
8819
9165
|
}
|
|
8820
9166
|
}
|
|
8821
|
-
var valid22 =
|
|
9167
|
+
var valid22 = _errs84 === errors;
|
|
8822
9168
|
if (!valid22) {
|
|
8823
9169
|
break;
|
|
8824
9170
|
}
|
|
@@ -8836,11 +9182,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8836
9182
|
errors++;
|
|
8837
9183
|
}
|
|
8838
9184
|
}
|
|
8839
|
-
var _valid2 =
|
|
9185
|
+
var _valid2 = _errs82 === errors;
|
|
8840
9186
|
valid21 = valid21 || _valid2;
|
|
8841
9187
|
if (!valid21) {
|
|
8842
|
-
const
|
|
8843
|
-
if (
|
|
9188
|
+
const _errs86 = errors;
|
|
9189
|
+
if (data34 !== false) {
|
|
8844
9190
|
const err10 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/1/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
8845
9191
|
if (vErrors === null) {
|
|
8846
9192
|
vErrors = [err10];
|
|
@@ -8850,13 +9196,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8850
9196
|
}
|
|
8851
9197
|
errors++;
|
|
8852
9198
|
}
|
|
8853
|
-
var _valid2 =
|
|
9199
|
+
var _valid2 = _errs86 === errors;
|
|
8854
9200
|
valid21 = valid21 || _valid2;
|
|
8855
9201
|
if (!valid21) {
|
|
8856
|
-
const
|
|
8857
|
-
if (errors ===
|
|
8858
|
-
if (typeof
|
|
8859
|
-
if (
|
|
9202
|
+
const _errs87 = errors;
|
|
9203
|
+
if (errors === _errs87) {
|
|
9204
|
+
if (typeof data34 === "string") {
|
|
9205
|
+
if (data34.length < 1) {
|
|
8860
9206
|
const err11 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
8861
9207
|
if (vErrors === null) {
|
|
8862
9208
|
vErrors = [err11];
|
|
@@ -8878,7 +9224,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8878
9224
|
errors++;
|
|
8879
9225
|
}
|
|
8880
9226
|
}
|
|
8881
|
-
var _valid2 =
|
|
9227
|
+
var _valid2 = _errs87 === errors;
|
|
8882
9228
|
valid21 = valid21 || _valid2;
|
|
8883
9229
|
}
|
|
8884
9230
|
}
|
|
@@ -8895,89 +9241,89 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8895
9241
|
return false;
|
|
8896
9242
|
}
|
|
8897
9243
|
else {
|
|
8898
|
-
errors =
|
|
9244
|
+
errors = _errs81;
|
|
8899
9245
|
if (vErrors !== null) {
|
|
8900
|
-
if (
|
|
8901
|
-
vErrors.length =
|
|
9246
|
+
if (_errs81) {
|
|
9247
|
+
vErrors.length = _errs81;
|
|
8902
9248
|
}
|
|
8903
9249
|
else {
|
|
8904
9250
|
vErrors = null;
|
|
8905
9251
|
}
|
|
8906
9252
|
}
|
|
8907
9253
|
}
|
|
8908
|
-
var valid0 =
|
|
9254
|
+
var valid0 = _errs79 === errors;
|
|
8909
9255
|
}
|
|
8910
9256
|
else {
|
|
8911
9257
|
var valid0 = true;
|
|
8912
9258
|
}
|
|
8913
9259
|
if (valid0) {
|
|
8914
9260
|
if (data.watch !== undefined) {
|
|
8915
|
-
const
|
|
9261
|
+
const _errs89 = errors;
|
|
8916
9262
|
if (typeof data.watch !== "boolean") {
|
|
8917
9263
|
validate10.errors = [{ instancePath: instancePath + "/watch", schemaPath: "#/definitions/Watch/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8918
9264
|
return false;
|
|
8919
9265
|
}
|
|
8920
|
-
var valid0 =
|
|
9266
|
+
var valid0 = _errs89 === errors;
|
|
8921
9267
|
}
|
|
8922
9268
|
else {
|
|
8923
9269
|
var valid0 = true;
|
|
8924
9270
|
}
|
|
8925
9271
|
if (valid0) {
|
|
8926
9272
|
if (data.watchOptions !== undefined) {
|
|
8927
|
-
let
|
|
8928
|
-
const
|
|
8929
|
-
const
|
|
8930
|
-
if (errors ===
|
|
8931
|
-
if (
|
|
8932
|
-
const
|
|
8933
|
-
for (const key6 in
|
|
9273
|
+
let data37 = data.watchOptions;
|
|
9274
|
+
const _errs92 = errors;
|
|
9275
|
+
const _errs93 = errors;
|
|
9276
|
+
if (errors === _errs93) {
|
|
9277
|
+
if (data37 && typeof data37 == "object" && !Array.isArray(data37)) {
|
|
9278
|
+
const _errs95 = errors;
|
|
9279
|
+
for (const key6 in data37) {
|
|
8934
9280
|
if (!(((((key6 === "aggregateTimeout") || (key6 === "followSymlinks")) || (key6 === "ignored")) || (key6 === "poll")) || (key6 === "stdin"))) {
|
|
8935
9281
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions", schemaPath: "#/definitions/WatchOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
|
|
8936
9282
|
return false;
|
|
8937
9283
|
break;
|
|
8938
9284
|
}
|
|
8939
9285
|
}
|
|
8940
|
-
if (
|
|
8941
|
-
if (
|
|
8942
|
-
const
|
|
8943
|
-
if (!(typeof
|
|
9286
|
+
if (_errs95 === errors) {
|
|
9287
|
+
if (data37.aggregateTimeout !== undefined) {
|
|
9288
|
+
const _errs96 = errors;
|
|
9289
|
+
if (!(typeof data37.aggregateTimeout == "number")) {
|
|
8944
9290
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions/aggregateTimeout", schemaPath: "#/definitions/WatchOptions/properties/aggregateTimeout/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
8945
9291
|
return false;
|
|
8946
9292
|
}
|
|
8947
|
-
var valid25 =
|
|
9293
|
+
var valid25 = _errs96 === errors;
|
|
8948
9294
|
}
|
|
8949
9295
|
else {
|
|
8950
9296
|
var valid25 = true;
|
|
8951
9297
|
}
|
|
8952
9298
|
if (valid25) {
|
|
8953
|
-
if (
|
|
8954
|
-
const
|
|
8955
|
-
if (typeof
|
|
9299
|
+
if (data37.followSymlinks !== undefined) {
|
|
9300
|
+
const _errs98 = errors;
|
|
9301
|
+
if (typeof data37.followSymlinks !== "boolean") {
|
|
8956
9302
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions/followSymlinks", schemaPath: "#/definitions/WatchOptions/properties/followSymlinks/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8957
9303
|
return false;
|
|
8958
9304
|
}
|
|
8959
|
-
var valid25 =
|
|
9305
|
+
var valid25 = _errs98 === errors;
|
|
8960
9306
|
}
|
|
8961
9307
|
else {
|
|
8962
9308
|
var valid25 = true;
|
|
8963
9309
|
}
|
|
8964
9310
|
if (valid25) {
|
|
8965
|
-
if (
|
|
8966
|
-
let
|
|
8967
|
-
const _errs98 = errors;
|
|
8968
|
-
const _errs99 = errors;
|
|
8969
|
-
let valid26 = false;
|
|
9311
|
+
if (data37.ignored !== undefined) {
|
|
9312
|
+
let data40 = data37.ignored;
|
|
8970
9313
|
const _errs100 = errors;
|
|
8971
|
-
|
|
8972
|
-
|
|
9314
|
+
const _errs101 = errors;
|
|
9315
|
+
let valid26 = false;
|
|
9316
|
+
const _errs102 = errors;
|
|
9317
|
+
if (errors === _errs102) {
|
|
9318
|
+
if (Array.isArray(data40)) {
|
|
8973
9319
|
var valid27 = true;
|
|
8974
|
-
const len2 =
|
|
9320
|
+
const len2 = data40.length;
|
|
8975
9321
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
8976
|
-
let
|
|
8977
|
-
const
|
|
8978
|
-
if (errors ===
|
|
8979
|
-
if (typeof
|
|
8980
|
-
if (
|
|
9322
|
+
let data41 = data40[i2];
|
|
9323
|
+
const _errs104 = errors;
|
|
9324
|
+
if (errors === _errs104) {
|
|
9325
|
+
if (typeof data41 === "string") {
|
|
9326
|
+
if (data41.length < 1) {
|
|
8981
9327
|
const err14 = { instancePath: instancePath + "/watchOptions/ignored/" + i2, schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
8982
9328
|
if (vErrors === null) {
|
|
8983
9329
|
vErrors = [err14];
|
|
@@ -8999,7 +9345,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8999
9345
|
errors++;
|
|
9000
9346
|
}
|
|
9001
9347
|
}
|
|
9002
|
-
var valid27 =
|
|
9348
|
+
var valid27 = _errs104 === errors;
|
|
9003
9349
|
if (!valid27) {
|
|
9004
9350
|
break;
|
|
9005
9351
|
}
|
|
@@ -9016,11 +9362,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9016
9362
|
errors++;
|
|
9017
9363
|
}
|
|
9018
9364
|
}
|
|
9019
|
-
var _valid3 =
|
|
9365
|
+
var _valid3 = _errs102 === errors;
|
|
9020
9366
|
valid26 = valid26 || _valid3;
|
|
9021
9367
|
if (!valid26) {
|
|
9022
|
-
const
|
|
9023
|
-
if (!(
|
|
9368
|
+
const _errs106 = errors;
|
|
9369
|
+
if (!(data40 instanceof RegExp)) {
|
|
9024
9370
|
const err17 = { instancePath: instancePath + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
9025
9371
|
if (vErrors === null) {
|
|
9026
9372
|
vErrors = [err17];
|
|
@@ -9030,13 +9376,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9030
9376
|
}
|
|
9031
9377
|
errors++;
|
|
9032
9378
|
}
|
|
9033
|
-
var _valid3 =
|
|
9379
|
+
var _valid3 = _errs106 === errors;
|
|
9034
9380
|
valid26 = valid26 || _valid3;
|
|
9035
9381
|
if (!valid26) {
|
|
9036
|
-
const
|
|
9037
|
-
if (errors ===
|
|
9038
|
-
if (typeof
|
|
9039
|
-
if (
|
|
9382
|
+
const _errs107 = errors;
|
|
9383
|
+
if (errors === _errs107) {
|
|
9384
|
+
if (typeof data40 === "string") {
|
|
9385
|
+
if (data40.length < 1) {
|
|
9040
9386
|
const err18 = { instancePath: instancePath + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
9041
9387
|
if (vErrors === null) {
|
|
9042
9388
|
vErrors = [err18];
|
|
@@ -9058,7 +9404,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9058
9404
|
errors++;
|
|
9059
9405
|
}
|
|
9060
9406
|
}
|
|
9061
|
-
var _valid3 =
|
|
9407
|
+
var _valid3 = _errs107 === errors;
|
|
9062
9408
|
valid26 = valid26 || _valid3;
|
|
9063
9409
|
}
|
|
9064
9410
|
}
|
|
@@ -9075,29 +9421,29 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9075
9421
|
return false;
|
|
9076
9422
|
}
|
|
9077
9423
|
else {
|
|
9078
|
-
errors =
|
|
9424
|
+
errors = _errs101;
|
|
9079
9425
|
if (vErrors !== null) {
|
|
9080
|
-
if (
|
|
9081
|
-
vErrors.length =
|
|
9426
|
+
if (_errs101) {
|
|
9427
|
+
vErrors.length = _errs101;
|
|
9082
9428
|
}
|
|
9083
9429
|
else {
|
|
9084
9430
|
vErrors = null;
|
|
9085
9431
|
}
|
|
9086
9432
|
}
|
|
9087
9433
|
}
|
|
9088
|
-
var valid25 =
|
|
9434
|
+
var valid25 = _errs100 === errors;
|
|
9089
9435
|
}
|
|
9090
9436
|
else {
|
|
9091
9437
|
var valid25 = true;
|
|
9092
9438
|
}
|
|
9093
9439
|
if (valid25) {
|
|
9094
|
-
if (
|
|
9095
|
-
let
|
|
9096
|
-
const _errs107 = errors;
|
|
9097
|
-
const _errs108 = errors;
|
|
9098
|
-
let valid28 = false;
|
|
9440
|
+
if (data37.poll !== undefined) {
|
|
9441
|
+
let data42 = data37.poll;
|
|
9099
9442
|
const _errs109 = errors;
|
|
9100
|
-
|
|
9443
|
+
const _errs110 = errors;
|
|
9444
|
+
let valid28 = false;
|
|
9445
|
+
const _errs111 = errors;
|
|
9446
|
+
if (!(typeof data42 == "number")) {
|
|
9101
9447
|
const err21 = { instancePath: instancePath + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
9102
9448
|
if (vErrors === null) {
|
|
9103
9449
|
vErrors = [err21];
|
|
@@ -9107,11 +9453,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9107
9453
|
}
|
|
9108
9454
|
errors++;
|
|
9109
9455
|
}
|
|
9110
|
-
var _valid4 =
|
|
9456
|
+
var _valid4 = _errs111 === errors;
|
|
9111
9457
|
valid28 = valid28 || _valid4;
|
|
9112
9458
|
if (!valid28) {
|
|
9113
|
-
const
|
|
9114
|
-
if (typeof
|
|
9459
|
+
const _errs113 = errors;
|
|
9460
|
+
if (typeof data42 !== "boolean") {
|
|
9115
9461
|
const err22 = { instancePath: instancePath + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
9116
9462
|
if (vErrors === null) {
|
|
9117
9463
|
vErrors = [err22];
|
|
@@ -9121,7 +9467,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9121
9467
|
}
|
|
9122
9468
|
errors++;
|
|
9123
9469
|
}
|
|
9124
|
-
var _valid4 =
|
|
9470
|
+
var _valid4 = _errs113 === errors;
|
|
9125
9471
|
valid28 = valid28 || _valid4;
|
|
9126
9472
|
}
|
|
9127
9473
|
if (!valid28) {
|
|
@@ -9137,29 +9483,29 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9137
9483
|
return false;
|
|
9138
9484
|
}
|
|
9139
9485
|
else {
|
|
9140
|
-
errors =
|
|
9486
|
+
errors = _errs110;
|
|
9141
9487
|
if (vErrors !== null) {
|
|
9142
|
-
if (
|
|
9143
|
-
vErrors.length =
|
|
9488
|
+
if (_errs110) {
|
|
9489
|
+
vErrors.length = _errs110;
|
|
9144
9490
|
}
|
|
9145
9491
|
else {
|
|
9146
9492
|
vErrors = null;
|
|
9147
9493
|
}
|
|
9148
9494
|
}
|
|
9149
9495
|
}
|
|
9150
|
-
var valid25 =
|
|
9496
|
+
var valid25 = _errs109 === errors;
|
|
9151
9497
|
}
|
|
9152
9498
|
else {
|
|
9153
9499
|
var valid25 = true;
|
|
9154
9500
|
}
|
|
9155
9501
|
if (valid25) {
|
|
9156
|
-
if (
|
|
9157
|
-
const
|
|
9158
|
-
if (typeof
|
|
9502
|
+
if (data37.stdin !== undefined) {
|
|
9503
|
+
const _errs115 = errors;
|
|
9504
|
+
if (typeof data37.stdin !== "boolean") {
|
|
9159
9505
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions/stdin", schemaPath: "#/definitions/WatchOptions/properties/stdin/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9160
9506
|
return false;
|
|
9161
9507
|
}
|
|
9162
|
-
var valid25 =
|
|
9508
|
+
var valid25 = _errs115 === errors;
|
|
9163
9509
|
}
|
|
9164
9510
|
else {
|
|
9165
9511
|
var valid25 = true;
|
|
@@ -9175,27 +9521,109 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9175
9521
|
return false;
|
|
9176
9522
|
}
|
|
9177
9523
|
}
|
|
9178
|
-
var valid0 =
|
|
9524
|
+
var valid0 = _errs92 === errors;
|
|
9179
9525
|
}
|
|
9180
9526
|
else {
|
|
9181
9527
|
var valid0 = true;
|
|
9182
9528
|
}
|
|
9183
9529
|
if (valid0) {
|
|
9184
9530
|
if (data.builtins !== undefined) {
|
|
9185
|
-
let
|
|
9186
|
-
const
|
|
9187
|
-
if (errors ===
|
|
9188
|
-
if (
|
|
9531
|
+
let data44 = data.builtins;
|
|
9532
|
+
const _errs117 = errors;
|
|
9533
|
+
if (errors === _errs117) {
|
|
9534
|
+
if (data44 && typeof data44 == "object" && !Array.isArray(data44)) { }
|
|
9189
9535
|
else {
|
|
9190
9536
|
validate10.errors = [{ instancePath: instancePath + "/builtins", schemaPath: "#/properties/builtins/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
9191
9537
|
return false;
|
|
9192
9538
|
}
|
|
9193
9539
|
}
|
|
9194
|
-
var valid0 =
|
|
9540
|
+
var valid0 = _errs117 === errors;
|
|
9195
9541
|
}
|
|
9196
9542
|
else {
|
|
9197
9543
|
var valid0 = true;
|
|
9198
9544
|
}
|
|
9545
|
+
if (valid0) {
|
|
9546
|
+
if (data.ignoreWarnings !== undefined) {
|
|
9547
|
+
let data45 = data.ignoreWarnings;
|
|
9548
|
+
const _errs120 = errors;
|
|
9549
|
+
const _errs121 = errors;
|
|
9550
|
+
if (errors === _errs121) {
|
|
9551
|
+
if (Array.isArray(data45)) {
|
|
9552
|
+
var valid30 = true;
|
|
9553
|
+
const len3 = data45.length;
|
|
9554
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
9555
|
+
let data46 = data45[i3];
|
|
9556
|
+
const _errs123 = errors;
|
|
9557
|
+
const _errs124 = errors;
|
|
9558
|
+
let valid31 = false;
|
|
9559
|
+
const _errs125 = errors;
|
|
9560
|
+
if (!(data46 instanceof RegExp)) {
|
|
9561
|
+
const err24 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/ignoreWarnings/items/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
9562
|
+
if (vErrors === null) {
|
|
9563
|
+
vErrors = [err24];
|
|
9564
|
+
}
|
|
9565
|
+
else {
|
|
9566
|
+
vErrors.push(err24);
|
|
9567
|
+
}
|
|
9568
|
+
errors++;
|
|
9569
|
+
}
|
|
9570
|
+
var _valid5 = _errs125 === errors;
|
|
9571
|
+
valid31 = valid31 || _valid5;
|
|
9572
|
+
if (!valid31) {
|
|
9573
|
+
const _errs126 = errors;
|
|
9574
|
+
if (!(data46 instanceof Function)) {
|
|
9575
|
+
const err25 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/ignoreWarnings/items/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
9576
|
+
if (vErrors === null) {
|
|
9577
|
+
vErrors = [err25];
|
|
9578
|
+
}
|
|
9579
|
+
else {
|
|
9580
|
+
vErrors.push(err25);
|
|
9581
|
+
}
|
|
9582
|
+
errors++;
|
|
9583
|
+
}
|
|
9584
|
+
var _valid5 = _errs126 === errors;
|
|
9585
|
+
valid31 = valid31 || _valid5;
|
|
9586
|
+
}
|
|
9587
|
+
if (!valid31) {
|
|
9588
|
+
const err26 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/ignoreWarnings/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
9589
|
+
if (vErrors === null) {
|
|
9590
|
+
vErrors = [err26];
|
|
9591
|
+
}
|
|
9592
|
+
else {
|
|
9593
|
+
vErrors.push(err26);
|
|
9594
|
+
}
|
|
9595
|
+
errors++;
|
|
9596
|
+
validate10.errors = vErrors;
|
|
9597
|
+
return false;
|
|
9598
|
+
}
|
|
9599
|
+
else {
|
|
9600
|
+
errors = _errs124;
|
|
9601
|
+
if (vErrors !== null) {
|
|
9602
|
+
if (_errs124) {
|
|
9603
|
+
vErrors.length = _errs124;
|
|
9604
|
+
}
|
|
9605
|
+
else {
|
|
9606
|
+
vErrors = null;
|
|
9607
|
+
}
|
|
9608
|
+
}
|
|
9609
|
+
}
|
|
9610
|
+
var valid30 = _errs123 === errors;
|
|
9611
|
+
if (!valid30) {
|
|
9612
|
+
break;
|
|
9613
|
+
}
|
|
9614
|
+
}
|
|
9615
|
+
}
|
|
9616
|
+
else {
|
|
9617
|
+
validate10.errors = [{ instancePath: instancePath + "/ignoreWarnings", schemaPath: "#/definitions/ignoreWarnings/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
9618
|
+
return false;
|
|
9619
|
+
}
|
|
9620
|
+
}
|
|
9621
|
+
var valid0 = _errs120 === errors;
|
|
9622
|
+
}
|
|
9623
|
+
else {
|
|
9624
|
+
var valid0 = true;
|
|
9625
|
+
}
|
|
9626
|
+
}
|
|
9199
9627
|
}
|
|
9200
9628
|
}
|
|
9201
9629
|
}
|