@module-federation/enhanced 2.0.1 → 2.2.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/dist/CHANGELOG.md +2357 -0
- package/dist/README.md +213 -0
- package/dist/rstestmigrate.md +140 -0
- package/dist/src/_virtual/_rolldown/runtime.js +47 -0
- package/dist/src/index.d.ts +22 -19
- package/dist/src/index.js +47 -43
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/Constants.d.ts +25 -29
- package/dist/src/lib/Constants.js +136 -116
- package/dist/src/lib/Constants.js.map +1 -1
- package/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +20 -16
- package/dist/src/lib/container/AsyncBoundaryPlugin.js +137 -196
- package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryDependency.d.ts +28 -23
- package/dist/src/lib/container/ContainerEntryDependency.js +39 -39
- package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryModule.d.ts +93 -84
- package/dist/src/lib/container/ContainerEntryModule.js +219 -234
- package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +15 -10
- package/dist/src/lib/container/ContainerEntryModuleFactory.js +21 -25
- package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -1
- package/dist/src/lib/container/ContainerExposedDependency.d.ts +29 -24
- package/dist/src/lib/container/ContainerExposedDependency.js +47 -47
- package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -1
- package/dist/src/lib/container/ContainerPlugin.d.ts +12 -8
- package/dist/src/lib/container/ContainerPlugin.js +147 -211
- package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
- package/dist/src/lib/container/ContainerReferencePlugin.d.ts +16 -12
- package/dist/src/lib/container/ContainerReferencePlugin.js +74 -102
- package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
- package/dist/src/lib/container/FallbackDependency.d.ts +24 -19
- package/dist/src/lib/container/FallbackDependency.js +46 -44
- package/dist/src/lib/container/FallbackDependency.js.map +1 -1
- package/dist/src/lib/container/FallbackItemDependency.d.ts +13 -8
- package/dist/src/lib/container/FallbackItemDependency.js +24 -24
- package/dist/src/lib/container/FallbackItemDependency.js.map +1 -1
- package/dist/src/lib/container/FallbackModule.d.ts +82 -71
- package/dist/src/lib/container/FallbackModule.js +133 -145
- package/dist/src/lib/container/FallbackModule.js.map +1 -1
- package/dist/src/lib/container/FallbackModuleFactory.d.ts +15 -10
- package/dist/src/lib/container/FallbackModuleFactory.js +20 -24
- package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -1
- package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +11 -7
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js +125 -188
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -1
- package/dist/src/lib/container/ModuleFederationPlugin.d.ts +20 -16
- package/dist/src/lib/container/ModuleFederationPlugin.js +143 -180
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/lib/container/RemoteModule.d.ts +79 -74
- package/dist/src/lib/container/RemoteModule.js +143 -153
- package/dist/src/lib/container/RemoteModule.js.map +1 -1
- package/dist/src/lib/container/RemoteRuntimeModule.d.ts +12 -7
- package/dist/src/lib/container/RemoteRuntimeModule.js +86 -120
- package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -1
- package/dist/src/lib/container/RemoteToExternalDependency.d.ts +13 -8
- package/dist/src/lib/container/RemoteToExternalDependency.js +25 -23
- package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -1
- package/dist/src/lib/container/constant.d.ts +3 -0
- package/dist/src/lib/container/constant.js +11 -14
- package/dist/src/lib/container/constant.js.map +1 -1
- package/dist/src/lib/container/options.d.ts +7 -3
- package/dist/src/lib/container/options.js +51 -69
- package/dist/src/lib/container/options.js.map +1 -1
- package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.d.ts +14 -9
- package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js +56 -64
- package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js.map +1 -1
- package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.d.ts +23 -19
- package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js +71 -101
- package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationModulesPlugin.d.ts +20 -16
- package/dist/src/lib/container/runtime/FederationModulesPlugin.js +55 -47
- package/dist/src/lib/container/runtime/FederationModulesPlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimeDependency.d.ts +9 -4
- package/dist/src/lib/container/runtime/FederationRuntimeDependency.js +16 -12
- package/dist/src/lib/container/runtime/FederationRuntimeDependency.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +16 -11
- package/dist/src/lib/container/runtime/FederationRuntimeModule.js +39 -46
- package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +31 -18
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +266 -345
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +9 -4
- package/dist/src/lib/container/runtime/getFederationGlobal.js +43 -41
- package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -1
- package/dist/src/lib/container/runtime/utils.d.ts +24 -13
- package/dist/src/lib/container/runtime/utils.js +83 -101
- package/dist/src/lib/container/runtime/utils.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +15 -10
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +27 -25
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +77 -68
- package/dist/src/lib/sharing/ConsumeSharedModule.js +186 -214
- package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +13 -9
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +308 -475
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +16 -11
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +107 -125
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +14 -9
- package/dist/src/lib/sharing/ProvideForSharedDependency.js +25 -25
- package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +44 -39
- package/dist/src/lib/sharing/ProvideSharedDependency.js +72 -76
- package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedModule.d.ts +91 -82
- package/dist/src/lib/sharing/ProvideSharedModule.js +177 -184
- package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +14 -9
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +19 -25
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +27 -21
- package/dist/src/lib/sharing/ProvideSharedPlugin.js +341 -550
- package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/SharePlugin.d.ts +53 -49
- package/dist/src/lib/sharing/SharePlugin.js +86 -100
- package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
- package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
- package/dist/src/lib/sharing/ShareRuntimeModule.js +81 -100
- package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +11 -7
- package/dist/src/lib/sharing/resolveMatchedConfigs.js +58 -71
- package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.d.ts +18 -14
- package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js +74 -128
- package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.d.ts +39 -34
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js +234 -322
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.d.ts +16 -11
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js +30 -28
- package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.d.ts +28 -24
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js +91 -95
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.d.ts +29 -24
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js +47 -43
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.d.ts +20 -15
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js +33 -29
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.d.ts +85 -77
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js +141 -153
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.d.ts +15 -10
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js +20 -24
- package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.d.ts +21 -16
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js +157 -231
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.d.ts +14 -9
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js +26 -27
- package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.d.ts +18 -13
- package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js +41 -49
- package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/utils.d.ts +27 -24
- package/dist/src/lib/sharing/utils.js +224 -367
- package/dist/src/lib/sharing/utils.js.map +1 -1
- package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.d.ts +11 -7
- package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +56 -75
- package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -1
- package/dist/src/lib/startup/StartupHelpers.d.ts +11 -6
- package/dist/src/lib/startup/StartupHelpers.js +128 -178
- package/dist/src/lib/startup/StartupHelpers.js.map +1 -1
- package/dist/src/prefetch.d.ts +3 -2
- package/dist/src/prefetch.js +17 -8
- package/dist/src/rspack.d.ts +3 -2
- package/dist/src/rspack.js +35 -11
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +8 -4
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -16
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -1
- package/dist/src/runtime.d.ts +1 -1
- package/dist/src/runtime.js +11 -18
- package/dist/src/schemas/container/ContainerPlugin.check.d.ts +13 -5
- package/dist/src/schemas/container/ContainerPlugin.check.js +958 -1218
- package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ContainerPlugin.d.ts +271 -268
- package/dist/src/schemas/container/ContainerPlugin.js +273 -361
- package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
- package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +13 -5
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js +335 -443
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +102 -99
- package/dist/src/schemas/container/ContainerReferencePlugin.js +122 -162
- package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
- package/dist/src/schemas/container/ExternalsType.check.d.ts +13 -5
- package/dist/src/schemas/container/ExternalsType.check.js +36 -62
- package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
- package/dist/src/schemas/container/ExternalsType.d.ts +5 -2
- package/dist/src/schemas/container/ExternalsType.js +8 -11
- package/dist/src/schemas/container/ExternalsType.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3001 -4812
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +819 -814
- package/dist/src/schemas/container/ModuleFederationPlugin.js +780 -1053
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +13 -5
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +568 -768
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +197 -194
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +212 -238
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +13 -5
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +598 -804
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +184 -181
- package/dist/src/schemas/sharing/ProvideSharedPlugin.js +196 -229
- package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +12 -4
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +285 -482
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +103 -100
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js +104 -126
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/SharePlugin.check.d.ts +13 -5
- package/dist/src/schemas/sharing/SharePlugin.check.js +749 -965
- package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/SharePlugin.d.ts +245 -242
- package/dist/src/schemas/sharing/SharePlugin.js +256 -293
- package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
- package/dist/src/utils.d.ts +3 -0
- package/dist/src/utils.js +35 -26
- package/dist/src/utils.js.map +1 -1
- package/dist/src/webpack.d.ts +2 -2
- package/dist/src/webpack.js +6 -40
- package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +9 -4
- package/dist/src/wrapper/AsyncBoundaryPlugin.js +12 -11
- package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -1
- package/dist/src/wrapper/BaseWrapperPlugin.d.ts +18 -13
- package/dist/src/wrapper/BaseWrapperPlugin.js +39 -39
- package/dist/src/wrapper/BaseWrapperPlugin.js.map +1 -1
- package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +10 -4
- package/dist/src/wrapper/ConsumeSharedPlugin.js +12 -11
- package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/wrapper/ContainerPlugin.d.ts +9 -4
- package/dist/src/wrapper/ContainerPlugin.js +12 -11
- package/dist/src/wrapper/ContainerPlugin.js.map +1 -1
- package/dist/src/wrapper/ContainerReferencePlugin.d.ts +9 -4
- package/dist/src/wrapper/ContainerReferencePlugin.js +12 -11
- package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -1
- package/dist/src/wrapper/FederationModulesPlugin.d.ts +18 -10
- package/dist/src/wrapper/FederationModulesPlugin.js +19 -19
- package/dist/src/wrapper/FederationModulesPlugin.js.map +1 -1
- package/dist/src/wrapper/FederationRuntimePlugin.d.ts +11 -6
- package/dist/src/wrapper/FederationRuntimePlugin.js +18 -17
- package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -1
- package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +8 -3
- package/dist/src/wrapper/HoistContainerReferencesPlugin.js +12 -11
- package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -1
- package/dist/src/wrapper/ModuleFederationPlugin.d.ts +12 -7
- package/dist/src/wrapper/ModuleFederationPlugin.js +73 -99
- package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/wrapper/ProvideSharedPlugin.d.ts +10 -4
- package/dist/src/wrapper/ProvideSharedPlugin.js +12 -11
- package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/wrapper/SharePlugin.d.ts +10 -4
- package/dist/src/wrapper/SharePlugin.js +12 -11
- package/dist/src/wrapper/SharePlugin.js.map +1 -1
- package/dist/src/wrapper/TreeShakingSharedPlugin.d.ts +9 -4
- package/dist/src/wrapper/TreeShakingSharedPlugin.js +12 -11
- package/dist/src/wrapper/TreeShakingSharedPlugin.js.map +1 -1
- package/package.json +21 -14
- package/dist/package.json +0 -110
- package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
- package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
- package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
- package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
- package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
- package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -33
- package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +0 -86
- package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -100
- package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -102
- package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -116
- package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.d.ts +0 -20
- package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +0 -219
- package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +0 -1
- package/dist/src/prefetch.js.map +0 -1
- package/dist/src/rspack.js.map +0 -1
- package/dist/src/runtime.js.map +0 -1
- package/dist/src/types/runtime.d.ts +0 -10
- package/dist/src/types/runtime.js +0 -3
- package/dist/src/types/runtime.js.map +0 -1
- package/dist/src/webpack.js.map +0 -1
|
@@ -1,809 +1,603 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
var m = s === p;
|
|
354
|
-
}
|
|
355
|
-
else
|
|
356
|
-
m = !0;
|
|
357
|
-
if (m) {
|
|
358
|
-
if (void 0 !== r.version) {
|
|
359
|
-
const e = p;
|
|
360
|
-
if ('string' != typeof r.version)
|
|
361
|
-
return ((t.errors = [
|
|
362
|
-
{ params: { type: 'string' } },
|
|
363
|
-
]),
|
|
364
|
-
!1);
|
|
365
|
-
m = e === p;
|
|
366
|
-
}
|
|
367
|
-
else
|
|
368
|
-
m = !0;
|
|
369
|
-
if (m)
|
|
370
|
-
if (void 0 !== r.fallbackVersion) {
|
|
371
|
-
const e = p;
|
|
372
|
-
if ('string' != typeof r.fallbackVersion)
|
|
373
|
-
return ((t.errors = [
|
|
374
|
-
{ params: { type: 'string' } },
|
|
375
|
-
]),
|
|
376
|
-
!1);
|
|
377
|
-
m = e === p;
|
|
378
|
-
}
|
|
379
|
-
else
|
|
380
|
-
m = !0;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
f = e === p;
|
|
386
|
-
}
|
|
387
|
-
else
|
|
388
|
-
f = !0;
|
|
389
|
-
if (f) {
|
|
390
|
-
if (void 0 !== s.include) {
|
|
391
|
-
let r = s.include;
|
|
392
|
-
const e = p, n = p, o = p;
|
|
393
|
-
let i = !1;
|
|
394
|
-
const a = p;
|
|
395
|
-
if (r &&
|
|
396
|
-
'object' == typeof r &&
|
|
397
|
-
!Array.isArray(r)) {
|
|
398
|
-
let e;
|
|
399
|
-
if (void 0 === r.request && (e = 'request')) {
|
|
400
|
-
const r = {
|
|
401
|
-
params: { missingProperty: e },
|
|
402
|
-
};
|
|
403
|
-
null === l ? (l = [r]) : l.push(r), p++;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
var d = a === p;
|
|
407
|
-
if (((i = i || d), !i)) {
|
|
408
|
-
const e = p;
|
|
409
|
-
if (r &&
|
|
410
|
-
'object' == typeof r &&
|
|
411
|
-
!Array.isArray(r)) {
|
|
412
|
-
let e;
|
|
413
|
-
if (void 0 === r.version &&
|
|
414
|
-
(e = 'version')) {
|
|
415
|
-
const r = {
|
|
416
|
-
params: { missingProperty: e },
|
|
417
|
-
};
|
|
418
|
-
null === l ? (l = [r]) : l.push(r), p++;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
(d = e === p), (i = i || d);
|
|
422
|
-
}
|
|
423
|
-
if (!i) {
|
|
424
|
-
const r = { params: {} };
|
|
425
|
-
return (null === l ? (l = [r]) : l.push(r),
|
|
426
|
-
p++,
|
|
427
|
-
(t.errors = l),
|
|
428
|
-
!1);
|
|
429
|
-
}
|
|
430
|
-
if (((p = o),
|
|
431
|
-
null !== l &&
|
|
432
|
-
(o ? (l.length = o) : (l = null)),
|
|
433
|
-
p === n)) {
|
|
434
|
-
if (!r ||
|
|
435
|
-
'object' != typeof r ||
|
|
436
|
-
Array.isArray(r))
|
|
437
|
-
return ((t.errors = [
|
|
438
|
-
{ params: { type: 'object' } },
|
|
439
|
-
]),
|
|
440
|
-
!1);
|
|
441
|
-
{
|
|
442
|
-
const e = p;
|
|
443
|
-
for (const e in r)
|
|
444
|
-
if ('request' !== e &&
|
|
445
|
-
'version' !== e &&
|
|
446
|
-
'fallbackVersion' !== e)
|
|
447
|
-
return ((t.errors = [
|
|
448
|
-
{
|
|
449
|
-
params: { additionalProperty: e },
|
|
450
|
-
},
|
|
451
|
-
]),
|
|
452
|
-
!1);
|
|
453
|
-
if (e === p) {
|
|
454
|
-
if (void 0 !== r.request) {
|
|
455
|
-
let e = r.request;
|
|
456
|
-
const s = p, n = p;
|
|
457
|
-
let o = !1;
|
|
458
|
-
const i = p;
|
|
459
|
-
if ('string' != typeof e) {
|
|
460
|
-
const r = {
|
|
461
|
-
params: { type: 'string' },
|
|
462
|
-
};
|
|
463
|
-
null === l ? (l = [r]) : l.push(r),
|
|
464
|
-
p++;
|
|
465
|
-
}
|
|
466
|
-
var v = i === p;
|
|
467
|
-
if (((o = o || v), !o)) {
|
|
468
|
-
const r = p;
|
|
469
|
-
if (!(e instanceof RegExp)) {
|
|
470
|
-
const r = { params: {} };
|
|
471
|
-
null === l ? (l = [r]) : l.push(r),
|
|
472
|
-
p++;
|
|
473
|
-
}
|
|
474
|
-
(v = r === p), (o = o || v);
|
|
475
|
-
}
|
|
476
|
-
if (!o) {
|
|
477
|
-
const r = { params: {} };
|
|
478
|
-
return (null === l ? (l = [r]) : l.push(r),
|
|
479
|
-
p++,
|
|
480
|
-
(t.errors = l),
|
|
481
|
-
!1);
|
|
482
|
-
}
|
|
483
|
-
(p = n),
|
|
484
|
-
null !== l &&
|
|
485
|
-
(n ? (l.length = n) : (l = null));
|
|
486
|
-
var b = s === p;
|
|
487
|
-
}
|
|
488
|
-
else
|
|
489
|
-
b = !0;
|
|
490
|
-
if (b) {
|
|
491
|
-
if (void 0 !== r.version) {
|
|
492
|
-
const e = p;
|
|
493
|
-
if ('string' != typeof r.version)
|
|
494
|
-
return ((t.errors = [
|
|
495
|
-
{ params: { type: 'string' } },
|
|
496
|
-
]),
|
|
497
|
-
!1);
|
|
498
|
-
b = e === p;
|
|
499
|
-
}
|
|
500
|
-
else
|
|
501
|
-
b = !0;
|
|
502
|
-
if (b)
|
|
503
|
-
if (void 0 !== r.fallbackVersion) {
|
|
504
|
-
const e = p;
|
|
505
|
-
if ('string' !=
|
|
506
|
-
typeof r.fallbackVersion)
|
|
507
|
-
return ((t.errors = [
|
|
508
|
-
{
|
|
509
|
-
params: { type: 'string' },
|
|
510
|
-
},
|
|
511
|
-
]),
|
|
512
|
-
!1);
|
|
513
|
-
b = e === p;
|
|
514
|
-
}
|
|
515
|
-
else
|
|
516
|
-
b = !0;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
f = e === p;
|
|
522
|
-
}
|
|
523
|
-
else
|
|
524
|
-
f = !0;
|
|
525
|
-
if (f) {
|
|
526
|
-
if (void 0 !== s.allowNodeModulesSuffixMatch) {
|
|
527
|
-
const r = p;
|
|
528
|
-
if ('boolean' !=
|
|
529
|
-
typeof s.allowNodeModulesSuffixMatch)
|
|
530
|
-
return ((t.errors = [
|
|
531
|
-
{ params: { type: 'boolean' } },
|
|
532
|
-
]),
|
|
533
|
-
!1);
|
|
534
|
-
f = r === p;
|
|
535
|
-
}
|
|
536
|
-
else
|
|
537
|
-
f = !0;
|
|
538
|
-
if (f)
|
|
539
|
-
if (void 0 !== s.treeShakingMode) {
|
|
540
|
-
let e = s.treeShakingMode;
|
|
541
|
-
const n = p;
|
|
542
|
-
if ('string' != typeof e)
|
|
543
|
-
return ((t.errors = [
|
|
544
|
-
{ params: { type: 'string' } },
|
|
545
|
-
]),
|
|
546
|
-
!1);
|
|
547
|
-
if ('server-calc' !== e &&
|
|
548
|
-
'runtime-infer' !== e)
|
|
549
|
-
return ((t.errors = [
|
|
550
|
-
{
|
|
551
|
-
params: {
|
|
552
|
-
allowedValues: r.properties.treeShakingMode
|
|
553
|
-
.enum,
|
|
554
|
-
},
|
|
555
|
-
},
|
|
556
|
-
]),
|
|
557
|
-
!1);
|
|
558
|
-
f = n === p;
|
|
559
|
-
}
|
|
560
|
-
else
|
|
561
|
-
f = !0;
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
return (t.errors = l), 0 === p;
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.js');
|
|
3
|
+
|
|
4
|
+
//#region src/schemas/sharing/ProvideSharedPlugin.check.ts
|
|
5
|
+
var ProvideSharedPlugin_check_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
|
+
default: () => ProvideSharedPlugin_check_default,
|
|
7
|
+
validate: () => validate
|
|
8
|
+
});
|
|
9
|
+
function t(s, { instancePath: n = "", parentData: o, parentDataProperty: i, rootData: a = s } = {}) {
|
|
10
|
+
let l = null, p = 0;
|
|
11
|
+
if (0 === p) {
|
|
12
|
+
if (!s || "object" != typeof s || Array.isArray(s)) return t.errors = [{ params: { type: "object" } }], !1;
|
|
13
|
+
{
|
|
14
|
+
const n = p;
|
|
15
|
+
for (const n in s) if (!e.call(r.properties, n)) return t.errors = [{ params: { additionalProperty: n } }], !1;
|
|
16
|
+
if (n === p) {
|
|
17
|
+
if (void 0 !== s.eager) {
|
|
18
|
+
const r = p;
|
|
19
|
+
if ("boolean" != typeof s.eager) return t.errors = [{ params: { type: "boolean" } }], !1;
|
|
20
|
+
var f = r === p;
|
|
21
|
+
} else f = !0;
|
|
22
|
+
if (f) {
|
|
23
|
+
if (void 0 !== s.shareKey) {
|
|
24
|
+
let r = s.shareKey;
|
|
25
|
+
const e = p;
|
|
26
|
+
if (p === e) {
|
|
27
|
+
if ("string" != typeof r) return t.errors = [{ params: { type: "string" } }], !1;
|
|
28
|
+
if (r.length < 1) return t.errors = [{ params: {} }], !1;
|
|
29
|
+
}
|
|
30
|
+
f = e === p;
|
|
31
|
+
} else f = !0;
|
|
32
|
+
if (f) {
|
|
33
|
+
if (void 0 !== s.request) {
|
|
34
|
+
let r = s.request;
|
|
35
|
+
const e = p;
|
|
36
|
+
if (p === e) {
|
|
37
|
+
if ("string" != typeof r) return t.errors = [{ params: { type: "string" } }], !1;
|
|
38
|
+
if (r.length < 1) return t.errors = [{ params: {} }], !1;
|
|
39
|
+
}
|
|
40
|
+
f = e === p;
|
|
41
|
+
} else f = !0;
|
|
42
|
+
if (f) {
|
|
43
|
+
if (void 0 !== s.shareScope) {
|
|
44
|
+
let r = s.shareScope;
|
|
45
|
+
const e = p, n = p;
|
|
46
|
+
let o = !1;
|
|
47
|
+
const i = p;
|
|
48
|
+
if (p === i) if ("string" == typeof r) {
|
|
49
|
+
if (r.length < 1) {
|
|
50
|
+
const r = { params: {} };
|
|
51
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
52
|
+
}
|
|
53
|
+
} else {
|
|
54
|
+
const r = { params: { type: "string" } };
|
|
55
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
56
|
+
}
|
|
57
|
+
var u = i === p;
|
|
58
|
+
if (o = o || u, !o) {
|
|
59
|
+
const e = p;
|
|
60
|
+
if (p === e) if (Array.isArray(r)) {
|
|
61
|
+
const e = r.length;
|
|
62
|
+
for (let t = 0; t < e; t++) {
|
|
63
|
+
let e = r[t];
|
|
64
|
+
const s = p;
|
|
65
|
+
if (p === s) if ("string" == typeof e) {
|
|
66
|
+
if (e.length < 1) {
|
|
67
|
+
const r = { params: {} };
|
|
68
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
const r = { params: { type: "string" } };
|
|
72
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
73
|
+
}
|
|
74
|
+
if (s !== p) break;
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
const r = { params: { type: "array" } };
|
|
78
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
79
|
+
}
|
|
80
|
+
u = e === p, o = o || u;
|
|
81
|
+
}
|
|
82
|
+
if (!o) {
|
|
83
|
+
const r = { params: {} };
|
|
84
|
+
return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
|
|
85
|
+
}
|
|
86
|
+
p = n, null !== l && (n ? l.length = n : l = null), f = e === p;
|
|
87
|
+
} else f = !0;
|
|
88
|
+
if (f) {
|
|
89
|
+
if (void 0 !== s.requiredVersion) {
|
|
90
|
+
let e = s.requiredVersion;
|
|
91
|
+
const n = p, o = p;
|
|
92
|
+
let i = !1;
|
|
93
|
+
const a = p;
|
|
94
|
+
if (!1 !== e) {
|
|
95
|
+
const e = { params: { allowedValues: r.properties.requiredVersion.anyOf[0].enum } };
|
|
96
|
+
null === l ? l = [e] : l.push(e), p++;
|
|
97
|
+
}
|
|
98
|
+
var c = a === p;
|
|
99
|
+
if (i = i || c, !i) {
|
|
100
|
+
const r = p;
|
|
101
|
+
if ("string" != typeof e) {
|
|
102
|
+
const r = { params: { type: "string" } };
|
|
103
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
104
|
+
}
|
|
105
|
+
c = r === p, i = i || c;
|
|
106
|
+
}
|
|
107
|
+
if (!i) {
|
|
108
|
+
const r = { params: {} };
|
|
109
|
+
return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
|
|
110
|
+
}
|
|
111
|
+
p = o, null !== l && (o ? l.length = o : l = null), f = n === p;
|
|
112
|
+
} else f = !0;
|
|
113
|
+
if (f) {
|
|
114
|
+
if (void 0 !== s.strictVersion) {
|
|
115
|
+
const r = p;
|
|
116
|
+
if ("boolean" != typeof s.strictVersion) return t.errors = [{ params: { type: "boolean" } }], !1;
|
|
117
|
+
f = r === p;
|
|
118
|
+
} else f = !0;
|
|
119
|
+
if (f) {
|
|
120
|
+
if (void 0 !== s.singleton) {
|
|
121
|
+
const r = p;
|
|
122
|
+
if ("boolean" != typeof s.singleton) return t.errors = [{ params: { type: "boolean" } }], !1;
|
|
123
|
+
f = r === p;
|
|
124
|
+
} else f = !0;
|
|
125
|
+
if (f) {
|
|
126
|
+
if (void 0 !== s.layer) {
|
|
127
|
+
let r = s.layer;
|
|
128
|
+
const e = p;
|
|
129
|
+
if (p === e) {
|
|
130
|
+
if ("string" != typeof r) return t.errors = [{ params: { type: "string" } }], !1;
|
|
131
|
+
if (r.length < 1) return t.errors = [{ params: {} }], !1;
|
|
132
|
+
}
|
|
133
|
+
f = e === p;
|
|
134
|
+
} else f = !0;
|
|
135
|
+
if (f) {
|
|
136
|
+
if (void 0 !== s.issuerLayer) {
|
|
137
|
+
let r = s.issuerLayer;
|
|
138
|
+
const e = p;
|
|
139
|
+
if (p === e) {
|
|
140
|
+
if ("string" != typeof r) return t.errors = [{ params: { type: "string" } }], !1;
|
|
141
|
+
if (r.length < 1) return t.errors = [{ params: {} }], !1;
|
|
142
|
+
}
|
|
143
|
+
f = e === p;
|
|
144
|
+
} else f = !0;
|
|
145
|
+
if (f) {
|
|
146
|
+
if (void 0 !== s.version) {
|
|
147
|
+
let e = s.version;
|
|
148
|
+
const n = p, o = p;
|
|
149
|
+
let i = !1;
|
|
150
|
+
const a = p;
|
|
151
|
+
if (!1 !== e) {
|
|
152
|
+
const e = { params: { allowedValues: r.properties.version.anyOf[0].enum } };
|
|
153
|
+
null === l ? l = [e] : l.push(e), p++;
|
|
154
|
+
}
|
|
155
|
+
var y = a === p;
|
|
156
|
+
if (i = i || y, !i) {
|
|
157
|
+
const r = p;
|
|
158
|
+
if ("string" != typeof e) {
|
|
159
|
+
const r = { params: { type: "string" } };
|
|
160
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
161
|
+
}
|
|
162
|
+
y = r === p, i = i || y;
|
|
163
|
+
}
|
|
164
|
+
if (!i) {
|
|
165
|
+
const r = { params: {} };
|
|
166
|
+
return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
|
|
167
|
+
}
|
|
168
|
+
p = o, null !== l && (o ? l.length = o : l = null), f = n === p;
|
|
169
|
+
} else f = !0;
|
|
170
|
+
if (f) {
|
|
171
|
+
if (void 0 !== s.exclude) {
|
|
172
|
+
let r = s.exclude;
|
|
173
|
+
const e = p, n = p, o = p;
|
|
174
|
+
let i = !1;
|
|
175
|
+
const a = p;
|
|
176
|
+
if (r && "object" == typeof r && !Array.isArray(r)) {
|
|
177
|
+
let e;
|
|
178
|
+
if (void 0 === r.request && (e = "request")) {
|
|
179
|
+
const r = { params: { missingProperty: e } };
|
|
180
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
var g = a === p;
|
|
184
|
+
if (i = i || g, !i) {
|
|
185
|
+
const e = p;
|
|
186
|
+
if (r && "object" == typeof r && !Array.isArray(r)) {
|
|
187
|
+
let e;
|
|
188
|
+
if (void 0 === r.version && (e = "version")) {
|
|
189
|
+
const r = { params: { missingProperty: e } };
|
|
190
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
g = e === p, i = i || g;
|
|
194
|
+
}
|
|
195
|
+
if (!i) {
|
|
196
|
+
const r = { params: {} };
|
|
197
|
+
return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
|
|
198
|
+
}
|
|
199
|
+
if (p = o, null !== l && (o ? l.length = o : l = null), p === n) {
|
|
200
|
+
if (!r || "object" != typeof r || Array.isArray(r)) return t.errors = [{ params: { type: "object" } }], !1;
|
|
201
|
+
{
|
|
202
|
+
const e = p;
|
|
203
|
+
for (const e in r) if ("request" !== e && "version" !== e && "fallbackVersion" !== e) return t.errors = [{ params: { additionalProperty: e } }], !1;
|
|
204
|
+
if (e === p) {
|
|
205
|
+
if (void 0 !== r.request) {
|
|
206
|
+
let e = r.request;
|
|
207
|
+
const s = p, n = p;
|
|
208
|
+
let o = !1;
|
|
209
|
+
const i = p;
|
|
210
|
+
if ("string" != typeof e) {
|
|
211
|
+
const r = { params: { type: "string" } };
|
|
212
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
213
|
+
}
|
|
214
|
+
var h = i === p;
|
|
215
|
+
if (o = o || h, !o) {
|
|
216
|
+
const r = p;
|
|
217
|
+
if (!(e instanceof RegExp)) {
|
|
218
|
+
const r = { params: {} };
|
|
219
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
220
|
+
}
|
|
221
|
+
h = r === p, o = o || h;
|
|
222
|
+
}
|
|
223
|
+
if (!o) {
|
|
224
|
+
const r = { params: {} };
|
|
225
|
+
return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
|
|
226
|
+
}
|
|
227
|
+
p = n, null !== l && (n ? l.length = n : l = null);
|
|
228
|
+
var m = s === p;
|
|
229
|
+
} else m = !0;
|
|
230
|
+
if (m) {
|
|
231
|
+
if (void 0 !== r.version) {
|
|
232
|
+
const e = p;
|
|
233
|
+
if ("string" != typeof r.version) return t.errors = [{ params: { type: "string" } }], !1;
|
|
234
|
+
m = e === p;
|
|
235
|
+
} else m = !0;
|
|
236
|
+
if (m) if (void 0 !== r.fallbackVersion) {
|
|
237
|
+
const e = p;
|
|
238
|
+
if ("string" != typeof r.fallbackVersion) return t.errors = [{ params: { type: "string" } }], !1;
|
|
239
|
+
m = e === p;
|
|
240
|
+
} else m = !0;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
f = e === p;
|
|
246
|
+
} else f = !0;
|
|
247
|
+
if (f) {
|
|
248
|
+
if (void 0 !== s.include) {
|
|
249
|
+
let r = s.include;
|
|
250
|
+
const e = p, n = p, o = p;
|
|
251
|
+
let i = !1;
|
|
252
|
+
const a = p;
|
|
253
|
+
if (r && "object" == typeof r && !Array.isArray(r)) {
|
|
254
|
+
let e;
|
|
255
|
+
if (void 0 === r.request && (e = "request")) {
|
|
256
|
+
const r = { params: { missingProperty: e } };
|
|
257
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
var d = a === p;
|
|
261
|
+
if (i = i || d, !i) {
|
|
262
|
+
const e = p;
|
|
263
|
+
if (r && "object" == typeof r && !Array.isArray(r)) {
|
|
264
|
+
let e;
|
|
265
|
+
if (void 0 === r.version && (e = "version")) {
|
|
266
|
+
const r = { params: { missingProperty: e } };
|
|
267
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
d = e === p, i = i || d;
|
|
271
|
+
}
|
|
272
|
+
if (!i) {
|
|
273
|
+
const r = { params: {} };
|
|
274
|
+
return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
|
|
275
|
+
}
|
|
276
|
+
if (p = o, null !== l && (o ? l.length = o : l = null), p === n) {
|
|
277
|
+
if (!r || "object" != typeof r || Array.isArray(r)) return t.errors = [{ params: { type: "object" } }], !1;
|
|
278
|
+
{
|
|
279
|
+
const e = p;
|
|
280
|
+
for (const e in r) if ("request" !== e && "version" !== e && "fallbackVersion" !== e) return t.errors = [{ params: { additionalProperty: e } }], !1;
|
|
281
|
+
if (e === p) {
|
|
282
|
+
if (void 0 !== r.request) {
|
|
283
|
+
let e = r.request;
|
|
284
|
+
const s = p, n = p;
|
|
285
|
+
let o = !1;
|
|
286
|
+
const i = p;
|
|
287
|
+
if ("string" != typeof e) {
|
|
288
|
+
const r = { params: { type: "string" } };
|
|
289
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
290
|
+
}
|
|
291
|
+
var v = i === p;
|
|
292
|
+
if (o = o || v, !o) {
|
|
293
|
+
const r = p;
|
|
294
|
+
if (!(e instanceof RegExp)) {
|
|
295
|
+
const r = { params: {} };
|
|
296
|
+
null === l ? l = [r] : l.push(r), p++;
|
|
297
|
+
}
|
|
298
|
+
v = r === p, o = o || v;
|
|
299
|
+
}
|
|
300
|
+
if (!o) {
|
|
301
|
+
const r = { params: {} };
|
|
302
|
+
return null === l ? l = [r] : l.push(r), p++, t.errors = l, !1;
|
|
303
|
+
}
|
|
304
|
+
p = n, null !== l && (n ? l.length = n : l = null);
|
|
305
|
+
var b = s === p;
|
|
306
|
+
} else b = !0;
|
|
307
|
+
if (b) {
|
|
308
|
+
if (void 0 !== r.version) {
|
|
309
|
+
const e = p;
|
|
310
|
+
if ("string" != typeof r.version) return t.errors = [{ params: { type: "string" } }], !1;
|
|
311
|
+
b = e === p;
|
|
312
|
+
} else b = !0;
|
|
313
|
+
if (b) if (void 0 !== r.fallbackVersion) {
|
|
314
|
+
const e = p;
|
|
315
|
+
if ("string" != typeof r.fallbackVersion) return t.errors = [{ params: { type: "string" } }], !1;
|
|
316
|
+
b = e === p;
|
|
317
|
+
} else b = !0;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
f = e === p;
|
|
323
|
+
} else f = !0;
|
|
324
|
+
if (f) {
|
|
325
|
+
if (void 0 !== s.allowNodeModulesSuffixMatch) {
|
|
326
|
+
const r = p;
|
|
327
|
+
if ("boolean" != typeof s.allowNodeModulesSuffixMatch) return t.errors = [{ params: { type: "boolean" } }], !1;
|
|
328
|
+
f = r === p;
|
|
329
|
+
} else f = !0;
|
|
330
|
+
if (f) if (void 0 !== s.treeShakingMode) {
|
|
331
|
+
let e = s.treeShakingMode;
|
|
332
|
+
const n = p;
|
|
333
|
+
if ("string" != typeof e) return t.errors = [{ params: { type: "string" } }], !1;
|
|
334
|
+
if ("server-calc" !== e && "runtime-infer" !== e) return t.errors = [{ params: { allowedValues: r.properties.treeShakingMode.enum } }], !1;
|
|
335
|
+
f = n === p;
|
|
336
|
+
} else f = !0;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
return t.errors = l, 0 === p;
|
|
578
353
|
}
|
|
579
|
-
function s(r, { instancePath: e =
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
break;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
return (s.errors = a), 0 === l;
|
|
354
|
+
function s(r, { instancePath: e = "", parentData: n, parentDataProperty: o, rootData: i = r } = {}) {
|
|
355
|
+
let a = null, l = 0;
|
|
356
|
+
if (0 === l) {
|
|
357
|
+
if (!r || "object" != typeof r || Array.isArray(r)) return s.errors = [{ params: { type: "object" } }], !1;
|
|
358
|
+
for (const n in r) {
|
|
359
|
+
let o = r[n];
|
|
360
|
+
const f = l, u = l;
|
|
361
|
+
let c = !1;
|
|
362
|
+
const y = l;
|
|
363
|
+
t(o, {
|
|
364
|
+
instancePath: e + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
365
|
+
parentData: r,
|
|
366
|
+
parentDataProperty: n,
|
|
367
|
+
rootData: i
|
|
368
|
+
}) || (a = null === a ? t.errors : a.concat(t.errors), l = a.length);
|
|
369
|
+
var p = y === l;
|
|
370
|
+
if (c = c || p, !c) {
|
|
371
|
+
const r = l;
|
|
372
|
+
if (l == l) if ("string" == typeof o) {
|
|
373
|
+
if (o.length < 1) {
|
|
374
|
+
const r = { params: {} };
|
|
375
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
376
|
+
}
|
|
377
|
+
} else {
|
|
378
|
+
const r = { params: { type: "string" } };
|
|
379
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
380
|
+
}
|
|
381
|
+
p = r === l, c = c || p;
|
|
382
|
+
}
|
|
383
|
+
if (!c) {
|
|
384
|
+
const r = { params: {} };
|
|
385
|
+
return null === a ? a = [r] : a.push(r), l++, s.errors = a, !1;
|
|
386
|
+
}
|
|
387
|
+
if (l = u, null !== a && (u ? a.length = u : a = null), f !== l) break;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return s.errors = a, 0 === l;
|
|
620
391
|
}
|
|
621
|
-
function n(r, { instancePath: e =
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
parentDataProperty: o,
|
|
679
|
-
rootData: i,
|
|
680
|
-
}) || ((a = null === a ? s.errors : a.concat(s.errors)), (l = a.length)),
|
|
681
|
-
(y = n === l),
|
|
682
|
-
(f = f || y);
|
|
683
|
-
}
|
|
684
|
-
if (!f) {
|
|
685
|
-
const r = { params: {} };
|
|
686
|
-
return null === a ? (a = [r]) : a.push(r), l++, (n.errors = a), !1;
|
|
687
|
-
}
|
|
688
|
-
return ((l = p),
|
|
689
|
-
null !== a && (p ? (a.length = p) : (a = null)),
|
|
690
|
-
(n.errors = a),
|
|
691
|
-
0 === l);
|
|
392
|
+
function n(r, { instancePath: e = "", parentData: t, parentDataProperty: o, rootData: i = r } = {}) {
|
|
393
|
+
let a = null, l = 0;
|
|
394
|
+
const p = l;
|
|
395
|
+
let f = !1;
|
|
396
|
+
const u = l;
|
|
397
|
+
if (l === u) if (Array.isArray(r)) {
|
|
398
|
+
const t = r.length;
|
|
399
|
+
for (let n = 0; n < t; n++) {
|
|
400
|
+
let t = r[n];
|
|
401
|
+
const o = l, p = l;
|
|
402
|
+
let f = !1;
|
|
403
|
+
const u = l;
|
|
404
|
+
if (l == l) if ("string" == typeof t) {
|
|
405
|
+
if (t.length < 1) {
|
|
406
|
+
const r = { params: {} };
|
|
407
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
408
|
+
}
|
|
409
|
+
} else {
|
|
410
|
+
const r = { params: { type: "string" } };
|
|
411
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
412
|
+
}
|
|
413
|
+
var c = u === l;
|
|
414
|
+
if (f = f || c, !f) {
|
|
415
|
+
const o = l;
|
|
416
|
+
s(t, {
|
|
417
|
+
instancePath: e + "/" + n,
|
|
418
|
+
parentData: r,
|
|
419
|
+
parentDataProperty: n,
|
|
420
|
+
rootData: i
|
|
421
|
+
}) || (a = null === a ? s.errors : a.concat(s.errors), l = a.length), c = o === l, f = f || c;
|
|
422
|
+
}
|
|
423
|
+
if (f) l = p, null !== a && (p ? a.length = p : a = null);
|
|
424
|
+
else {
|
|
425
|
+
const r = { params: {} };
|
|
426
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
427
|
+
}
|
|
428
|
+
if (o !== l) break;
|
|
429
|
+
}
|
|
430
|
+
} else {
|
|
431
|
+
const r = { params: { type: "array" } };
|
|
432
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
433
|
+
}
|
|
434
|
+
var y = u === l;
|
|
435
|
+
if (f = f || y, !f) {
|
|
436
|
+
const n = l;
|
|
437
|
+
s(r, {
|
|
438
|
+
instancePath: e,
|
|
439
|
+
parentData: t,
|
|
440
|
+
parentDataProperty: o,
|
|
441
|
+
rootData: i
|
|
442
|
+
}) || (a = null === a ? s.errors : a.concat(s.errors), l = a.length), y = n === l, f = f || y;
|
|
443
|
+
}
|
|
444
|
+
if (!f) {
|
|
445
|
+
const r = { params: {} };
|
|
446
|
+
return null === a ? a = [r] : a.push(r), l++, n.errors = a, !1;
|
|
447
|
+
}
|
|
448
|
+
return l = p, null !== a && (p ? a.length = p : a = null), n.errors = a, 0 === l;
|
|
692
449
|
}
|
|
693
|
-
function o(r, { instancePath: e =
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
if (p)
|
|
780
|
-
if (void 0 !== r.experiments) {
|
|
781
|
-
let e = r.experiments;
|
|
782
|
-
const t = l;
|
|
783
|
-
if (l === t) {
|
|
784
|
-
if (!e || 'object' != typeof e || Array.isArray(e))
|
|
785
|
-
return (o.errors = [{ params: { type: 'object' } }]), !1;
|
|
786
|
-
{
|
|
787
|
-
const r = l;
|
|
788
|
-
for (const r in e)
|
|
789
|
-
if ('allowNodeModulesSuffixMatch' !== r)
|
|
790
|
-
return ((o.errors = [{ params: { additionalProperty: r } }]),
|
|
791
|
-
!1);
|
|
792
|
-
if (r === l &&
|
|
793
|
-
void 0 !== e.allowNodeModulesSuffixMatch &&
|
|
794
|
-
'boolean' != typeof e.allowNodeModulesSuffixMatch)
|
|
795
|
-
return (o.errors = [{ params: { type: 'boolean' } }]), !1;
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
p = t === l;
|
|
799
|
-
}
|
|
800
|
-
else
|
|
801
|
-
p = !0;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
return (o.errors = a), 0 === l;
|
|
450
|
+
function o(r, { instancePath: e = "", parentData: t, parentDataProperty: s, rootData: i = r } = {}) {
|
|
451
|
+
let a = null, l = 0;
|
|
452
|
+
if (0 === l) {
|
|
453
|
+
if (!r || "object" != typeof r || Array.isArray(r)) return o.errors = [{ params: { type: "object" } }], !1;
|
|
454
|
+
{
|
|
455
|
+
let t;
|
|
456
|
+
if (void 0 === r.provides && (t = "provides")) return o.errors = [{ params: { missingProperty: t } }], !1;
|
|
457
|
+
{
|
|
458
|
+
const t = l;
|
|
459
|
+
for (const e in r) if ("provides" !== e && "shareScope" !== e && "experiments" !== e) return o.errors = [{ params: { additionalProperty: e } }], !1;
|
|
460
|
+
if (t === l) {
|
|
461
|
+
if (void 0 !== r.provides) {
|
|
462
|
+
const t = l;
|
|
463
|
+
n(r.provides, {
|
|
464
|
+
instancePath: e + "/provides",
|
|
465
|
+
parentData: r,
|
|
466
|
+
parentDataProperty: "provides",
|
|
467
|
+
rootData: i
|
|
468
|
+
}) || (a = null === a ? n.errors : a.concat(n.errors), l = a.length);
|
|
469
|
+
var p = t === l;
|
|
470
|
+
} else p = !0;
|
|
471
|
+
if (p) {
|
|
472
|
+
if (void 0 !== r.shareScope) {
|
|
473
|
+
let e = r.shareScope;
|
|
474
|
+
const t = l, s = l;
|
|
475
|
+
let n = !1;
|
|
476
|
+
const i = l;
|
|
477
|
+
if (l === i) if ("string" == typeof e) {
|
|
478
|
+
if (e.length < 1) {
|
|
479
|
+
const r = { params: {} };
|
|
480
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
481
|
+
}
|
|
482
|
+
} else {
|
|
483
|
+
const r = { params: { type: "string" } };
|
|
484
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
485
|
+
}
|
|
486
|
+
var f = i === l;
|
|
487
|
+
if (n = n || f, !n) {
|
|
488
|
+
const r = l;
|
|
489
|
+
if (l === r) if (Array.isArray(e)) {
|
|
490
|
+
const r = e.length;
|
|
491
|
+
for (let t = 0; t < r; t++) {
|
|
492
|
+
let r = e[t];
|
|
493
|
+
const s = l;
|
|
494
|
+
if (l === s) if ("string" == typeof r) {
|
|
495
|
+
if (r.length < 1) {
|
|
496
|
+
const r = { params: {} };
|
|
497
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
498
|
+
}
|
|
499
|
+
} else {
|
|
500
|
+
const r = { params: { type: "string" } };
|
|
501
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
502
|
+
}
|
|
503
|
+
if (s !== l) break;
|
|
504
|
+
}
|
|
505
|
+
} else {
|
|
506
|
+
const r = { params: { type: "array" } };
|
|
507
|
+
null === a ? a = [r] : a.push(r), l++;
|
|
508
|
+
}
|
|
509
|
+
f = r === l, n = n || f;
|
|
510
|
+
}
|
|
511
|
+
if (!n) {
|
|
512
|
+
const r = { params: {} };
|
|
513
|
+
return null === a ? a = [r] : a.push(r), l++, o.errors = a, !1;
|
|
514
|
+
}
|
|
515
|
+
l = s, null !== a && (s ? a.length = s : a = null), p = t === l;
|
|
516
|
+
} else p = !0;
|
|
517
|
+
if (p) if (void 0 !== r.experiments) {
|
|
518
|
+
let e = r.experiments;
|
|
519
|
+
const t = l;
|
|
520
|
+
if (l === t) {
|
|
521
|
+
if (!e || "object" != typeof e || Array.isArray(e)) return o.errors = [{ params: { type: "object" } }], !1;
|
|
522
|
+
{
|
|
523
|
+
const r = l;
|
|
524
|
+
for (const r in e) if ("allowNodeModulesSuffixMatch" !== r) return o.errors = [{ params: { additionalProperty: r } }], !1;
|
|
525
|
+
if (r === l && void 0 !== e.allowNodeModulesSuffixMatch && "boolean" != typeof e.allowNodeModulesSuffixMatch) return o.errors = [{ params: { type: "boolean" } }], !1;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
p = t === l;
|
|
529
|
+
} else p = !0;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
return o.errors = a, 0 === l;
|
|
808
536
|
}
|
|
537
|
+
var validate, ProvideSharedPlugin_check_default, r, e;
|
|
538
|
+
var init_ProvideSharedPlugin_check = require_runtime.__esmMin((() => {
|
|
539
|
+
validate = o;
|
|
540
|
+
ProvideSharedPlugin_check_default = o;
|
|
541
|
+
r = {
|
|
542
|
+
type: "object",
|
|
543
|
+
additionalProperties: !1,
|
|
544
|
+
properties: {
|
|
545
|
+
eager: { type: "boolean" },
|
|
546
|
+
shareKey: {
|
|
547
|
+
type: "string",
|
|
548
|
+
minLength: 1
|
|
549
|
+
},
|
|
550
|
+
request: {
|
|
551
|
+
type: "string",
|
|
552
|
+
minLength: 1
|
|
553
|
+
},
|
|
554
|
+
shareScope: { anyOf: [{
|
|
555
|
+
type: "string",
|
|
556
|
+
minLength: 1
|
|
557
|
+
}, {
|
|
558
|
+
type: "array",
|
|
559
|
+
items: {
|
|
560
|
+
type: "string",
|
|
561
|
+
minLength: 1
|
|
562
|
+
}
|
|
563
|
+
}] },
|
|
564
|
+
requiredVersion: { anyOf: [{ enum: [!1] }, { type: "string" }] },
|
|
565
|
+
strictVersion: { type: "boolean" },
|
|
566
|
+
singleton: { type: "boolean" },
|
|
567
|
+
layer: {
|
|
568
|
+
type: "string",
|
|
569
|
+
minLength: 1
|
|
570
|
+
},
|
|
571
|
+
issuerLayer: {
|
|
572
|
+
type: "string",
|
|
573
|
+
minLength: 1
|
|
574
|
+
},
|
|
575
|
+
version: { anyOf: [{ enum: [!1] }, { type: "string" }] },
|
|
576
|
+
exclude: { $ref: "#/definitions/IncludeExcludeOptions" },
|
|
577
|
+
include: { $ref: "#/definitions/IncludeExcludeOptions" },
|
|
578
|
+
allowNodeModulesSuffixMatch: { type: "boolean" },
|
|
579
|
+
treeShakingMode: {
|
|
580
|
+
type: "string",
|
|
581
|
+
enum: ["server-calc", "runtime-infer"]
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}, e = Object.prototype.hasOwnProperty;
|
|
585
|
+
}));
|
|
586
|
+
|
|
587
|
+
//#endregion
|
|
588
|
+
init_ProvideSharedPlugin_check();
|
|
589
|
+
Object.defineProperty(exports, 'ProvideSharedPlugin_check_exports', {
|
|
590
|
+
enumerable: true,
|
|
591
|
+
get: function () {
|
|
592
|
+
return ProvideSharedPlugin_check_exports;
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
exports.default = ProvideSharedPlugin_check_default;
|
|
596
|
+
Object.defineProperty(exports, 'init_ProvideSharedPlugin_check', {
|
|
597
|
+
enumerable: true,
|
|
598
|
+
get: function () {
|
|
599
|
+
return init_ProvideSharedPlugin_check;
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
exports.validate = validate;
|
|
809
603
|
//# sourceMappingURL=ProvideSharedPlugin.check.js.map
|