@module-federation/enhanced 2.1.0 → 2.2.1

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