webpack 5.102.0 → 5.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -134
- package/lib/ChunkGraph.js +2 -2
- package/lib/CodeGenerationResults.js +1 -1
- package/lib/CompatibilityPlugin.js +25 -2
- package/lib/Compilation.js +30 -13
- package/lib/ConcatenationScope.js +0 -15
- package/lib/ContextModule.js +3 -1
- package/lib/CssModule.js +6 -1
- package/lib/DefinePlugin.js +12 -12
- package/lib/Dependency.js +8 -1
- package/lib/DependencyTemplate.js +1 -0
- package/lib/DependencyTemplates.js +1 -1
- package/lib/DotenvPlugin.js +457 -0
- package/lib/EnvironmentPlugin.js +19 -16
- package/lib/EvalSourceMapDevToolPlugin.js +16 -0
- package/lib/ExportsInfo.js +6 -2
- package/lib/ExternalModule.js +20 -28
- package/lib/ExternalModuleFactoryPlugin.js +10 -8
- package/lib/ExternalsPlugin.js +2 -1
- package/lib/FileSystemInfo.js +9 -12
- package/lib/ManifestPlugin.js +235 -0
- package/lib/Module.js +3 -0
- package/lib/ModuleFilenameHelpers.js +1 -1
- package/lib/ModuleGraph.js +2 -1
- package/lib/ModuleSourceTypesConstants.js +0 -6
- package/lib/MultiCompiler.js +1 -1
- package/lib/NodeStuffPlugin.js +419 -121
- package/lib/NormalModule.js +18 -17
- package/lib/NormalModuleFactory.js +75 -4
- package/lib/RuntimeGlobals.js +22 -4
- package/lib/RuntimePlugin.js +27 -6
- package/lib/RuntimeTemplate.js +125 -57
- package/lib/SourceMapDevToolPlugin.js +26 -8
- package/lib/WebpackOptionsApply.js +33 -9
- package/lib/asset/AssetBytesGenerator.js +2 -1
- package/lib/asset/AssetGenerator.js +3 -5
- package/lib/asset/AssetSourceGenerator.js +1 -1
- package/lib/cache/getLazyHashedEtag.js +1 -1
- package/lib/config/browserslistTargetHandler.js +82 -76
- package/lib/config/defaults.js +105 -20
- package/lib/config/normalization.js +2 -1
- package/lib/config/target.js +7 -1
- package/lib/css/CssGenerator.js +283 -57
- package/lib/css/CssLoadingRuntimeModule.js +2 -0
- package/lib/css/CssMergeStyleSheetsRuntimeModule.js +56 -0
- package/lib/css/CssModulesPlugin.js +86 -40
- package/lib/css/CssParser.js +1174 -667
- package/lib/css/walkCssTokens.js +98 -1
- package/lib/dependencies/CommonJsImportsParserPlugin.js +0 -9
- package/lib/dependencies/CommonJsPlugin.js +12 -0
- package/lib/dependencies/ContextElementDependency.js +2 -2
- package/lib/dependencies/CssIcssExportDependency.js +247 -8
- package/lib/dependencies/CssIcssFromIdentifierDependency.js +124 -0
- package/lib/dependencies/CssIcssGlobalIdentifierDependency.js +48 -0
- package/lib/dependencies/CssIcssImportDependency.js +60 -54
- package/lib/dependencies/CssIcssLocalIdentifierDependency.js +61 -0
- package/lib/dependencies/{CssSelfLocalIdentifierDependency.js → CssIcssSelfLocalIdentifierDependency.js} +88 -10
- package/lib/dependencies/CssIcssSymbolDependency.js +31 -29
- package/lib/dependencies/CssImportDependency.js +15 -5
- package/lib/dependencies/ExternalModuleInitFragment.js +1 -1
- package/lib/dependencies/ExternalModuleInitFragmentDependency.js +95 -0
- package/lib/dependencies/HarmonyAcceptDependency.js +6 -1
- package/lib/dependencies/HarmonyAcceptImportDependency.js +2 -1
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +12 -1
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +32 -21
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +12 -8
- package/lib/dependencies/HarmonyImportDependency.js +27 -28
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +28 -69
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +4 -3
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +10 -8
- package/lib/dependencies/ImportContextDependency.js +13 -0
- package/lib/dependencies/ImportDependency.js +10 -4
- package/lib/dependencies/ImportEagerDependency.js +6 -3
- package/lib/dependencies/ImportMetaPlugin.js +98 -10
- package/lib/dependencies/ImportParserPlugin.js +19 -21
- package/lib/dependencies/ImportPhase.js +121 -0
- package/lib/dependencies/ImportWeakDependency.js +6 -3
- package/lib/dependencies/ModuleDependency.js +5 -1
- package/lib/dependencies/ModuleHotAcceptDependency.js +1 -1
- package/lib/dependencies/WorkerPlugin.js +1 -3
- package/lib/esm/ExportWebpackRequireRuntimeModule.js +1 -8
- package/lib/hmr/LazyCompilationPlugin.js +1 -0
- package/lib/ids/HashedModuleIdsPlugin.js +5 -7
- package/lib/ids/IdHelpers.js +5 -2
- package/lib/index.js +6 -0
- package/lib/javascript/ChunkHelpers.js +16 -5
- package/lib/javascript/JavascriptGenerator.js +101 -101
- package/lib/javascript/JavascriptModulesPlugin.js +25 -16
- package/lib/javascript/JavascriptParser.js +143 -39
- package/lib/json/JsonParser.js +7 -1
- package/lib/library/ModuleLibraryPlugin.js +0 -10
- package/lib/library/SystemLibraryPlugin.js +19 -5
- package/lib/library/UmdLibraryPlugin.js +1 -1
- package/lib/node/NodeTargetPlugin.js +9 -1
- package/lib/node/ReadFileCompileWasmPlugin.js +0 -2
- package/lib/optimize/ConcatenatedModule.js +161 -135
- package/lib/optimize/RealContentHashPlugin.js +5 -3
- package/lib/runtime/AsyncModuleRuntimeModule.js +28 -18
- package/lib/runtime/AutoPublicPathRuntimeModule.js +8 -3
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +89 -55
- package/lib/serialization/FileMiddleware.js +1 -1
- package/lib/serialization/ObjectMiddleware.js +1 -1
- package/lib/stats/DefaultStatsFactoryPlugin.js +1 -1
- package/lib/util/Hash.js +35 -5
- package/lib/util/comparators.js +4 -3
- package/lib/util/create-schema-validation.js +1 -1
- package/lib/util/createHash.js +85 -15
- package/lib/util/hash/BatchedHash.js +47 -8
- package/lib/util/hash/wasm-hash.js +53 -13
- package/lib/util/internalSerializables.js +4 -4
- package/lib/util/jsonParseEvenBetterErrors.js +10 -0
- package/lib/wasm/EnableWasmLoadingPlugin.js +10 -4
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +8 -5
- package/lib/wasm-async/AsyncWebAssemblyParser.js +0 -9
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +8 -4
- package/lib/wasm-sync/WebAssemblyParser.js +0 -9
- package/lib/web/FetchCompileWasmPlugin.js +0 -2
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/webpack.js +85 -82
- package/module.d.ts +5 -0
- package/package.json +28 -26
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +110 -15
- package/schemas/plugins/{HashedModuleIdsPlugin.check.d.ts → ManifestPlugin.check.d.ts} +1 -1
- package/schemas/plugins/ManifestPlugin.check.js +6 -0
- package/schemas/plugins/ManifestPlugin.json +98 -0
- package/schemas/plugins/SourceMapDevToolPlugin.check.js +1 -1
- package/schemas/plugins/SourceMapDevToolPlugin.json +16 -3
- package/schemas/plugins/container/ContainerReferencePlugin.check.js +1 -1
- package/schemas/plugins/container/ContainerReferencePlugin.json +4 -1
- package/schemas/plugins/container/ExternalsType.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.json +4 -1
- package/schemas/plugins/css/CssAutoParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssGlobalGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssGlobalParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssModuleParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssParserOptions.check.js +1 -1
- package/schemas/plugins/ids/HashedModuleIdsPlugin.check.d.ts +7 -0
- package/schemas/plugins/ids/HashedModuleIdsPlugin.check.js +6 -0
- package/schemas/plugins/{HashedModuleIdsPlugin.json → ids/HashedModuleIdsPlugin.json} +15 -2
- package/schemas/plugins/json/JsonModulesPluginParser.check.js +1 -1
- package/types.d.ts +788 -127
- package/lib/dependencies/CssLocalIdentifierDependency.js +0 -252
- package/schemas/plugins/HashedModuleIdsPlugin.check.js +0 -6
|
@@ -395,6 +395,9 @@
|
|
|
395
395
|
"type": "object",
|
|
396
396
|
"additionalProperties": false,
|
|
397
397
|
"properties": {
|
|
398
|
+
"exportType": {
|
|
399
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
400
|
+
},
|
|
398
401
|
"import": {
|
|
399
402
|
"$ref": "#/definitions/CssParserImport"
|
|
400
403
|
},
|
|
@@ -473,6 +476,9 @@
|
|
|
473
476
|
"esModule": {
|
|
474
477
|
"$ref": "#/definitions/CssGeneratorEsModule"
|
|
475
478
|
},
|
|
479
|
+
"exportType": {
|
|
480
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
481
|
+
},
|
|
476
482
|
"exportsConvention": {
|
|
477
483
|
"$ref": "#/definitions/CssGeneratorExportsConvention"
|
|
478
484
|
},
|
|
@@ -489,6 +495,9 @@
|
|
|
489
495
|
"type": "object",
|
|
490
496
|
"additionalProperties": false,
|
|
491
497
|
"properties": {
|
|
498
|
+
"exportType": {
|
|
499
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
500
|
+
},
|
|
492
501
|
"import": {
|
|
493
502
|
"$ref": "#/definitions/CssParserImport"
|
|
494
503
|
},
|
|
@@ -508,6 +517,9 @@
|
|
|
508
517
|
"esModule": {
|
|
509
518
|
"$ref": "#/definitions/CssGeneratorEsModule"
|
|
510
519
|
},
|
|
520
|
+
"exportType": {
|
|
521
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
522
|
+
},
|
|
511
523
|
"exportsConvention": {
|
|
512
524
|
"$ref": "#/definitions/CssGeneratorExportsConvention"
|
|
513
525
|
},
|
|
@@ -524,6 +536,9 @@
|
|
|
524
536
|
"type": "object",
|
|
525
537
|
"additionalProperties": false,
|
|
526
538
|
"properties": {
|
|
539
|
+
"exportType": {
|
|
540
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
541
|
+
},
|
|
527
542
|
"import": {
|
|
528
543
|
"$ref": "#/definitions/CssParserImport"
|
|
529
544
|
},
|
|
@@ -535,6 +550,10 @@
|
|
|
535
550
|
}
|
|
536
551
|
}
|
|
537
552
|
},
|
|
553
|
+
"CssParserExportType": {
|
|
554
|
+
"description": "Configure how CSS content is exported as default.",
|
|
555
|
+
"enum": ["link", "text", "css-style-sheet"]
|
|
556
|
+
},
|
|
538
557
|
"CssParserImport": {
|
|
539
558
|
"description": "Enable/disable `@import` at-rules handling.",
|
|
540
559
|
"type": "boolean"
|
|
@@ -548,6 +567,9 @@
|
|
|
548
567
|
"type": "object",
|
|
549
568
|
"additionalProperties": false,
|
|
550
569
|
"properties": {
|
|
570
|
+
"exportType": {
|
|
571
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
572
|
+
},
|
|
551
573
|
"import": {
|
|
552
574
|
"$ref": "#/definitions/CssParserImport"
|
|
553
575
|
},
|
|
@@ -629,6 +651,63 @@
|
|
|
629
651
|
"description": "Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.",
|
|
630
652
|
"type": "string"
|
|
631
653
|
},
|
|
654
|
+
"Dotenv": {
|
|
655
|
+
"description": "Enable and configure the Dotenv plugin to load environment variables from .env files.",
|
|
656
|
+
"anyOf": [
|
|
657
|
+
{
|
|
658
|
+
"description": "Enable Dotenv plugin with default options.",
|
|
659
|
+
"type": "boolean"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"$ref": "#/definitions/DotenvPluginOptions"
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
},
|
|
666
|
+
"DotenvPluginOptions": {
|
|
667
|
+
"description": "Options for Dotenv plugin.",
|
|
668
|
+
"type": "object",
|
|
669
|
+
"additionalProperties": false,
|
|
670
|
+
"properties": {
|
|
671
|
+
"dir": {
|
|
672
|
+
"description": "The directory from which .env files are loaded. Can be an absolute path, false will disable the .env file loading.",
|
|
673
|
+
"anyOf": [
|
|
674
|
+
{
|
|
675
|
+
"enum": [false]
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"type": "string",
|
|
679
|
+
"absolutePath": true
|
|
680
|
+
}
|
|
681
|
+
]
|
|
682
|
+
},
|
|
683
|
+
"prefix": {
|
|
684
|
+
"description": "Only expose environment variables that start with these prefixes. Defaults to 'WEBPACK_'.",
|
|
685
|
+
"anyOf": [
|
|
686
|
+
{
|
|
687
|
+
"type": "array",
|
|
688
|
+
"items": {
|
|
689
|
+
"description": "A prefix that environment variables must start with to be exposed.",
|
|
690
|
+
"type": "string",
|
|
691
|
+
"minLength": 1
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"type": "string",
|
|
696
|
+
"minLength": 1
|
|
697
|
+
}
|
|
698
|
+
]
|
|
699
|
+
},
|
|
700
|
+
"template": {
|
|
701
|
+
"description": "Template patterns for .env file names. Use [mode] as placeholder for the webpack mode. Defaults to ['.env', '.env.local', '.env.[mode]', '.env.[mode].local'].",
|
|
702
|
+
"type": "array",
|
|
703
|
+
"items": {
|
|
704
|
+
"description": "A template pattern for .env file names.",
|
|
705
|
+
"type": "string",
|
|
706
|
+
"minLength": 1
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
632
711
|
"EmptyGeneratorOptions": {
|
|
633
712
|
"description": "No generator options are supported for this module type.",
|
|
634
713
|
"type": "object",
|
|
@@ -943,6 +1022,10 @@
|
|
|
943
1022
|
"description": "The environment supports 'globalThis'.",
|
|
944
1023
|
"type": "boolean"
|
|
945
1024
|
},
|
|
1025
|
+
"importMetaDirnameAndFilename": {
|
|
1026
|
+
"description": "The environment supports `import.meta.dirname` and `import.meta.filename`.",
|
|
1027
|
+
"type": "boolean"
|
|
1028
|
+
},
|
|
946
1029
|
"module": {
|
|
947
1030
|
"description": "The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').",
|
|
948
1031
|
"type": "boolean"
|
|
@@ -1294,7 +1377,10 @@
|
|
|
1294
1377
|
"import",
|
|
1295
1378
|
"module-import",
|
|
1296
1379
|
"script",
|
|
1297
|
-
"node-commonjs"
|
|
1380
|
+
"node-commonjs",
|
|
1381
|
+
"asset",
|
|
1382
|
+
"css-import",
|
|
1383
|
+
"css-url"
|
|
1298
1384
|
]
|
|
1299
1385
|
},
|
|
1300
1386
|
"Falsy": {
|
|
@@ -1375,8 +1461,7 @@
|
|
|
1375
1461
|
{
|
|
1376
1462
|
"description": "A path to an immutable directory (usually a package manager cache directory).",
|
|
1377
1463
|
"type": "string",
|
|
1378
|
-
"absolutePath": true
|
|
1379
|
-
"minLength": 1
|
|
1464
|
+
"absolutePath": true
|
|
1380
1465
|
}
|
|
1381
1466
|
]
|
|
1382
1467
|
}
|
|
@@ -1395,8 +1480,7 @@
|
|
|
1395
1480
|
{
|
|
1396
1481
|
"description": "A path to a managed directory (usually a node_modules directory).",
|
|
1397
1482
|
"type": "string",
|
|
1398
|
-
"absolutePath": true
|
|
1399
|
-
"minLength": 1
|
|
1483
|
+
"absolutePath": true
|
|
1400
1484
|
}
|
|
1401
1485
|
]
|
|
1402
1486
|
}
|
|
@@ -1568,7 +1652,7 @@
|
|
|
1568
1652
|
"minLength": 1
|
|
1569
1653
|
},
|
|
1570
1654
|
"HashDigest": {
|
|
1571
|
-
"description": "Digest
|
|
1655
|
+
"description": "Digest types used for the hash.",
|
|
1572
1656
|
"type": "string"
|
|
1573
1657
|
},
|
|
1574
1658
|
"HashDigestLength": {
|
|
@@ -1786,7 +1870,7 @@
|
|
|
1786
1870
|
"JavascriptParserOptions": {
|
|
1787
1871
|
"description": "Parser options for javascript modules.",
|
|
1788
1872
|
"type": "object",
|
|
1789
|
-
"additionalProperties":
|
|
1873
|
+
"additionalProperties": false,
|
|
1790
1874
|
"properties": {
|
|
1791
1875
|
"amd": {
|
|
1792
1876
|
"$ref": "#/definitions/Amd"
|
|
@@ -1907,6 +1991,11 @@
|
|
|
1907
1991
|
"description": "Override the module to strict or non-strict. This may affect the behavior of the module (some behaviors differ between strict and non-strict), so please configure this option carefully.",
|
|
1908
1992
|
"enum": ["strict", "non-strict"]
|
|
1909
1993
|
},
|
|
1994
|
+
"parse": {
|
|
1995
|
+
"description": "Function to parser source code.",
|
|
1996
|
+
"instanceof": "Function",
|
|
1997
|
+
"tsType": "(import('../lib/javascript/JavascriptParser').ParseFunction)"
|
|
1998
|
+
},
|
|
1910
1999
|
"reexportExportsPresence": {
|
|
1911
2000
|
"description": "Specifies the behavior of invalid export names in \"export ... from ...\". This might be useful to disable during the migration from \"export ... from ...\" to \"export type ... from ...\" when reexporting types in TypeScript.",
|
|
1912
2001
|
"enum": ["error", "warn", "auto", false]
|
|
@@ -2025,6 +2114,10 @@
|
|
|
2025
2114
|
"description": "The depth of json dependency flagged as `exportInfo`.",
|
|
2026
2115
|
"type": "number"
|
|
2027
2116
|
},
|
|
2117
|
+
"namedExports": {
|
|
2118
|
+
"description": "Allow named exports for json of object type.",
|
|
2119
|
+
"type": "boolean"
|
|
2120
|
+
},
|
|
2028
2121
|
"parse": {
|
|
2029
2122
|
"description": "Function to parser content and return JSON.",
|
|
2030
2123
|
"instanceof": "Function",
|
|
@@ -4392,8 +4485,7 @@
|
|
|
4392
4485
|
},
|
|
4393
4486
|
{
|
|
4394
4487
|
"type": "string",
|
|
4395
|
-
"absolutePath": true
|
|
4396
|
-
"minLength": 1
|
|
4488
|
+
"absolutePath": true
|
|
4397
4489
|
}
|
|
4398
4490
|
]
|
|
4399
4491
|
}
|
|
@@ -4998,8 +5090,7 @@
|
|
|
4998
5090
|
{
|
|
4999
5091
|
"description": "A path to an immutable directory (usually a package manager cache directory).",
|
|
5000
5092
|
"type": "string",
|
|
5001
|
-
"absolutePath": true
|
|
5002
|
-
"minLength": 1
|
|
5093
|
+
"absolutePath": true
|
|
5003
5094
|
}
|
|
5004
5095
|
]
|
|
5005
5096
|
}
|
|
@@ -5018,8 +5109,7 @@
|
|
|
5018
5109
|
{
|
|
5019
5110
|
"description": "A path to a managed directory (usually a node_modules directory).",
|
|
5020
5111
|
"type": "string",
|
|
5021
|
-
"absolutePath": true
|
|
5022
|
-
"minLength": 1
|
|
5112
|
+
"absolutePath": true
|
|
5023
5113
|
}
|
|
5024
5114
|
]
|
|
5025
5115
|
}
|
|
@@ -5083,8 +5173,7 @@
|
|
|
5083
5173
|
{
|
|
5084
5174
|
"description": "A path to an unmanaged directory.",
|
|
5085
5175
|
"type": "string",
|
|
5086
|
-
"absolutePath": true
|
|
5087
|
-
"minLength": 1
|
|
5176
|
+
"absolutePath": true
|
|
5088
5177
|
}
|
|
5089
5178
|
]
|
|
5090
5179
|
}
|
|
@@ -5800,6 +5889,9 @@
|
|
|
5800
5889
|
"devtool": {
|
|
5801
5890
|
"$ref": "#/definitions/DevTool"
|
|
5802
5891
|
},
|
|
5892
|
+
"dotenv": {
|
|
5893
|
+
"$ref": "#/definitions/Dotenv"
|
|
5894
|
+
},
|
|
5803
5895
|
"entry": {
|
|
5804
5896
|
"$ref": "#/definitions/EntryNormalized"
|
|
5805
5897
|
},
|
|
@@ -5950,6 +6042,9 @@
|
|
|
5950
6042
|
"devtool": {
|
|
5951
6043
|
"$ref": "#/definitions/DevTool"
|
|
5952
6044
|
},
|
|
6045
|
+
"dotenv": {
|
|
6046
|
+
"$ref": "#/definitions/Dotenv"
|
|
6047
|
+
},
|
|
5953
6048
|
"entry": {
|
|
5954
6049
|
"$ref": "#/definitions/Entry"
|
|
5955
6050
|
},
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
declare const check: (options: import("../../declarations/plugins/
|
|
6
|
+
declare const check: (options: import("../../declarations/plugins/ManifestPlugin").ManifestPluginOptions) => boolean;
|
|
7
7
|
export = check;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file was automatically generated.
|
|
3
|
+
* DO NOT MODIFY BY HAND.
|
|
4
|
+
* Run `yarn fix:special` to update
|
|
5
|
+
*/
|
|
6
|
+
const r=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function e(t,{instancePath:i="",parentData:n,parentDataProperty:o,rootData:s=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return e.errors=[{params:{type:"object"}}],!1;{const i=0;for(const r in t)if("entrypoints"!==r&&"filename"!==r&&"filter"!==r&&"generate"!==r&&"prefix"!==r&&"serialize"!==r)return e.errors=[{params:{additionalProperty:r}}],!1;if(0===i){if(void 0!==t.entrypoints){const r=0;if("boolean"!=typeof t.entrypoints)return e.errors=[{params:{type:"boolean"}}],!1;var a=0===r}else a=!0;if(a){if(void 0!==t.filename){let i=t.filename;const n=0;if(0===n){if("string"!=typeof i)return e.errors=[{params:{type:"string"}}],!1;if(i.includes("!")||!1!==r.test(i))return e.errors=[{params:{}}],!1;if(i.length<1)return e.errors=[{params:{}}],!1}a=0===n}else a=!0;if(a){if(void 0!==t.filter){const r=0;if(!(t.filter instanceof Function))return e.errors=[{params:{}}],!1;a=0===r}else a=!0;if(a){if(void 0!==t.generate){const r=0;if(!(t.generate instanceof Function))return e.errors=[{params:{}}],!1;a=0===r}else a=!0;if(a){if(void 0!==t.prefix){const r=0;if("string"!=typeof t.prefix)return e.errors=[{params:{type:"string"}}],!1;a=0===r}else a=!0;if(a)if(void 0!==t.serialize){const r=0;if(!(t.serialize instanceof Function))return e.errors=[{params:{}}],!1;a=0===r}else a=!0}}}}}}return e.errors=null,!0}module.exports=e,module.exports.default=e;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {
|
|
3
|
+
"ManifestEntrypoint": {
|
|
4
|
+
"description": "Describes a manifest entrypoint.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"imports": {
|
|
9
|
+
"description": "Contains the names of entrypoints.",
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"description": "The name of file.",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"parents": {
|
|
18
|
+
"description": "Contains the names of parent entrypoints.",
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"description": "The entrypoint name.",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": ["imports"]
|
|
28
|
+
},
|
|
29
|
+
"ManifestItem": {
|
|
30
|
+
"description": "Describes a manifest asset that links the emitted path to the producing asset.",
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"properties": {
|
|
34
|
+
"file": {
|
|
35
|
+
"description": "The path absolute URL (this indicates that the path is absolute from the server's root directory) to file.",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"src": {
|
|
39
|
+
"description": "The source path relative to the context.",
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": ["file"]
|
|
44
|
+
},
|
|
45
|
+
"ManifestObject": {
|
|
46
|
+
"description": "The manifest object.",
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": true,
|
|
49
|
+
"properties": {
|
|
50
|
+
"assets": {
|
|
51
|
+
"description": "Contains the names of assets.",
|
|
52
|
+
"type": "object",
|
|
53
|
+
"tsType": "Record<string, ManifestItem>"
|
|
54
|
+
},
|
|
55
|
+
"entrypoints": {
|
|
56
|
+
"description": "Contains the names of entrypoints.",
|
|
57
|
+
"type": "object",
|
|
58
|
+
"tsType": "Record<string, ManifestEntrypoint>"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": ["assets", "entrypoints"]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"title": "ManifestPluginOptions",
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"properties": {
|
|
68
|
+
"entrypoints": {
|
|
69
|
+
"description": "Enables/disables generation of the entrypoints manifest section.",
|
|
70
|
+
"type": "boolean"
|
|
71
|
+
},
|
|
72
|
+
"filename": {
|
|
73
|
+
"description": "Specifies the filename of the output file on disk. By default the plugin will emit `manifest.json` inside the 'output.path' directory.",
|
|
74
|
+
"type": "string",
|
|
75
|
+
"absolutePath": false,
|
|
76
|
+
"minLength": 1
|
|
77
|
+
},
|
|
78
|
+
"filter": {
|
|
79
|
+
"description": "Allows filtering the files which make up the manifest.",
|
|
80
|
+
"instanceof": "Function",
|
|
81
|
+
"tsType": "(item: ManifestItem) => boolean"
|
|
82
|
+
},
|
|
83
|
+
"generate": {
|
|
84
|
+
"description": "A function that receives the manifest object, modifies it, and returns the modified manifest.",
|
|
85
|
+
"instanceof": "Function",
|
|
86
|
+
"tsType": "(manifest: ManifestObject) => ManifestObject"
|
|
87
|
+
},
|
|
88
|
+
"prefix": {
|
|
89
|
+
"description": "Specifies a path prefix for all keys in the manifest.",
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"serialize": {
|
|
93
|
+
"description": "A function that receives the manifest object and returns the manifest string.",
|
|
94
|
+
"instanceof": "Function",
|
|
95
|
+
"tsType": "(manifest: ManifestObject) => string"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const n=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=l,module.exports.default=l;const e={definitions:{rule:{anyOf:[{instanceof:"RegExp"},{type:"string",minLength:1},{instanceof:"Function"}]},rules:{anyOf:[{type:"array",items:{oneOf:[{$ref:"#/definitions/rule"}]}},{$ref:"#/definitions/rule"}]}},type:"object",additionalProperties:!1,properties:{append:{anyOf:[{enum:[!1,null]},{type:"string",minLength:1},{instanceof:"Function"}]},columns:{type:"boolean"},debugIds:{type:"boolean"},exclude:{oneOf:[{$ref:"#/definitions/rules"}]},fallbackModuleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},fileContext:{type:"string"},filename:{anyOf:[{enum:[!1,null]},{type:"string",absolutePath:!1,minLength:1}]},ignoreList:{oneOf:[{$ref:"#/definitions/rules"}]},include:{oneOf:[{$ref:"#/definitions/rules"}]},module:{type:"boolean"},moduleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},namespace:{type:"string"},noSources:{type:"boolean"},publicPath:{type:"string"},sourceRoot:{type:"string"},test:{oneOf:[{$ref:"#/definitions/rules"}]}}},t=Object.prototype.hasOwnProperty;function s(n,{instancePath:e="",parentData:t,parentDataProperty:l,rootData:r=n}={}){let o=null,a=0;const i=a;let u=!1;const p=a;if(a===p)if(Array.isArray(n)){const e=n.length;for(let t=0;t<e;t++){let e=n[t];const s=a,l=a;let r=!1,i=null;const u=a,p=a;let c=!1;const m=a;if(!(e instanceof RegExp)){const n={params:{}};null===o?o=[n]:o.push(n),a++}var f=m===a;if(c=c||f,!c){const n=a;if(a===n)if("string"==typeof e){if(e.length<1){const n={params:{}};null===o?o=[n]:o.push(n),a++}}else{const n={params:{type:"string"}};null===o?o=[n]:o.push(n),a++}if(f=n===a,c=c||f,!c){const n=a;if(!(e instanceof Function)){const n={params:{}};null===o?o=[n]:o.push(n),a++}f=n===a,c=c||f}}if(c)a=p,null!==o&&(p?o.length=p:o=null);else{const n={params:{}};null===o?o=[n]:o.push(n),a++}if(u===a&&(r=!0,i=0),r)a=l,null!==o&&(l?o.length=l:o=null);else{const n={params:{passingSchemas:i}};null===o?o=[n]:o.push(n),a++}if(s!==a)break}}else{const n={params:{type:"array"}};null===o?o=[n]:o.push(n),a++}var c=p===a;if(u=u||c,!u){const e=a,t=a;let s=!1;const l=a;if(!(n instanceof RegExp)){const n={params:{}};null===o?o=[n]:o.push(n),a++}var m=l===a;if(s=s||m,!s){const e=a;if(a===e)if("string"==typeof n){if(n.length<1){const n={params:{}};null===o?o=[n]:o.push(n),a++}}else{const n={params:{type:"string"}};null===o?o=[n]:o.push(n),a++}if(m=e===a,s=s||m,!s){const e=a;if(!(n instanceof Function)){const n={params:{}};null===o?o=[n]:o.push(n),a++}m=e===a,s=s||m}}if(s)a=t,null!==o&&(t?o.length=t:o=null);else{const n={params:{}};null===o?o=[n]:o.push(n),a++}c=e===a,u=u||c}if(!u){const n={params:{}};return null===o?o=[n]:o.push(n),a++,s.errors=o,!1}return a=i,null!==o&&(i?o.length=i:o=null),s.errors=o,0===a}function l(r,{instancePath:o="",parentData:a,parentDataProperty:i,rootData:u=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{const a=f;for(const n in r)if(!t.call(e.properties,n))return l.errors=[{params:{additionalProperty:n}}],!1;if(a===f){if(void 0!==r.append){let n=r.append;const e=f,t=f;let s=!1;const o=f;if(!1!==n&&null!==n){const n={params:{}};null===p?p=[n]:p.push(n),f++}var c=o===f;if(s=s||c,!s){const e=f;if(f===e)if("string"==typeof n){if(n.length<1){const n={params:{}};null===p?p=[n]:p.push(n),f++}}else{const n={params:{type:"string"}};null===p?p=[n]:p.push(n),f++}if(c=e===f,s=s||c,!s){const e=f;if(!(n instanceof Function)){const n={params:{}};null===p?p=[n]:p.push(n),f++}c=e===f,s=s||c}}if(!s){const n={params:{}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null);var m=e===f}else m=!0;if(m){if(void 0!==r.columns){const n=f;if("boolean"!=typeof r.columns)return l.errors=[{params:{type:"boolean"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.debugIds){const n=f;if("boolean"!=typeof r.debugIds)return l.errors=[{params:{type:"boolean"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.exclude){const n=f,e=f;let t=!1,a=null;const i=f;if(s(r.exclude,{instancePath:o+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const n={params:{passingSchemas:a}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=e,null!==p&&(e?p.length=e:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.fallbackModuleFilenameTemplate){let n=r.fallbackModuleFilenameTemplate;const e=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof n){if(n.length<1){const n={params:{}};null===p?p=[n]:p.push(n),f++}}else{const n={params:{type:"string"}};null===p?p=[n]:p.push(n),f++}var h=o===f;if(s=s||h,!s){const e=f;if(!(n instanceof Function)){const n={params:{}};null===p?p=[n]:p.push(n),f++}h=e===f,s=s||h}if(!s){const n={params:{}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.fileContext){const n=f;if("string"!=typeof r.fileContext)return l.errors=[{params:{type:"string"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.filename){let e=r.filename;const t=f,s=f;let o=!1;const a=f;if(!1!==e&&null!==e){const n={params:{}};null===p?p=[n]:p.push(n),f++}var g=a===f;if(o=o||g,!o){const t=f;if(f===t)if("string"==typeof e){if(e.includes("!")||!1!==n.test(e)){const n={params:{}};null===p?p=[n]:p.push(n),f++}else if(e.length<1){const n={params:{}};null===p?p=[n]:p.push(n),f++}}else{const n={params:{type:"string"}};null===p?p=[n]:p.push(n),f++}g=t===f,o=o||g}if(!o){const n={params:{}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=s,null!==p&&(s?p.length=s:p=null),m=t===f}else m=!0;if(m){if(void 0!==r.ignoreList){const n=f,e=f;let t=!1,a=null;const i=f;if(s(r.ignoreList,{instancePath:o+"/ignoreList",parentData:r,parentDataProperty:"ignoreList",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const n={params:{passingSchemas:a}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=e,null!==p&&(e?p.length=e:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.include){const n=f,e=f;let t=!1,a=null;const i=f;if(s(r.include,{instancePath:o+"/include",parentData:r,parentDataProperty:"include",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const n={params:{passingSchemas:a}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=e,null!==p&&(e?p.length=e:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.module){const n=f;if("boolean"!=typeof r.module)return l.errors=[{params:{type:"boolean"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.moduleFilenameTemplate){let n=r.moduleFilenameTemplate;const e=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof n){if(n.length<1){const n={params:{}};null===p?p=[n]:p.push(n),f++}}else{const n={params:{type:"string"}};null===p?p=[n]:p.push(n),f++}var y=o===f;if(s=s||y,!s){const e=f;if(!(n instanceof Function)){const n={params:{}};null===p?p=[n]:p.push(n),f++}y=e===f,s=s||y}if(!s){const n={params:{}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.namespace){const n=f;if("string"!=typeof r.namespace)return l.errors=[{params:{type:"string"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.noSources){const n=f;if("boolean"!=typeof r.noSources)return l.errors=[{params:{type:"boolean"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.publicPath){const n=f;if("string"!=typeof r.publicPath)return l.errors=[{params:{type:"string"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.sourceRoot){const n=f;if("string"!=typeof r.sourceRoot)return l.errors=[{params:{type:"string"}}],!1;m=n===f}else m=!0;if(m)if(void 0!==r.test){const n=f,e=f;let t=!1,a=null;const i=f;if(s(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const n={params:{passingSchemas:a}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=e,null!==p&&(e?p.length=e:p=null),m=n===f}else m=!0}}}}}}}}}}}}}}}}}return l.errors=p,0===f}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"definitions": {
|
|
3
3
|
"rule": {
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Condition used to match resource (string, RegExp or Function).",
|
|
5
5
|
"anyOf": [
|
|
6
6
|
{
|
|
7
7
|
"instanceof": "RegExp",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"rules": {
|
|
21
|
-
"description": "
|
|
21
|
+
"description": "One or multiple conditions used to match resource.",
|
|
22
22
|
"anyOf": [
|
|
23
23
|
{
|
|
24
24
|
"type": "array",
|
|
@@ -106,6 +106,14 @@
|
|
|
106
106
|
}
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
|
+
"ignoreList": {
|
|
110
|
+
"description": "Decide whether to ignore source files that match the specified value in the SourceMap.",
|
|
111
|
+
"oneOf": [
|
|
112
|
+
{
|
|
113
|
+
"$ref": "#/definitions/rules"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
109
117
|
"include": {
|
|
110
118
|
"description": "Include source maps for module paths that match the given value.",
|
|
111
119
|
"oneOf": [
|
|
@@ -149,7 +157,12 @@
|
|
|
149
157
|
"type": "string"
|
|
150
158
|
},
|
|
151
159
|
"test": {
|
|
152
|
-
"
|
|
160
|
+
"description": "Include source maps for modules based on their extension (defaults to .js and .css).",
|
|
161
|
+
"oneOf": [
|
|
162
|
+
{
|
|
163
|
+
"$ref": "#/definitions/rules"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
153
166
|
}
|
|
154
167
|
}
|
|
155
168
|
}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
"use strict";function r(t,{instancePath:e="",parentData:a,parentDataProperty:n,rootData:
|
|
6
|
+
"use strict";function r(t,{instancePath:e="",parentData:a,parentDataProperty:n,rootData:s=t}={}){if(!Array.isArray(t))return r.errors=[{params:{type:"array"}}],!1;{const e=t.length;for(let a=0;a<e;a++){let e=t[a];const n=0;if("string"!=typeof e)return r.errors=[{params:{type:"string"}}],!1;if(e.length<1)return r.errors=[{params:{}}],!1;if(0!==n)break}}return r.errors=null,!0}function t(e,{instancePath:a="",parentData:n,parentDataProperty:s,rootData:o=e}={}){let l=null,p=0;if(0===p){if(!e||"object"!=typeof e||Array.isArray(e))return t.errors=[{params:{type:"object"}}],!1;{let n;if(void 0===e.external&&(n="external"))return t.errors=[{params:{missingProperty:n}}],!1;{const n=p;for(const r in e)if("external"!==r&&"shareScope"!==r)return t.errors=[{params:{additionalProperty:r}}],!1;if(n===p){if(void 0!==e.external){let n=e.external;const s=p,u=p;let f=!1;const m=p;if(p==p)if("string"==typeof n){if(n.length<1){const r={params:{}};null===l?l=[r]:l.push(r),p++}}else{const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}var i=m===p;if(f=f||i,!f){const t=p;r(n,{instancePath:a+"/external",parentData:e,parentDataProperty:"external",rootData:o})||(l=null===l?r.errors:l.concat(r.errors),p=l.length),i=t===p,f=f||i}if(!f){const r={params:{}};return null===l?l=[r]:l.push(r),p++,t.errors=l,!1}p=u,null!==l&&(u?l.length=u:l=null);var c=s===p}else c=!0;if(c)if(void 0!==e.shareScope){let r=e.shareScope;const a=p;if(p===a){if("string"!=typeof r)return t.errors=[{params:{type:"string"}}],!1;if(r.length<1)return t.errors=[{params:{}}],!1}c=a===p}else c=!0}}}}return t.errors=l,0===p}function e(a,{instancePath:n="",parentData:s,parentDataProperty:o,rootData:l=a}={}){let p=null,i=0;if(0===i){if(!a||"object"!=typeof a||Array.isArray(a))return e.errors=[{params:{type:"object"}}],!1;for(const s in a){let o=a[s];const u=i,f=i;let m=!1;const y=i;t(o,{instancePath:n+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:a,parentDataProperty:s,rootData:l})||(p=null===p?t.errors:p.concat(t.errors),i=p.length);var c=y===i;if(m=m||c,!m){const t=i;if(i==i)if("string"==typeof o){if(o.length<1){const r={params:{}};null===p?p=[r]:p.push(r),i++}}else{const r={params:{type:"string"}};null===p?p=[r]:p.push(r),i++}if(c=t===i,m=m||c,!m){const t=i;r(o,{instancePath:n+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:a,parentDataProperty:s,rootData:l})||(p=null===p?r.errors:p.concat(r.errors),i=p.length),c=t===i,m=m||c}}if(!m){const r={params:{}};return null===p?p=[r]:p.push(r),i++,e.errors=p,!1}if(i=f,null!==p&&(f?p.length=f:p=null),u!==i)break}}return e.errors=p,0===i}function a(r,{instancePath:t="",parentData:n,parentDataProperty:s,rootData:o=r}={}){let l=null,p=0;const i=p;let c=!1;const u=p;if(p===u)if(Array.isArray(r)){const a=r.length;for(let n=0;n<a;n++){let a=r[n];const s=p,i=p;let c=!1;const u=p;if(p==p)if("string"==typeof a){if(a.length<1){const r={params:{}};null===l?l=[r]:l.push(r),p++}}else{const r={params:{type:"string"}};null===l?l=[r]:l.push(r),p++}var f=u===p;if(c=c||f,!c){const s=p;e(a,{instancePath:t+"/"+n,parentData:r,parentDataProperty:n,rootData:o})||(l=null===l?e.errors:l.concat(e.errors),p=l.length),f=s===p,c=c||f}if(c)p=i,null!==l&&(i?l.length=i:l=null);else{const r={params:{}};null===l?l=[r]:l.push(r),p++}if(s!==p)break}}else{const r={params:{type:"array"}};null===l?l=[r]:l.push(r),p++}var m=u===p;if(c=c||m,!c){const a=p;e(r,{instancePath:t,parentData:n,parentDataProperty:s,rootData:o})||(l=null===l?e.errors:l.concat(e.errors),p=l.length),m=a===p,c=c||m}if(!c){const r={params:{}};return null===l?l=[r]:l.push(r),p++,a.errors=l,!1}return p=i,null!==l&&(i?l.length=i:l=null),a.errors=l,0===p}function n(r,{instancePath:t="",parentData:e,parentDataProperty:s,rootData:o=r}={}){let l=null,p=0;if(0===p){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{params:{type:"object"}}],!1;{let e;if(void 0===r.remoteType&&(e="remoteType")||void 0===r.remotes&&(e="remotes"))return n.errors=[{params:{missingProperty:e}}],!1;{const e=p;for(const t in r)if("remoteType"!==t&&"remotes"!==t&&"shareScope"!==t)return n.errors=[{params:{additionalProperty:t}}],!1;if(e===p){if(void 0!==r.remoteType){let t=r.remoteType;const e=p,a=p;let s=!1,o=null;const c=p;if("var"!==t&&"module"!==t&&"assign"!==t&&"this"!==t&&"window"!==t&&"self"!==t&&"global"!==t&&"commonjs"!==t&&"commonjs2"!==t&&"commonjs-module"!==t&&"commonjs-static"!==t&&"amd"!==t&&"amd-require"!==t&&"umd"!==t&&"umd2"!==t&&"jsonp"!==t&&"system"!==t&&"promise"!==t&&"import"!==t&&"module-import"!==t&&"script"!==t&&"node-commonjs"!==t&&"asset"!==t&&"css-import"!==t&&"css-url"!==t){const r={params:{}};null===l?l=[r]:l.push(r),p++}if(c===p&&(s=!0,o=0),!s){const r={params:{passingSchemas:o}};return null===l?l=[r]:l.push(r),p++,n.errors=l,!1}p=a,null!==l&&(a?l.length=a:l=null);var i=e===p}else i=!0;if(i){if(void 0!==r.remotes){const e=p;a(r.remotes,{instancePath:t+"/remotes",parentData:r,parentDataProperty:"remotes",rootData:o})||(l=null===l?a.errors:l.concat(a.errors),p=l.length),i=e===p}else i=!0;if(i)if(void 0!==r.shareScope){let t=r.shareScope;const e=p;if(p===e){if("string"!=typeof t)return n.errors=[{params:{type:"string"}}],!1;if(t.length<1)return n.errors=[{params:{}}],!1}i=e===p}else i=!0}}}}}return n.errors=l,0===p}module.exports=n,module.exports.default=n;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
"use strict";function o(
|
|
6
|
+
"use strict";function o(s,{instancePath:r="",parentData:m,parentDataProperty:t,rootData:e=s}={}){return"var"!==s&&"module"!==s&&"assign"!==s&&"this"!==s&&"window"!==s&&"self"!==s&&"global"!==s&&"commonjs"!==s&&"commonjs2"!==s&&"commonjs-module"!==s&&"commonjs-static"!==s&&"amd"!==s&&"amd-require"!==s&&"umd"!==s&&"umd2"!==s&&"jsonp"!==s&&"system"!==s&&"promise"!==s&&"import"!==s&&"module-import"!==s&&"script"!==s&&"node-commonjs"!==s&&"asset"!==s&&"css-import"!==s&&"css-url"!==s?(o.errors=[{params:{}}],!1):(o.errors=null,!0)}module.exports=o,module.exports.default=o;
|