@module-federation/enhanced 0.2.0-canary.5 → 0.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 (395) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +169 -0
  3. package/dist/package.json +85 -0
  4. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +57 -0
  5. package/dist/src/declarations/plugins/container/Dependency.d.ts +285 -0
  6. package/dist/src/declarations/plugins/container/Module.d.ts +138 -0
  7. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +33 -0
  8. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +4 -0
  9. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +28 -0
  10. package/dist/src/declarations/plugins/container/Template.d.ts +198 -0
  11. package/dist/src/declarations/plugins/container/WebpackError.d.ts +32 -0
  12. package/dist/src/declarations/plugins/container/WebpackOptions.d.ts +140 -0
  13. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +74 -0
  14. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +67 -0
  15. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +78 -0
  16. package/dist/src/index.d.ts +14 -0
  17. package/dist/src/index.js +37 -0
  18. package/dist/src/index.js.map +1 -0
  19. package/dist/src/lib/Constants.js +125 -0
  20. package/dist/src/lib/Constants.js.map +1 -0
  21. package/dist/src/lib/RuntimeGlobals.d.ts +0 -0
  22. package/{src → dist/src}/lib/RuntimeGlobals.js +144 -74
  23. package/dist/src/lib/RuntimeGlobals.js.map +1 -0
  24. package/{src → dist/src}/lib/container/AsyncBoundaryPlugin.d.ts +3 -4
  25. package/dist/src/lib/container/AsyncBoundaryPlugin.js +198 -0
  26. package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -0
  27. package/dist/src/lib/container/ContainerEntryDependency.d.ts +24 -0
  28. package/dist/src/lib/container/ContainerEntryDependency.js +39 -0
  29. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -0
  30. package/dist/src/lib/container/ContainerEntryModule.d.ts +75 -0
  31. package/dist/src/lib/container/ContainerEntryModule.js +240 -0
  32. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -0
  33. package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +15 -0
  34. package/dist/src/lib/container/ContainerEntryModuleFactory.js +30 -0
  35. package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -0
  36. package/dist/src/lib/container/ContainerExposedDependency.d.ts +19 -0
  37. package/dist/src/lib/container/ContainerExposedDependency.js +49 -0
  38. package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -0
  39. package/dist/src/lib/container/ContainerPlugin.d.ts +13 -0
  40. package/dist/src/lib/container/ContainerPlugin.js +188 -0
  41. package/dist/src/lib/container/ContainerPlugin.js.map +1 -0
  42. package/{src → dist/src}/lib/container/ContainerReferencePlugin.d.ts +3 -3
  43. package/dist/src/lib/container/ContainerReferencePlugin.js +102 -0
  44. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -0
  45. package/dist/src/lib/container/FallbackDependency.d.ts +15 -0
  46. package/dist/src/lib/container/FallbackDependency.js +47 -0
  47. package/dist/src/lib/container/FallbackDependency.js.map +1 -0
  48. package/dist/src/lib/container/FallbackItemDependency.d.ts +3 -0
  49. package/dist/src/lib/container/FallbackItemDependency.js +26 -0
  50. package/dist/src/lib/container/FallbackItemDependency.js.map +1 -0
  51. package/dist/src/lib/container/FallbackModule.d.ts +54 -0
  52. package/dist/src/lib/container/FallbackModule.js +152 -0
  53. package/dist/src/lib/container/FallbackModule.js.map +1 -0
  54. package/dist/src/lib/container/FallbackModuleFactory.d.ts +11 -0
  55. package/dist/src/lib/container/FallbackModuleFactory.js +28 -0
  56. package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -0
  57. package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +14 -0
  58. package/dist/src/lib/container/HoistContainerReferencesPlugin.js +64 -0
  59. package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -0
  60. package/dist/src/lib/container/ModuleFederationPlugin.d.ts +17 -0
  61. package/dist/src/lib/container/ModuleFederationPlugin.js +133 -0
  62. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -0
  63. package/dist/src/lib/container/RemoteModule.d.ts +90 -0
  64. package/dist/src/lib/container/RemoteModule.js +148 -0
  65. package/dist/src/lib/container/RemoteModule.js.map +1 -0
  66. package/dist/src/lib/container/RemoteRuntimeModule.d.ts +12 -0
  67. package/dist/src/lib/container/RemoteRuntimeModule.js +101 -0
  68. package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -0
  69. package/{src → dist/src}/lib/container/RemoteToExternalDependency.d.ts +3 -9
  70. package/dist/src/lib/container/RemoteToExternalDependency.js +26 -0
  71. package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -0
  72. package/dist/src/lib/container/constant.d.ts +3 -0
  73. package/dist/src/lib/container/constant.js +12 -0
  74. package/dist/src/lib/container/constant.js.map +1 -0
  75. package/{src → dist/src}/lib/container/options.d.ts +12 -4
  76. package/{src → dist/src}/lib/container/options.js +32 -42
  77. package/dist/src/lib/container/options.js.map +1 -0
  78. package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +13 -0
  79. package/dist/src/lib/container/runtime/FederationRuntimeModule.js +49 -0
  80. package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -0
  81. package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +17 -0
  82. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +209 -0
  83. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -0
  84. package/dist/src/lib/container/runtime/RemoteEntryPlugin.d.ts +8 -0
  85. package/dist/src/lib/container/runtime/RemoteEntryPlugin.js +32 -0
  86. package/dist/src/lib/container/runtime/RemoteEntryPlugin.js.map +1 -0
  87. package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +5 -0
  88. package/dist/src/lib/container/runtime/getFederationGlobal.js +26 -0
  89. package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -0
  90. package/dist/src/lib/container/runtime/utils.d.ts +16 -0
  91. package/dist/src/lib/container/runtime/utils.js +83 -0
  92. package/dist/src/lib/container/runtime/utils.js.map +1 -0
  93. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +3 -0
  94. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +26 -0
  95. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -0
  96. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +99 -0
  97. package/dist/src/lib/sharing/ConsumeSharedModule.js +206 -0
  98. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -0
  99. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +30 -0
  100. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +245 -0
  101. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -0
  102. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +31 -0
  103. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +124 -0
  104. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -0
  105. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +3 -0
  106. package/dist/src/lib/sharing/ProvideForSharedDependency.js +27 -0
  107. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -0
  108. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +36 -0
  109. package/dist/src/lib/sharing/ProvideSharedDependency.js +70 -0
  110. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -0
  111. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +67 -0
  112. package/dist/src/lib/sharing/ProvideSharedModule.js +186 -0
  113. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -0
  114. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +18 -0
  115. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +30 -0
  116. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -0
  117. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +47 -0
  118. package/dist/src/lib/sharing/ProvideSharedPlugin.js +195 -0
  119. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -0
  120. package/dist/src/lib/sharing/SharePlugin.d.ts +41 -0
  121. package/dist/src/lib/sharing/SharePlugin.js +79 -0
  122. package/dist/src/lib/sharing/SharePlugin.js.map +1 -0
  123. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +14 -0
  124. package/dist/src/lib/sharing/ShareRuntimeModule.js +102 -0
  125. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -0
  126. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +12 -0
  127. package/dist/src/lib/sharing/resolveMatchedConfigs.js +66 -0
  128. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -0
  129. package/dist/src/lib/sharing/utils.d.ts +37 -0
  130. package/{src → dist/src}/lib/sharing/utils.js +109 -81
  131. package/dist/src/lib/sharing/utils.js.map +1 -0
  132. package/dist/src/rspack.d.ts +1 -0
  133. package/dist/src/rspack.js +6 -0
  134. package/dist/src/rspack.js.map +1 -0
  135. package/{src → dist/src}/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +1 -1
  136. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -0
  137. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -0
  138. package/dist/src/runtime.d.ts +1 -0
  139. package/dist/src/runtime.js +18 -0
  140. package/dist/src/runtime.js.map +1 -0
  141. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +7 -0
  142. package/dist/src/schemas/container/ContainerPlugin.check.js +2318 -0
  143. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -0
  144. package/dist/src/schemas/container/ContainerPlugin.d.ts +289 -0
  145. package/dist/src/schemas/container/ContainerPlugin.js +326 -0
  146. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -0
  147. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +7 -0
  148. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +939 -0
  149. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -0
  150. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +87 -0
  151. package/dist/src/schemas/container/ContainerReferencePlugin.js +132 -0
  152. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -0
  153. package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +9 -0
  154. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +4001 -0
  155. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -0
  156. package/{src → dist/src}/schemas/container/ModuleFederationPlugin.d.ts +197 -4
  157. package/{src → dist/src}/schemas/container/ModuleFederationPlugin.js +349 -177
  158. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -0
  159. package/{src/schemas/container/ModuleFederationPlugin.check.d.ts → dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts} +2 -2
  160. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +434 -0
  161. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -0
  162. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +104 -0
  163. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +119 -0
  164. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -0
  165. package/dist/src/types/runtime.d.ts +7 -0
  166. package/dist/src/types/runtime.js +3 -0
  167. package/dist/src/types/runtime.js.map +1 -0
  168. package/dist/src/webpack.d.ts +2 -0
  169. package/dist/src/webpack.js +9 -0
  170. package/dist/src/webpack.js.map +1 -0
  171. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +8 -0
  172. package/dist/src/wrapper/AsyncBoundaryPlugin.js +19 -0
  173. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -0
  174. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +8 -0
  175. package/dist/src/wrapper/ConsumeSharedPlugin.js +19 -0
  176. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -0
  177. package/dist/src/wrapper/ContainerPlugin.d.ts +8 -0
  178. package/dist/src/wrapper/ContainerPlugin.js +19 -0
  179. package/dist/src/wrapper/ContainerPlugin.js.map +1 -0
  180. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +8 -0
  181. package/dist/src/wrapper/ContainerReferencePlugin.js +19 -0
  182. package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -0
  183. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +9 -0
  184. package/dist/src/wrapper/FederationRuntimePlugin.js +22 -0
  185. package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -0
  186. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +7 -0
  187. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +19 -0
  188. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -0
  189. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +8 -0
  190. package/dist/src/wrapper/ModuleFederationPlugin.js +39 -0
  191. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -0
  192. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +8 -0
  193. package/dist/src/wrapper/ProvideSharedPlugin.js +19 -0
  194. package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -0
  195. package/dist/src/wrapper/SharePlugin.d.ts +8 -0
  196. package/dist/src/wrapper/SharePlugin.js +19 -0
  197. package/dist/src/wrapper/SharePlugin.js.map +1 -0
  198. package/package.json +75 -7
  199. package/global.d.js +0 -14
  200. package/global.d.js.map +0 -1
  201. package/pullts.d.ts +0 -1
  202. package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js +0 -14
  203. package/src/declarations/plugins/container/AsyncDependenciesBlock.d.js.map +0 -1
  204. package/src/declarations/plugins/container/ContainerPlugin.d.js +0 -12
  205. package/src/declarations/plugins/container/ContainerPlugin.d.js.map +0 -1
  206. package/src/declarations/plugins/container/ContainerReferencePlugin.d.js +0 -12
  207. package/src/declarations/plugins/container/ContainerReferencePlugin.d.js.map +0 -1
  208. package/src/declarations/plugins/container/Dependency.d.js +0 -14
  209. package/src/declarations/plugins/container/Dependency.d.js.map +0 -1
  210. package/src/declarations/plugins/container/Module.d.js +0 -3
  211. package/src/declarations/plugins/container/Module.d.js.map +0 -1
  212. package/src/declarations/plugins/container/ModuleFactory.d.js +0 -3
  213. package/src/declarations/plugins/container/ModuleFactory.d.js.map +0 -1
  214. package/src/declarations/plugins/container/ModuleFederationPlugin.d.js +0 -12
  215. package/src/declarations/plugins/container/ModuleFederationPlugin.d.js.map +0 -1
  216. package/src/declarations/plugins/container/ObjectDeserializerContext.d.js +0 -6
  217. package/src/declarations/plugins/container/ObjectDeserializerContext.d.js.map +0 -1
  218. package/src/declarations/plugins/container/StaticExportsDependency.d.js +0 -14
  219. package/src/declarations/plugins/container/StaticExportsDependency.d.js.map +0 -1
  220. package/src/declarations/plugins/container/Template.d.js +0 -4
  221. package/src/declarations/plugins/container/Template.d.js.map +0 -1
  222. package/src/declarations/plugins/container/WebpackError.d.js +0 -3
  223. package/src/declarations/plugins/container/WebpackError.d.js.map +0 -1
  224. package/src/declarations/plugins/container/WebpackOptions.d.js +0 -6
  225. package/src/declarations/plugins/container/WebpackOptions.d.js.map +0 -1
  226. package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js +0 -12
  227. package/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.js.map +0 -1
  228. package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js +0 -12
  229. package/src/declarations/plugins/sharing/ProvideSharedPlugin.d.js.map +0 -1
  230. package/src/declarations/plugins/sharing/SharePlugin.d.js +0 -12
  231. package/src/declarations/plugins/sharing/SharePlugin.d.js.map +0 -1
  232. package/src/index.d.ts +0 -7
  233. package/src/index.js +0 -47
  234. package/src/index.js.map +0 -1
  235. package/src/lib/Constants.js +0 -103
  236. package/src/lib/Constants.js.map +0 -1
  237. package/src/lib/RuntimeGlobals.d.ts +0 -1
  238. package/src/lib/RuntimeGlobals.js.map +0 -1
  239. package/src/lib/container/AsyncBoundaryPlugin.js +0 -184
  240. package/src/lib/container/AsyncBoundaryPlugin.js.map +0 -1
  241. package/src/lib/container/ContainerEntryDependency.d.js +0 -4
  242. package/src/lib/container/ContainerEntryDependency.d.js.map +0 -1
  243. package/src/lib/container/ContainerEntryDependency.d.ts +0 -20
  244. package/src/lib/container/ContainerEntryDependency.js +0 -47
  245. package/src/lib/container/ContainerEntryDependency.js.map +0 -1
  246. package/src/lib/container/ContainerEntryModule.d.js +0 -14
  247. package/src/lib/container/ContainerEntryModule.d.js.map +0 -1
  248. package/src/lib/container/ContainerEntryModule.d.ts +0 -85
  249. package/src/lib/container/ContainerEntryModule.js +0 -281
  250. package/src/lib/container/ContainerEntryModule.js.map +0 -1
  251. package/src/lib/container/ContainerEntryModuleFactory.d.js +0 -4
  252. package/src/lib/container/ContainerEntryModuleFactory.d.js.map +0 -1
  253. package/src/lib/container/ContainerEntryModuleFactory.d.ts +0 -10
  254. package/src/lib/container/ContainerEntryModuleFactory.js +0 -37
  255. package/src/lib/container/ContainerEntryModuleFactory.js.map +0 -1
  256. package/src/lib/container/ContainerExposedDependency.d.js +0 -4
  257. package/src/lib/container/ContainerExposedDependency.d.js.map +0 -1
  258. package/src/lib/container/ContainerExposedDependency.d.ts +0 -26
  259. package/src/lib/container/ContainerExposedDependency.js +0 -57
  260. package/src/lib/container/ContainerExposedDependency.js.map +0 -1
  261. package/src/lib/container/ContainerPlugin.d.js +0 -4
  262. package/src/lib/container/ContainerPlugin.d.js.map +0 -1
  263. package/src/lib/container/ContainerPlugin.d.ts +0 -11
  264. package/src/lib/container/ContainerPlugin.js +0 -92
  265. package/src/lib/container/ContainerPlugin.js.map +0 -1
  266. package/src/lib/container/ContainerReferencePlugin.d.js +0 -4
  267. package/src/lib/container/ContainerReferencePlugin.d.js.map +0 -1
  268. package/src/lib/container/ContainerReferencePlugin.js +0 -141
  269. package/src/lib/container/ContainerReferencePlugin.js.map +0 -1
  270. package/src/lib/container/FallbackDependency.d.js +0 -14
  271. package/src/lib/container/FallbackDependency.d.js.map +0 -1
  272. package/src/lib/container/FallbackDependency.d.ts +0 -25
  273. package/src/lib/container/FallbackDependency.js +0 -59
  274. package/src/lib/container/FallbackDependency.js.map +0 -1
  275. package/src/lib/container/FallbackItemDependency.d.js +0 -4
  276. package/src/lib/container/FallbackItemDependency.d.js.map +0 -1
  277. package/src/lib/container/FallbackItemDependency.d.ts +0 -10
  278. package/src/lib/container/FallbackItemDependency.js +0 -37
  279. package/src/lib/container/FallbackItemDependency.js.map +0 -1
  280. package/src/lib/container/FallbackModule.d.js +0 -4
  281. package/src/lib/container/FallbackModule.d.js.map +0 -1
  282. package/src/lib/container/FallbackModule.d.ts +0 -73
  283. package/src/lib/container/FallbackModule.js +0 -153
  284. package/src/lib/container/FallbackModule.js.map +0 -1
  285. package/src/lib/container/FallbackModuleFactory.d.js +0 -4
  286. package/src/lib/container/FallbackModuleFactory.d.js.map +0 -1
  287. package/src/lib/container/FallbackModuleFactory.d.ts +0 -10
  288. package/src/lib/container/FallbackModuleFactory.js +0 -35
  289. package/src/lib/container/FallbackModuleFactory.js.map +0 -1
  290. package/src/lib/container/HoistContainerReferencesPlugin.d.ts +0 -19
  291. package/src/lib/container/HoistContainerReferencesPlugin.js +0 -78
  292. package/src/lib/container/HoistContainerReferencesPlugin.js.map +0 -1
  293. package/src/lib/container/ModuleFederationPlugin.d.js +0 -4
  294. package/src/lib/container/ModuleFederationPlugin.d.js.map +0 -1
  295. package/src/lib/container/ModuleFederationPlugin.d.ts +0 -16
  296. package/src/lib/container/ModuleFederationPlugin.js +0 -85
  297. package/src/lib/container/ModuleFederationPlugin.js.map +0 -1
  298. package/src/lib/container/ModuleFederationPluginTypes.d.js +0 -12
  299. package/src/lib/container/ModuleFederationPluginTypes.d.js.map +0 -1
  300. package/src/lib/container/RemoteModule.d.js +0 -13
  301. package/src/lib/container/RemoteModule.d.js.map +0 -1
  302. package/src/lib/container/RemoteModule.d.ts +0 -76
  303. package/src/lib/container/RemoteModule.js +0 -151
  304. package/src/lib/container/RemoteModule.js.map +0 -1
  305. package/src/lib/container/RemoteRuntimeModule.d.js +0 -13
  306. package/src/lib/container/RemoteRuntimeModule.d.js.map +0 -1
  307. package/src/lib/container/RemoteRuntimeModule.d.ts +0 -9
  308. package/src/lib/container/RemoteRuntimeModule.js +0 -124
  309. package/src/lib/container/RemoteRuntimeModule.js.map +0 -1
  310. package/src/lib/container/RemoteToExternalDependency.d.js +0 -19
  311. package/src/lib/container/RemoteToExternalDependency.d.js.map +0 -1
  312. package/src/lib/container/RemoteToExternalDependency.js +0 -37
  313. package/src/lib/container/RemoteToExternalDependency.js.map +0 -1
  314. package/src/lib/container/options.d.js +0 -6
  315. package/src/lib/container/options.d.js.map +0 -1
  316. package/src/lib/container/options.js.map +0 -1
  317. package/src/lib/inversion/ContainerInversionPlugin.d.ts +0 -1
  318. package/src/lib/inversion/ContainerInversionPlugin.js +0 -3
  319. package/src/lib/inversion/ContainerInversionPlugin.js.map +0 -1
  320. package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js +0 -4
  321. package/src/lib/sharing/ConsumeSharedFallbackDependency.d.js.map +0 -1
  322. package/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +0 -10
  323. package/src/lib/sharing/ConsumeSharedFallbackDependency.js +0 -37
  324. package/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +0 -1
  325. package/src/lib/sharing/ConsumeSharedModule.d.js +0 -4
  326. package/src/lib/sharing/ConsumeSharedModule.d.js.map +0 -1
  327. package/src/lib/sharing/ConsumeSharedModule.d.ts +0 -106
  328. package/src/lib/sharing/ConsumeSharedModule.js +0 -235
  329. package/src/lib/sharing/ConsumeSharedModule.js.map +0 -1
  330. package/src/lib/sharing/ConsumeSharedPlugin.d.js +0 -4
  331. package/src/lib/sharing/ConsumeSharedPlugin.d.js.map +0 -1
  332. package/src/lib/sharing/ConsumeSharedPlugin.d.ts +0 -8
  333. package/src/lib/sharing/ConsumeSharedPlugin.js +0 -274
  334. package/src/lib/sharing/ConsumeSharedPlugin.js.map +0 -1
  335. package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js +0 -4
  336. package/src/lib/sharing/ConsumeSharedRuntimeModule.d.js.map +0 -1
  337. package/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +0 -13
  338. package/src/lib/sharing/ConsumeSharedRuntimeModule.js +0 -294
  339. package/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +0 -1
  340. package/src/lib/sharing/ProvideForSharedDependency.d.js +0 -4
  341. package/src/lib/sharing/ProvideForSharedDependency.d.js.map +0 -1
  342. package/src/lib/sharing/ProvideForSharedDependency.d.ts +0 -11
  343. package/src/lib/sharing/ProvideForSharedDependency.js +0 -38
  344. package/src/lib/sharing/ProvideForSharedDependency.js.map +0 -1
  345. package/src/lib/sharing/ProvideSharedDependency.d.js +0 -14
  346. package/src/lib/sharing/ProvideSharedDependency.d.js.map +0 -1
  347. package/src/lib/sharing/ProvideSharedDependency.d.ts +0 -32
  348. package/src/lib/sharing/ProvideSharedDependency.js +0 -69
  349. package/src/lib/sharing/ProvideSharedDependency.js.map +0 -1
  350. package/src/lib/sharing/ProvideSharedModule.d.js +0 -4
  351. package/src/lib/sharing/ProvideSharedModule.d.js.map +0 -1
  352. package/src/lib/sharing/ProvideSharedModule.d.ts +0 -79
  353. package/src/lib/sharing/ProvideSharedModule.js +0 -203
  354. package/src/lib/sharing/ProvideSharedModule.js.map +0 -1
  355. package/src/lib/sharing/ProvideSharedModuleFactory.d.js +0 -4
  356. package/src/lib/sharing/ProvideSharedModuleFactory.d.js.map +0 -1
  357. package/src/lib/sharing/ProvideSharedModuleFactory.d.ts +0 -11
  358. package/src/lib/sharing/ProvideSharedModuleFactory.js +0 -36
  359. package/src/lib/sharing/ProvideSharedModuleFactory.js.map +0 -1
  360. package/src/lib/sharing/ProvideSharedPlugin.d.js +0 -4
  361. package/src/lib/sharing/ProvideSharedPlugin.d.js.map +0 -1
  362. package/src/lib/sharing/ProvideSharedPlugin.d.ts +0 -34
  363. package/src/lib/sharing/ProvideSharedPlugin.js +0 -182
  364. package/src/lib/sharing/ProvideSharedPlugin.js.map +0 -1
  365. package/src/lib/sharing/SharePlugin.d.js +0 -4
  366. package/src/lib/sharing/SharePlugin.d.js.map +0 -1
  367. package/src/lib/sharing/SharePlugin.d.ts +0 -15
  368. package/src/lib/sharing/SharePlugin.js +0 -77
  369. package/src/lib/sharing/SharePlugin.js.map +0 -1
  370. package/src/lib/sharing/ShareRuntimeModule.d.js +0 -4
  371. package/src/lib/sharing/ShareRuntimeModule.d.js.map +0 -1
  372. package/src/lib/sharing/ShareRuntimeModule.d.ts +0 -9
  373. package/src/lib/sharing/ShareRuntimeModule.js +0 -161
  374. package/src/lib/sharing/ShareRuntimeModule.js.map +0 -1
  375. package/src/lib/sharing/resolveMatchedConfigs.d.js +0 -6
  376. package/src/lib/sharing/resolveMatchedConfigs.d.js.map +0 -1
  377. package/src/lib/sharing/resolveMatchedConfigs.d.ts +0 -8
  378. package/src/lib/sharing/resolveMatchedConfigs.js +0 -73
  379. package/src/lib/sharing/resolveMatchedConfigs.js.map +0 -1
  380. package/src/lib/sharing/utils.d.js +0 -6
  381. package/src/lib/sharing/utils.d.js.map +0 -1
  382. package/src/lib/sharing/utils.d.ts +0 -33
  383. package/src/lib/sharing/utils.js.map +0 -1
  384. package/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +0 -34
  385. package/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +0 -1
  386. package/src/runtime/ModuleInfoRuntimeModule.d.ts +0 -16
  387. package/src/runtime/ModuleInfoRuntimeModule.js +0 -88
  388. package/src/runtime/ModuleInfoRuntimeModule.js.map +0 -1
  389. package/src/runtime/ModuleInfoRuntimePlugin.d.ts +0 -5
  390. package/src/runtime/ModuleInfoRuntimePlugin.js +0 -29
  391. package/src/runtime/ModuleInfoRuntimePlugin.js.map +0 -1
  392. package/src/schemas/container/ModuleFederationPlugin.check.js +0 -2245
  393. package/src/schemas/container/ModuleFederationPlugin.check.js.map +0 -1
  394. package/src/schemas/container/ModuleFederationPlugin.js.map +0 -1
  395. /package/{src → dist/src}/lib/Constants.d.ts +0 -0
