@rspack/core 0.1.9 → 0.1.10
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 +27 -13
- package/dist/compilation.d.ts.map +1 -1
- package/dist/compilation.js +39 -12
- 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 +20 -11
- package/dist/config/adapter.js.map +1 -1
- package/dist/config/builtins.d.ts +10 -2
- package/dist/config/builtins.d.ts.map +1 -1
- package/dist/config/builtins.js +20 -4
- package/dist/config/builtins.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +36 -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 +1222 -892
- package/dist/config/schema.check.js.map +1 -1
- package/dist/config/schema.d.ts +831 -764
- package/dist/config/schema.js +59 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/config/types.d.ts +14 -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.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 +3 -1
- package/dist/util/index.d.ts.map +1 -1
- package/dist/util/index.js +15 -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 +1 -1
- package/dist/watching.js.map +1 -1
- package/package.json +9 -9
|
@@ -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": [{ "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" }, "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" }, "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" } } }, "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" }] };
|
|
@@ -3903,742 +3904,866 @@ else {
|
|
|
3903
3904
|
}
|
|
3904
3905
|
}
|
|
3905
3906
|
} 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" }] } } };
|
|
3907
|
+
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" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } };
|
|
3907
3908
|
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
3909
|
const schema62 = { "description": "Function acting as plugin.", "instanceof": "Function" };
|
|
3909
3910
|
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" }] } } };
|
|
3911
|
+
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
3912
|
const schema66 = { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] };
|
|
3913
|
-
|
|
3913
|
+
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" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } };
|
|
3914
|
+
function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3914
3915
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3915
3916
|
const _errs1 = errors;
|
|
3916
3917
|
for (const key0 in data) {
|
|
3917
|
-
if (!(((((((
|
|
3918
|
-
|
|
3918
|
+
if (!(((((((key0 === "chunks") || (key0 === "minChunks")) || (key0 === "name")) || (key0 === "priority")) || (key0 === "reuseExistingChunk")) || (key0 === "test")) || (key0 === "minSize"))) {
|
|
3919
|
+
validate73.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
3919
3920
|
return false;
|
|
3920
3921
|
break;
|
|
3921
3922
|
}
|
|
3922
3923
|
}
|
|
3923
3924
|
if (_errs1 === errors) {
|
|
3924
|
-
if (data.
|
|
3925
|
-
let data0 = data.
|
|
3925
|
+
if (data.chunks !== undefined) {
|
|
3926
|
+
let data0 = data.chunks;
|
|
3926
3927
|
const _errs2 = errors;
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3928
|
+
const _errs3 = errors;
|
|
3929
|
+
let valid1 = false;
|
|
3930
|
+
const _errs4 = errors;
|
|
3931
|
+
if (data0 !== "initial" && data0 !== "async" && data0 !== "all") {
|
|
3932
|
+
const err0 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
3933
|
+
if (vErrors === null) {
|
|
3934
|
+
vErrors = [err0];
|
|
3935
|
+
}
|
|
3936
|
+
else {
|
|
3937
|
+
vErrors.push(err0);
|
|
3938
|
+
}
|
|
3939
|
+
errors++;
|
|
3940
|
+
}
|
|
3941
|
+
var _valid0 = _errs4 === errors;
|
|
3942
|
+
valid1 = valid1 || _valid0;
|
|
3943
|
+
if (!valid1) {
|
|
3944
|
+
const _errs5 = errors;
|
|
3945
|
+
if (!(data0 instanceof Function)) {
|
|
3946
|
+
const err1 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
3947
|
+
if (vErrors === null) {
|
|
3948
|
+
vErrors = [err1];
|
|
3949
|
+
}
|
|
3950
|
+
else {
|
|
3951
|
+
vErrors.push(err1);
|
|
3952
|
+
}
|
|
3953
|
+
errors++;
|
|
3954
|
+
}
|
|
3955
|
+
var _valid0 = _errs5 === errors;
|
|
3956
|
+
valid1 = valid1 || _valid0;
|
|
3957
|
+
}
|
|
3958
|
+
if (!valid1) {
|
|
3959
|
+
const err2 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
3960
|
+
if (vErrors === null) {
|
|
3961
|
+
vErrors = [err2];
|
|
3962
|
+
}
|
|
3963
|
+
else {
|
|
3964
|
+
vErrors.push(err2);
|
|
3965
|
+
}
|
|
3966
|
+
errors++;
|
|
3967
|
+
validate73.errors = vErrors;
|
|
3968
|
+
return false;
|
|
3969
|
+
}
|
|
3970
|
+
else {
|
|
3971
|
+
errors = _errs3;
|
|
3972
|
+
if (vErrors !== null) {
|
|
3973
|
+
if (_errs3) {
|
|
3974
|
+
vErrors.length = _errs3;
|
|
3975
|
+
}
|
|
3976
|
+
else {
|
|
3977
|
+
vErrors = null;
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
}
|
|
3981
|
+
var valid0 = _errs2 === errors;
|
|
3982
|
+
}
|
|
3983
|
+
else {
|
|
3984
|
+
var valid0 = true;
|
|
3985
|
+
}
|
|
3986
|
+
if (valid0) {
|
|
3987
|
+
if (data.minChunks !== undefined) {
|
|
3988
|
+
let data1 = data.minChunks;
|
|
3989
|
+
const _errs6 = errors;
|
|
3990
|
+
if (errors === _errs6) {
|
|
3991
|
+
if (typeof data1 == "number") {
|
|
3992
|
+
if (data1 < 1 || isNaN(data1)) {
|
|
3993
|
+
validate73.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
3994
|
+
return false;
|
|
3995
|
+
}
|
|
3996
|
+
}
|
|
3997
|
+
else {
|
|
3998
|
+
validate73.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
3999
|
+
return false;
|
|
4000
|
+
}
|
|
4001
|
+
}
|
|
4002
|
+
var valid0 = _errs6 === errors;
|
|
4003
|
+
}
|
|
4004
|
+
else {
|
|
4005
|
+
var valid0 = true;
|
|
4006
|
+
}
|
|
4007
|
+
if (valid0) {
|
|
4008
|
+
if (data.name !== undefined) {
|
|
4009
|
+
let data2 = data.name;
|
|
4010
|
+
const _errs8 = errors;
|
|
4011
|
+
const _errs9 = errors;
|
|
4012
|
+
let valid2 = false;
|
|
4013
|
+
const _errs10 = errors;
|
|
4014
|
+
if (data2 !== false) {
|
|
4015
|
+
const err3 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
4016
|
+
if (vErrors === null) {
|
|
4017
|
+
vErrors = [err3];
|
|
4018
|
+
}
|
|
4019
|
+
else {
|
|
4020
|
+
vErrors.push(err3);
|
|
4021
|
+
}
|
|
4022
|
+
errors++;
|
|
4023
|
+
}
|
|
4024
|
+
var _valid1 = _errs10 === errors;
|
|
4025
|
+
valid2 = valid2 || _valid1;
|
|
4026
|
+
if (!valid2) {
|
|
4027
|
+
const _errs11 = errors;
|
|
4028
|
+
if (typeof data2 !== "string") {
|
|
4029
|
+
const err4 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4030
|
+
if (vErrors === null) {
|
|
4031
|
+
vErrors = [err4];
|
|
4032
|
+
}
|
|
4033
|
+
else {
|
|
4034
|
+
vErrors.push(err4);
|
|
4035
|
+
}
|
|
4036
|
+
errors++;
|
|
4037
|
+
}
|
|
4038
|
+
var _valid1 = _errs11 === errors;
|
|
4039
|
+
valid2 = valid2 || _valid1;
|
|
4040
|
+
if (!valid2) {
|
|
4041
|
+
const _errs13 = errors;
|
|
4042
|
+
if (!(data2 instanceof Function)) {
|
|
4043
|
+
const err5 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf/2/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
4044
|
+
if (vErrors === null) {
|
|
4045
|
+
vErrors = [err5];
|
|
4046
|
+
}
|
|
4047
|
+
else {
|
|
4048
|
+
vErrors.push(err5);
|
|
4049
|
+
}
|
|
4050
|
+
errors++;
|
|
4051
|
+
}
|
|
4052
|
+
var _valid1 = _errs13 === errors;
|
|
4053
|
+
valid2 = valid2 || _valid1;
|
|
4054
|
+
}
|
|
4055
|
+
}
|
|
4056
|
+
if (!valid2) {
|
|
4057
|
+
const err6 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4058
|
+
if (vErrors === null) {
|
|
4059
|
+
vErrors = [err6];
|
|
4060
|
+
}
|
|
4061
|
+
else {
|
|
4062
|
+
vErrors.push(err6);
|
|
4063
|
+
}
|
|
4064
|
+
errors++;
|
|
4065
|
+
validate73.errors = vErrors;
|
|
4066
|
+
return false;
|
|
4067
|
+
}
|
|
4068
|
+
else {
|
|
4069
|
+
errors = _errs9;
|
|
4070
|
+
if (vErrors !== null) {
|
|
4071
|
+
if (_errs9) {
|
|
4072
|
+
vErrors.length = _errs9;
|
|
4073
|
+
}
|
|
4074
|
+
else {
|
|
4075
|
+
vErrors = null;
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
}
|
|
4079
|
+
var valid0 = _errs8 === errors;
|
|
4080
|
+
}
|
|
4081
|
+
else {
|
|
4082
|
+
var valid0 = true;
|
|
4083
|
+
}
|
|
4084
|
+
if (valid0) {
|
|
4085
|
+
if (data.priority !== undefined) {
|
|
4086
|
+
const _errs14 = errors;
|
|
4087
|
+
if (!(typeof data.priority == "number")) {
|
|
4088
|
+
validate73.errors = [{ instancePath: instancePath + "/priority", schemaPath: "#/properties/priority/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4089
|
+
return false;
|
|
4090
|
+
}
|
|
4091
|
+
var valid0 = _errs14 === errors;
|
|
4092
|
+
}
|
|
4093
|
+
else {
|
|
4094
|
+
var valid0 = true;
|
|
4095
|
+
}
|
|
4096
|
+
if (valid0) {
|
|
4097
|
+
if (data.reuseExistingChunk !== undefined) {
|
|
4098
|
+
const _errs16 = errors;
|
|
4099
|
+
if (typeof data.reuseExistingChunk !== "boolean") {
|
|
4100
|
+
validate73.errors = [{ instancePath: instancePath + "/reuseExistingChunk", schemaPath: "#/properties/reuseExistingChunk/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
4101
|
+
return false;
|
|
4102
|
+
}
|
|
4103
|
+
var valid0 = _errs16 === errors;
|
|
4104
|
+
}
|
|
4105
|
+
else {
|
|
4106
|
+
var valid0 = true;
|
|
4107
|
+
}
|
|
4108
|
+
if (valid0) {
|
|
4109
|
+
if (data.test !== undefined) {
|
|
4110
|
+
const _errs18 = errors;
|
|
4111
|
+
const _errs19 = errors;
|
|
4112
|
+
let valid3 = false;
|
|
4113
|
+
const _errs20 = errors;
|
|
4114
|
+
if (!(data.test instanceof RegExp)) {
|
|
4115
|
+
const err7 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
4116
|
+
if (vErrors === null) {
|
|
4117
|
+
vErrors = [err7];
|
|
4118
|
+
}
|
|
4119
|
+
else {
|
|
4120
|
+
vErrors.push(err7);
|
|
4121
|
+
}
|
|
4122
|
+
errors++;
|
|
4123
|
+
}
|
|
4124
|
+
var _valid2 = _errs20 === errors;
|
|
4125
|
+
valid3 = valid3 || _valid2;
|
|
4126
|
+
if (!valid3) {
|
|
4127
|
+
const err8 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4128
|
+
if (vErrors === null) {
|
|
4129
|
+
vErrors = [err8];
|
|
4130
|
+
}
|
|
4131
|
+
else {
|
|
4132
|
+
vErrors.push(err8);
|
|
4133
|
+
}
|
|
4134
|
+
errors++;
|
|
4135
|
+
validate73.errors = vErrors;
|
|
4136
|
+
return false;
|
|
4137
|
+
}
|
|
4138
|
+
else {
|
|
4139
|
+
errors = _errs19;
|
|
4140
|
+
if (vErrors !== null) {
|
|
4141
|
+
if (_errs19) {
|
|
4142
|
+
vErrors.length = _errs19;
|
|
3944
4143
|
}
|
|
3945
4144
|
else {
|
|
3946
|
-
vErrors
|
|
4145
|
+
vErrors = null;
|
|
3947
4146
|
}
|
|
3948
|
-
errors++;
|
|
3949
|
-
break;
|
|
3950
4147
|
}
|
|
3951
4148
|
}
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
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" };
|
|
4149
|
+
var valid0 = _errs18 === errors;
|
|
4150
|
+
}
|
|
4151
|
+
else {
|
|
4152
|
+
var valid0 = true;
|
|
4153
|
+
}
|
|
4154
|
+
if (valid0) {
|
|
4155
|
+
if (data.minSize !== undefined) {
|
|
4156
|
+
let data6 = data.minSize;
|
|
4157
|
+
const _errs21 = errors;
|
|
4158
|
+
const _errs22 = errors;
|
|
4159
|
+
let valid4 = false;
|
|
4160
|
+
let passing0 = null;
|
|
4161
|
+
const _errs23 = errors;
|
|
4162
|
+
const _errs25 = errors;
|
|
4163
|
+
let valid6 = false;
|
|
4164
|
+
const _errs26 = errors;
|
|
4165
|
+
if (errors === _errs26) {
|
|
4166
|
+
if (typeof data6 == "number") {
|
|
4167
|
+
if (data6 < 0 || isNaN(data6)) {
|
|
4168
|
+
const err9 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3975
4169
|
if (vErrors === null) {
|
|
3976
|
-
vErrors = [
|
|
4170
|
+
vErrors = [err9];
|
|
3977
4171
|
}
|
|
3978
4172
|
else {
|
|
3979
|
-
vErrors.push(
|
|
4173
|
+
vErrors.push(err9);
|
|
3980
4174
|
}
|
|
3981
4175
|
errors++;
|
|
3982
4176
|
}
|
|
3983
|
-
var _valid1 = _errs14 === errors;
|
|
3984
|
-
valid5 = valid5 || _valid1;
|
|
3985
4177
|
}
|
|
3986
|
-
|
|
3987
|
-
const
|
|
4178
|
+
else {
|
|
4179
|
+
const err10 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
3988
4180
|
if (vErrors === null) {
|
|
3989
|
-
vErrors = [
|
|
4181
|
+
vErrors = [err10];
|
|
3990
4182
|
}
|
|
3991
4183
|
else {
|
|
3992
|
-
vErrors.push(
|
|
4184
|
+
vErrors.push(err10);
|
|
3993
4185
|
}
|
|
3994
4186
|
errors++;
|
|
3995
4187
|
}
|
|
3996
|
-
else {
|
|
3997
|
-
errors = _errs12;
|
|
3998
|
-
if (vErrors !== null) {
|
|
3999
|
-
if (_errs12) {
|
|
4000
|
-
vErrors.length = _errs12;
|
|
4001
|
-
}
|
|
4002
|
-
else {
|
|
4003
|
-
vErrors = null;
|
|
4004
|
-
}
|
|
4005
|
-
}
|
|
4006
|
-
}
|
|
4007
|
-
var valid4 = _errs11 === errors;
|
|
4008
4188
|
}
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
if (
|
|
4014
|
-
|
|
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;
|
|
4189
|
+
var _valid4 = _errs26 === errors;
|
|
4190
|
+
valid6 = valid6 || _valid4;
|
|
4191
|
+
if (!valid6) {
|
|
4192
|
+
const err11 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4193
|
+
if (vErrors === null) {
|
|
4194
|
+
vErrors = [err11];
|
|
4041
4195
|
}
|
|
4042
4196
|
else {
|
|
4043
|
-
|
|
4197
|
+
vErrors.push(err11);
|
|
4044
4198
|
}
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
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;
|
|
4199
|
+
errors++;
|
|
4200
|
+
}
|
|
4201
|
+
else {
|
|
4202
|
+
errors = _errs25;
|
|
4203
|
+
if (vErrors !== null) {
|
|
4204
|
+
if (_errs25) {
|
|
4205
|
+
vErrors.length = _errs25;
|
|
4116
4206
|
}
|
|
4117
4207
|
else {
|
|
4118
|
-
|
|
4208
|
+
vErrors = null;
|
|
4119
4209
|
}
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
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
|
-
}
|
|
4201
|
-
}
|
|
4210
|
+
}
|
|
4211
|
+
}
|
|
4212
|
+
var _valid3 = _errs23 === errors;
|
|
4213
|
+
if (_valid3) {
|
|
4214
|
+
valid4 = true;
|
|
4215
|
+
passing0 = 0;
|
|
4216
|
+
}
|
|
4217
|
+
if (!valid4) {
|
|
4218
|
+
const err12 = { instancePath: instancePath + "/minSize", schemaPath: "#/properties/minSize/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
4219
|
+
if (vErrors === null) {
|
|
4220
|
+
vErrors = [err12];
|
|
4221
|
+
}
|
|
4222
|
+
else {
|
|
4223
|
+
vErrors.push(err12);
|
|
4224
|
+
}
|
|
4225
|
+
errors++;
|
|
4226
|
+
validate73.errors = vErrors;
|
|
4227
|
+
return false;
|
|
4228
|
+
}
|
|
4229
|
+
else {
|
|
4230
|
+
errors = _errs22;
|
|
4231
|
+
if (vErrors !== null) {
|
|
4232
|
+
if (_errs22) {
|
|
4233
|
+
vErrors.length = _errs22;
|
|
4234
|
+
}
|
|
4235
|
+
else {
|
|
4236
|
+
vErrors = null;
|
|
4202
4237
|
}
|
|
4203
4238
|
}
|
|
4204
4239
|
}
|
|
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;
|
|
4240
|
+
var valid0 = _errs21 === errors;
|
|
4237
4241
|
}
|
|
4238
4242
|
else {
|
|
4239
|
-
|
|
4243
|
+
var valid0 = true;
|
|
4240
4244
|
}
|
|
4241
4245
|
}
|
|
4242
4246
|
}
|
|
4243
|
-
var valid1 = _errs5 === errors;
|
|
4244
|
-
if (!valid1) {
|
|
4245
|
-
break;
|
|
4246
|
-
}
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
|
-
else {
|
|
4250
|
-
validate72.errors = [{ instancePath: instancePath + "/cacheGroups", schemaPath: "#/properties/cacheGroups/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
4251
|
-
return false;
|
|
4252
|
-
}
|
|
4253
4249
|
}
|
|
4254
|
-
var valid0 = _errs2 === errors;
|
|
4255
4250
|
}
|
|
4256
|
-
|
|
4257
|
-
|
|
4251
|
+
}
|
|
4252
|
+
}
|
|
4253
|
+
else {
|
|
4254
|
+
validate73.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
4255
|
+
return false;
|
|
4256
|
+
}
|
|
4257
|
+
} validate73.errors = vErrors; return errors === 0; }
|
|
4258
|
+
function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
4259
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4260
|
+
const _errs1 = errors;
|
|
4261
|
+
for (const key0 in data) {
|
|
4262
|
+
if (!(func2.call(schema64.properties, key0))) {
|
|
4263
|
+
validate72.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
4264
|
+
return false;
|
|
4265
|
+
break;
|
|
4258
4266
|
}
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
}
|
|
4271
|
-
else {
|
|
4272
|
-
vErrors.push(err16);
|
|
4273
|
-
}
|
|
4274
|
-
errors++;
|
|
4267
|
+
}
|
|
4268
|
+
if (_errs1 === errors) {
|
|
4269
|
+
if (data.name !== undefined) {
|
|
4270
|
+
const _errs2 = errors;
|
|
4271
|
+
const _errs3 = errors;
|
|
4272
|
+
let valid1 = false;
|
|
4273
|
+
const _errs4 = errors;
|
|
4274
|
+
if (typeof data.name !== "string") {
|
|
4275
|
+
const err0 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4276
|
+
if (vErrors === null) {
|
|
4277
|
+
vErrors = [err0];
|
|
4275
4278
|
}
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
validate72.errors = vErrors;
|
|
4288
|
-
return false;
|
|
4279
|
+
else {
|
|
4280
|
+
vErrors.push(err0);
|
|
4281
|
+
}
|
|
4282
|
+
errors++;
|
|
4283
|
+
}
|
|
4284
|
+
var _valid0 = _errs4 === errors;
|
|
4285
|
+
valid1 = valid1 || _valid0;
|
|
4286
|
+
if (!valid1) {
|
|
4287
|
+
const err1 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4288
|
+
if (vErrors === null) {
|
|
4289
|
+
vErrors = [err1];
|
|
4289
4290
|
}
|
|
4290
4291
|
else {
|
|
4291
|
-
|
|
4292
|
-
if (vErrors !== null) {
|
|
4293
|
-
if (_errs31) {
|
|
4294
|
-
vErrors.length = _errs31;
|
|
4295
|
-
}
|
|
4296
|
-
else {
|
|
4297
|
-
vErrors = null;
|
|
4298
|
-
}
|
|
4299
|
-
}
|
|
4292
|
+
vErrors.push(err1);
|
|
4300
4293
|
}
|
|
4301
|
-
|
|
4294
|
+
errors++;
|
|
4295
|
+
validate72.errors = vErrors;
|
|
4296
|
+
return false;
|
|
4302
4297
|
}
|
|
4303
4298
|
else {
|
|
4304
|
-
|
|
4299
|
+
errors = _errs3;
|
|
4300
|
+
if (vErrors !== null) {
|
|
4301
|
+
if (_errs3) {
|
|
4302
|
+
vErrors.length = _errs3;
|
|
4303
|
+
}
|
|
4304
|
+
else {
|
|
4305
|
+
vErrors = null;
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4305
4308
|
}
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4309
|
+
var valid0 = _errs2 === errors;
|
|
4310
|
+
}
|
|
4311
|
+
else {
|
|
4312
|
+
var valid0 = true;
|
|
4313
|
+
}
|
|
4314
|
+
if (valid0) {
|
|
4315
|
+
if (data.cacheGroups !== undefined) {
|
|
4316
|
+
let data1 = data.cacheGroups;
|
|
4317
|
+
const _errs6 = errors;
|
|
4318
|
+
if (errors === _errs6) {
|
|
4319
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
4320
|
+
for (const key1 in data1) {
|
|
4321
|
+
const _errs9 = errors;
|
|
4322
|
+
const _errs10 = errors;
|
|
4323
|
+
let valid3 = false;
|
|
4324
|
+
const _errs11 = errors;
|
|
4325
|
+
if (!(validate73(data1[key1], { instancePath: instancePath + "/cacheGroups/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data1, parentDataProperty: key1, rootData }))) {
|
|
4326
|
+
vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
|
|
4327
|
+
errors = vErrors.length;
|
|
4328
|
+
}
|
|
4329
|
+
var _valid1 = _errs11 === errors;
|
|
4330
|
+
valid3 = valid3 || _valid1;
|
|
4331
|
+
if (!valid3) {
|
|
4332
|
+
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" };
|
|
4321
4333
|
if (vErrors === null) {
|
|
4322
|
-
vErrors = [
|
|
4334
|
+
vErrors = [err2];
|
|
4323
4335
|
}
|
|
4324
4336
|
else {
|
|
4325
|
-
vErrors.push(
|
|
4337
|
+
vErrors.push(err2);
|
|
4326
4338
|
}
|
|
4327
4339
|
errors++;
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
else {
|
|
4331
|
-
const err19 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4332
|
-
if (vErrors === null) {
|
|
4333
|
-
vErrors = [err19];
|
|
4340
|
+
validate72.errors = vErrors;
|
|
4341
|
+
return false;
|
|
4334
4342
|
}
|
|
4335
4343
|
else {
|
|
4336
|
-
|
|
4344
|
+
errors = _errs10;
|
|
4345
|
+
if (vErrors !== null) {
|
|
4346
|
+
if (_errs10) {
|
|
4347
|
+
vErrors.length = _errs10;
|
|
4348
|
+
}
|
|
4349
|
+
else {
|
|
4350
|
+
vErrors = null;
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4353
|
+
}
|
|
4354
|
+
var valid2 = _errs9 === errors;
|
|
4355
|
+
if (!valid2) {
|
|
4356
|
+
break;
|
|
4337
4357
|
}
|
|
4338
|
-
errors++;
|
|
4339
4358
|
}
|
|
4340
4359
|
}
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4360
|
+
else {
|
|
4361
|
+
validate72.errors = [{ instancePath: instancePath + "/cacheGroups", schemaPath: "#/properties/cacheGroups/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
4362
|
+
return false;
|
|
4363
|
+
}
|
|
4364
|
+
}
|
|
4365
|
+
var valid0 = _errs6 === errors;
|
|
4366
|
+
}
|
|
4367
|
+
else {
|
|
4368
|
+
var valid0 = true;
|
|
4369
|
+
}
|
|
4370
|
+
if (valid0) {
|
|
4371
|
+
if (data.chunks !== undefined) {
|
|
4372
|
+
let data3 = data.chunks;
|
|
4373
|
+
const _errs12 = errors;
|
|
4374
|
+
const _errs13 = errors;
|
|
4375
|
+
let valid4 = false;
|
|
4376
|
+
const _errs14 = errors;
|
|
4377
|
+
if (data3 !== "initial" && data3 !== "async" && data3 !== "all") {
|
|
4378
|
+
const err3 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
4345
4379
|
if (vErrors === null) {
|
|
4346
|
-
vErrors = [
|
|
4380
|
+
vErrors = [err3];
|
|
4347
4381
|
}
|
|
4348
4382
|
else {
|
|
4349
|
-
vErrors.push(
|
|
4383
|
+
vErrors.push(err3);
|
|
4350
4384
|
}
|
|
4351
4385
|
errors++;
|
|
4352
4386
|
}
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
vErrors.length = _errs37;
|
|
4358
|
-
}
|
|
4359
|
-
else {
|
|
4360
|
-
vErrors = null;
|
|
4361
|
-
}
|
|
4362
|
-
}
|
|
4363
|
-
}
|
|
4364
|
-
var _valid5 = _errs35 === errors;
|
|
4365
|
-
if (_valid5) {
|
|
4366
|
-
valid9 = true;
|
|
4367
|
-
passing0 = 0;
|
|
4368
|
-
}
|
|
4369
|
-
if (!valid9) {
|
|
4370
|
-
const err21 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/properties/enforceSizeThreshold/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
4387
|
+
var _valid2 = _errs14 === errors;
|
|
4388
|
+
valid4 = valid4 || _valid2;
|
|
4389
|
+
if (!valid4) {
|
|
4390
|
+
const err4 = { instancePath: instancePath + "/chunks", schemaPath: "#/properties/chunks/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4371
4391
|
if (vErrors === null) {
|
|
4372
|
-
vErrors = [
|
|
4392
|
+
vErrors = [err4];
|
|
4373
4393
|
}
|
|
4374
4394
|
else {
|
|
4375
|
-
vErrors.push(
|
|
4395
|
+
vErrors.push(err4);
|
|
4376
4396
|
}
|
|
4377
4397
|
errors++;
|
|
4378
4398
|
validate72.errors = vErrors;
|
|
4379
4399
|
return false;
|
|
4380
4400
|
}
|
|
4381
4401
|
else {
|
|
4382
|
-
errors =
|
|
4402
|
+
errors = _errs13;
|
|
4383
4403
|
if (vErrors !== null) {
|
|
4384
|
-
if (
|
|
4385
|
-
vErrors.length =
|
|
4404
|
+
if (_errs13) {
|
|
4405
|
+
vErrors.length = _errs13;
|
|
4386
4406
|
}
|
|
4387
4407
|
else {
|
|
4388
4408
|
vErrors = null;
|
|
4389
4409
|
}
|
|
4390
4410
|
}
|
|
4391
4411
|
}
|
|
4392
|
-
var valid0 =
|
|
4412
|
+
var valid0 = _errs12 === errors;
|
|
4393
4413
|
}
|
|
4394
4414
|
else {
|
|
4395
4415
|
var valid0 = true;
|
|
4396
4416
|
}
|
|
4397
4417
|
if (valid0) {
|
|
4398
|
-
if (data.
|
|
4399
|
-
let
|
|
4400
|
-
const
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4418
|
+
if (data.enforceSizeThreshold !== undefined) {
|
|
4419
|
+
let data4 = data.enforceSizeThreshold;
|
|
4420
|
+
const _errs15 = errors;
|
|
4421
|
+
const _errs16 = errors;
|
|
4422
|
+
let valid5 = false;
|
|
4423
|
+
let passing0 = null;
|
|
4424
|
+
const _errs17 = errors;
|
|
4425
|
+
const _errs19 = errors;
|
|
4426
|
+
let valid7 = false;
|
|
4427
|
+
const _errs20 = errors;
|
|
4428
|
+
if (errors === _errs20) {
|
|
4429
|
+
if (typeof data4 == "number") {
|
|
4430
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
4431
|
+
const err5 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4432
|
+
if (vErrors === null) {
|
|
4433
|
+
vErrors = [err5];
|
|
4434
|
+
}
|
|
4435
|
+
else {
|
|
4436
|
+
vErrors.push(err5);
|
|
4437
|
+
}
|
|
4438
|
+
errors++;
|
|
4406
4439
|
}
|
|
4407
4440
|
}
|
|
4408
4441
|
else {
|
|
4409
|
-
|
|
4410
|
-
|
|
4442
|
+
const err6 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4443
|
+
if (vErrors === null) {
|
|
4444
|
+
vErrors = [err6];
|
|
4445
|
+
}
|
|
4446
|
+
else {
|
|
4447
|
+
vErrors.push(err6);
|
|
4448
|
+
}
|
|
4449
|
+
errors++;
|
|
4450
|
+
}
|
|
4451
|
+
}
|
|
4452
|
+
var _valid4 = _errs20 === errors;
|
|
4453
|
+
valid7 = valid7 || _valid4;
|
|
4454
|
+
if (!valid7) {
|
|
4455
|
+
const err7 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4456
|
+
if (vErrors === null) {
|
|
4457
|
+
vErrors = [err7];
|
|
4458
|
+
}
|
|
4459
|
+
else {
|
|
4460
|
+
vErrors.push(err7);
|
|
4461
|
+
}
|
|
4462
|
+
errors++;
|
|
4463
|
+
}
|
|
4464
|
+
else {
|
|
4465
|
+
errors = _errs19;
|
|
4466
|
+
if (vErrors !== null) {
|
|
4467
|
+
if (_errs19) {
|
|
4468
|
+
vErrors.length = _errs19;
|
|
4469
|
+
}
|
|
4470
|
+
else {
|
|
4471
|
+
vErrors = null;
|
|
4472
|
+
}
|
|
4473
|
+
}
|
|
4474
|
+
}
|
|
4475
|
+
var _valid3 = _errs17 === errors;
|
|
4476
|
+
if (_valid3) {
|
|
4477
|
+
valid5 = true;
|
|
4478
|
+
passing0 = 0;
|
|
4479
|
+
}
|
|
4480
|
+
if (!valid5) {
|
|
4481
|
+
const err8 = { instancePath: instancePath + "/enforceSizeThreshold", schemaPath: "#/properties/enforceSizeThreshold/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
4482
|
+
if (vErrors === null) {
|
|
4483
|
+
vErrors = [err8];
|
|
4484
|
+
}
|
|
4485
|
+
else {
|
|
4486
|
+
vErrors.push(err8);
|
|
4487
|
+
}
|
|
4488
|
+
errors++;
|
|
4489
|
+
validate72.errors = vErrors;
|
|
4490
|
+
return false;
|
|
4491
|
+
}
|
|
4492
|
+
else {
|
|
4493
|
+
errors = _errs16;
|
|
4494
|
+
if (vErrors !== null) {
|
|
4495
|
+
if (_errs16) {
|
|
4496
|
+
vErrors.length = _errs16;
|
|
4497
|
+
}
|
|
4498
|
+
else {
|
|
4499
|
+
vErrors = null;
|
|
4500
|
+
}
|
|
4411
4501
|
}
|
|
4412
4502
|
}
|
|
4413
|
-
var valid0 =
|
|
4503
|
+
var valid0 = _errs15 === errors;
|
|
4414
4504
|
}
|
|
4415
4505
|
else {
|
|
4416
4506
|
var valid0 = true;
|
|
4417
4507
|
}
|
|
4418
4508
|
if (valid0) {
|
|
4419
|
-
if (data.
|
|
4420
|
-
let
|
|
4421
|
-
const
|
|
4422
|
-
if (errors ===
|
|
4423
|
-
if (typeof
|
|
4424
|
-
if (
|
|
4425
|
-
validate72.errors = [{ instancePath: instancePath + "/
|
|
4509
|
+
if (data.maxAsyncRequests !== undefined) {
|
|
4510
|
+
let data5 = data.maxAsyncRequests;
|
|
4511
|
+
const _errs22 = errors;
|
|
4512
|
+
if (errors === _errs22) {
|
|
4513
|
+
if (typeof data5 == "number") {
|
|
4514
|
+
if (data5 < 1 || isNaN(data5)) {
|
|
4515
|
+
validate72.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4426
4516
|
return false;
|
|
4427
4517
|
}
|
|
4428
4518
|
}
|
|
4429
4519
|
else {
|
|
4430
|
-
validate72.errors = [{ instancePath: instancePath + "/
|
|
4520
|
+
validate72.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4431
4521
|
return false;
|
|
4432
4522
|
}
|
|
4433
4523
|
}
|
|
4434
|
-
var valid0 =
|
|
4524
|
+
var valid0 = _errs22 === errors;
|
|
4435
4525
|
}
|
|
4436
4526
|
else {
|
|
4437
4527
|
var valid0 = true;
|
|
4438
4528
|
}
|
|
4439
4529
|
if (valid0) {
|
|
4440
|
-
if (data.
|
|
4441
|
-
let
|
|
4442
|
-
const
|
|
4443
|
-
if (errors ===
|
|
4444
|
-
if (typeof
|
|
4445
|
-
if (
|
|
4446
|
-
validate72.errors = [{ instancePath: instancePath + "/
|
|
4530
|
+
if (data.maxInitialRequests !== undefined) {
|
|
4531
|
+
let data6 = data.maxInitialRequests;
|
|
4532
|
+
const _errs24 = errors;
|
|
4533
|
+
if (errors === _errs24) {
|
|
4534
|
+
if (typeof data6 == "number") {
|
|
4535
|
+
if (data6 < 1 || isNaN(data6)) {
|
|
4536
|
+
validate72.errors = [{ instancePath: instancePath + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4447
4537
|
return false;
|
|
4448
4538
|
}
|
|
4449
4539
|
}
|
|
4450
4540
|
else {
|
|
4451
|
-
validate72.errors = [{ instancePath: instancePath + "/
|
|
4541
|
+
validate72.errors = [{ instancePath: instancePath + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4452
4542
|
return false;
|
|
4453
4543
|
}
|
|
4454
4544
|
}
|
|
4455
|
-
var valid0 =
|
|
4545
|
+
var valid0 = _errs24 === errors;
|
|
4456
4546
|
}
|
|
4457
4547
|
else {
|
|
4458
4548
|
var valid0 = true;
|
|
4459
4549
|
}
|
|
4460
4550
|
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;
|
|
4551
|
+
if (data.minChunks !== undefined) {
|
|
4552
|
+
let data7 = data.minChunks;
|
|
4553
|
+
const _errs26 = errors;
|
|
4554
|
+
if (errors === _errs26) {
|
|
4555
|
+
if (typeof data7 == "number") {
|
|
4556
|
+
if (data7 < 1 || isNaN(data7)) {
|
|
4557
|
+
validate72.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4558
|
+
return false;
|
|
4515
4559
|
}
|
|
4516
4560
|
}
|
|
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
4561
|
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
|
-
}
|
|
4562
|
+
validate72.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4563
|
+
return false;
|
|
4544
4564
|
}
|
|
4545
4565
|
}
|
|
4546
|
-
var valid0 =
|
|
4566
|
+
var valid0 = _errs26 === errors;
|
|
4547
4567
|
}
|
|
4548
4568
|
else {
|
|
4549
4569
|
var valid0 = true;
|
|
4550
4570
|
}
|
|
4551
4571
|
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
|
|
4572
|
+
if (data.minRemainingSize !== undefined) {
|
|
4573
|
+
let data8 = data.minRemainingSize;
|
|
4574
|
+
const _errs28 = errors;
|
|
4575
|
+
const _errs29 = errors;
|
|
4576
|
+
let valid8 = false;
|
|
4577
|
+
let passing1 = null;
|
|
4578
|
+
const _errs30 = errors;
|
|
4579
|
+
const _errs32 = errors;
|
|
4580
|
+
let valid10 = false;
|
|
4581
|
+
const _errs33 = errors;
|
|
4582
|
+
if (errors === _errs33) {
|
|
4583
|
+
if (typeof data8 == "number") {
|
|
4584
|
+
if (data8 < 0 || isNaN(data8)) {
|
|
4585
|
+
const err9 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4566
4586
|
if (vErrors === null) {
|
|
4567
|
-
vErrors = [
|
|
4587
|
+
vErrors = [err9];
|
|
4568
4588
|
}
|
|
4569
4589
|
else {
|
|
4570
|
-
vErrors.push(
|
|
4590
|
+
vErrors.push(err9);
|
|
4571
4591
|
}
|
|
4572
4592
|
errors++;
|
|
4573
4593
|
}
|
|
4574
4594
|
}
|
|
4575
4595
|
else {
|
|
4576
|
-
const
|
|
4596
|
+
const err10 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4577
4597
|
if (vErrors === null) {
|
|
4578
|
-
vErrors = [
|
|
4598
|
+
vErrors = [err10];
|
|
4579
4599
|
}
|
|
4580
4600
|
else {
|
|
4581
|
-
vErrors.push(
|
|
4601
|
+
vErrors.push(err10);
|
|
4582
4602
|
}
|
|
4583
4603
|
errors++;
|
|
4584
4604
|
}
|
|
4585
4605
|
}
|
|
4586
|
-
var
|
|
4587
|
-
|
|
4588
|
-
if (!
|
|
4589
|
-
const
|
|
4606
|
+
var _valid6 = _errs33 === errors;
|
|
4607
|
+
valid10 = valid10 || _valid6;
|
|
4608
|
+
if (!valid10) {
|
|
4609
|
+
const err11 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4590
4610
|
if (vErrors === null) {
|
|
4591
|
-
vErrors = [
|
|
4611
|
+
vErrors = [err11];
|
|
4592
4612
|
}
|
|
4593
4613
|
else {
|
|
4594
|
-
vErrors.push(
|
|
4614
|
+
vErrors.push(err11);
|
|
4595
4615
|
}
|
|
4596
4616
|
errors++;
|
|
4597
4617
|
}
|
|
4598
4618
|
else {
|
|
4599
|
-
errors =
|
|
4619
|
+
errors = _errs32;
|
|
4600
4620
|
if (vErrors !== null) {
|
|
4601
|
-
if (
|
|
4602
|
-
vErrors.length =
|
|
4621
|
+
if (_errs32) {
|
|
4622
|
+
vErrors.length = _errs32;
|
|
4603
4623
|
}
|
|
4604
4624
|
else {
|
|
4605
4625
|
vErrors = null;
|
|
4606
4626
|
}
|
|
4607
4627
|
}
|
|
4608
4628
|
}
|
|
4609
|
-
var
|
|
4610
|
-
if (
|
|
4611
|
-
|
|
4612
|
-
|
|
4629
|
+
var _valid5 = _errs30 === errors;
|
|
4630
|
+
if (_valid5) {
|
|
4631
|
+
valid8 = true;
|
|
4632
|
+
passing1 = 0;
|
|
4613
4633
|
}
|
|
4614
|
-
if (!
|
|
4615
|
-
const
|
|
4634
|
+
if (!valid8) {
|
|
4635
|
+
const err12 = { instancePath: instancePath + "/minRemainingSize", schemaPath: "#/properties/minRemainingSize/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
4616
4636
|
if (vErrors === null) {
|
|
4617
|
-
vErrors = [
|
|
4637
|
+
vErrors = [err12];
|
|
4618
4638
|
}
|
|
4619
4639
|
else {
|
|
4620
|
-
vErrors.push(
|
|
4640
|
+
vErrors.push(err12);
|
|
4621
4641
|
}
|
|
4622
4642
|
errors++;
|
|
4623
4643
|
validate72.errors = vErrors;
|
|
4624
4644
|
return false;
|
|
4625
4645
|
}
|
|
4626
4646
|
else {
|
|
4627
|
-
errors =
|
|
4647
|
+
errors = _errs29;
|
|
4628
4648
|
if (vErrors !== null) {
|
|
4629
|
-
if (
|
|
4630
|
-
vErrors.length =
|
|
4649
|
+
if (_errs29) {
|
|
4650
|
+
vErrors.length = _errs29;
|
|
4631
4651
|
}
|
|
4632
4652
|
else {
|
|
4633
4653
|
vErrors = null;
|
|
4634
4654
|
}
|
|
4635
4655
|
}
|
|
4636
4656
|
}
|
|
4637
|
-
var valid0 =
|
|
4657
|
+
var valid0 = _errs28 === errors;
|
|
4638
4658
|
}
|
|
4639
4659
|
else {
|
|
4640
4660
|
var valid0 = true;
|
|
4641
4661
|
}
|
|
4662
|
+
if (valid0) {
|
|
4663
|
+
if (data.minSize !== undefined) {
|
|
4664
|
+
let data9 = data.minSize;
|
|
4665
|
+
const _errs35 = errors;
|
|
4666
|
+
const _errs36 = errors;
|
|
4667
|
+
let valid11 = false;
|
|
4668
|
+
let passing2 = null;
|
|
4669
|
+
const _errs37 = errors;
|
|
4670
|
+
const _errs39 = errors;
|
|
4671
|
+
let valid13 = false;
|
|
4672
|
+
const _errs40 = errors;
|
|
4673
|
+
if (errors === _errs40) {
|
|
4674
|
+
if (typeof data9 == "number") {
|
|
4675
|
+
if (data9 < 0 || isNaN(data9)) {
|
|
4676
|
+
const err13 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4677
|
+
if (vErrors === null) {
|
|
4678
|
+
vErrors = [err13];
|
|
4679
|
+
}
|
|
4680
|
+
else {
|
|
4681
|
+
vErrors.push(err13);
|
|
4682
|
+
}
|
|
4683
|
+
errors++;
|
|
4684
|
+
}
|
|
4685
|
+
}
|
|
4686
|
+
else {
|
|
4687
|
+
const err14 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
4688
|
+
if (vErrors === null) {
|
|
4689
|
+
vErrors = [err14];
|
|
4690
|
+
}
|
|
4691
|
+
else {
|
|
4692
|
+
vErrors.push(err14);
|
|
4693
|
+
}
|
|
4694
|
+
errors++;
|
|
4695
|
+
}
|
|
4696
|
+
}
|
|
4697
|
+
var _valid8 = _errs40 === errors;
|
|
4698
|
+
valid13 = valid13 || _valid8;
|
|
4699
|
+
if (!valid13) {
|
|
4700
|
+
const err15 = { instancePath: instancePath + "/minSize", schemaPath: "#/definitions/OptimizationSplitChunksSizes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
4701
|
+
if (vErrors === null) {
|
|
4702
|
+
vErrors = [err15];
|
|
4703
|
+
}
|
|
4704
|
+
else {
|
|
4705
|
+
vErrors.push(err15);
|
|
4706
|
+
}
|
|
4707
|
+
errors++;
|
|
4708
|
+
}
|
|
4709
|
+
else {
|
|
4710
|
+
errors = _errs39;
|
|
4711
|
+
if (vErrors !== null) {
|
|
4712
|
+
if (_errs39) {
|
|
4713
|
+
vErrors.length = _errs39;
|
|
4714
|
+
}
|
|
4715
|
+
else {
|
|
4716
|
+
vErrors = null;
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4719
|
+
}
|
|
4720
|
+
var _valid7 = _errs37 === errors;
|
|
4721
|
+
if (_valid7) {
|
|
4722
|
+
valid11 = true;
|
|
4723
|
+
passing2 = 0;
|
|
4724
|
+
}
|
|
4725
|
+
if (!valid11) {
|
|
4726
|
+
const err16 = { instancePath: instancePath + "/minSize", schemaPath: "#/properties/minSize/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
|
|
4727
|
+
if (vErrors === null) {
|
|
4728
|
+
vErrors = [err16];
|
|
4729
|
+
}
|
|
4730
|
+
else {
|
|
4731
|
+
vErrors.push(err16);
|
|
4732
|
+
}
|
|
4733
|
+
errors++;
|
|
4734
|
+
validate72.errors = vErrors;
|
|
4735
|
+
return false;
|
|
4736
|
+
}
|
|
4737
|
+
else {
|
|
4738
|
+
errors = _errs36;
|
|
4739
|
+
if (vErrors !== null) {
|
|
4740
|
+
if (_errs36) {
|
|
4741
|
+
vErrors.length = _errs36;
|
|
4742
|
+
}
|
|
4743
|
+
else {
|
|
4744
|
+
vErrors = null;
|
|
4745
|
+
}
|
|
4746
|
+
}
|
|
4747
|
+
}
|
|
4748
|
+
var valid0 = _errs35 === errors;
|
|
4749
|
+
}
|
|
4750
|
+
else {
|
|
4751
|
+
var valid0 = true;
|
|
4752
|
+
}
|
|
4753
|
+
if (valid0) {
|
|
4754
|
+
if (data.reuseExistingChunk !== undefined) {
|
|
4755
|
+
const _errs42 = errors;
|
|
4756
|
+
if (typeof data.reuseExistingChunk !== "boolean") {
|
|
4757
|
+
validate72.errors = [{ instancePath: instancePath + "/reuseExistingChunk", schemaPath: "#/properties/reuseExistingChunk/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
4758
|
+
return false;
|
|
4759
|
+
}
|
|
4760
|
+
var valid0 = _errs42 === errors;
|
|
4761
|
+
}
|
|
4762
|
+
else {
|
|
4763
|
+
var valid0 = true;
|
|
4764
|
+
}
|
|
4765
|
+
}
|
|
4766
|
+
}
|
|
4642
4767
|
}
|
|
4643
4768
|
}
|
|
4644
4769
|
}
|
|
@@ -4657,7 +4782,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4657
4782
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4658
4783
|
const _errs1 = errors;
|
|
4659
4784
|
for (const key0 in data) {
|
|
4660
|
-
if (!((
|
|
4785
|
+
if (!(func2.call(schema60.properties, key0))) {
|
|
4661
4786
|
validate71.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
4662
4787
|
return false;
|
|
4663
4788
|
break;
|
|
@@ -5107,6 +5232,19 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5107
5232
|
else {
|
|
5108
5233
|
var valid0 = true;
|
|
5109
5234
|
}
|
|
5235
|
+
if (valid0) {
|
|
5236
|
+
if (data.realContentHash !== undefined) {
|
|
5237
|
+
const _errs43 = errors;
|
|
5238
|
+
if (typeof data.realContentHash !== "boolean") {
|
|
5239
|
+
validate71.errors = [{ instancePath: instancePath + "/realContentHash", schemaPath: "#/properties/realContentHash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
5240
|
+
return false;
|
|
5241
|
+
}
|
|
5242
|
+
var valid0 = _errs43 === errors;
|
|
5243
|
+
}
|
|
5244
|
+
else {
|
|
5245
|
+
var valid0 = true;
|
|
5246
|
+
}
|
|
5247
|
+
}
|
|
5110
5248
|
}
|
|
5111
5249
|
}
|
|
5112
5250
|
}
|
|
@@ -5121,27 +5259,27 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5121
5259
|
return false;
|
|
5122
5260
|
}
|
|
5123
5261
|
} 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
|
|
5262
|
+
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" } } };
|
|
5263
|
+
const schema71 = { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" };
|
|
5264
|
+
const schema72 = { "description": "Clears the output build directory", "type": "boolean" };
|
|
5265
|
+
const schema73 = { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] };
|
|
5266
|
+
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" }] };
|
|
5267
|
+
const schema83 = { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] };
|
|
5268
|
+
const schema90 = { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" };
|
|
5269
|
+
const schema95 = { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 };
|
|
5270
|
+
const schema96 = { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" };
|
|
5271
|
+
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 }] };
|
|
5272
|
+
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" }] };
|
|
5273
|
+
const schema106 = { "description": "Output javascript files as module source type.", "type": "boolean" };
|
|
5274
|
+
const schema107 = { "description": "The output directory as **absolute path** (required).", "type": "string" };
|
|
5275
|
+
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" };
|
|
5276
|
+
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" };
|
|
5277
|
+
const schema112 = { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 };
|
|
5278
|
+
const schema113 = { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 };
|
|
5279
|
+
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 } } };
|
|
5280
|
+
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" }] };
|
|
5281
|
+
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" } } };
|
|
5282
|
+
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
5283
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5146
5284
|
if (vErrors === null) {
|
|
5147
5285
|
vErrors = [err0];
|
|
@@ -5268,7 +5406,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5268
5406
|
vErrors.push(err7);
|
|
5269
5407
|
}
|
|
5270
5408
|
errors++;
|
|
5271
|
-
|
|
5409
|
+
validate78.errors = vErrors;
|
|
5272
5410
|
return false;
|
|
5273
5411
|
}
|
|
5274
5412
|
else {
|
|
@@ -5281,10 +5419,10 @@ else {
|
|
|
5281
5419
|
vErrors = null;
|
|
5282
5420
|
}
|
|
5283
5421
|
}
|
|
5284
|
-
}
|
|
5285
|
-
const
|
|
5286
|
-
const
|
|
5287
|
-
function
|
|
5422
|
+
} validate78.errors = vErrors; return errors === 0; }
|
|
5423
|
+
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" }] };
|
|
5424
|
+
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" }] };
|
|
5425
|
+
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
5426
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
5289
5427
|
if (vErrors === null) {
|
|
5290
5428
|
vErrors = [err0];
|
|
@@ -5357,7 +5495,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5357
5495
|
vErrors.push(err4);
|
|
5358
5496
|
}
|
|
5359
5497
|
errors++;
|
|
5360
|
-
|
|
5498
|
+
validate80.errors = vErrors;
|
|
5361
5499
|
return false;
|
|
5362
5500
|
}
|
|
5363
5501
|
else {
|
|
@@ -5370,9 +5508,9 @@ else {
|
|
|
5370
5508
|
vErrors = null;
|
|
5371
5509
|
}
|
|
5372
5510
|
}
|
|
5373
|
-
}
|
|
5374
|
-
const
|
|
5375
|
-
function
|
|
5511
|
+
} validate80.errors = vErrors; return errors === 0; }
|
|
5512
|
+
const schema79 = { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } };
|
|
5513
|
+
function validate82(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5376
5514
|
if (Array.isArray(data)) {
|
|
5377
5515
|
var valid0 = true;
|
|
5378
5516
|
const len0 = data.length;
|
|
@@ -5418,7 +5556,7 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5418
5556
|
vErrors.push(err2);
|
|
5419
5557
|
}
|
|
5420
5558
|
errors++;
|
|
5421
|
-
|
|
5559
|
+
validate82.errors = vErrors;
|
|
5422
5560
|
return false;
|
|
5423
5561
|
}
|
|
5424
5562
|
else {
|
|
@@ -5439,13 +5577,13 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5439
5577
|
}
|
|
5440
5578
|
}
|
|
5441
5579
|
else {
|
|
5442
|
-
|
|
5580
|
+
validate82.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5443
5581
|
return false;
|
|
5444
5582
|
}
|
|
5445
|
-
}
|
|
5446
|
-
const
|
|
5447
|
-
const
|
|
5448
|
-
function
|
|
5583
|
+
} validate82.errors = vErrors; return errors === 0; }
|
|
5584
|
+
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" }] };
|
|
5585
|
+
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" }] };
|
|
5586
|
+
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
5587
|
if (typeof data === "string") {
|
|
5450
5588
|
if (data.length < 1) {
|
|
5451
5589
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5514,7 +5652,7 @@ else {
|
|
|
5514
5652
|
vErrors.push(err4);
|
|
5515
5653
|
}
|
|
5516
5654
|
errors++;
|
|
5517
|
-
|
|
5655
|
+
validate84.errors = vErrors;
|
|
5518
5656
|
return false;
|
|
5519
5657
|
}
|
|
5520
5658
|
else {
|
|
@@ -5527,9 +5665,9 @@ else {
|
|
|
5527
5665
|
vErrors = null;
|
|
5528
5666
|
}
|
|
5529
5667
|
}
|
|
5530
|
-
}
|
|
5531
|
-
const
|
|
5532
|
-
function
|
|
5668
|
+
} validate84.errors = vErrors; return errors === 0; }
|
|
5669
|
+
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" }] };
|
|
5670
|
+
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
5671
|
if (typeof data === "string") {
|
|
5534
5672
|
if (data.length < 1) {
|
|
5535
5673
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5598,7 +5736,7 @@ else {
|
|
|
5598
5736
|
vErrors.push(err4);
|
|
5599
5737
|
}
|
|
5600
5738
|
errors++;
|
|
5601
|
-
|
|
5739
|
+
validate86.errors = vErrors;
|
|
5602
5740
|
return false;
|
|
5603
5741
|
}
|
|
5604
5742
|
else {
|
|
@@ -5611,9 +5749,9 @@ else {
|
|
|
5611
5749
|
vErrors = null;
|
|
5612
5750
|
}
|
|
5613
5751
|
}
|
|
5614
|
-
}
|
|
5615
|
-
const
|
|
5616
|
-
function
|
|
5752
|
+
} validate86.errors = vErrors; return errors === 0; }
|
|
5753
|
+
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" }] };
|
|
5754
|
+
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
5755
|
if (typeof data === "string") {
|
|
5618
5756
|
if (data.length < 1) {
|
|
5619
5757
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5682,7 +5820,7 @@ else {
|
|
|
5682
5820
|
vErrors.push(err4);
|
|
5683
5821
|
}
|
|
5684
5822
|
errors++;
|
|
5685
|
-
|
|
5823
|
+
validate88.errors = vErrors;
|
|
5686
5824
|
return false;
|
|
5687
5825
|
}
|
|
5688
5826
|
else {
|
|
@@ -5695,9 +5833,9 @@ else {
|
|
|
5695
5833
|
vErrors = null;
|
|
5696
5834
|
}
|
|
5697
5835
|
}
|
|
5698
|
-
}
|
|
5699
|
-
const
|
|
5700
|
-
function
|
|
5836
|
+
} validate88.errors = vErrors; return errors === 0; }
|
|
5837
|
+
const schema88 = { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } };
|
|
5838
|
+
function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5701
5839
|
if (Array.isArray(data)) {
|
|
5702
5840
|
var valid0 = true;
|
|
5703
5841
|
const len0 = data.length;
|
|
@@ -5743,7 +5881,7 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5743
5881
|
vErrors.push(err2);
|
|
5744
5882
|
}
|
|
5745
5883
|
errors++;
|
|
5746
|
-
|
|
5884
|
+
validate90.errors = vErrors;
|
|
5747
5885
|
return false;
|
|
5748
5886
|
}
|
|
5749
5887
|
else {
|
|
@@ -5764,12 +5902,12 @@ function validate88(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5764
5902
|
}
|
|
5765
5903
|
}
|
|
5766
5904
|
else {
|
|
5767
|
-
|
|
5905
|
+
validate90.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5768
5906
|
return false;
|
|
5769
5907
|
}
|
|
5770
|
-
}
|
|
5771
|
-
const
|
|
5772
|
-
function
|
|
5908
|
+
} validate90.errors = vErrors; return errors === 0; }
|
|
5909
|
+
const schema91 = { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } };
|
|
5910
|
+
function validate93(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5773
5911
|
if (Array.isArray(data)) {
|
|
5774
5912
|
var valid0 = true;
|
|
5775
5913
|
const len0 = data.length;
|
|
@@ -5815,7 +5953,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5815
5953
|
vErrors.push(err2);
|
|
5816
5954
|
}
|
|
5817
5955
|
errors++;
|
|
5818
|
-
|
|
5956
|
+
validate93.errors = vErrors;
|
|
5819
5957
|
return false;
|
|
5820
5958
|
}
|
|
5821
5959
|
else {
|
|
@@ -5836,12 +5974,12 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5836
5974
|
}
|
|
5837
5975
|
}
|
|
5838
5976
|
else {
|
|
5839
|
-
|
|
5977
|
+
validate93.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5840
5978
|
return false;
|
|
5841
5979
|
}
|
|
5842
|
-
}
|
|
5843
|
-
const
|
|
5844
|
-
function
|
|
5980
|
+
} validate93.errors = vErrors; return errors === 0; }
|
|
5981
|
+
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" }] };
|
|
5982
|
+
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
5983
|
if (typeof data === "string") {
|
|
5846
5984
|
if (data.length < 1) {
|
|
5847
5985
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5910,7 +6048,7 @@ else {
|
|
|
5910
6048
|
vErrors.push(err4);
|
|
5911
6049
|
}
|
|
5912
6050
|
errors++;
|
|
5913
|
-
|
|
6051
|
+
validate95.errors = vErrors;
|
|
5914
6052
|
return false;
|
|
5915
6053
|
}
|
|
5916
6054
|
else {
|
|
@@ -5923,11 +6061,11 @@ else {
|
|
|
5923
6061
|
vErrors = null;
|
|
5924
6062
|
}
|
|
5925
6063
|
}
|
|
5926
|
-
}
|
|
5927
|
-
const
|
|
5928
|
-
const
|
|
5929
|
-
const
|
|
5930
|
-
function
|
|
6064
|
+
} validate95.errors = vErrors; return errors === 0; }
|
|
6065
|
+
const schema97 = { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] };
|
|
6066
|
+
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" }] };
|
|
6067
|
+
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 }] } } };
|
|
6068
|
+
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
6069
|
if (Array.isArray(data)) {
|
|
5932
6070
|
if (data.length < 1) {
|
|
5933
6071
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
@@ -6238,7 +6376,7 @@ function validate96(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6238
6376
|
vErrors.push(err18);
|
|
6239
6377
|
}
|
|
6240
6378
|
errors++;
|
|
6241
|
-
|
|
6379
|
+
validate98.errors = vErrors;
|
|
6242
6380
|
return false;
|
|
6243
6381
|
}
|
|
6244
6382
|
else {
|
|
@@ -6251,20 +6389,20 @@ else {
|
|
|
6251
6389
|
vErrors = null;
|
|
6252
6390
|
}
|
|
6253
6391
|
}
|
|
6254
|
-
}
|
|
6255
|
-
const
|
|
6256
|
-
function
|
|
6392
|
+
} validate98.errors = vErrors; return errors === 0; }
|
|
6393
|
+
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"] };
|
|
6394
|
+
function validate100(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6257
6395
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6258
6396
|
let missing0;
|
|
6259
6397
|
if ((data.type === undefined) && (missing0 = "type")) {
|
|
6260
|
-
|
|
6398
|
+
validate100.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
6261
6399
|
return false;
|
|
6262
6400
|
}
|
|
6263
6401
|
else {
|
|
6264
6402
|
const _errs1 = errors;
|
|
6265
6403
|
for (const key0 in data) {
|
|
6266
6404
|
if (!(((((key0 === "auxiliaryComment") || (key0 === "export")) || (key0 === "name")) || (key0 === "type")) || (key0 === "umdNamedDefine"))) {
|
|
6267
|
-
|
|
6405
|
+
validate100.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
6268
6406
|
return false;
|
|
6269
6407
|
break;
|
|
6270
6408
|
}
|
|
@@ -6272,8 +6410,8 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6272
6410
|
if (_errs1 === errors) {
|
|
6273
6411
|
if (data.auxiliaryComment !== undefined) {
|
|
6274
6412
|
const _errs2 = errors;
|
|
6275
|
-
if (!(
|
|
6276
|
-
vErrors = vErrors === null ?
|
|
6413
|
+
if (!(validate78(data.auxiliaryComment, { instancePath: instancePath + "/auxiliaryComment", parentData: data, parentDataProperty: "auxiliaryComment", rootData }))) {
|
|
6414
|
+
vErrors = vErrors === null ? validate78.errors : vErrors.concat(validate78.errors);
|
|
6277
6415
|
errors = vErrors.length;
|
|
6278
6416
|
}
|
|
6279
6417
|
var valid0 = _errs2 === errors;
|
|
@@ -6376,7 +6514,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6376
6514
|
vErrors.push(err5);
|
|
6377
6515
|
}
|
|
6378
6516
|
errors++;
|
|
6379
|
-
|
|
6517
|
+
validate100.errors = vErrors;
|
|
6380
6518
|
return false;
|
|
6381
6519
|
}
|
|
6382
6520
|
else {
|
|
@@ -6398,8 +6536,8 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6398
6536
|
if (valid0) {
|
|
6399
6537
|
if (data.name !== undefined) {
|
|
6400
6538
|
const _errs12 = errors;
|
|
6401
|
-
if (!(
|
|
6402
|
-
vErrors = vErrors === null ?
|
|
6539
|
+
if (!(validate98(data.name, { instancePath: instancePath + "/name", parentData: data, parentDataProperty: "name", rootData }))) {
|
|
6540
|
+
vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
|
|
6403
6541
|
errors = vErrors.length;
|
|
6404
6542
|
}
|
|
6405
6543
|
var valid0 = _errs12 === errors;
|
|
@@ -6450,7 +6588,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6450
6588
|
vErrors.push(err8);
|
|
6451
6589
|
}
|
|
6452
6590
|
errors++;
|
|
6453
|
-
|
|
6591
|
+
validate100.errors = vErrors;
|
|
6454
6592
|
return false;
|
|
6455
6593
|
}
|
|
6456
6594
|
else {
|
|
@@ -6473,7 +6611,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6473
6611
|
if (data.umdNamedDefine !== undefined) {
|
|
6474
6612
|
const _errs19 = errors;
|
|
6475
6613
|
if (typeof data.umdNamedDefine !== "boolean") {
|
|
6476
|
-
|
|
6614
|
+
validate100.errors = [{ instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6477
6615
|
return false;
|
|
6478
6616
|
}
|
|
6479
6617
|
var valid0 = _errs19 === errors;
|
|
@@ -6489,17 +6627,17 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6489
6627
|
}
|
|
6490
6628
|
}
|
|
6491
6629
|
else {
|
|
6492
|
-
|
|
6630
|
+
validate100.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
6493
6631
|
return false;
|
|
6494
6632
|
}
|
|
6495
|
-
}
|
|
6496
|
-
function
|
|
6497
|
-
vErrors = vErrors === null ?
|
|
6633
|
+
} validate100.errors = vErrors; return errors === 0; }
|
|
6634
|
+
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 }))) {
|
|
6635
|
+
vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
|
|
6498
6636
|
errors = vErrors.length;
|
|
6499
6637
|
} var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
|
|
6500
6638
|
const _errs2 = errors;
|
|
6501
|
-
if (!(
|
|
6502
|
-
vErrors = vErrors === null ?
|
|
6639
|
+
if (!(validate100(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
6640
|
+
vErrors = vErrors === null ? validate100.errors : vErrors.concat(validate100.errors);
|
|
6503
6641
|
errors = vErrors.length;
|
|
6504
6642
|
}
|
|
6505
6643
|
var _valid0 = _errs2 === errors;
|
|
@@ -6513,7 +6651,7 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6513
6651
|
vErrors.push(err0);
|
|
6514
6652
|
}
|
|
6515
6653
|
errors++;
|
|
6516
|
-
|
|
6654
|
+
validate97.errors = vErrors;
|
|
6517
6655
|
return false;
|
|
6518
6656
|
}
|
|
6519
6657
|
else {
|
|
@@ -6526,10 +6664,10 @@ else {
|
|
|
6526
6664
|
vErrors = null;
|
|
6527
6665
|
}
|
|
6528
6666
|
}
|
|
6529
|
-
}
|
|
6530
|
-
const
|
|
6531
|
-
const
|
|
6532
|
-
function
|
|
6667
|
+
} validate97.errors = vErrors; return errors === 0; }
|
|
6668
|
+
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" }] };
|
|
6669
|
+
const schema109 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] };
|
|
6670
|
+
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
6671
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
6534
6672
|
if (vErrors === null) {
|
|
6535
6673
|
vErrors = [err0];
|
|
@@ -6587,7 +6725,91 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
6587
6725
|
vErrors.push(err3);
|
|
6588
6726
|
}
|
|
6589
6727
|
errors++;
|
|
6590
|
-
|
|
6728
|
+
validate105.errors = vErrors;
|
|
6729
|
+
return false;
|
|
6730
|
+
}
|
|
6731
|
+
else {
|
|
6732
|
+
errors = _errs0;
|
|
6733
|
+
if (vErrors !== null) {
|
|
6734
|
+
if (_errs0) {
|
|
6735
|
+
vErrors.length = _errs0;
|
|
6736
|
+
}
|
|
6737
|
+
else {
|
|
6738
|
+
vErrors = null;
|
|
6739
|
+
}
|
|
6740
|
+
}
|
|
6741
|
+
} validate105.errors = vErrors; return errors === 0; }
|
|
6742
|
+
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" }] };
|
|
6743
|
+
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) {
|
|
6744
|
+
if (typeof data === "string") {
|
|
6745
|
+
if (data.length < 1) {
|
|
6746
|
+
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
6747
|
+
if (vErrors === null) {
|
|
6748
|
+
vErrors = [err0];
|
|
6749
|
+
}
|
|
6750
|
+
else {
|
|
6751
|
+
vErrors.push(err0);
|
|
6752
|
+
}
|
|
6753
|
+
errors++;
|
|
6754
|
+
}
|
|
6755
|
+
}
|
|
6756
|
+
else {
|
|
6757
|
+
const err1 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6758
|
+
if (vErrors === null) {
|
|
6759
|
+
vErrors = [err1];
|
|
6760
|
+
}
|
|
6761
|
+
else {
|
|
6762
|
+
vErrors.push(err1);
|
|
6763
|
+
}
|
|
6764
|
+
errors++;
|
|
6765
|
+
}
|
|
6766
|
+
} var _valid1 = _errs4 === errors; valid2 = valid2 || _valid1; if (!valid2) {
|
|
6767
|
+
const _errs6 = errors;
|
|
6768
|
+
if (!(data instanceof Function)) {
|
|
6769
|
+
const err2 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
6770
|
+
if (vErrors === null) {
|
|
6771
|
+
vErrors = [err2];
|
|
6772
|
+
}
|
|
6773
|
+
else {
|
|
6774
|
+
vErrors.push(err2);
|
|
6775
|
+
}
|
|
6776
|
+
errors++;
|
|
6777
|
+
}
|
|
6778
|
+
var _valid1 = _errs6 === errors;
|
|
6779
|
+
valid2 = valid2 || _valid1;
|
|
6780
|
+
} if (!valid2) {
|
|
6781
|
+
const err3 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6782
|
+
if (vErrors === null) {
|
|
6783
|
+
vErrors = [err3];
|
|
6784
|
+
}
|
|
6785
|
+
else {
|
|
6786
|
+
vErrors.push(err3);
|
|
6787
|
+
}
|
|
6788
|
+
errors++;
|
|
6789
|
+
}
|
|
6790
|
+
else {
|
|
6791
|
+
errors = _errs3;
|
|
6792
|
+
if (vErrors !== null) {
|
|
6793
|
+
if (_errs3) {
|
|
6794
|
+
vErrors.length = _errs3;
|
|
6795
|
+
}
|
|
6796
|
+
else {
|
|
6797
|
+
vErrors = null;
|
|
6798
|
+
}
|
|
6799
|
+
}
|
|
6800
|
+
} var _valid0 = _errs1 === errors; if (_valid0) {
|
|
6801
|
+
valid0 = true;
|
|
6802
|
+
passing0 = 0;
|
|
6803
|
+
} if (!valid0) {
|
|
6804
|
+
const err4 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
6805
|
+
if (vErrors === null) {
|
|
6806
|
+
vErrors = [err4];
|
|
6807
|
+
}
|
|
6808
|
+
else {
|
|
6809
|
+
vErrors.push(err4);
|
|
6810
|
+
}
|
|
6811
|
+
errors++;
|
|
6812
|
+
validate107.errors = vErrors;
|
|
6591
6813
|
return false;
|
|
6592
6814
|
}
|
|
6593
6815
|
else {
|
|
@@ -6600,13 +6822,13 @@ else {
|
|
|
6600
6822
|
vErrors = null;
|
|
6601
6823
|
}
|
|
6602
6824
|
}
|
|
6603
|
-
}
|
|
6604
|
-
function
|
|
6825
|
+
} validate107.errors = vErrors; return errors === 0; }
|
|
6826
|
+
function validate77(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6605
6827
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6606
6828
|
const _errs1 = errors;
|
|
6607
6829
|
for (const key0 in data) {
|
|
6608
|
-
if (!(func2.call(
|
|
6609
|
-
|
|
6830
|
+
if (!(func2.call(schema70.properties, key0))) {
|
|
6831
|
+
validate77.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
6610
6832
|
return false;
|
|
6611
6833
|
break;
|
|
6612
6834
|
}
|
|
@@ -6615,7 +6837,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6615
6837
|
if (data.iife !== undefined) {
|
|
6616
6838
|
const _errs2 = errors;
|
|
6617
6839
|
if (typeof data.iife !== "boolean") {
|
|
6618
|
-
|
|
6840
|
+
validate77.errors = [{ instancePath: instancePath + "/iife", schemaPath: "#/definitions/Iife/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6619
6841
|
return false;
|
|
6620
6842
|
}
|
|
6621
6843
|
var valid0 = _errs2 === errors;
|
|
@@ -6627,7 +6849,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6627
6849
|
if (data.clean !== undefined) {
|
|
6628
6850
|
const _errs5 = errors;
|
|
6629
6851
|
if (typeof data.clean !== "boolean") {
|
|
6630
|
-
|
|
6852
|
+
validate77.errors = [{ instancePath: instancePath + "/clean", schemaPath: "#/definitions/Clean/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6631
6853
|
return false;
|
|
6632
6854
|
}
|
|
6633
6855
|
var valid0 = _errs5 === errors;
|
|
@@ -6662,7 +6884,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6662
6884
|
vErrors.push(err1);
|
|
6663
6885
|
}
|
|
6664
6886
|
errors++;
|
|
6665
|
-
|
|
6887
|
+
validate77.errors = vErrors;
|
|
6666
6888
|
return false;
|
|
6667
6889
|
}
|
|
6668
6890
|
else {
|
|
@@ -6688,8 +6910,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6688
6910
|
let valid5 = false;
|
|
6689
6911
|
let passing0 = null;
|
|
6690
6912
|
const _errs15 = errors;
|
|
6691
|
-
if (!(
|
|
6692
|
-
vErrors = vErrors === null ?
|
|
6913
|
+
if (!(validate78(data.auxiliaryComment, { instancePath: instancePath + "/auxiliaryComment", parentData: data, parentDataProperty: "auxiliaryComment", rootData }))) {
|
|
6914
|
+
vErrors = vErrors === null ? validate78.errors : vErrors.concat(validate78.errors);
|
|
6693
6915
|
errors = vErrors.length;
|
|
6694
6916
|
}
|
|
6695
6917
|
var _valid1 = _errs15 === errors;
|
|
@@ -6706,7 +6928,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6706
6928
|
vErrors.push(err2);
|
|
6707
6929
|
}
|
|
6708
6930
|
errors++;
|
|
6709
|
-
|
|
6931
|
+
validate77.errors = vErrors;
|
|
6710
6932
|
return false;
|
|
6711
6933
|
}
|
|
6712
6934
|
else {
|
|
@@ -6768,7 +6990,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6768
6990
|
vErrors.push(err5);
|
|
6769
6991
|
}
|
|
6770
6992
|
errors++;
|
|
6771
|
-
|
|
6993
|
+
validate77.errors = vErrors;
|
|
6772
6994
|
return false;
|
|
6773
6995
|
}
|
|
6774
6996
|
else {
|
|
@@ -6790,8 +7012,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6790
7012
|
if (valid0) {
|
|
6791
7013
|
if (data.chunkLoading !== undefined) {
|
|
6792
7014
|
const _errs22 = errors;
|
|
6793
|
-
if (!(
|
|
6794
|
-
vErrors = vErrors === null ?
|
|
7015
|
+
if (!(validate80(data.chunkLoading, { instancePath: instancePath + "/chunkLoading", parentData: data, parentDataProperty: "chunkLoading", rootData }))) {
|
|
7016
|
+
vErrors = vErrors === null ? validate80.errors : vErrors.concat(validate80.errors);
|
|
6795
7017
|
errors = vErrors.length;
|
|
6796
7018
|
}
|
|
6797
7019
|
var valid0 = _errs22 === errors;
|
|
@@ -6802,8 +7024,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6802
7024
|
if (valid0) {
|
|
6803
7025
|
if (data.enabledChunkLoadingTypes !== undefined) {
|
|
6804
7026
|
const _errs23 = errors;
|
|
6805
|
-
if (!(
|
|
6806
|
-
vErrors = vErrors === null ?
|
|
7027
|
+
if (!(validate82(data.enabledChunkLoadingTypes, { instancePath: instancePath + "/enabledChunkLoadingTypes", parentData: data, parentDataProperty: "enabledChunkLoadingTypes", rootData }))) {
|
|
7028
|
+
vErrors = vErrors === null ? validate82.errors : vErrors.concat(validate82.errors);
|
|
6807
7029
|
errors = vErrors.length;
|
|
6808
7030
|
}
|
|
6809
7031
|
var valid0 = _errs23 === errors;
|
|
@@ -6814,8 +7036,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6814
7036
|
if (valid0) {
|
|
6815
7037
|
if (data.chunkFilename !== undefined) {
|
|
6816
7038
|
const _errs24 = errors;
|
|
6817
|
-
if (!(
|
|
6818
|
-
vErrors = vErrors === null ?
|
|
7039
|
+
if (!(validate84(data.chunkFilename, { instancePath: instancePath + "/chunkFilename", parentData: data, parentDataProperty: "chunkFilename", rootData }))) {
|
|
7040
|
+
vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
|
|
6819
7041
|
errors = vErrors.length;
|
|
6820
7042
|
}
|
|
6821
7043
|
var valid0 = _errs24 === errors;
|
|
@@ -6828,7 +7050,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6828
7050
|
let data8 = data.crossOriginLoading;
|
|
6829
7051
|
const _errs25 = errors;
|
|
6830
7052
|
if (data8 !== false && data8 !== "anonymous" && data8 !== "use-credentials") {
|
|
6831
|
-
|
|
7053
|
+
validate77.errors = [{ instancePath: instancePath + "/crossOriginLoading", schemaPath: "#/definitions/CrossOriginLoading/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
6832
7054
|
return false;
|
|
6833
7055
|
}
|
|
6834
7056
|
var valid0 = _errs25 === errors;
|
|
@@ -6839,8 +7061,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6839
7061
|
if (valid0) {
|
|
6840
7062
|
if (data.cssChunkFilename !== undefined) {
|
|
6841
7063
|
const _errs27 = errors;
|
|
6842
|
-
if (!(
|
|
6843
|
-
vErrors = vErrors === null ?
|
|
7064
|
+
if (!(validate86(data.cssChunkFilename, { instancePath: instancePath + "/cssChunkFilename", parentData: data, parentDataProperty: "cssChunkFilename", rootData }))) {
|
|
7065
|
+
vErrors = vErrors === null ? validate86.errors : vErrors.concat(validate86.errors);
|
|
6844
7066
|
errors = vErrors.length;
|
|
6845
7067
|
}
|
|
6846
7068
|
var valid0 = _errs27 === errors;
|
|
@@ -6851,8 +7073,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6851
7073
|
if (valid0) {
|
|
6852
7074
|
if (data.cssFilename !== undefined) {
|
|
6853
7075
|
const _errs28 = errors;
|
|
6854
|
-
if (!(
|
|
6855
|
-
vErrors = vErrors === null ?
|
|
7076
|
+
if (!(validate88(data.cssFilename, { instancePath: instancePath + "/cssFilename", parentData: data, parentDataProperty: "cssFilename", rootData }))) {
|
|
7077
|
+
vErrors = vErrors === null ? validate88.errors : vErrors.concat(validate88.errors);
|
|
6856
7078
|
errors = vErrors.length;
|
|
6857
7079
|
}
|
|
6858
7080
|
var valid0 = _errs28 === errors;
|
|
@@ -6863,8 +7085,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6863
7085
|
if (valid0) {
|
|
6864
7086
|
if (data.enabledWasmLoadingTypes !== undefined) {
|
|
6865
7087
|
const _errs29 = errors;
|
|
6866
|
-
if (!(
|
|
6867
|
-
vErrors = vErrors === null ?
|
|
7088
|
+
if (!(validate90(data.enabledWasmLoadingTypes, { instancePath: instancePath + "/enabledWasmLoadingTypes", parentData: data, parentDataProperty: "enabledWasmLoadingTypes", rootData }))) {
|
|
7089
|
+
vErrors = vErrors === null ? validate90.errors : vErrors.concat(validate90.errors);
|
|
6868
7090
|
errors = vErrors.length;
|
|
6869
7091
|
}
|
|
6870
7092
|
var valid0 = _errs29 === errors;
|
|
@@ -6888,7 +7110,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6888
7110
|
if (data.webassemblyModuleFilename !== undefined) {
|
|
6889
7111
|
const _errs31 = errors;
|
|
6890
7112
|
if (typeof data.webassemblyModuleFilename !== "string") {
|
|
6891
|
-
|
|
7113
|
+
validate77.errors = [{ instancePath: instancePath + "/webassemblyModuleFilename", schemaPath: "#/definitions/WebassemblyModuleFilename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6892
7114
|
return false;
|
|
6893
7115
|
}
|
|
6894
7116
|
var valid0 = _errs31 === errors;
|
|
@@ -6899,8 +7121,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6899
7121
|
if (valid0) {
|
|
6900
7122
|
if (data.enabledLibraryTypes !== undefined) {
|
|
6901
7123
|
const _errs34 = errors;
|
|
6902
|
-
if (!(
|
|
6903
|
-
vErrors = vErrors === null ?
|
|
7124
|
+
if (!(validate93(data.enabledLibraryTypes, { instancePath: instancePath + "/enabledLibraryTypes", parentData: data, parentDataProperty: "enabledLibraryTypes", rootData }))) {
|
|
7125
|
+
vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);
|
|
6904
7126
|
errors = vErrors.length;
|
|
6905
7127
|
}
|
|
6906
7128
|
var valid0 = _errs34 === errors;
|
|
@@ -6911,8 +7133,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6911
7133
|
if (valid0) {
|
|
6912
7134
|
if (data.filename !== undefined) {
|
|
6913
7135
|
const _errs35 = errors;
|
|
6914
|
-
if (!(
|
|
6915
|
-
vErrors = vErrors === null ?
|
|
7136
|
+
if (!(validate95(data.filename, { instancePath: instancePath + "/filename", parentData: data, parentDataProperty: "filename", rootData }))) {
|
|
7137
|
+
vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);
|
|
6916
7138
|
errors = vErrors.length;
|
|
6917
7139
|
}
|
|
6918
7140
|
var valid0 = _errs35 === errors;
|
|
@@ -6928,12 +7150,12 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6928
7150
|
if (errors === _errs37) {
|
|
6929
7151
|
if (typeof data16 === "string") {
|
|
6930
7152
|
if (data16.length < 1) {
|
|
6931
|
-
|
|
7153
|
+
validate77.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
6932
7154
|
return false;
|
|
6933
7155
|
}
|
|
6934
7156
|
}
|
|
6935
7157
|
else {
|
|
6936
|
-
|
|
7158
|
+
validate77.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6937
7159
|
return false;
|
|
6938
7160
|
}
|
|
6939
7161
|
}
|
|
@@ -6946,7 +7168,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6946
7168
|
if (data.importFunctionName !== undefined) {
|
|
6947
7169
|
const _errs39 = errors;
|
|
6948
7170
|
if (typeof data.importFunctionName !== "string") {
|
|
6949
|
-
|
|
7171
|
+
validate77.errors = [{ instancePath: instancePath + "/importFunctionName", schemaPath: "#/definitions/ImportFunctionName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6950
7172
|
return false;
|
|
6951
7173
|
}
|
|
6952
7174
|
var valid0 = _errs39 === errors;
|
|
@@ -6957,8 +7179,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6957
7179
|
if (valid0) {
|
|
6958
7180
|
if (data.library !== undefined) {
|
|
6959
7181
|
const _errs42 = errors;
|
|
6960
|
-
if (!(
|
|
6961
|
-
vErrors = vErrors === null ?
|
|
7182
|
+
if (!(validate97(data.library, { instancePath: instancePath + "/library", parentData: data, parentDataProperty: "library", rootData }))) {
|
|
7183
|
+
vErrors = vErrors === null ? validate97.errors : vErrors.concat(validate97.errors);
|
|
6962
7184
|
errors = vErrors.length;
|
|
6963
7185
|
}
|
|
6964
7186
|
var valid0 = _errs42 === errors;
|
|
@@ -7091,7 +7313,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7091
7313
|
vErrors.push(err12);
|
|
7092
7314
|
}
|
|
7093
7315
|
errors++;
|
|
7094
|
-
|
|
7316
|
+
validate77.errors = vErrors;
|
|
7095
7317
|
return false;
|
|
7096
7318
|
}
|
|
7097
7319
|
else {
|
|
@@ -7183,7 +7405,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7183
7405
|
vErrors.push(err16);
|
|
7184
7406
|
}
|
|
7185
7407
|
errors++;
|
|
7186
|
-
|
|
7408
|
+
validate77.errors = vErrors;
|
|
7187
7409
|
return false;
|
|
7188
7410
|
}
|
|
7189
7411
|
else {
|
|
@@ -7206,7 +7428,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7206
7428
|
if (data.module !== undefined) {
|
|
7207
7429
|
const _errs62 = errors;
|
|
7208
7430
|
if (typeof data.module !== "boolean") {
|
|
7209
|
-
|
|
7431
|
+
validate77.errors = [{ instancePath: instancePath + "/module", schemaPath: "#/definitions/OutputModule/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
7210
7432
|
return false;
|
|
7211
7433
|
}
|
|
7212
7434
|
var valid0 = _errs62 === errors;
|
|
@@ -7218,7 +7440,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7218
7440
|
if (data.path !== undefined) {
|
|
7219
7441
|
const _errs65 = errors;
|
|
7220
7442
|
if (typeof data.path !== "string") {
|
|
7221
|
-
|
|
7443
|
+
validate77.errors = [{ instancePath: instancePath + "/path", schemaPath: "#/definitions/Path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
7222
7444
|
return false;
|
|
7223
7445
|
}
|
|
7224
7446
|
var valid0 = _errs65 === errors;
|
|
@@ -7229,8 +7451,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7229
7451
|
if (valid0) {
|
|
7230
7452
|
if (data.publicPath !== undefined) {
|
|
7231
7453
|
const _errs68 = errors;
|
|
7232
|
-
if (!(
|
|
7233
|
-
vErrors = vErrors === null ?
|
|
7454
|
+
if (!(validate105(data.publicPath, { instancePath: instancePath + "/publicPath", parentData: data, parentDataProperty: "publicPath", rootData }))) {
|
|
7455
|
+
vErrors = vErrors === null ? validate105.errors : vErrors.concat(validate105.errors);
|
|
7234
7456
|
errors = vErrors.length;
|
|
7235
7457
|
}
|
|
7236
7458
|
var valid0 = _errs68 === errors;
|
|
@@ -7242,7 +7464,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7242
7464
|
if (data.strictModuleErrorHandling !== undefined) {
|
|
7243
7465
|
const _errs69 = errors;
|
|
7244
7466
|
if (typeof data.strictModuleErrorHandling !== "boolean") {
|
|
7245
|
-
|
|
7467
|
+
validate77.errors = [{ instancePath: instancePath + "/strictModuleErrorHandling", schemaPath: "#/definitions/StrictModuleErrorHandling/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
7246
7468
|
return false;
|
|
7247
7469
|
}
|
|
7248
7470
|
var valid0 = _errs69 === errors;
|
|
@@ -7281,7 +7503,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7281
7503
|
vErrors.push(err18);
|
|
7282
7504
|
}
|
|
7283
7505
|
errors++;
|
|
7284
|
-
|
|
7506
|
+
validate77.errors = vErrors;
|
|
7285
7507
|
return false;
|
|
7286
7508
|
}
|
|
7287
7509
|
else {
|
|
@@ -7308,12 +7530,12 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7308
7530
|
if (errors === _errs78) {
|
|
7309
7531
|
if (typeof data27 === "string") {
|
|
7310
7532
|
if (data27.length < 1) {
|
|
7311
|
-
|
|
7533
|
+
validate77.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
7312
7534
|
return false;
|
|
7313
7535
|
}
|
|
7314
7536
|
}
|
|
7315
7537
|
else {
|
|
7316
|
-
|
|
7538
|
+
validate77.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
7317
7539
|
return false;
|
|
7318
7540
|
}
|
|
7319
7541
|
}
|
|
@@ -7330,12 +7552,12 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7330
7552
|
if (errors === _errs81) {
|
|
7331
7553
|
if (typeof data28 === "string") {
|
|
7332
7554
|
if (data28.length < 1) {
|
|
7333
|
-
|
|
7555
|
+
validate77.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
7334
7556
|
return false;
|
|
7335
7557
|
}
|
|
7336
7558
|
}
|
|
7337
7559
|
else {
|
|
7338
|
-
|
|
7560
|
+
validate77.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
7339
7561
|
return false;
|
|
7340
7562
|
}
|
|
7341
7563
|
}
|
|
@@ -7465,7 +7687,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7465
7687
|
vErrors.push(err26);
|
|
7466
7688
|
}
|
|
7467
7689
|
errors++;
|
|
7468
|
-
|
|
7690
|
+
validate77.errors = vErrors;
|
|
7469
7691
|
return false;
|
|
7470
7692
|
}
|
|
7471
7693
|
else {
|
|
@@ -7484,6 +7706,19 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7484
7706
|
else {
|
|
7485
7707
|
var valid0 = true;
|
|
7486
7708
|
}
|
|
7709
|
+
if (valid0) {
|
|
7710
|
+
if (data.sourceMapFilename !== undefined) {
|
|
7711
|
+
const _errs94 = errors;
|
|
7712
|
+
if (!(validate107(data.sourceMapFilename, { instancePath: instancePath + "/sourceMapFilename", parentData: data, parentDataProperty: "sourceMapFilename", rootData }))) {
|
|
7713
|
+
vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors);
|
|
7714
|
+
errors = vErrors.length;
|
|
7715
|
+
}
|
|
7716
|
+
var valid0 = _errs94 === errors;
|
|
7717
|
+
}
|
|
7718
|
+
else {
|
|
7719
|
+
var valid0 = true;
|
|
7720
|
+
}
|
|
7721
|
+
}
|
|
7487
7722
|
}
|
|
7488
7723
|
}
|
|
7489
7724
|
}
|
|
@@ -7515,12 +7750,12 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7515
7750
|
}
|
|
7516
7751
|
}
|
|
7517
7752
|
else {
|
|
7518
|
-
|
|
7753
|
+
validate77.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
7519
7754
|
return false;
|
|
7520
7755
|
}
|
|
7521
|
-
}
|
|
7522
|
-
const
|
|
7523
|
-
function
|
|
7756
|
+
} validate77.errors = vErrors; return errors === 0; }
|
|
7757
|
+
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" }] } };
|
|
7758
|
+
function validate110(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
7524
7759
|
if (Array.isArray(data)) {
|
|
7525
7760
|
var valid0 = true;
|
|
7526
7761
|
const len0 = data.length;
|
|
@@ -7596,7 +7831,7 @@ function validate106(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7596
7831
|
vErrors.push(err4);
|
|
7597
7832
|
}
|
|
7598
7833
|
errors++;
|
|
7599
|
-
|
|
7834
|
+
validate110.errors = vErrors;
|
|
7600
7835
|
return false;
|
|
7601
7836
|
}
|
|
7602
7837
|
else {
|
|
@@ -7617,12 +7852,12 @@ function validate106(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7617
7852
|
}
|
|
7618
7853
|
}
|
|
7619
7854
|
else {
|
|
7620
|
-
|
|
7855
|
+
validate110.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
7621
7856
|
return false;
|
|
7622
7857
|
}
|
|
7623
|
-
}
|
|
7624
|
-
const
|
|
7625
|
-
function
|
|
7858
|
+
} validate110.errors = vErrors; return errors === 0; }
|
|
7859
|
+
const schema120 = { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] };
|
|
7860
|
+
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
7861
|
vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
|
|
7627
7862
|
errors = vErrors.length;
|
|
7628
7863
|
} var _valid0 = _errs1 === errors; if (_valid0) {
|
|
@@ -7637,7 +7872,7 @@ function validate108(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7637
7872
|
vErrors.push(err0);
|
|
7638
7873
|
}
|
|
7639
7874
|
errors++;
|
|
7640
|
-
|
|
7875
|
+
validate112.errors = vErrors;
|
|
7641
7876
|
return false;
|
|
7642
7877
|
}
|
|
7643
7878
|
else {
|
|
@@ -7650,10 +7885,10 @@ else {
|
|
|
7650
7885
|
vErrors = null;
|
|
7651
7886
|
}
|
|
7652
7887
|
}
|
|
7653
|
-
}
|
|
7654
|
-
const
|
|
7655
|
-
const
|
|
7656
|
-
function
|
|
7888
|
+
} validate112.errors = vErrors; return errors === 0; }
|
|
7889
|
+
const schema122 = { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] };
|
|
7890
|
+
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" } } };
|
|
7891
|
+
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
7892
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
7658
7893
|
if (vErrors === null) {
|
|
7659
7894
|
vErrors = [err0];
|
|
@@ -8167,7 +8402,7 @@ function validate111(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8167
8402
|
vErrors.push(err27);
|
|
8168
8403
|
}
|
|
8169
8404
|
errors++;
|
|
8170
|
-
|
|
8405
|
+
validate115.errors = vErrors;
|
|
8171
8406
|
return false;
|
|
8172
8407
|
}
|
|
8173
8408
|
else {
|
|
@@ -8180,7 +8415,7 @@ else {
|
|
|
8180
8415
|
vErrors = null;
|
|
8181
8416
|
}
|
|
8182
8417
|
}
|
|
8183
|
-
}
|
|
8418
|
+
} validate115.errors = vErrors; return errors === 0; }
|
|
8184
8419
|
function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
8185
8420
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8186
8421
|
const _errs1 = errors;
|
|
@@ -8356,7 +8591,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8356
8591
|
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
|
|
8357
8592
|
const _errs26 = errors;
|
|
8358
8593
|
for (const key1 in data7) {
|
|
8359
|
-
if (!((((key1 === "asyncWebAssembly") || (key1 === "incrementalRebuild")) || (key1 === "lazyCompilation")) || (key1 === "outputModule"))) {
|
|
8594
|
+
if (!(((((key1 === "asyncWebAssembly") || (key1 === "incrementalRebuild")) || (key1 === "lazyCompilation")) || (key1 === "outputModule")) || (key1 === "newSplitChunks"))) {
|
|
8360
8595
|
validate10.errors = [{ instancePath: instancePath + "/experiments", schemaPath: "#/definitions/Experiments/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
|
|
8361
8596
|
return false;
|
|
8362
8597
|
break;
|
|
@@ -8444,6 +8679,19 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8444
8679
|
else {
|
|
8445
8680
|
var valid9 = true;
|
|
8446
8681
|
}
|
|
8682
|
+
if (valid9) {
|
|
8683
|
+
if (data7.newSplitChunks !== undefined) {
|
|
8684
|
+
const _errs37 = errors;
|
|
8685
|
+
if (typeof data7.newSplitChunks !== "boolean") {
|
|
8686
|
+
validate10.errors = [{ instancePath: instancePath + "/experiments/newSplitChunks", schemaPath: "#/definitions/Experiments/properties/newSplitChunks/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8687
|
+
return false;
|
|
8688
|
+
}
|
|
8689
|
+
var valid9 = _errs37 === errors;
|
|
8690
|
+
}
|
|
8691
|
+
else {
|
|
8692
|
+
var valid9 = true;
|
|
8693
|
+
}
|
|
8694
|
+
}
|
|
8447
8695
|
}
|
|
8448
8696
|
}
|
|
8449
8697
|
}
|
|
@@ -8461,47 +8709,47 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8461
8709
|
}
|
|
8462
8710
|
if (valid0) {
|
|
8463
8711
|
if (data.externals !== undefined) {
|
|
8464
|
-
const
|
|
8712
|
+
const _errs39 = errors;
|
|
8465
8713
|
if (!(validate23(data.externals, { instancePath: instancePath + "/externals", parentData: data, parentDataProperty: "externals", rootData }))) {
|
|
8466
8714
|
vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);
|
|
8467
8715
|
errors = vErrors.length;
|
|
8468
8716
|
}
|
|
8469
|
-
var valid0 =
|
|
8717
|
+
var valid0 = _errs39 === errors;
|
|
8470
8718
|
}
|
|
8471
8719
|
else {
|
|
8472
8720
|
var valid0 = true;
|
|
8473
8721
|
}
|
|
8474
8722
|
if (valid0) {
|
|
8475
8723
|
if (data.externalsType !== undefined) {
|
|
8476
|
-
let
|
|
8477
|
-
const
|
|
8478
|
-
if (
|
|
8724
|
+
let data14 = data.externalsType;
|
|
8725
|
+
const _errs40 = errors;
|
|
8726
|
+
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
8727
|
validate10.errors = [{ instancePath: instancePath + "/externalsType", schemaPath: "#/definitions/ExternalsType/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
8480
8728
|
return false;
|
|
8481
8729
|
}
|
|
8482
|
-
var valid0 =
|
|
8730
|
+
var valid0 = _errs40 === errors;
|
|
8483
8731
|
}
|
|
8484
8732
|
else {
|
|
8485
8733
|
var valid0 = true;
|
|
8486
8734
|
}
|
|
8487
8735
|
if (valid0) {
|
|
8488
8736
|
if (data.externalsPresets !== undefined) {
|
|
8489
|
-
let
|
|
8490
|
-
const
|
|
8491
|
-
const
|
|
8492
|
-
if (errors ===
|
|
8493
|
-
if (
|
|
8494
|
-
const
|
|
8495
|
-
for (const key2 in
|
|
8737
|
+
let data15 = data.externalsPresets;
|
|
8738
|
+
const _errs42 = errors;
|
|
8739
|
+
const _errs43 = errors;
|
|
8740
|
+
if (errors === _errs43) {
|
|
8741
|
+
if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
|
|
8742
|
+
const _errs45 = errors;
|
|
8743
|
+
for (const key2 in data15) {
|
|
8496
8744
|
if (!(key2 === "node")) {
|
|
8497
8745
|
validate10.errors = [{ instancePath: instancePath + "/externalsPresets", schemaPath: "#/definitions/ExternalsPresets/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
8498
8746
|
return false;
|
|
8499
8747
|
break;
|
|
8500
8748
|
}
|
|
8501
8749
|
}
|
|
8502
|
-
if (
|
|
8503
|
-
if (
|
|
8504
|
-
if (typeof
|
|
8750
|
+
if (_errs45 === errors) {
|
|
8751
|
+
if (data15.node !== undefined) {
|
|
8752
|
+
if (typeof data15.node !== "boolean") {
|
|
8505
8753
|
validate10.errors = [{ instancePath: instancePath + "/externalsPresets/node", schemaPath: "#/definitions/ExternalsPresets/properties/node/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8506
8754
|
return false;
|
|
8507
8755
|
}
|
|
@@ -8513,169 +8761,169 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8513
8761
|
return false;
|
|
8514
8762
|
}
|
|
8515
8763
|
}
|
|
8516
|
-
var valid0 =
|
|
8764
|
+
var valid0 = _errs42 === errors;
|
|
8517
8765
|
}
|
|
8518
8766
|
else {
|
|
8519
8767
|
var valid0 = true;
|
|
8520
8768
|
}
|
|
8521
8769
|
if (valid0) {
|
|
8522
8770
|
if (data.infrastructureLogging !== undefined) {
|
|
8523
|
-
const
|
|
8771
|
+
const _errs48 = errors;
|
|
8524
8772
|
if (!(validate28(data.infrastructureLogging, { instancePath: instancePath + "/infrastructureLogging", parentData: data, parentDataProperty: "infrastructureLogging", rootData }))) {
|
|
8525
8773
|
vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);
|
|
8526
8774
|
errors = vErrors.length;
|
|
8527
8775
|
}
|
|
8528
|
-
var valid0 =
|
|
8776
|
+
var valid0 = _errs48 === errors;
|
|
8529
8777
|
}
|
|
8530
8778
|
else {
|
|
8531
8779
|
var valid0 = true;
|
|
8532
8780
|
}
|
|
8533
8781
|
if (valid0) {
|
|
8534
8782
|
if (data.mode !== undefined) {
|
|
8535
|
-
let
|
|
8536
|
-
const
|
|
8537
|
-
if (
|
|
8783
|
+
let data18 = data.mode;
|
|
8784
|
+
const _errs49 = errors;
|
|
8785
|
+
if (data18 !== "development" && data18 !== "production" && data18 !== "none") {
|
|
8538
8786
|
validate10.errors = [{ instancePath: instancePath + "/mode", schemaPath: "#/definitions/Mode/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
8539
8787
|
return false;
|
|
8540
8788
|
}
|
|
8541
|
-
var valid0 =
|
|
8789
|
+
var valid0 = _errs49 === errors;
|
|
8542
8790
|
}
|
|
8543
8791
|
else {
|
|
8544
8792
|
var valid0 = true;
|
|
8545
8793
|
}
|
|
8546
8794
|
if (valid0) {
|
|
8547
8795
|
if (data.module !== undefined) {
|
|
8548
|
-
const
|
|
8796
|
+
const _errs51 = errors;
|
|
8549
8797
|
if (!(validate32(data.module, { instancePath: instancePath + "/module", parentData: data, parentDataProperty: "module", rootData }))) {
|
|
8550
8798
|
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
8551
8799
|
errors = vErrors.length;
|
|
8552
8800
|
}
|
|
8553
|
-
var valid0 =
|
|
8801
|
+
var valid0 = _errs51 === errors;
|
|
8554
8802
|
}
|
|
8555
8803
|
else {
|
|
8556
8804
|
var valid0 = true;
|
|
8557
8805
|
}
|
|
8558
8806
|
if (valid0) {
|
|
8559
8807
|
if (data.name !== undefined) {
|
|
8560
|
-
const
|
|
8808
|
+
const _errs52 = errors;
|
|
8561
8809
|
if (typeof data.name !== "string") {
|
|
8562
8810
|
validate10.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/Name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
8563
8811
|
return false;
|
|
8564
8812
|
}
|
|
8565
|
-
var valid0 =
|
|
8813
|
+
var valid0 = _errs52 === errors;
|
|
8566
8814
|
}
|
|
8567
8815
|
else {
|
|
8568
8816
|
var valid0 = true;
|
|
8569
8817
|
}
|
|
8570
8818
|
if (valid0) {
|
|
8571
8819
|
if (data.node !== undefined) {
|
|
8572
|
-
const
|
|
8820
|
+
const _errs55 = errors;
|
|
8573
8821
|
if (!(validate69(data.node, { instancePath: instancePath + "/node", parentData: data, parentDataProperty: "node", rootData }))) {
|
|
8574
8822
|
vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
|
|
8575
8823
|
errors = vErrors.length;
|
|
8576
8824
|
}
|
|
8577
|
-
var valid0 =
|
|
8825
|
+
var valid0 = _errs55 === errors;
|
|
8578
8826
|
}
|
|
8579
8827
|
else {
|
|
8580
8828
|
var valid0 = true;
|
|
8581
8829
|
}
|
|
8582
8830
|
if (valid0) {
|
|
8583
8831
|
if (data.optimization !== undefined) {
|
|
8584
|
-
const
|
|
8832
|
+
const _errs56 = errors;
|
|
8585
8833
|
if (!(validate71(data.optimization, { instancePath: instancePath + "/optimization", parentData: data, parentDataProperty: "optimization", rootData }))) {
|
|
8586
8834
|
vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
|
|
8587
8835
|
errors = vErrors.length;
|
|
8588
8836
|
}
|
|
8589
|
-
var valid0 =
|
|
8837
|
+
var valid0 = _errs56 === errors;
|
|
8590
8838
|
}
|
|
8591
8839
|
else {
|
|
8592
8840
|
var valid0 = true;
|
|
8593
8841
|
}
|
|
8594
8842
|
if (valid0) {
|
|
8595
8843
|
if (data.output !== undefined) {
|
|
8596
|
-
const
|
|
8597
|
-
if (!(
|
|
8598
|
-
vErrors = vErrors === null ?
|
|
8844
|
+
const _errs57 = errors;
|
|
8845
|
+
if (!(validate77(data.output, { instancePath: instancePath + "/output", parentData: data, parentDataProperty: "output", rootData }))) {
|
|
8846
|
+
vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);
|
|
8599
8847
|
errors = vErrors.length;
|
|
8600
8848
|
}
|
|
8601
|
-
var valid0 =
|
|
8849
|
+
var valid0 = _errs57 === errors;
|
|
8602
8850
|
}
|
|
8603
8851
|
else {
|
|
8604
8852
|
var valid0 = true;
|
|
8605
8853
|
}
|
|
8606
8854
|
if (valid0) {
|
|
8607
8855
|
if (data.plugins !== undefined) {
|
|
8608
|
-
const
|
|
8609
|
-
if (!(
|
|
8610
|
-
vErrors = vErrors === null ?
|
|
8856
|
+
const _errs58 = errors;
|
|
8857
|
+
if (!(validate110(data.plugins, { instancePath: instancePath + "/plugins", parentData: data, parentDataProperty: "plugins", rootData }))) {
|
|
8858
|
+
vErrors = vErrors === null ? validate110.errors : vErrors.concat(validate110.errors);
|
|
8611
8859
|
errors = vErrors.length;
|
|
8612
8860
|
}
|
|
8613
|
-
var valid0 =
|
|
8861
|
+
var valid0 = _errs58 === errors;
|
|
8614
8862
|
}
|
|
8615
8863
|
else {
|
|
8616
8864
|
var valid0 = true;
|
|
8617
8865
|
}
|
|
8618
8866
|
if (valid0) {
|
|
8619
8867
|
if (data.resolve !== undefined) {
|
|
8620
|
-
const
|
|
8621
|
-
if (!(
|
|
8622
|
-
vErrors = vErrors === null ?
|
|
8868
|
+
const _errs59 = errors;
|
|
8869
|
+
if (!(validate112(data.resolve, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
|
|
8870
|
+
vErrors = vErrors === null ? validate112.errors : vErrors.concat(validate112.errors);
|
|
8623
8871
|
errors = vErrors.length;
|
|
8624
8872
|
}
|
|
8625
|
-
var valid0 =
|
|
8873
|
+
var valid0 = _errs59 === errors;
|
|
8626
8874
|
}
|
|
8627
8875
|
else {
|
|
8628
8876
|
var valid0 = true;
|
|
8629
8877
|
}
|
|
8630
8878
|
if (valid0) {
|
|
8631
8879
|
if (data.snapshot !== undefined) {
|
|
8632
|
-
let
|
|
8633
|
-
const
|
|
8634
|
-
const
|
|
8635
|
-
if (errors ===
|
|
8636
|
-
if (
|
|
8637
|
-
const
|
|
8638
|
-
for (const key3 in
|
|
8880
|
+
let data26 = data.snapshot;
|
|
8881
|
+
const _errs60 = errors;
|
|
8882
|
+
const _errs61 = errors;
|
|
8883
|
+
if (errors === _errs61) {
|
|
8884
|
+
if (data26 && typeof data26 == "object" && !Array.isArray(data26)) {
|
|
8885
|
+
const _errs63 = errors;
|
|
8886
|
+
for (const key3 in data26) {
|
|
8639
8887
|
if (!((key3 === "module") || (key3 === "resolve"))) {
|
|
8640
8888
|
validate10.errors = [{ instancePath: instancePath + "/snapshot", schemaPath: "#/definitions/SnapshotOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
8641
8889
|
return false;
|
|
8642
8890
|
break;
|
|
8643
8891
|
}
|
|
8644
8892
|
}
|
|
8645
|
-
if (
|
|
8646
|
-
if (
|
|
8647
|
-
let
|
|
8648
|
-
const
|
|
8649
|
-
if (errors ===
|
|
8650
|
-
if (
|
|
8651
|
-
const
|
|
8652
|
-
for (const key4 in
|
|
8893
|
+
if (_errs63 === errors) {
|
|
8894
|
+
if (data26.module !== undefined) {
|
|
8895
|
+
let data27 = data26.module;
|
|
8896
|
+
const _errs64 = errors;
|
|
8897
|
+
if (errors === _errs64) {
|
|
8898
|
+
if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
|
|
8899
|
+
const _errs66 = errors;
|
|
8900
|
+
for (const key4 in data27) {
|
|
8653
8901
|
if (!((key4 === "hash") || (key4 === "timestamp"))) {
|
|
8654
8902
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/module", schemaPath: "#/definitions/SnapshotOptions/properties/module/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
8655
8903
|
return false;
|
|
8656
8904
|
break;
|
|
8657
8905
|
}
|
|
8658
8906
|
}
|
|
8659
|
-
if (
|
|
8660
|
-
if (
|
|
8661
|
-
const
|
|
8662
|
-
if (typeof
|
|
8907
|
+
if (_errs66 === errors) {
|
|
8908
|
+
if (data27.hash !== undefined) {
|
|
8909
|
+
const _errs67 = errors;
|
|
8910
|
+
if (typeof data27.hash !== "boolean") {
|
|
8663
8911
|
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
8912
|
return false;
|
|
8665
8913
|
}
|
|
8666
|
-
var valid18 =
|
|
8914
|
+
var valid18 = _errs67 === errors;
|
|
8667
8915
|
}
|
|
8668
8916
|
else {
|
|
8669
8917
|
var valid18 = true;
|
|
8670
8918
|
}
|
|
8671
8919
|
if (valid18) {
|
|
8672
|
-
if (
|
|
8673
|
-
const
|
|
8674
|
-
if (typeof
|
|
8920
|
+
if (data27.timestamp !== undefined) {
|
|
8921
|
+
const _errs69 = errors;
|
|
8922
|
+
if (typeof data27.timestamp !== "boolean") {
|
|
8675
8923
|
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
8924
|
return false;
|
|
8677
8925
|
}
|
|
8678
|
-
var valid18 =
|
|
8926
|
+
var valid18 = _errs69 === errors;
|
|
8679
8927
|
}
|
|
8680
8928
|
else {
|
|
8681
8929
|
var valid18 = true;
|
|
@@ -8688,45 +8936,45 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8688
8936
|
return false;
|
|
8689
8937
|
}
|
|
8690
8938
|
}
|
|
8691
|
-
var valid17 =
|
|
8939
|
+
var valid17 = _errs64 === errors;
|
|
8692
8940
|
}
|
|
8693
8941
|
else {
|
|
8694
8942
|
var valid17 = true;
|
|
8695
8943
|
}
|
|
8696
8944
|
if (valid17) {
|
|
8697
|
-
if (
|
|
8698
|
-
let
|
|
8699
|
-
const
|
|
8700
|
-
if (errors ===
|
|
8701
|
-
if (
|
|
8702
|
-
const
|
|
8703
|
-
for (const key5 in
|
|
8945
|
+
if (data26.resolve !== undefined) {
|
|
8946
|
+
let data30 = data26.resolve;
|
|
8947
|
+
const _errs71 = errors;
|
|
8948
|
+
if (errors === _errs71) {
|
|
8949
|
+
if (data30 && typeof data30 == "object" && !Array.isArray(data30)) {
|
|
8950
|
+
const _errs73 = errors;
|
|
8951
|
+
for (const key5 in data30) {
|
|
8704
8952
|
if (!((key5 === "hash") || (key5 === "timestamp"))) {
|
|
8705
8953
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
8706
8954
|
return false;
|
|
8707
8955
|
break;
|
|
8708
8956
|
}
|
|
8709
8957
|
}
|
|
8710
|
-
if (
|
|
8711
|
-
if (
|
|
8712
|
-
const
|
|
8713
|
-
if (typeof
|
|
8958
|
+
if (_errs73 === errors) {
|
|
8959
|
+
if (data30.hash !== undefined) {
|
|
8960
|
+
const _errs74 = errors;
|
|
8961
|
+
if (typeof data30.hash !== "boolean") {
|
|
8714
8962
|
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
8963
|
return false;
|
|
8716
8964
|
}
|
|
8717
|
-
var valid19 =
|
|
8965
|
+
var valid19 = _errs74 === errors;
|
|
8718
8966
|
}
|
|
8719
8967
|
else {
|
|
8720
8968
|
var valid19 = true;
|
|
8721
8969
|
}
|
|
8722
8970
|
if (valid19) {
|
|
8723
|
-
if (
|
|
8724
|
-
const
|
|
8725
|
-
if (typeof
|
|
8971
|
+
if (data30.timestamp !== undefined) {
|
|
8972
|
+
const _errs76 = errors;
|
|
8973
|
+
if (typeof data30.timestamp !== "boolean") {
|
|
8726
8974
|
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
8975
|
return false;
|
|
8728
8976
|
}
|
|
8729
|
-
var valid19 =
|
|
8977
|
+
var valid19 = _errs76 === errors;
|
|
8730
8978
|
}
|
|
8731
8979
|
else {
|
|
8732
8980
|
var valid19 = true;
|
|
@@ -8739,7 +8987,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8739
8987
|
return false;
|
|
8740
8988
|
}
|
|
8741
8989
|
}
|
|
8742
|
-
var valid17 =
|
|
8990
|
+
var valid17 = _errs71 === errors;
|
|
8743
8991
|
}
|
|
8744
8992
|
else {
|
|
8745
8993
|
var valid17 = true;
|
|
@@ -8752,33 +9000,33 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8752
9000
|
return false;
|
|
8753
9001
|
}
|
|
8754
9002
|
}
|
|
8755
|
-
var valid0 =
|
|
9003
|
+
var valid0 = _errs60 === errors;
|
|
8756
9004
|
}
|
|
8757
9005
|
else {
|
|
8758
9006
|
var valid0 = true;
|
|
8759
9007
|
}
|
|
8760
9008
|
if (valid0) {
|
|
8761
9009
|
if (data.stats !== undefined) {
|
|
8762
|
-
const
|
|
8763
|
-
if (!(
|
|
8764
|
-
vErrors = vErrors === null ?
|
|
9010
|
+
const _errs78 = errors;
|
|
9011
|
+
if (!(validate115(data.stats, { instancePath: instancePath + "/stats", parentData: data, parentDataProperty: "stats", rootData }))) {
|
|
9012
|
+
vErrors = vErrors === null ? validate115.errors : vErrors.concat(validate115.errors);
|
|
8765
9013
|
errors = vErrors.length;
|
|
8766
9014
|
}
|
|
8767
|
-
var valid0 =
|
|
9015
|
+
var valid0 = _errs78 === errors;
|
|
8768
9016
|
}
|
|
8769
9017
|
else {
|
|
8770
9018
|
var valid0 = true;
|
|
8771
9019
|
}
|
|
8772
9020
|
if (valid0) {
|
|
8773
9021
|
if (data.target !== undefined) {
|
|
8774
|
-
let
|
|
8775
|
-
const _errs77 = errors;
|
|
9022
|
+
let data34 = data.target;
|
|
8776
9023
|
const _errs79 = errors;
|
|
9024
|
+
const _errs81 = errors;
|
|
8777
9025
|
let valid21 = false;
|
|
8778
|
-
const
|
|
8779
|
-
if (errors ===
|
|
8780
|
-
if (Array.isArray(
|
|
8781
|
-
if (
|
|
9026
|
+
const _errs82 = errors;
|
|
9027
|
+
if (errors === _errs82) {
|
|
9028
|
+
if (Array.isArray(data34)) {
|
|
9029
|
+
if (data34.length < 1) {
|
|
8782
9030
|
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
9031
|
if (vErrors === null) {
|
|
8784
9032
|
vErrors = [err6];
|
|
@@ -8790,13 +9038,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8790
9038
|
}
|
|
8791
9039
|
else {
|
|
8792
9040
|
var valid22 = true;
|
|
8793
|
-
const len1 =
|
|
9041
|
+
const len1 = data34.length;
|
|
8794
9042
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
8795
|
-
let
|
|
8796
|
-
const
|
|
8797
|
-
if (errors ===
|
|
8798
|
-
if (typeof
|
|
8799
|
-
if (
|
|
9043
|
+
let data35 = data34[i1];
|
|
9044
|
+
const _errs84 = errors;
|
|
9045
|
+
if (errors === _errs84) {
|
|
9046
|
+
if (typeof data35 === "string") {
|
|
9047
|
+
if (data35.length < 1) {
|
|
8800
9048
|
const err7 = { instancePath: instancePath + "/target/" + i1, schemaPath: "#/definitions/Target/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
8801
9049
|
if (vErrors === null) {
|
|
8802
9050
|
vErrors = [err7];
|
|
@@ -8818,7 +9066,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8818
9066
|
errors++;
|
|
8819
9067
|
}
|
|
8820
9068
|
}
|
|
8821
|
-
var valid22 =
|
|
9069
|
+
var valid22 = _errs84 === errors;
|
|
8822
9070
|
if (!valid22) {
|
|
8823
9071
|
break;
|
|
8824
9072
|
}
|
|
@@ -8836,11 +9084,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8836
9084
|
errors++;
|
|
8837
9085
|
}
|
|
8838
9086
|
}
|
|
8839
|
-
var _valid2 =
|
|
9087
|
+
var _valid2 = _errs82 === errors;
|
|
8840
9088
|
valid21 = valid21 || _valid2;
|
|
8841
9089
|
if (!valid21) {
|
|
8842
|
-
const
|
|
8843
|
-
if (
|
|
9090
|
+
const _errs86 = errors;
|
|
9091
|
+
if (data34 !== false) {
|
|
8844
9092
|
const err10 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/1/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
8845
9093
|
if (vErrors === null) {
|
|
8846
9094
|
vErrors = [err10];
|
|
@@ -8850,13 +9098,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8850
9098
|
}
|
|
8851
9099
|
errors++;
|
|
8852
9100
|
}
|
|
8853
|
-
var _valid2 =
|
|
9101
|
+
var _valid2 = _errs86 === errors;
|
|
8854
9102
|
valid21 = valid21 || _valid2;
|
|
8855
9103
|
if (!valid21) {
|
|
8856
|
-
const
|
|
8857
|
-
if (errors ===
|
|
8858
|
-
if (typeof
|
|
8859
|
-
if (
|
|
9104
|
+
const _errs87 = errors;
|
|
9105
|
+
if (errors === _errs87) {
|
|
9106
|
+
if (typeof data34 === "string") {
|
|
9107
|
+
if (data34.length < 1) {
|
|
8860
9108
|
const err11 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
8861
9109
|
if (vErrors === null) {
|
|
8862
9110
|
vErrors = [err11];
|
|
@@ -8878,7 +9126,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8878
9126
|
errors++;
|
|
8879
9127
|
}
|
|
8880
9128
|
}
|
|
8881
|
-
var _valid2 =
|
|
9129
|
+
var _valid2 = _errs87 === errors;
|
|
8882
9130
|
valid21 = valid21 || _valid2;
|
|
8883
9131
|
}
|
|
8884
9132
|
}
|
|
@@ -8895,89 +9143,89 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8895
9143
|
return false;
|
|
8896
9144
|
}
|
|
8897
9145
|
else {
|
|
8898
|
-
errors =
|
|
9146
|
+
errors = _errs81;
|
|
8899
9147
|
if (vErrors !== null) {
|
|
8900
|
-
if (
|
|
8901
|
-
vErrors.length =
|
|
9148
|
+
if (_errs81) {
|
|
9149
|
+
vErrors.length = _errs81;
|
|
8902
9150
|
}
|
|
8903
9151
|
else {
|
|
8904
9152
|
vErrors = null;
|
|
8905
9153
|
}
|
|
8906
9154
|
}
|
|
8907
9155
|
}
|
|
8908
|
-
var valid0 =
|
|
9156
|
+
var valid0 = _errs79 === errors;
|
|
8909
9157
|
}
|
|
8910
9158
|
else {
|
|
8911
9159
|
var valid0 = true;
|
|
8912
9160
|
}
|
|
8913
9161
|
if (valid0) {
|
|
8914
9162
|
if (data.watch !== undefined) {
|
|
8915
|
-
const
|
|
9163
|
+
const _errs89 = errors;
|
|
8916
9164
|
if (typeof data.watch !== "boolean") {
|
|
8917
9165
|
validate10.errors = [{ instancePath: instancePath + "/watch", schemaPath: "#/definitions/Watch/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8918
9166
|
return false;
|
|
8919
9167
|
}
|
|
8920
|
-
var valid0 =
|
|
9168
|
+
var valid0 = _errs89 === errors;
|
|
8921
9169
|
}
|
|
8922
9170
|
else {
|
|
8923
9171
|
var valid0 = true;
|
|
8924
9172
|
}
|
|
8925
9173
|
if (valid0) {
|
|
8926
9174
|
if (data.watchOptions !== undefined) {
|
|
8927
|
-
let
|
|
8928
|
-
const
|
|
8929
|
-
const
|
|
8930
|
-
if (errors ===
|
|
8931
|
-
if (
|
|
8932
|
-
const
|
|
8933
|
-
for (const key6 in
|
|
9175
|
+
let data37 = data.watchOptions;
|
|
9176
|
+
const _errs92 = errors;
|
|
9177
|
+
const _errs93 = errors;
|
|
9178
|
+
if (errors === _errs93) {
|
|
9179
|
+
if (data37 && typeof data37 == "object" && !Array.isArray(data37)) {
|
|
9180
|
+
const _errs95 = errors;
|
|
9181
|
+
for (const key6 in data37) {
|
|
8934
9182
|
if (!(((((key6 === "aggregateTimeout") || (key6 === "followSymlinks")) || (key6 === "ignored")) || (key6 === "poll")) || (key6 === "stdin"))) {
|
|
8935
9183
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions", schemaPath: "#/definitions/WatchOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
|
|
8936
9184
|
return false;
|
|
8937
9185
|
break;
|
|
8938
9186
|
}
|
|
8939
9187
|
}
|
|
8940
|
-
if (
|
|
8941
|
-
if (
|
|
8942
|
-
const
|
|
8943
|
-
if (!(typeof
|
|
9188
|
+
if (_errs95 === errors) {
|
|
9189
|
+
if (data37.aggregateTimeout !== undefined) {
|
|
9190
|
+
const _errs96 = errors;
|
|
9191
|
+
if (!(typeof data37.aggregateTimeout == "number")) {
|
|
8944
9192
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions/aggregateTimeout", schemaPath: "#/definitions/WatchOptions/properties/aggregateTimeout/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
8945
9193
|
return false;
|
|
8946
9194
|
}
|
|
8947
|
-
var valid25 =
|
|
9195
|
+
var valid25 = _errs96 === errors;
|
|
8948
9196
|
}
|
|
8949
9197
|
else {
|
|
8950
9198
|
var valid25 = true;
|
|
8951
9199
|
}
|
|
8952
9200
|
if (valid25) {
|
|
8953
|
-
if (
|
|
8954
|
-
const
|
|
8955
|
-
if (typeof
|
|
9201
|
+
if (data37.followSymlinks !== undefined) {
|
|
9202
|
+
const _errs98 = errors;
|
|
9203
|
+
if (typeof data37.followSymlinks !== "boolean") {
|
|
8956
9204
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions/followSymlinks", schemaPath: "#/definitions/WatchOptions/properties/followSymlinks/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
8957
9205
|
return false;
|
|
8958
9206
|
}
|
|
8959
|
-
var valid25 =
|
|
9207
|
+
var valid25 = _errs98 === errors;
|
|
8960
9208
|
}
|
|
8961
9209
|
else {
|
|
8962
9210
|
var valid25 = true;
|
|
8963
9211
|
}
|
|
8964
9212
|
if (valid25) {
|
|
8965
|
-
if (
|
|
8966
|
-
let
|
|
8967
|
-
const _errs98 = errors;
|
|
8968
|
-
const _errs99 = errors;
|
|
8969
|
-
let valid26 = false;
|
|
9213
|
+
if (data37.ignored !== undefined) {
|
|
9214
|
+
let data40 = data37.ignored;
|
|
8970
9215
|
const _errs100 = errors;
|
|
8971
|
-
|
|
8972
|
-
|
|
9216
|
+
const _errs101 = errors;
|
|
9217
|
+
let valid26 = false;
|
|
9218
|
+
const _errs102 = errors;
|
|
9219
|
+
if (errors === _errs102) {
|
|
9220
|
+
if (Array.isArray(data40)) {
|
|
8973
9221
|
var valid27 = true;
|
|
8974
|
-
const len2 =
|
|
9222
|
+
const len2 = data40.length;
|
|
8975
9223
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
8976
|
-
let
|
|
8977
|
-
const
|
|
8978
|
-
if (errors ===
|
|
8979
|
-
if (typeof
|
|
8980
|
-
if (
|
|
9224
|
+
let data41 = data40[i2];
|
|
9225
|
+
const _errs104 = errors;
|
|
9226
|
+
if (errors === _errs104) {
|
|
9227
|
+
if (typeof data41 === "string") {
|
|
9228
|
+
if (data41.length < 1) {
|
|
8981
9229
|
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
9230
|
if (vErrors === null) {
|
|
8983
9231
|
vErrors = [err14];
|
|
@@ -8999,7 +9247,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8999
9247
|
errors++;
|
|
9000
9248
|
}
|
|
9001
9249
|
}
|
|
9002
|
-
var valid27 =
|
|
9250
|
+
var valid27 = _errs104 === errors;
|
|
9003
9251
|
if (!valid27) {
|
|
9004
9252
|
break;
|
|
9005
9253
|
}
|
|
@@ -9016,11 +9264,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9016
9264
|
errors++;
|
|
9017
9265
|
}
|
|
9018
9266
|
}
|
|
9019
|
-
var _valid3 =
|
|
9267
|
+
var _valid3 = _errs102 === errors;
|
|
9020
9268
|
valid26 = valid26 || _valid3;
|
|
9021
9269
|
if (!valid26) {
|
|
9022
|
-
const
|
|
9023
|
-
if (!(
|
|
9270
|
+
const _errs106 = errors;
|
|
9271
|
+
if (!(data40 instanceof RegExp)) {
|
|
9024
9272
|
const err17 = { instancePath: instancePath + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
9025
9273
|
if (vErrors === null) {
|
|
9026
9274
|
vErrors = [err17];
|
|
@@ -9030,13 +9278,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9030
9278
|
}
|
|
9031
9279
|
errors++;
|
|
9032
9280
|
}
|
|
9033
|
-
var _valid3 =
|
|
9281
|
+
var _valid3 = _errs106 === errors;
|
|
9034
9282
|
valid26 = valid26 || _valid3;
|
|
9035
9283
|
if (!valid26) {
|
|
9036
|
-
const
|
|
9037
|
-
if (errors ===
|
|
9038
|
-
if (typeof
|
|
9039
|
-
if (
|
|
9284
|
+
const _errs107 = errors;
|
|
9285
|
+
if (errors === _errs107) {
|
|
9286
|
+
if (typeof data40 === "string") {
|
|
9287
|
+
if (data40.length < 1) {
|
|
9040
9288
|
const err18 = { instancePath: instancePath + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
9041
9289
|
if (vErrors === null) {
|
|
9042
9290
|
vErrors = [err18];
|
|
@@ -9058,7 +9306,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9058
9306
|
errors++;
|
|
9059
9307
|
}
|
|
9060
9308
|
}
|
|
9061
|
-
var _valid3 =
|
|
9309
|
+
var _valid3 = _errs107 === errors;
|
|
9062
9310
|
valid26 = valid26 || _valid3;
|
|
9063
9311
|
}
|
|
9064
9312
|
}
|
|
@@ -9075,29 +9323,29 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9075
9323
|
return false;
|
|
9076
9324
|
}
|
|
9077
9325
|
else {
|
|
9078
|
-
errors =
|
|
9326
|
+
errors = _errs101;
|
|
9079
9327
|
if (vErrors !== null) {
|
|
9080
|
-
if (
|
|
9081
|
-
vErrors.length =
|
|
9328
|
+
if (_errs101) {
|
|
9329
|
+
vErrors.length = _errs101;
|
|
9082
9330
|
}
|
|
9083
9331
|
else {
|
|
9084
9332
|
vErrors = null;
|
|
9085
9333
|
}
|
|
9086
9334
|
}
|
|
9087
9335
|
}
|
|
9088
|
-
var valid25 =
|
|
9336
|
+
var valid25 = _errs100 === errors;
|
|
9089
9337
|
}
|
|
9090
9338
|
else {
|
|
9091
9339
|
var valid25 = true;
|
|
9092
9340
|
}
|
|
9093
9341
|
if (valid25) {
|
|
9094
|
-
if (
|
|
9095
|
-
let
|
|
9096
|
-
const _errs107 = errors;
|
|
9097
|
-
const _errs108 = errors;
|
|
9098
|
-
let valid28 = false;
|
|
9342
|
+
if (data37.poll !== undefined) {
|
|
9343
|
+
let data42 = data37.poll;
|
|
9099
9344
|
const _errs109 = errors;
|
|
9100
|
-
|
|
9345
|
+
const _errs110 = errors;
|
|
9346
|
+
let valid28 = false;
|
|
9347
|
+
const _errs111 = errors;
|
|
9348
|
+
if (!(typeof data42 == "number")) {
|
|
9101
9349
|
const err21 = { instancePath: instancePath + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
9102
9350
|
if (vErrors === null) {
|
|
9103
9351
|
vErrors = [err21];
|
|
@@ -9107,11 +9355,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9107
9355
|
}
|
|
9108
9356
|
errors++;
|
|
9109
9357
|
}
|
|
9110
|
-
var _valid4 =
|
|
9358
|
+
var _valid4 = _errs111 === errors;
|
|
9111
9359
|
valid28 = valid28 || _valid4;
|
|
9112
9360
|
if (!valid28) {
|
|
9113
|
-
const
|
|
9114
|
-
if (typeof
|
|
9361
|
+
const _errs113 = errors;
|
|
9362
|
+
if (typeof data42 !== "boolean") {
|
|
9115
9363
|
const err22 = { instancePath: instancePath + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
9116
9364
|
if (vErrors === null) {
|
|
9117
9365
|
vErrors = [err22];
|
|
@@ -9121,7 +9369,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9121
9369
|
}
|
|
9122
9370
|
errors++;
|
|
9123
9371
|
}
|
|
9124
|
-
var _valid4 =
|
|
9372
|
+
var _valid4 = _errs113 === errors;
|
|
9125
9373
|
valid28 = valid28 || _valid4;
|
|
9126
9374
|
}
|
|
9127
9375
|
if (!valid28) {
|
|
@@ -9137,29 +9385,29 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9137
9385
|
return false;
|
|
9138
9386
|
}
|
|
9139
9387
|
else {
|
|
9140
|
-
errors =
|
|
9388
|
+
errors = _errs110;
|
|
9141
9389
|
if (vErrors !== null) {
|
|
9142
|
-
if (
|
|
9143
|
-
vErrors.length =
|
|
9390
|
+
if (_errs110) {
|
|
9391
|
+
vErrors.length = _errs110;
|
|
9144
9392
|
}
|
|
9145
9393
|
else {
|
|
9146
9394
|
vErrors = null;
|
|
9147
9395
|
}
|
|
9148
9396
|
}
|
|
9149
9397
|
}
|
|
9150
|
-
var valid25 =
|
|
9398
|
+
var valid25 = _errs109 === errors;
|
|
9151
9399
|
}
|
|
9152
9400
|
else {
|
|
9153
9401
|
var valid25 = true;
|
|
9154
9402
|
}
|
|
9155
9403
|
if (valid25) {
|
|
9156
|
-
if (
|
|
9157
|
-
const
|
|
9158
|
-
if (typeof
|
|
9404
|
+
if (data37.stdin !== undefined) {
|
|
9405
|
+
const _errs115 = errors;
|
|
9406
|
+
if (typeof data37.stdin !== "boolean") {
|
|
9159
9407
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions/stdin", schemaPath: "#/definitions/WatchOptions/properties/stdin/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9160
9408
|
return false;
|
|
9161
9409
|
}
|
|
9162
|
-
var valid25 =
|
|
9410
|
+
var valid25 = _errs115 === errors;
|
|
9163
9411
|
}
|
|
9164
9412
|
else {
|
|
9165
9413
|
var valid25 = true;
|
|
@@ -9175,27 +9423,109 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9175
9423
|
return false;
|
|
9176
9424
|
}
|
|
9177
9425
|
}
|
|
9178
|
-
var valid0 =
|
|
9426
|
+
var valid0 = _errs92 === errors;
|
|
9179
9427
|
}
|
|
9180
9428
|
else {
|
|
9181
9429
|
var valid0 = true;
|
|
9182
9430
|
}
|
|
9183
9431
|
if (valid0) {
|
|
9184
9432
|
if (data.builtins !== undefined) {
|
|
9185
|
-
let
|
|
9186
|
-
const
|
|
9187
|
-
if (errors ===
|
|
9188
|
-
if (
|
|
9433
|
+
let data44 = data.builtins;
|
|
9434
|
+
const _errs117 = errors;
|
|
9435
|
+
if (errors === _errs117) {
|
|
9436
|
+
if (data44 && typeof data44 == "object" && !Array.isArray(data44)) { }
|
|
9189
9437
|
else {
|
|
9190
9438
|
validate10.errors = [{ instancePath: instancePath + "/builtins", schemaPath: "#/properties/builtins/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
9191
9439
|
return false;
|
|
9192
9440
|
}
|
|
9193
9441
|
}
|
|
9194
|
-
var valid0 =
|
|
9442
|
+
var valid0 = _errs117 === errors;
|
|
9195
9443
|
}
|
|
9196
9444
|
else {
|
|
9197
9445
|
var valid0 = true;
|
|
9198
9446
|
}
|
|
9447
|
+
if (valid0) {
|
|
9448
|
+
if (data.ignoreWarnings !== undefined) {
|
|
9449
|
+
let data45 = data.ignoreWarnings;
|
|
9450
|
+
const _errs120 = errors;
|
|
9451
|
+
const _errs121 = errors;
|
|
9452
|
+
if (errors === _errs121) {
|
|
9453
|
+
if (Array.isArray(data45)) {
|
|
9454
|
+
var valid30 = true;
|
|
9455
|
+
const len3 = data45.length;
|
|
9456
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
9457
|
+
let data46 = data45[i3];
|
|
9458
|
+
const _errs123 = errors;
|
|
9459
|
+
const _errs124 = errors;
|
|
9460
|
+
let valid31 = false;
|
|
9461
|
+
const _errs125 = errors;
|
|
9462
|
+
if (!(data46 instanceof RegExp)) {
|
|
9463
|
+
const err24 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/ignoreWarnings/items/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
9464
|
+
if (vErrors === null) {
|
|
9465
|
+
vErrors = [err24];
|
|
9466
|
+
}
|
|
9467
|
+
else {
|
|
9468
|
+
vErrors.push(err24);
|
|
9469
|
+
}
|
|
9470
|
+
errors++;
|
|
9471
|
+
}
|
|
9472
|
+
var _valid5 = _errs125 === errors;
|
|
9473
|
+
valid31 = valid31 || _valid5;
|
|
9474
|
+
if (!valid31) {
|
|
9475
|
+
const _errs126 = errors;
|
|
9476
|
+
if (!(data46 instanceof Function)) {
|
|
9477
|
+
const err25 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/ignoreWarnings/items/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
9478
|
+
if (vErrors === null) {
|
|
9479
|
+
vErrors = [err25];
|
|
9480
|
+
}
|
|
9481
|
+
else {
|
|
9482
|
+
vErrors.push(err25);
|
|
9483
|
+
}
|
|
9484
|
+
errors++;
|
|
9485
|
+
}
|
|
9486
|
+
var _valid5 = _errs126 === errors;
|
|
9487
|
+
valid31 = valid31 || _valid5;
|
|
9488
|
+
}
|
|
9489
|
+
if (!valid31) {
|
|
9490
|
+
const err26 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/ignoreWarnings/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
9491
|
+
if (vErrors === null) {
|
|
9492
|
+
vErrors = [err26];
|
|
9493
|
+
}
|
|
9494
|
+
else {
|
|
9495
|
+
vErrors.push(err26);
|
|
9496
|
+
}
|
|
9497
|
+
errors++;
|
|
9498
|
+
validate10.errors = vErrors;
|
|
9499
|
+
return false;
|
|
9500
|
+
}
|
|
9501
|
+
else {
|
|
9502
|
+
errors = _errs124;
|
|
9503
|
+
if (vErrors !== null) {
|
|
9504
|
+
if (_errs124) {
|
|
9505
|
+
vErrors.length = _errs124;
|
|
9506
|
+
}
|
|
9507
|
+
else {
|
|
9508
|
+
vErrors = null;
|
|
9509
|
+
}
|
|
9510
|
+
}
|
|
9511
|
+
}
|
|
9512
|
+
var valid30 = _errs123 === errors;
|
|
9513
|
+
if (!valid30) {
|
|
9514
|
+
break;
|
|
9515
|
+
}
|
|
9516
|
+
}
|
|
9517
|
+
}
|
|
9518
|
+
else {
|
|
9519
|
+
validate10.errors = [{ instancePath: instancePath + "/ignoreWarnings", schemaPath: "#/definitions/ignoreWarnings/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
9520
|
+
return false;
|
|
9521
|
+
}
|
|
9522
|
+
}
|
|
9523
|
+
var valid0 = _errs120 === errors;
|
|
9524
|
+
}
|
|
9525
|
+
else {
|
|
9526
|
+
var valid0 = true;
|
|
9527
|
+
}
|
|
9528
|
+
}
|
|
9199
9529
|
}
|
|
9200
9530
|
}
|
|
9201
9531
|
}
|