@@ -0,0 +1,939 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ //@ts-nocheck
4
+ /*
5
+ * This file was automatically generated.
6
+ * DO NOT MODIFY BY HAND.
7
+ * Run `yarn special-lint-fix` to update
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const schema40 = {
11
+ definitions: {
12
+ ExternalsType: {
13
+ enum: [
14
+ 'var',
15
+ 'module',
16
+ 'assign',
17
+ 'this',
18
+ 'window',
19
+ 'self',
20
+ 'global',
21
+ 'commonjs',
22
+ 'commonjs2',
23
+ 'commonjs-module',
24
+ 'commonjs-static',
25
+ 'amd',
26
+ 'amd-require',
27
+ 'umd',
28
+ 'umd2',
29
+ 'jsonp',
30
+ 'system',
31
+ 'promise',
32
+ 'import',
33
+ 'script',
34
+ 'node-commonjs',
35
+ ],
36
+ },
37
+ Remotes: {
38
+ anyOf: [
39
+ {
40
+ type: 'array',
41
+ items: {
42
+ anyOf: [
43
+ {
44
+ $ref: '#/definitions/RemotesItem',
45
+ },
46
+ {
47
+ $ref: '#/definitions/RemotesObject',
48
+ },
49
+ ],
50
+ },
51
+ },
52
+ {
53
+ $ref: '#/definitions/RemotesObject',
54
+ },
55
+ ],
56
+ },
57
+ RemotesConfig: {
58
+ type: 'object',
59
+ additionalProperties: false,
60
+ properties: {
61
+ external: {
62
+ anyOf: [
63
+ {
64
+ $ref: '#/definitions/RemotesItem',
65
+ },
66
+ {
67
+ $ref: '#/definitions/RemotesItems',
68
+ },
69
+ ],
70
+ },
71
+ shareScope: {
72
+ type: 'string',
73
+ minLength: 1,
74
+ },
75
+ },
76
+ required: ['external'],
77
+ },
78
+ RemotesItem: {
79
+ type: 'string',
80
+ minLength: 1,
81
+ },
82
+ RemotesItems: {
83
+ type: 'array',
84
+ items: {
85
+ $ref: '#/definitions/RemotesItem',
86
+ },
87
+ },
88
+ RemotesObject: {
89
+ type: 'object',
90
+ additionalProperties: {
91
+ anyOf: [
92
+ {
93
+ $ref: '#/definitions/RemotesConfig',
94
+ },
95
+ {
96
+ $ref: '#/definitions/RemotesItem',
97
+ },
98
+ {
99
+ $ref: '#/definitions/RemotesItems',
100
+ },
101
+ ],
102
+ },
103
+ },
104
+ },
105
+ type: 'object',
106
+ additionalProperties: false,
107
+ properties: {
108
+ remoteType: {
109
+ oneOf: [
110
+ {
111
+ $ref: '#/definitions/ExternalsType',
112
+ },
113
+ ],
114
+ },
115
+ remotes: {
116
+ $ref: '#/definitions/Remotes',
117
+ },
118
+ shareScope: {
119
+ type: 'string',
120
+ minLength: 1,
121
+ },
122
+ },
123
+ required: ['remoteType', 'remotes'],
124
+ };
125
+ const schema41 = {
126
+ enum: [
127
+ 'var',
128
+ 'module',
129
+ 'assign',
130
+ 'this',
131
+ 'window',
132
+ 'self',
133
+ 'global',
134
+ 'commonjs',
135
+ 'commonjs2',
136
+ 'commonjs-module',
137
+ 'commonjs-static',
138
+ 'amd',
139
+ 'amd-require',
140
+ 'umd',
141
+ 'umd2',
142
+ 'jsonp',
143
+ 'system',
144
+ 'promise',
145
+ 'import',
146
+ 'script',
147
+ 'node-commonjs',
148
+ ],
149
+ };
150
+ const schema42 = {
151
+ anyOf: [
152
+ {
153
+ type: 'array',
154
+ items: {
155
+ anyOf: [
156
+ {
157
+ $ref: '#/definitions/RemotesItem',
158
+ },
159
+ {
160
+ $ref: '#/definitions/RemotesObject',
161
+ },
162
+ ],
163
+ },
164
+ },
165
+ {
166
+ $ref: '#/definitions/RemotesObject',
167
+ },
168
+ ],
169
+ };
170
+ const schema43 = {
171
+ type: 'string',
172
+ minLength: 1,
173
+ };
174
+ const schema44 = {
175
+ type: 'object',
176
+ additionalProperties: {
177
+ anyOf: [
178
+ {
179
+ $ref: '#/definitions/RemotesConfig',
180
+ },
181
+ {
182
+ $ref: '#/definitions/RemotesItem',
183
+ },
184
+ {
185
+ $ref: '#/definitions/RemotesItems',
186
+ },
187
+ ],
188
+ },
189
+ };
190
+ const schema45 = {
191
+ type: 'object',
192
+ additionalProperties: false,
193
+ properties: {
194
+ external: {
195
+ anyOf: [
196
+ {
197
+ $ref: '#/definitions/RemotesItem',
198
+ },
199
+ {
200
+ $ref: '#/definitions/RemotesItems',
201
+ },
202
+ ],
203
+ },
204
+ name: {
205
+ type: 'string',
206
+ minLength: 1,
207
+ },
208
+ shareScope: {
209
+ type: 'string',
210
+ minLength: 1,
211
+ },
212
+ },
213
+ required: ['external'],
214
+ };
215
+ const schema47 = {
216
+ type: 'array',
217
+ items: {
218
+ $ref: '#/definitions/RemotesItem',
219
+ },
220
+ };
221
+ function validate40(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
222
+ let vErrors = null;
223
+ let errors = 0;
224
+ if (errors === 0) {
225
+ if (Array.isArray(data)) {
226
+ var valid0 = true;
227
+ const len0 = data.length;
228
+ for (let i0 = 0; i0 < len0; i0++) {
229
+ let data0 = data[i0];
230
+ const _errs1 = errors;
231
+ const _errs2 = errors;
232
+ if (errors === _errs2) {
233
+ if (typeof data0 === 'string') {
234
+ if (data0.length < 1) {
235
+ validate40.errors = [
236
+ {
237
+ params: {},
238
+ },
239
+ ];
240
+ return false;
241
+ }
242
+ }
243
+ else {
244
+ validate40.errors = [
245
+ {
246
+ params: {
247
+ type: 'string',
248
+ },
249
+ },
250
+ ];
251
+ return false;
252
+ }
253
+ }
254
+ var valid0 = _errs1 === errors;
255
+ if (!valid0) {
256
+ break;
257
+ }
258
+ }
259
+ }
260
+ else {
261
+ validate40.errors = [
262
+ {
263
+ params: {
264
+ type: 'array',
265
+ },
266
+ },
267
+ ];
268
+ return false;
269
+ }
270
+ }
271
+ validate40.errors = vErrors;
272
+ return errors === 0;
273
+ }
274
+ function validate39(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
275
+ let vErrors = null;
276
+ let errors = 0;
277
+ if (errors === 0) {
278
+ if (data && typeof data == 'object' && !Array.isArray(data)) {
279
+ let missing0;
280
+ if (data.external === undefined && (missing0 = 'external')) {
281
+ validate39.errors = [
282
+ {
283
+ params: {
284
+ missingProperty: missing0,
285
+ },
286
+ },
287
+ ];
288
+ return false;
289
+ }
290
+ else {
291
+ const _errs1 = errors;
292
+ for (const key0 in data) {
293
+ if (!(key0 === 'external' || key0 === 'shareScope')) {
294
+ validate39.errors = [
295
+ {
296
+ params: {
297
+ additionalProperty: key0,
298
+ },
299
+ },
300
+ ];
301
+ return false;
302
+ break;
303
+ }
304
+ }
305
+ if (_errs1 === errors) {
306
+ if (data.external !== undefined) {
307
+ let data0 = data.external;
308
+ const _errs2 = errors;
309
+ const _errs3 = errors;
310
+ let valid1 = false;
311
+ const _errs4 = errors;
312
+ const _errs5 = errors;
313
+ if (errors === _errs5) {
314
+ if (typeof data0 === 'string') {
315
+ if (data0.length < 1) {
316
+ const err0 = {
317
+ params: {},
318
+ };
319
+ if (vErrors === null) {
320
+ vErrors = [err0];
321
+ }
322
+ else {
323
+ vErrors.push(err0);
324
+ }
325
+ errors++;
326
+ }
327
+ }
328
+ else {
329
+ const err1 = {
330
+ params: {
331
+ type: 'string',
332
+ },
333
+ };
334
+ if (vErrors === null) {
335
+ vErrors = [err1];
336
+ }
337
+ else {
338
+ vErrors.push(err1);
339
+ }
340
+ errors++;
341
+ }
342
+ }
343
+ var _valid0 = _errs4 === errors;
344
+ valid1 = valid1 || _valid0;
345
+ if (!valid1) {
346
+ const _errs7 = errors;
347
+ if (!validate40(data0, {
348
+ instancePath: instancePath + '/external',
349
+ parentData: data,
350
+ parentDataProperty: 'external',
351
+ rootData,
352
+ })) {
353
+ vErrors =
354
+ vErrors === null
355
+ ? validate40.errors
356
+ : vErrors.concat(validate40.errors);
357
+ errors = vErrors.length;
358
+ }
359
+ var _valid0 = _errs7 === errors;
360
+ valid1 = valid1 || _valid0;
361
+ }
362
+ if (!valid1) {
363
+ const err2 = {
364
+ params: {},
365
+ };
366
+ if (vErrors === null) {
367
+ vErrors = [err2];
368
+ }
369
+ else {
370
+ vErrors.push(err2);
371
+ }
372
+ errors++;
373
+ validate39.errors = vErrors;
374
+ return false;
375
+ }
376
+ else {
377
+ errors = _errs3;
378
+ if (vErrors !== null) {
379
+ if (_errs3) {
380
+ vErrors.length = _errs3;
381
+ }
382
+ else {
383
+ vErrors = null;
384
+ }
385
+ }
386
+ }
387
+ var valid0 = _errs2 === errors;
388
+ }
389
+ else {
390
+ var valid0 = true;
391
+ }
392
+ if (valid0) {
393
+ if (data.name !== undefined) {
394
+ let data1 = data.name;
395
+ const _errs8 = errors;
396
+ if (errors === _errs8) {
397
+ if (typeof data1 === 'string') {
398
+ if (data1.length < 1) {
399
+ validate39.errors = [
400
+ {
401
+ params: {},
402
+ },
403
+ ];
404
+ return false;
405
+ }
406
+ }
407
+ else {
408
+ validate39.errors = [
409
+ {
410
+ params: {
411
+ type: 'string',
412
+ },
413
+ },
414
+ ];
415
+ return false;
416
+ }
417
+ }
418
+ var valid0 = _errs8 === errors;
419
+ }
420
+ else {
421
+ var valid0 = true;
422
+ }
423
+ if (valid0) {
424
+ if (data.shareScope !== undefined) {
425
+ let data2 = data.shareScope;
426
+ const _errs10 = errors;
427
+ if (errors === _errs10) {
428
+ if (typeof data2 === 'string') {
429
+ if (data2.length < 1) {
430
+ validate39.errors = [
431
+ {
432
+ params: {},
433
+ },
434
+ ];
435
+ return false;
436
+ }
437
+ }
438
+ else {
439
+ validate39.errors = [
440
+ {
441
+ params: {
442
+ type: 'string',
443
+ },
444
+ },
445
+ ];
446
+ return false;
447
+ }
448
+ }
449
+ var valid0 = _errs10 === errors;
450
+ }
451
+ else {
452
+ var valid0 = true;
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+ }
459
+ else {
460
+ validate39.errors = [
461
+ {
462
+ params: {
463
+ type: 'object',
464
+ },
465
+ },
466
+ ];
467
+ return false;
468
+ }
469
+ }
470
+ validate39.errors = vErrors;
471
+ return errors === 0;
472
+ }
473
+ function validate38(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
474
+ let vErrors = null;
475
+ let errors = 0;
476
+ if (errors === 0) {
477
+ if (data && typeof data == 'object' && !Array.isArray(data)) {
478
+ for (const key0 in data) {
479
+ let data0 = data[key0];
480
+ const _errs2 = errors;
481
+ const _errs3 = errors;
482
+ let valid1 = false;
483
+ const _errs4 = errors;
484
+ if (!validate39(data0, {
485
+ instancePath: instancePath +
486
+ '/' +
487
+ key0.replace(/~/g, '~0').replace(/\//g, '~1'),
488
+ parentData: data,
489
+ parentDataProperty: key0,
490
+ rootData,
491
+ })) {
492
+ vErrors =
493
+ vErrors === null
494
+ ? validate39.errors
495
+ : vErrors.concat(validate39.errors);
496
+ errors = vErrors.length;
497
+ }
498
+ var _valid0 = _errs4 === errors;
499
+ valid1 = valid1 || _valid0;
500
+ if (!valid1) {
501
+ const _errs5 = errors;
502
+ const _errs6 = errors;
503
+ if (errors === _errs6) {
504
+ if (typeof data0 === 'string') {
505
+ if (data0.length < 1) {
506
+ const err0 = {
507
+ params: {},
508
+ };
509
+ if (vErrors === null) {
510
+ vErrors = [err0];
511
+ }
512
+ else {
513
+ vErrors.push(err0);
514
+ }
515
+ errors++;
516
+ }
517
+ }
518
+ else {
519
+ const err1 = {
520
+ params: {
521
+ type: 'string',
522
+ },
523
+ };
524
+ if (vErrors === null) {
525
+ vErrors = [err1];
526
+ }
527
+ else {
528
+ vErrors.push(err1);
529
+ }
530
+ errors++;
531
+ }
532
+ }
533
+ var _valid0 = _errs5 === errors;
534
+ valid1 = valid1 || _valid0;
535
+ if (!valid1) {
536
+ const _errs8 = errors;
537
+ if (!validate40(data0, {
538
+ instancePath: instancePath +
539
+ '/' +
540
+ key0.replace(/~/g, '~0').replace(/\//g, '~1'),
541
+ parentData: data,
542
+ parentDataProperty: key0,
543
+ rootData,
544
+ })) {
545
+ vErrors =
546
+ vErrors === null
547
+ ? validate40.errors
548
+ : vErrors.concat(validate40.errors);
549
+ errors = vErrors.length;
550
+ }
551
+ var _valid0 = _errs8 === errors;
552
+ valid1 = valid1 || _valid0;
553
+ }
554
+ }
555
+ if (!valid1) {
556
+ const err2 = {
557
+ params: {},
558
+ };
559
+ if (vErrors === null) {
560
+ vErrors = [err2];
561
+ }
562
+ else {
563
+ vErrors.push(err2);
564
+ }
565
+ errors++;
566
+ validate38.errors = vErrors;
567
+ return false;
568
+ }
569
+ else {
570
+ errors = _errs3;
571
+ if (vErrors !== null) {
572
+ if (_errs3) {
573
+ vErrors.length = _errs3;
574
+ }
575
+ else {
576
+ vErrors = null;
577
+ }
578
+ }
579
+ }
580
+ var valid0 = _errs2 === errors;
581
+ if (!valid0) {
582
+ break;
583
+ }
584
+ }
585
+ }
586
+ else {
587
+ validate38.errors = [
588
+ {
589
+ params: {
590
+ type: 'object',
591
+ },
592
+ },
593
+ ];
594
+ return false;
595
+ }
596
+ }
597
+ validate38.errors = vErrors;
598
+ return errors === 0;
599
+ }
600
+ function validate37(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
601
+ let vErrors = null;
602
+ let errors = 0;
603
+ const _errs0 = errors;
604
+ let valid0 = false;
605
+ const _errs1 = errors;
606
+ if (errors === _errs1) {
607
+ if (Array.isArray(data)) {
608
+ var valid1 = true;
609
+ const len0 = data.length;
610
+ for (let i0 = 0; i0 < len0; i0++) {
611
+ let data0 = data[i0];
612
+ const _errs3 = errors;
613
+ const _errs4 = errors;
614
+ let valid2 = false;
615
+ const _errs5 = errors;
616
+ const _errs6 = errors;
617
+ if (errors === _errs6) {
618
+ if (typeof data0 === 'string') {
619
+ if (data0.length < 1) {
620
+ const err0 = {
621
+ params: {},
622
+ };
623
+ if (vErrors === null) {
624
+ vErrors = [err0];
625
+ }
626
+ else {
627
+ vErrors.push(err0);
628
+ }
629
+ errors++;
630
+ }
631
+ }
632
+ else {
633
+ const err1 = {
634
+ params: {
635
+ type: 'string',
636
+ },
637
+ };
638
+ if (vErrors === null) {
639
+ vErrors = [err1];
640
+ }
641
+ else {
642
+ vErrors.push(err1);
643
+ }
644
+ errors++;
645
+ }
646
+ }
647
+ var _valid1 = _errs5 === errors;
648
+ valid2 = valid2 || _valid1;
649
+ if (!valid2) {
650
+ const _errs8 = errors;
651
+ if (!validate38(data0, {
652
+ instancePath: instancePath + '/' + i0,
653
+ parentData: data,
654
+ parentDataProperty: i0,
655
+ rootData,
656
+ })) {
657
+ vErrors =
658
+ vErrors === null
659
+ ? validate38.errors
660
+ : vErrors.concat(validate38.errors);
661
+ errors = vErrors.length;
662
+ }
663
+ var _valid1 = _errs8 === errors;
664
+ valid2 = valid2 || _valid1;
665
+ }
666
+ if (!valid2) {
667
+ const err2 = {
668
+ params: {},
669
+ };
670
+ if (vErrors === null) {
671
+ vErrors = [err2];
672
+ }
673
+ else {
674
+ vErrors.push(err2);
675
+ }
676
+ errors++;
677
+ }
678
+ else {
679
+ errors = _errs4;
680
+ if (vErrors !== null) {
681
+ if (_errs4) {
682
+ vErrors.length = _errs4;
683
+ }
684
+ else {
685
+ vErrors = null;
686
+ }
687
+ }
688
+ }
689
+ var valid1 = _errs3 === errors;
690
+ if (!valid1) {
691
+ break;
692
+ }
693
+ }
694
+ }
695
+ else {
696
+ const err3 = {
697
+ params: {
698
+ type: 'array',
699
+ },
700
+ };
701
+ if (vErrors === null) {
702
+ vErrors = [err3];
703
+ }
704
+ else {
705
+ vErrors.push(err3);
706
+ }
707
+ errors++;
708
+ }
709
+ }
710
+ var _valid0 = _errs1 === errors;
711
+ valid0 = valid0 || _valid0;
712
+ if (!valid0) {
713
+ const _errs9 = errors;
714
+ if (!validate38(data, {
715
+ instancePath,
716
+ parentData,
717
+ parentDataProperty,
718
+ rootData,
719
+ })) {
720
+ vErrors =
721
+ vErrors === null
722
+ ? validate38.errors
723
+ : vErrors.concat(validate38.errors);
724
+ errors = vErrors.length;
725
+ }
726
+ var _valid0 = _errs9 === errors;
727
+ valid0 = valid0 || _valid0;
728
+ }
729
+ if (!valid0) {
730
+ const err4 = {
731
+ params: {},
732
+ };
733
+ if (vErrors === null) {
734
+ vErrors = [err4];
735
+ }
736
+ else {
737
+ vErrors.push(err4);
738
+ }
739
+ errors++;
740
+ validate37.errors = vErrors;
741
+ return false;
742
+ }
743
+ else {
744
+ errors = _errs0;
745
+ if (vErrors !== null) {
746
+ if (_errs0) {
747
+ vErrors.length = _errs0;
748
+ }
749
+ else {
750
+ vErrors = null;
751
+ }
752
+ }
753
+ }
754
+ validate37.errors = vErrors;
755
+ return errors === 0;
756
+ }
757
+ function validate36(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
758
+ /*# sourceURL="" */ let vErrors = null;
759
+ let errors = 0;
760
+ if (errors === 0) {
761
+ if (data && typeof data == 'object' && !Array.isArray(data)) {
762
+ let missing0;
763
+ if ((data.remoteType === undefined && (missing0 = 'remoteType')) ||
764
+ (data.remotes === undefined && (missing0 = 'remotes'))) {
765
+ validate36.errors = [
766
+ {
767
+ params: {
768
+ missingProperty: missing0,
769
+ },
770
+ },
771
+ ];
772
+ return false;
773
+ }
774
+ else {
775
+ const _errs1 = errors;
776
+ for (const key0 in data) {
777
+ if (!(key0 === 'remoteType' ||
778
+ key0 === 'remotes' ||
779
+ key0 === 'shareScope')) {
780
+ validate36.errors = [
781
+ {
782
+ params: {
783
+ additionalProperty: key0,
784
+ },
785
+ },
786
+ ];
787
+ return false;
788
+ break;
789
+ }
790
+ }
791
+ if (_errs1 === errors) {
792
+ if (data.remoteType !== undefined) {
793
+ let data0 = data.remoteType;
794
+ const _errs2 = errors;
795
+ const _errs3 = errors;
796
+ let valid1 = false;
797
+ let passing0 = null;
798
+ const _errs4 = errors;
799
+ if (data0 !== 'var' &&
800
+ data0 !== 'module' &&
801
+ data0 !== 'assign' &&
802
+ data0 !== 'this' &&
803
+ data0 !== 'window' &&
804
+ data0 !== 'self' &&
805
+ data0 !== 'global' &&
806
+ data0 !== 'commonjs' &&
807
+ data0 !== 'commonjs2' &&
808
+ data0 !== 'commonjs-module' &&
809
+ data0 !== 'commonjs-static' &&
810
+ data0 !== 'amd' &&
811
+ data0 !== 'amd-require' &&
812
+ data0 !== 'umd' &&
813
+ data0 !== 'umd2' &&
814
+ data0 !== 'jsonp' &&
815
+ data0 !== 'system' &&
816
+ data0 !== 'promise' &&
817
+ data0 !== 'import' &&
818
+ data0 !== 'script' &&
819
+ data0 !== 'node-commonjs') {
820
+ const err0 = {
821
+ params: {},
822
+ };
823
+ if (vErrors === null) {
824
+ vErrors = [err0];
825
+ }
826
+ else {
827
+ vErrors.push(err0);
828
+ }
829
+ errors++;
830
+ }
831
+ var _valid0 = _errs4 === errors;
832
+ if (_valid0) {
833
+ valid1 = true;
834
+ passing0 = 0;
835
+ }
836
+ if (!valid1) {
837
+ const err1 = {
838
+ params: {
839
+ passingSchemas: passing0,
840
+ },
841
+ };
842
+ if (vErrors === null) {
843
+ vErrors = [err1];
844
+ }
845
+ else {
846
+ vErrors.push(err1);
847
+ }
848
+ errors++;
849
+ validate36.errors = vErrors;
850
+ return false;
851
+ }
852
+ else {
853
+ errors = _errs3;
854
+ if (vErrors !== null) {
855
+ if (_errs3) {
856
+ vErrors.length = _errs3;
857
+ }
858
+ else {
859
+ vErrors = null;
860
+ }
861
+ }
862
+ }
863
+ var valid0 = _errs2 === errors;
864
+ }
865
+ else {
866
+ var valid0 = true;
867
+ }
868
+ if (valid0) {
869
+ if (data.remotes !== undefined) {
870
+ const _errs6 = errors;
871
+ if (!validate37(data.remotes, {
872
+ instancePath: instancePath + '/remotes',
873
+ parentData: data,
874
+ parentDataProperty: 'remotes',
875
+ rootData,
876
+ })) {
877
+ vErrors =
878
+ vErrors === null
879
+ ? validate37.errors
880
+ : vErrors.concat(validate37.errors);
881
+ errors = vErrors.length;
882
+ }
883
+ var valid0 = _errs6 === errors;
884
+ }
885
+ else {
886
+ var valid0 = true;
887
+ }
888
+ if (valid0) {
889
+ if (data.shareScope !== undefined) {
890
+ let data2 = data.shareScope;
891
+ const _errs7 = errors;
892
+ if (errors === _errs7) {
893
+ if (typeof data2 === 'string') {
894
+ if (data2.length < 1) {
895
+ validate36.errors = [
896
+ {
897
+ params: {},
898
+ },
899
+ ];
900
+ return false;
901
+ }
902
+ }
903
+ else {
904
+ validate36.errors = [
905
+ {
906
+ params: {
907
+ type: 'string',
908
+ },
909
+ },
910
+ ];
911
+ return false;
912
+ }
913
+ }
914
+ var valid0 = _errs7 === errors;
915
+ }
916
+ else {
917
+ var valid0 = true;
918
+ }
919
+ }
920
+ }
921
+ }
922
+ }
923
+ }
924
+ else {
925
+ validate36.errors = [
926
+ {
927
+ params: {
928
+ type: 'object',
929
+ },
930
+ },
931
+ ];
932
+ return false;
933
+ }
934
+ }
935
+ validate36.errors = vErrors;
936
+ return errors === 0;
937
+ }
938
+ exports.default = validate36;
939
+ //# sourceMappingURL=ContainerReferencePlugin.check.js.map