@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
@@ -1,2245 +0,0 @@
1
- /* eslint-disable */ //@ts-nocheck
2
- /*
3
- * This file was automatically generated.
4
- * DO NOT MODIFY BY HAND.
5
- * Run `yarn special-lint-fix` to update
6
- */ "use strict";
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- Object.defineProperty(exports, "default", {
11
- enumerable: true,
12
- get: function() {
13
- return _default;
14
- }
15
- });
16
- const t = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
17
- const e = {
18
- definitions: {
19
- AmdContainer: {
20
- type: 'string',
21
- minLength: 1
22
- },
23
- AuxiliaryComment: {
24
- anyOf: [
25
- {
26
- type: 'string'
27
- },
28
- {
29
- $ref: '#/definitions/LibraryCustomUmdCommentObject'
30
- }
31
- ]
32
- },
33
- EntryRuntime: {
34
- anyOf: [
35
- {
36
- enum: [
37
- !1
38
- ]
39
- },
40
- {
41
- type: 'string',
42
- minLength: 1
43
- }
44
- ]
45
- },
46
- Exposes: {
47
- anyOf: [
48
- {
49
- type: 'array',
50
- items: {
51
- anyOf: [
52
- {
53
- $ref: '#/definitions/ExposesItem'
54
- },
55
- {
56
- $ref: '#/definitions/ExposesObject'
57
- }
58
- ]
59
- }
60
- },
61
- {
62
- $ref: '#/definitions/ExposesObject'
63
- }
64
- ]
65
- },
66
- ExposesConfig: {
67
- type: 'object',
68
- additionalProperties: !1,
69
- properties: {
70
- import: {
71
- anyOf: [
72
- {
73
- $ref: '#/definitions/ExposesItem'
74
- },
75
- {
76
- $ref: '#/definitions/ExposesItems'
77
- }
78
- ]
79
- },
80
- name: {
81
- type: 'string'
82
- }
83
- },
84
- required: [
85
- 'import'
86
- ]
87
- },
88
- ExposesItem: {
89
- type: 'string',
90
- minLength: 1
91
- },
92
- ExposesItems: {
93
- type: 'array',
94
- items: {
95
- $ref: '#/definitions/ExposesItem'
96
- }
97
- },
98
- ExposesObject: {
99
- type: 'object',
100
- additionalProperties: {
101
- anyOf: [
102
- {
103
- $ref: '#/definitions/ExposesConfig'
104
- },
105
- {
106
- $ref: '#/definitions/ExposesItem'
107
- },
108
- {
109
- $ref: '#/definitions/ExposesItems'
110
- }
111
- ]
112
- }
113
- },
114
- ExternalsType: {
115
- enum: [
116
- 'var',
117
- 'module',
118
- 'assign',
119
- 'this',
120
- 'window',
121
- 'self',
122
- 'global',
123
- 'commonjs',
124
- 'commonjs2',
125
- 'commonjs-module',
126
- 'commonjs-static',
127
- 'amd',
128
- 'amd-require',
129
- 'umd',
130
- 'umd2',
131
- 'jsonp',
132
- 'system',
133
- 'promise',
134
- 'import',
135
- 'script',
136
- 'node-commonjs'
137
- ]
138
- },
139
- LibraryCustomUmdCommentObject: {
140
- type: 'object',
141
- additionalProperties: !1,
142
- properties: {
143
- amd: {
144
- type: 'string'
145
- },
146
- commonjs: {
147
- type: 'string'
148
- },
149
- commonjs2: {
150
- type: 'string'
151
- },
152
- root: {
153
- type: 'string'
154
- }
155
- }
156
- },
157
- LibraryCustomUmdObject: {
158
- type: 'object',
159
- additionalProperties: !1,
160
- properties: {
161
- amd: {
162
- type: 'string',
163
- minLength: 1
164
- },
165
- commonjs: {
166
- type: 'string',
167
- minLength: 1
168
- },
169
- root: {
170
- anyOf: [
171
- {
172
- type: 'array',
173
- items: {
174
- type: 'string',
175
- minLength: 1
176
- }
177
- },
178
- {
179
- type: 'string',
180
- minLength: 1
181
- }
182
- ]
183
- }
184
- }
185
- },
186
- LibraryExport: {
187
- anyOf: [
188
- {
189
- type: 'array',
190
- items: {
191
- type: 'string',
192
- minLength: 1
193
- }
194
- },
195
- {
196
- type: 'string',
197
- minLength: 1
198
- }
199
- ]
200
- },
201
- LibraryName: {
202
- anyOf: [
203
- {
204
- type: 'array',
205
- items: {
206
- type: 'string',
207
- minLength: 1
208
- },
209
- minItems: 1
210
- },
211
- {
212
- type: 'string',
213
- minLength: 1
214
- },
215
- {
216
- $ref: '#/definitions/LibraryCustomUmdObject'
217
- }
218
- ]
219
- },
220
- LibraryOptions: {
221
- type: 'object',
222
- additionalProperties: !1,
223
- properties: {
224
- amdContainer: {
225
- $ref: '#/definitions/AmdContainer'
226
- },
227
- auxiliaryComment: {
228
- $ref: '#/definitions/AuxiliaryComment'
229
- },
230
- export: {
231
- $ref: '#/definitions/LibraryExport'
232
- },
233
- name: {
234
- $ref: '#/definitions/LibraryName'
235
- },
236
- type: {
237
- $ref: '#/definitions/LibraryType'
238
- },
239
- umdNamedDefine: {
240
- $ref: '#/definitions/UmdNamedDefine'
241
- }
242
- },
243
- required: [
244
- 'type'
245
- ]
246
- },
247
- LibraryType: {
248
- anyOf: [
249
- {
250
- enum: [
251
- 'var',
252
- 'module',
253
- 'assign',
254
- 'assign-properties',
255
- 'this',
256
- 'window',
257
- 'self',
258
- 'global',
259
- 'commonjs',
260
- 'commonjs2',
261
- 'commonjs-module',
262
- 'commonjs-static',
263
- 'amd',
264
- 'amd-require',
265
- 'umd',
266
- 'umd2',
267
- 'jsonp',
268
- 'system'
269
- ]
270
- },
271
- {
272
- type: 'string'
273
- }
274
- ]
275
- },
276
- Remotes: {
277
- anyOf: [
278
- {
279
- type: 'array',
280
- items: {
281
- anyOf: [
282
- {
283
- $ref: '#/definitions/RemotesItem'
284
- },
285
- {
286
- $ref: '#/definitions/RemotesObject'
287
- }
288
- ]
289
- }
290
- },
291
- {
292
- $ref: '#/definitions/RemotesObject'
293
- }
294
- ]
295
- },
296
- RemotesConfig: {
297
- type: 'object',
298
- additionalProperties: !1,
299
- properties: {
300
- external: {
301
- anyOf: [
302
- {
303
- $ref: '#/definitions/RemotesItem'
304
- },
305
- {
306
- $ref: '#/definitions/RemotesItems'
307
- }
308
- ]
309
- },
310
- shareScope: {
311
- type: 'string',
312
- minLength: 1
313
- }
314
- },
315
- required: [
316
- 'external'
317
- ]
318
- },
319
- RemotesItem: {
320
- type: 'string',
321
- minLength: 1
322
- },
323
- RemotesItems: {
324
- type: 'array',
325
- items: {
326
- $ref: '#/definitions/RemotesItem'
327
- }
328
- },
329
- RemotesObject: {
330
- type: 'object',
331
- additionalProperties: {
332
- anyOf: [
333
- {
334
- $ref: '#/definitions/RemotesConfig'
335
- },
336
- {
337
- $ref: '#/definitions/RemotesItem'
338
- },
339
- {
340
- $ref: '#/definitions/RemotesItems'
341
- }
342
- ]
343
- }
344
- },
345
- Shared: {
346
- anyOf: [
347
- {
348
- type: 'array',
349
- items: {
350
- anyOf: [
351
- {
352
- $ref: '#/definitions/SharedItem'
353
- },
354
- {
355
- $ref: '#/definitions/SharedObject'
356
- }
357
- ]
358
- }
359
- },
360
- {
361
- $ref: '#/definitions/SharedObject'
362
- }
363
- ]
364
- },
365
- SharedConfig: {
366
- type: 'object',
367
- additionalProperties: !1,
368
- properties: {
369
- eager: {
370
- type: 'boolean'
371
- },
372
- import: {
373
- anyOf: [
374
- {
375
- enum: [
376
- !1
377
- ]
378
- },
379
- {
380
- $ref: '#/definitions/SharedItem'
381
- }
382
- ]
383
- },
384
- packageName: {
385
- type: 'string',
386
- minLength: 1
387
- },
388
- requiredVersion: {
389
- anyOf: [
390
- {
391
- enum: [
392
- !1
393
- ]
394
- },
395
- {
396
- type: 'string'
397
- }
398
- ]
399
- },
400
- shareKey: {
401
- type: 'string',
402
- minLength: 1
403
- },
404
- shareScope: {
405
- type: 'string',
406
- minLength: 1
407
- },
408
- singleton: {
409
- type: 'boolean'
410
- },
411
- strictVersion: {
412
- type: 'boolean'
413
- },
414
- version: {
415
- anyOf: [
416
- {
417
- enum: [
418
- !1
419
- ]
420
- },
421
- {
422
- type: 'string'
423
- }
424
- ]
425
- }
426
- }
427
- },
428
- SharedItem: {
429
- type: 'string',
430
- minLength: 1
431
- },
432
- SharedObject: {
433
- type: 'object',
434
- additionalProperties: {
435
- anyOf: [
436
- {
437
- $ref: '#/definitions/SharedConfig'
438
- },
439
- {
440
- $ref: '#/definitions/SharedItem'
441
- }
442
- ]
443
- }
444
- },
445
- UmdNamedDefine: {
446
- type: 'boolean'
447
- }
448
- },
449
- type: 'object',
450
- additionalProperties: !1,
451
- properties: {
452
- exposes: {
453
- $ref: '#/definitions/Exposes'
454
- },
455
- filename: {
456
- type: 'string',
457
- absolutePath: !1
458
- },
459
- library: {
460
- $ref: '#/definitions/LibraryOptions'
461
- },
462
- name: {
463
- type: 'string'
464
- },
465
- remoteType: {
466
- oneOf: [
467
- {
468
- $ref: '#/definitions/ExternalsType'
469
- }
470
- ]
471
- },
472
- remotes: {
473
- $ref: '#/definitions/Remotes'
474
- },
475
- runtime: {
476
- $ref: '#/definitions/EntryRuntime'
477
- },
478
- shareScope: {
479
- type: 'string',
480
- minLength: 1
481
- },
482
- shared: {
483
- $ref: '#/definitions/Shared'
484
- }
485
- }
486
- }, r = Object.prototype.hasOwnProperty;
487
- function n(t, { instancePath: e = '', parentData: r, parentDataProperty: s, rootData: a = t } = {}) {
488
- if (!Array.isArray(t)) return n.errors = [
489
- {
490
- params: {
491
- type: 'array'
492
- }
493
- }
494
- ], !1;
495
- {
496
- const e = t.length;
497
- for(let r = 0; r < e; r++){
498
- let e = t[r];
499
- const s = 0;
500
- if ('string' != typeof e) return n.errors = [
501
- {
502
- params: {
503
- type: 'string'
504
- }
505
- }
506
- ], !1;
507
- if (e.length < 1) return n.errors = [
508
- {
509
- params: {}
510
- }
511
- ], !1;
512
- if (0 !== s) break;
513
- }
514
- }
515
- return n.errors = null, !0;
516
- }
517
- function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, rootData: o = t } = {}) {
518
- let i = null, l = 0;
519
- if (0 === l) {
520
- if (!t || 'object' != typeof t || Array.isArray(t)) return s.errors = [
521
- {
522
- params: {
523
- type: 'object'
524
- }
525
- }
526
- ], !1;
527
- {
528
- let r;
529
- if (void 0 === t.import && (r = 'import')) return s.errors = [
530
- {
531
- params: {
532
- missingProperty: r
533
- }
534
- }
535
- ], !1;
536
- {
537
- const r = l;
538
- for(const e in t)if ('import' !== e && 'name' !== e) return s.errors = [
539
- {
540
- params: {
541
- additionalProperty: e
542
- }
543
- }
544
- ], !1;
545
- if (r === l) {
546
- if (void 0 !== t.import) {
547
- let r = t.import;
548
- const a = l, c = l;
549
- let m = !1;
550
- const u = l;
551
- if (l == l) if ('string' == typeof r) {
552
- if (r.length < 1) {
553
- const t = {
554
- params: {}
555
- };
556
- null === i ? i = [
557
- t
558
- ] : i.push(t), l++;
559
- }
560
- } else {
561
- const t = {
562
- params: {
563
- type: 'string'
564
- }
565
- };
566
- null === i ? i = [
567
- t
568
- ] : i.push(t), l++;
569
- }
570
- var p = u === l;
571
- if (m = m || p, !m) {
572
- const s = l;
573
- n(r, {
574
- instancePath: e + '/import',
575
- parentData: t,
576
- parentDataProperty: 'import',
577
- rootData: o
578
- }) || (i = null === i ? n.errors : i.concat(n.errors), l = i.length), p = s === l, m = m || p;
579
- }
580
- if (!m) {
581
- const t = {
582
- params: {}
583
- };
584
- return null === i ? i = [
585
- t
586
- ] : i.push(t), l++, s.errors = i, !1;
587
- }
588
- l = c, null !== i && (c ? i.length = c : i = null);
589
- var f = a === l;
590
- } else f = !0;
591
- if (f) if (void 0 !== t.name) {
592
- const e = l;
593
- if ('string' != typeof t.name) return s.errors = [
594
- {
595
- params: {
596
- type: 'string'
597
- }
598
- }
599
- ], !1;
600
- f = e === l;
601
- } else f = !0;
602
- }
603
- }
604
- }
605
- }
606
- return s.errors = i, 0 === l;
607
- }
608
- function a(t, { instancePath: e = '', parentData: r, parentDataProperty: o, rootData: i = t } = {}) {
609
- let l = null, p = 0;
610
- if (0 === p) {
611
- if (!t || 'object' != typeof t || Array.isArray(t)) return a.errors = [
612
- {
613
- params: {
614
- type: 'object'
615
- }
616
- }
617
- ], !1;
618
- for(const r in t){
619
- let o = t[r];
620
- const c = p, m = p;
621
- let u = !1;
622
- const y = p;
623
- s(o, {
624
- instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
625
- parentData: t,
626
- parentDataProperty: r,
627
- rootData: i
628
- }) || (l = null === l ? s.errors : l.concat(s.errors), p = l.length);
629
- var f = y === p;
630
- if (u = u || f, !u) {
631
- const s = p;
632
- if (p == p) if ('string' == typeof o) {
633
- if (o.length < 1) {
634
- const t = {
635
- params: {}
636
- };
637
- null === l ? l = [
638
- t
639
- ] : l.push(t), p++;
640
- }
641
- } else {
642
- const t = {
643
- params: {
644
- type: 'string'
645
- }
646
- };
647
- null === l ? l = [
648
- t
649
- ] : l.push(t), p++;
650
- }
651
- if (f = s === p, u = u || f, !u) {
652
- const s = p;
653
- n(o, {
654
- instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
655
- parentData: t,
656
- parentDataProperty: r,
657
- rootData: i
658
- }) || (l = null === l ? n.errors : l.concat(n.errors), p = l.length), f = s === p, u = u || f;
659
- }
660
- }
661
- if (!u) {
662
- const t = {
663
- params: {}
664
- };
665
- return null === l ? l = [
666
- t
667
- ] : l.push(t), p++, a.errors = l, !1;
668
- }
669
- if (p = m, null !== l && (m ? l.length = m : l = null), c !== p) break;
670
- }
671
- }
672
- return a.errors = l, 0 === p;
673
- }
674
- function o(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
675
- let i = null, l = 0;
676
- const p = l;
677
- let f = !1;
678
- const c = l;
679
- if (l === c) if (Array.isArray(t)) {
680
- const r = t.length;
681
- for(let n = 0; n < r; n++){
682
- let r = t[n];
683
- const o = l, p = l;
684
- let f = !1;
685
- const c = l;
686
- if (l == l) if ('string' == typeof r) {
687
- if (r.length < 1) {
688
- const t = {
689
- params: {}
690
- };
691
- null === i ? i = [
692
- t
693
- ] : i.push(t), l++;
694
- }
695
- } else {
696
- const t = {
697
- params: {
698
- type: 'string'
699
- }
700
- };
701
- null === i ? i = [
702
- t
703
- ] : i.push(t), l++;
704
- }
705
- var m = c === l;
706
- if (f = f || m, !f) {
707
- const o = l;
708
- a(r, {
709
- instancePath: e + '/' + n,
710
- parentData: t,
711
- parentDataProperty: n,
712
- rootData: s
713
- }) || (i = null === i ? a.errors : i.concat(a.errors), l = i.length), m = o === l, f = f || m;
714
- }
715
- if (f) l = p, null !== i && (p ? i.length = p : i = null);
716
- else {
717
- const t = {
718
- params: {}
719
- };
720
- null === i ? i = [
721
- t
722
- ] : i.push(t), l++;
723
- }
724
- if (o !== l) break;
725
- }
726
- } else {
727
- const t = {
728
- params: {
729
- type: 'array'
730
- }
731
- };
732
- null === i ? i = [
733
- t
734
- ] : i.push(t), l++;
735
- }
736
- var u = c === l;
737
- if (f = f || u, !f) {
738
- const o = l;
739
- a(t, {
740
- instancePath: e,
741
- parentData: r,
742
- parentDataProperty: n,
743
- rootData: s
744
- }) || (i = null === i ? a.errors : i.concat(a.errors), l = i.length), u = o === l, f = f || u;
745
- }
746
- if (!f) {
747
- const t = {
748
- params: {}
749
- };
750
- return null === i ? i = [
751
- t
752
- ] : i.push(t), l++, o.errors = i, !1;
753
- }
754
- return l = p, null !== i && (p ? i.length = p : i = null), o.errors = i, 0 === l;
755
- }
756
- function i(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
757
- let a = null, o = 0;
758
- const l = o;
759
- let p = !1;
760
- const f = o;
761
- if ('string' != typeof t) {
762
- const t = {
763
- params: {
764
- type: 'string'
765
- }
766
- };
767
- null === a ? a = [
768
- t
769
- ] : a.push(t), o++;
770
- }
771
- var c = f === o;
772
- if (p = p || c, !p) {
773
- const e = o;
774
- if (o == o) if (t && 'object' == typeof t && !Array.isArray(t)) {
775
- const e = o;
776
- for(const e in t)if ('amd' !== e && 'commonjs' !== e && 'commonjs2' !== e && 'root' !== e) {
777
- const t = {
778
- params: {
779
- additionalProperty: e
780
- }
781
- };
782
- null === a ? a = [
783
- t
784
- ] : a.push(t), o++;
785
- break;
786
- }
787
- if (e === o) {
788
- if (void 0 !== t.amd) {
789
- const e = o;
790
- if ('string' != typeof t.amd) {
791
- const t = {
792
- params: {
793
- type: 'string'
794
- }
795
- };
796
- null === a ? a = [
797
- t
798
- ] : a.push(t), o++;
799
- }
800
- var m = e === o;
801
- } else m = !0;
802
- if (m) {
803
- if (void 0 !== t.commonjs) {
804
- const e = o;
805
- if ('string' != typeof t.commonjs) {
806
- const t = {
807
- params: {
808
- type: 'string'
809
- }
810
- };
811
- null === a ? a = [
812
- t
813
- ] : a.push(t), o++;
814
- }
815
- m = e === o;
816
- } else m = !0;
817
- if (m) {
818
- if (void 0 !== t.commonjs2) {
819
- const e = o;
820
- if ('string' != typeof t.commonjs2) {
821
- const t = {
822
- params: {
823
- type: 'string'
824
- }
825
- };
826
- null === a ? a = [
827
- t
828
- ] : a.push(t), o++;
829
- }
830
- m = e === o;
831
- } else m = !0;
832
- if (m) if (void 0 !== t.root) {
833
- const e = o;
834
- if ('string' != typeof t.root) {
835
- const t = {
836
- params: {
837
- type: 'string'
838
- }
839
- };
840
- null === a ? a = [
841
- t
842
- ] : a.push(t), o++;
843
- }
844
- m = e === o;
845
- } else m = !0;
846
- }
847
- }
848
- }
849
- } else {
850
- const t = {
851
- params: {
852
- type: 'object'
853
- }
854
- };
855
- null === a ? a = [
856
- t
857
- ] : a.push(t), o++;
858
- }
859
- c = e === o, p = p || c;
860
- }
861
- if (!p) {
862
- const t = {
863
- params: {}
864
- };
865
- return null === a ? a = [
866
- t
867
- ] : a.push(t), o++, i.errors = a, !1;
868
- }
869
- return o = l, null !== a && (l ? a.length = l : a = null), i.errors = a, 0 === o;
870
- }
871
- function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
872
- let a = null, o = 0;
873
- const i = o;
874
- let p = !1;
875
- const f = o;
876
- if (o === f) if (Array.isArray(t)) if (t.length < 1) {
877
- const t = {
878
- params: {
879
- limit: 1
880
- }
881
- };
882
- null === a ? a = [
883
- t
884
- ] : a.push(t), o++;
885
- } else {
886
- const e = t.length;
887
- for(let r = 0; r < e; r++){
888
- let e = t[r];
889
- const n = o;
890
- if (o === n) if ('string' == typeof e) {
891
- if (e.length < 1) {
892
- const t = {
893
- params: {}
894
- };
895
- null === a ? a = [
896
- t
897
- ] : a.push(t), o++;
898
- }
899
- } else {
900
- const t = {
901
- params: {
902
- type: 'string'
903
- }
904
- };
905
- null === a ? a = [
906
- t
907
- ] : a.push(t), o++;
908
- }
909
- if (n !== o) break;
910
- }
911
- }
912
- else {
913
- const t = {
914
- params: {
915
- type: 'array'
916
- }
917
- };
918
- null === a ? a = [
919
- t
920
- ] : a.push(t), o++;
921
- }
922
- var c = f === o;
923
- if (p = p || c, !p) {
924
- const e = o;
925
- if (o === e) if ('string' == typeof t) {
926
- if (t.length < 1) {
927
- const t = {
928
- params: {}
929
- };
930
- null === a ? a = [
931
- t
932
- ] : a.push(t), o++;
933
- }
934
- } else {
935
- const t = {
936
- params: {
937
- type: 'string'
938
- }
939
- };
940
- null === a ? a = [
941
- t
942
- ] : a.push(t), o++;
943
- }
944
- if (c = e === o, p = p || c, !p) {
945
- const e = o;
946
- if (o == o) if (t && 'object' == typeof t && !Array.isArray(t)) {
947
- const e = o;
948
- for(const e in t)if ('amd' !== e && 'commonjs' !== e && 'root' !== e) {
949
- const t = {
950
- params: {
951
- additionalProperty: e
952
- }
953
- };
954
- null === a ? a = [
955
- t
956
- ] : a.push(t), o++;
957
- break;
958
- }
959
- if (e === o) {
960
- if (void 0 !== t.amd) {
961
- let e = t.amd;
962
- const r = o;
963
- if (o === r) if ('string' == typeof e) {
964
- if (e.length < 1) {
965
- const t = {
966
- params: {}
967
- };
968
- null === a ? a = [
969
- t
970
- ] : a.push(t), o++;
971
- }
972
- } else {
973
- const t = {
974
- params: {
975
- type: 'string'
976
- }
977
- };
978
- null === a ? a = [
979
- t
980
- ] : a.push(t), o++;
981
- }
982
- var m = r === o;
983
- } else m = !0;
984
- if (m) {
985
- if (void 0 !== t.commonjs) {
986
- let e = t.commonjs;
987
- const r = o;
988
- if (o === r) if ('string' == typeof e) {
989
- if (e.length < 1) {
990
- const t = {
991
- params: {}
992
- };
993
- null === a ? a = [
994
- t
995
- ] : a.push(t), o++;
996
- }
997
- } else {
998
- const t = {
999
- params: {
1000
- type: 'string'
1001
- }
1002
- };
1003
- null === a ? a = [
1004
- t
1005
- ] : a.push(t), o++;
1006
- }
1007
- m = r === o;
1008
- } else m = !0;
1009
- if (m) if (void 0 !== t.root) {
1010
- let e = t.root;
1011
- const r = o, n = o;
1012
- let s = !1;
1013
- const i = o;
1014
- if (o === i) if (Array.isArray(e)) {
1015
- const t = e.length;
1016
- for(let r = 0; r < t; r++){
1017
- let t = e[r];
1018
- const n = o;
1019
- if (o === n) if ('string' == typeof t) {
1020
- if (t.length < 1) {
1021
- const t = {
1022
- params: {}
1023
- };
1024
- null === a ? a = [
1025
- t
1026
- ] : a.push(t), o++;
1027
- }
1028
- } else {
1029
- const t = {
1030
- params: {
1031
- type: 'string'
1032
- }
1033
- };
1034
- null === a ? a = [
1035
- t
1036
- ] : a.push(t), o++;
1037
- }
1038
- if (n !== o) break;
1039
- }
1040
- } else {
1041
- const t = {
1042
- params: {
1043
- type: 'array'
1044
- }
1045
- };
1046
- null === a ? a = [
1047
- t
1048
- ] : a.push(t), o++;
1049
- }
1050
- var u = i === o;
1051
- if (s = s || u, !s) {
1052
- const t = o;
1053
- if (o === t) if ('string' == typeof e) {
1054
- if (e.length < 1) {
1055
- const t = {
1056
- params: {}
1057
- };
1058
- null === a ? a = [
1059
- t
1060
- ] : a.push(t), o++;
1061
- }
1062
- } else {
1063
- const t = {
1064
- params: {
1065
- type: 'string'
1066
- }
1067
- };
1068
- null === a ? a = [
1069
- t
1070
- ] : a.push(t), o++;
1071
- }
1072
- u = t === o, s = s || u;
1073
- }
1074
- if (s) o = n, null !== a && (n ? a.length = n : a = null);
1075
- else {
1076
- const t = {
1077
- params: {}
1078
- };
1079
- null === a ? a = [
1080
- t
1081
- ] : a.push(t), o++;
1082
- }
1083
- m = r === o;
1084
- } else m = !0;
1085
- }
1086
- }
1087
- } else {
1088
- const t = {
1089
- params: {
1090
- type: 'object'
1091
- }
1092
- };
1093
- null === a ? a = [
1094
- t
1095
- ] : a.push(t), o++;
1096
- }
1097
- c = e === o, p = p || c;
1098
- }
1099
- }
1100
- if (!p) {
1101
- const t = {
1102
- params: {}
1103
- };
1104
- return null === a ? a = [
1105
- t
1106
- ] : a.push(t), o++, l.errors = a, !1;
1107
- }
1108
- return o = i, null !== a && (i ? a.length = i : a = null), l.errors = a, 0 === o;
1109
- }
1110
- function p(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
1111
- let a = null, o = 0;
1112
- if (0 === o) {
1113
- if (!t || 'object' != typeof t || Array.isArray(t)) return p.errors = [
1114
- {
1115
- params: {
1116
- type: 'object'
1117
- }
1118
- }
1119
- ], !1;
1120
- {
1121
- let r;
1122
- if (void 0 === t.type && (r = 'type')) return p.errors = [
1123
- {
1124
- params: {
1125
- missingProperty: r
1126
- }
1127
- }
1128
- ], !1;
1129
- {
1130
- const r = o;
1131
- for(const e in t)if ('amdContainer' !== e && 'auxiliaryComment' !== e && 'export' !== e && 'name' !== e && 'type' !== e && 'umdNamedDefine' !== e) return p.errors = [
1132
- {
1133
- params: {
1134
- additionalProperty: e
1135
- }
1136
- }
1137
- ], !1;
1138
- if (r === o) {
1139
- if (void 0 !== t.amdContainer) {
1140
- let e = t.amdContainer;
1141
- const r = o;
1142
- if (o == o) {
1143
- if ('string' != typeof e) return p.errors = [
1144
- {
1145
- params: {
1146
- type: 'string'
1147
- }
1148
- }
1149
- ], !1;
1150
- if (e.length < 1) return p.errors = [
1151
- {
1152
- params: {}
1153
- }
1154
- ], !1;
1155
- }
1156
- var f = r === o;
1157
- } else f = !0;
1158
- if (f) {
1159
- if (void 0 !== t.auxiliaryComment) {
1160
- const r = o;
1161
- i(t.auxiliaryComment, {
1162
- instancePath: e + '/auxiliaryComment',
1163
- parentData: t,
1164
- parentDataProperty: 'auxiliaryComment',
1165
- rootData: s
1166
- }) || (a = null === a ? i.errors : a.concat(i.errors), o = a.length), f = r === o;
1167
- } else f = !0;
1168
- if (f) {
1169
- if (void 0 !== t.export) {
1170
- let e = t.export;
1171
- const r = o, n = o;
1172
- let s = !1;
1173
- const i = o;
1174
- if (o === i) if (Array.isArray(e)) {
1175
- const t = e.length;
1176
- for(let r = 0; r < t; r++){
1177
- let t = e[r];
1178
- const n = o;
1179
- if (o === n) if ('string' == typeof t) {
1180
- if (t.length < 1) {
1181
- const t = {
1182
- params: {}
1183
- };
1184
- null === a ? a = [
1185
- t
1186
- ] : a.push(t), o++;
1187
- }
1188
- } else {
1189
- const t = {
1190
- params: {
1191
- type: 'string'
1192
- }
1193
- };
1194
- null === a ? a = [
1195
- t
1196
- ] : a.push(t), o++;
1197
- }
1198
- if (n !== o) break;
1199
- }
1200
- } else {
1201
- const t = {
1202
- params: {
1203
- type: 'array'
1204
- }
1205
- };
1206
- null === a ? a = [
1207
- t
1208
- ] : a.push(t), o++;
1209
- }
1210
- var c = i === o;
1211
- if (s = s || c, !s) {
1212
- const t = o;
1213
- if (o === t) if ('string' == typeof e) {
1214
- if (e.length < 1) {
1215
- const t = {
1216
- params: {}
1217
- };
1218
- null === a ? a = [
1219
- t
1220
- ] : a.push(t), o++;
1221
- }
1222
- } else {
1223
- const t = {
1224
- params: {
1225
- type: 'string'
1226
- }
1227
- };
1228
- null === a ? a = [
1229
- t
1230
- ] : a.push(t), o++;
1231
- }
1232
- c = t === o, s = s || c;
1233
- }
1234
- if (!s) {
1235
- const t = {
1236
- params: {}
1237
- };
1238
- return null === a ? a = [
1239
- t
1240
- ] : a.push(t), o++, p.errors = a, !1;
1241
- }
1242
- o = n, null !== a && (n ? a.length = n : a = null), f = r === o;
1243
- } else f = !0;
1244
- if (f) {
1245
- if (void 0 !== t.name) {
1246
- const r = o;
1247
- l(t.name, {
1248
- instancePath: e + '/name',
1249
- parentData: t,
1250
- parentDataProperty: 'name',
1251
- rootData: s
1252
- }) || (a = null === a ? l.errors : a.concat(l.errors), o = a.length), f = r === o;
1253
- } else f = !0;
1254
- if (f) {
1255
- if (void 0 !== t.type) {
1256
- let e = t.type;
1257
- const r = o, n = o;
1258
- let s = !1;
1259
- const i = o;
1260
- if ('var' !== e && 'module' !== e && 'assign' !== e && 'assign-properties' !== e && 'this' !== e && 'window' !== e && 'self' !== e && 'global' !== e && 'commonjs' !== e && 'commonjs2' !== e && 'commonjs-module' !== e && 'commonjs-static' !== e && 'amd' !== e && 'amd-require' !== e && 'umd' !== e && 'umd2' !== e && 'jsonp' !== e && 'system' !== e) {
1261
- const t = {
1262
- params: {}
1263
- };
1264
- null === a ? a = [
1265
- t
1266
- ] : a.push(t), o++;
1267
- }
1268
- var m = i === o;
1269
- if (s = s || m, !s) {
1270
- const t = o;
1271
- if ('string' != typeof e) {
1272
- const t = {
1273
- params: {
1274
- type: 'string'
1275
- }
1276
- };
1277
- null === a ? a = [
1278
- t
1279
- ] : a.push(t), o++;
1280
- }
1281
- m = t === o, s = s || m;
1282
- }
1283
- if (!s) {
1284
- const t = {
1285
- params: {}
1286
- };
1287
- return null === a ? a = [
1288
- t
1289
- ] : a.push(t), o++, p.errors = a, !1;
1290
- }
1291
- o = n, null !== a && (n ? a.length = n : a = null), f = r === o;
1292
- } else f = !0;
1293
- if (f) if (void 0 !== t.umdNamedDefine) {
1294
- const e = o;
1295
- if ('boolean' != typeof t.umdNamedDefine) return p.errors = [
1296
- {
1297
- params: {
1298
- type: 'boolean'
1299
- }
1300
- }
1301
- ], !1;
1302
- f = e === o;
1303
- } else f = !0;
1304
- }
1305
- }
1306
- }
1307
- }
1308
- }
1309
- }
1310
- }
1311
- }
1312
- return p.errors = a, 0 === o;
1313
- }
1314
- function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
1315
- if (!Array.isArray(t)) return f.errors = [
1316
- {
1317
- params: {
1318
- type: 'array'
1319
- }
1320
- }
1321
- ], !1;
1322
- {
1323
- const e = t.length;
1324
- for(let r = 0; r < e; r++){
1325
- let e = t[r];
1326
- const n = 0;
1327
- if ('string' != typeof e) return f.errors = [
1328
- {
1329
- params: {
1330
- type: 'string'
1331
- }
1332
- }
1333
- ], !1;
1334
- if (e.length < 1) return f.errors = [
1335
- {
1336
- params: {}
1337
- }
1338
- ], !1;
1339
- if (0 !== n) break;
1340
- }
1341
- }
1342
- return f.errors = null, !0;
1343
- }
1344
- function c(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
1345
- let a = null, o = 0;
1346
- if (0 === o) {
1347
- if (!t || 'object' != typeof t || Array.isArray(t)) return c.errors = [
1348
- {
1349
- params: {
1350
- type: 'object'
1351
- }
1352
- }
1353
- ], !1;
1354
- {
1355
- let r;
1356
- if (void 0 === t.external && (r = 'external')) return c.errors = [
1357
- {
1358
- params: {
1359
- missingProperty: r
1360
- }
1361
- }
1362
- ], !1;
1363
- {
1364
- const r = o;
1365
- for(const e in t)if ('external' !== e && 'shareScope' !== e) return c.errors = [
1366
- {
1367
- params: {
1368
- additionalProperty: e
1369
- }
1370
- }
1371
- ], !1;
1372
- if (r === o) {
1373
- if (void 0 !== t.external) {
1374
- let r = t.external;
1375
- const n = o, p = o;
1376
- let m = !1;
1377
- const u = o;
1378
- if (o == o) if ('string' == typeof r) {
1379
- if (r.length < 1) {
1380
- const t = {
1381
- params: {}
1382
- };
1383
- null === a ? a = [
1384
- t
1385
- ] : a.push(t), o++;
1386
- }
1387
- } else {
1388
- const t = {
1389
- params: {
1390
- type: 'string'
1391
- }
1392
- };
1393
- null === a ? a = [
1394
- t
1395
- ] : a.push(t), o++;
1396
- }
1397
- var i = u === o;
1398
- if (m = m || i, !m) {
1399
- const n = o;
1400
- f(r, {
1401
- instancePath: e + '/external',
1402
- parentData: t,
1403
- parentDataProperty: 'external',
1404
- rootData: s
1405
- }) || (a = null === a ? f.errors : a.concat(f.errors), o = a.length), i = n === o, m = m || i;
1406
- }
1407
- if (!m) {
1408
- const t = {
1409
- params: {}
1410
- };
1411
- return null === a ? a = [
1412
- t
1413
- ] : a.push(t), o++, c.errors = a, !1;
1414
- }
1415
- o = p, null !== a && (p ? a.length = p : a = null);
1416
- var l = n === o;
1417
- } else l = !0;
1418
- if (l) if (void 0 !== t.shareScope) {
1419
- let e = t.shareScope;
1420
- const r = o;
1421
- if (o === r) {
1422
- if ('string' != typeof e) return c.errors = [
1423
- {
1424
- params: {
1425
- type: 'string'
1426
- }
1427
- }
1428
- ], !1;
1429
- if (e.length < 1) return c.errors = [
1430
- {
1431
- params: {}
1432
- }
1433
- ], !1;
1434
- }
1435
- l = r === o;
1436
- } else l = !0;
1437
- }
1438
- }
1439
- }
1440
- }
1441
- return c.errors = a, 0 === o;
1442
- }
1443
- function m(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
1444
- let a = null, o = 0;
1445
- if (0 === o) {
1446
- if (!t || 'object' != typeof t || Array.isArray(t)) return m.errors = [
1447
- {
1448
- params: {
1449
- type: 'object'
1450
- }
1451
- }
1452
- ], !1;
1453
- for(const r in t){
1454
- let n = t[r];
1455
- const l = o, p = o;
1456
- let u = !1;
1457
- const y = o;
1458
- c(n, {
1459
- instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
1460
- parentData: t,
1461
- parentDataProperty: r,
1462
- rootData: s
1463
- }) || (a = null === a ? c.errors : a.concat(c.errors), o = a.length);
1464
- var i = y === o;
1465
- if (u = u || i, !u) {
1466
- const l = o;
1467
- if (o == o) if ('string' == typeof n) {
1468
- if (n.length < 1) {
1469
- const t = {
1470
- params: {}
1471
- };
1472
- null === a ? a = [
1473
- t
1474
- ] : a.push(t), o++;
1475
- }
1476
- } else {
1477
- const t = {
1478
- params: {
1479
- type: 'string'
1480
- }
1481
- };
1482
- null === a ? a = [
1483
- t
1484
- ] : a.push(t), o++;
1485
- }
1486
- if (i = l === o, u = u || i, !u) {
1487
- const l = o;
1488
- f(n, {
1489
- instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
1490
- parentData: t,
1491
- parentDataProperty: r,
1492
- rootData: s
1493
- }) || (a = null === a ? f.errors : a.concat(f.errors), o = a.length), i = l === o, u = u || i;
1494
- }
1495
- }
1496
- if (!u) {
1497
- const t = {
1498
- params: {}
1499
- };
1500
- return null === a ? a = [
1501
- t
1502
- ] : a.push(t), o++, m.errors = a, !1;
1503
- }
1504
- if (o = p, null !== a && (p ? a.length = p : a = null), l !== o) break;
1505
- }
1506
- }
1507
- return m.errors = a, 0 === o;
1508
- }
1509
- function u(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
1510
- let a = null, o = 0;
1511
- const i = o;
1512
- let l = !1;
1513
- const p = o;
1514
- if (o === p) if (Array.isArray(t)) {
1515
- const r = t.length;
1516
- for(let n = 0; n < r; n++){
1517
- let r = t[n];
1518
- const i = o, l = o;
1519
- let p = !1;
1520
- const c = o;
1521
- if (o == o) if ('string' == typeof r) {
1522
- if (r.length < 1) {
1523
- const t = {
1524
- params: {}
1525
- };
1526
- null === a ? a = [
1527
- t
1528
- ] : a.push(t), o++;
1529
- }
1530
- } else {
1531
- const t = {
1532
- params: {
1533
- type: 'string'
1534
- }
1535
- };
1536
- null === a ? a = [
1537
- t
1538
- ] : a.push(t), o++;
1539
- }
1540
- var f = c === o;
1541
- if (p = p || f, !p) {
1542
- const i = o;
1543
- m(r, {
1544
- instancePath: e + '/' + n,
1545
- parentData: t,
1546
- parentDataProperty: n,
1547
- rootData: s
1548
- }) || (a = null === a ? m.errors : a.concat(m.errors), o = a.length), f = i === o, p = p || f;
1549
- }
1550
- if (p) o = l, null !== a && (l ? a.length = l : a = null);
1551
- else {
1552
- const t = {
1553
- params: {}
1554
- };
1555
- null === a ? a = [
1556
- t
1557
- ] : a.push(t), o++;
1558
- }
1559
- if (i !== o) break;
1560
- }
1561
- } else {
1562
- const t = {
1563
- params: {
1564
- type: 'array'
1565
- }
1566
- };
1567
- null === a ? a = [
1568
- t
1569
- ] : a.push(t), o++;
1570
- }
1571
- var c = p === o;
1572
- if (l = l || c, !l) {
1573
- const i = o;
1574
- m(t, {
1575
- instancePath: e,
1576
- parentData: r,
1577
- parentDataProperty: n,
1578
- rootData: s
1579
- }) || (a = null === a ? m.errors : a.concat(m.errors), o = a.length), c = i === o, l = l || c;
1580
- }
1581
- if (!l) {
1582
- const t = {
1583
- params: {}
1584
- };
1585
- return null === a ? a = [
1586
- t
1587
- ] : a.push(t), o++, u.errors = a, !1;
1588
- }
1589
- return o = i, null !== a && (i ? a.length = i : a = null), u.errors = a, 0 === o;
1590
- }
1591
- const y = {
1592
- type: 'object',
1593
- additionalProperties: !1,
1594
- properties: {
1595
- eager: {
1596
- type: 'boolean'
1597
- },
1598
- import: {
1599
- anyOf: [
1600
- {
1601
- enum: [
1602
- !1
1603
- ]
1604
- },
1605
- {
1606
- $ref: '#/definitions/SharedItem'
1607
- }
1608
- ]
1609
- },
1610
- packageName: {
1611
- type: 'string',
1612
- minLength: 1
1613
- },
1614
- requiredVersion: {
1615
- anyOf: [
1616
- {
1617
- enum: [
1618
- !1
1619
- ]
1620
- },
1621
- {
1622
- type: 'string'
1623
- }
1624
- ]
1625
- },
1626
- shareKey: {
1627
- type: 'string',
1628
- minLength: 1
1629
- },
1630
- shareScope: {
1631
- type: 'string',
1632
- minLength: 1
1633
- },
1634
- singleton: {
1635
- type: 'boolean'
1636
- },
1637
- strictVersion: {
1638
- type: 'boolean'
1639
- },
1640
- version: {
1641
- anyOf: [
1642
- {
1643
- enum: [
1644
- !1
1645
- ]
1646
- },
1647
- {
1648
- type: 'string'
1649
- }
1650
- ]
1651
- }
1652
- }
1653
- };
1654
- function h(t, { instancePath: e = '', parentData: n, parentDataProperty: s, rootData: a = t } = {}) {
1655
- let o = null, i = 0;
1656
- if (0 === i) {
1657
- if (!t || 'object' != typeof t || Array.isArray(t)) return h.errors = [
1658
- {
1659
- params: {
1660
- type: 'object'
1661
- }
1662
- }
1663
- ], !1;
1664
- {
1665
- const e = i;
1666
- for(const e in t)if (!r.call(y.properties, e)) return h.errors = [
1667
- {
1668
- params: {
1669
- additionalProperty: e
1670
- }
1671
- }
1672
- ], !1;
1673
- if (e === i) {
1674
- if (void 0 !== t.eager) {
1675
- const e = i;
1676
- if ('boolean' != typeof t.eager) return h.errors = [
1677
- {
1678
- params: {
1679
- type: 'boolean'
1680
- }
1681
- }
1682
- ], !1;
1683
- var l = e === i;
1684
- } else l = !0;
1685
- if (l) {
1686
- if (void 0 !== t.import) {
1687
- let e = t.import;
1688
- const r = i, n = i;
1689
- let s = !1;
1690
- const a = i;
1691
- if (!1 !== e) {
1692
- const t = {
1693
- params: {}
1694
- };
1695
- null === o ? o = [
1696
- t
1697
- ] : o.push(t), i++;
1698
- }
1699
- var p = a === i;
1700
- if (s = s || p, !s) {
1701
- const t = i;
1702
- if (i == i) if ('string' == typeof e) {
1703
- if (e.length < 1) {
1704
- const t = {
1705
- params: {}
1706
- };
1707
- null === o ? o = [
1708
- t
1709
- ] : o.push(t), i++;
1710
- }
1711
- } else {
1712
- const t = {
1713
- params: {
1714
- type: 'string'
1715
- }
1716
- };
1717
- null === o ? o = [
1718
- t
1719
- ] : o.push(t), i++;
1720
- }
1721
- p = t === i, s = s || p;
1722
- }
1723
- if (!s) {
1724
- const t = {
1725
- params: {}
1726
- };
1727
- return null === o ? o = [
1728
- t
1729
- ] : o.push(t), i++, h.errors = o, !1;
1730
- }
1731
- i = n, null !== o && (n ? o.length = n : o = null), l = r === i;
1732
- } else l = !0;
1733
- if (l) {
1734
- if (void 0 !== t.packageName) {
1735
- let e = t.packageName;
1736
- const r = i;
1737
- if (i === r) {
1738
- if ('string' != typeof e) return h.errors = [
1739
- {
1740
- params: {
1741
- type: 'string'
1742
- }
1743
- }
1744
- ], !1;
1745
- if (e.length < 1) return h.errors = [
1746
- {
1747
- params: {}
1748
- }
1749
- ], !1;
1750
- }
1751
- l = r === i;
1752
- } else l = !0;
1753
- if (l) {
1754
- if (void 0 !== t.requiredVersion) {
1755
- let e = t.requiredVersion;
1756
- const r = i, n = i;
1757
- let s = !1;
1758
- const a = i;
1759
- if (!1 !== e) {
1760
- const t = {
1761
- params: {}
1762
- };
1763
- null === o ? o = [
1764
- t
1765
- ] : o.push(t), i++;
1766
- }
1767
- var f = a === i;
1768
- if (s = s || f, !s) {
1769
- const t = i;
1770
- if ('string' != typeof e) {
1771
- const t = {
1772
- params: {
1773
- type: 'string'
1774
- }
1775
- };
1776
- null === o ? o = [
1777
- t
1778
- ] : o.push(t), i++;
1779
- }
1780
- f = t === i, s = s || f;
1781
- }
1782
- if (!s) {
1783
- const t = {
1784
- params: {}
1785
- };
1786
- return null === o ? o = [
1787
- t
1788
- ] : o.push(t), i++, h.errors = o, !1;
1789
- }
1790
- i = n, null !== o && (n ? o.length = n : o = null), l = r === i;
1791
- } else l = !0;
1792
- if (l) {
1793
- if (void 0 !== t.shareKey) {
1794
- let e = t.shareKey;
1795
- const r = i;
1796
- if (i === r) {
1797
- if ('string' != typeof e) return h.errors = [
1798
- {
1799
- params: {
1800
- type: 'string'
1801
- }
1802
- }
1803
- ], !1;
1804
- if (e.length < 1) return h.errors = [
1805
- {
1806
- params: {}
1807
- }
1808
- ], !1;
1809
- }
1810
- l = r === i;
1811
- } else l = !0;
1812
- if (l) {
1813
- if (void 0 !== t.shareScope) {
1814
- let e = t.shareScope;
1815
- const r = i;
1816
- if (i === r) {
1817
- if ('string' != typeof e) return h.errors = [
1818
- {
1819
- params: {
1820
- type: 'string'
1821
- }
1822
- }
1823
- ], !1;
1824
- if (e.length < 1) return h.errors = [
1825
- {
1826
- params: {}
1827
- }
1828
- ], !1;
1829
- }
1830
- l = r === i;
1831
- } else l = !0;
1832
- if (l) {
1833
- if (void 0 !== t.singleton) {
1834
- const e = i;
1835
- if ('boolean' != typeof t.singleton) return h.errors = [
1836
- {
1837
- params: {
1838
- type: 'boolean'
1839
- }
1840
- }
1841
- ], !1;
1842
- l = e === i;
1843
- } else l = !0;
1844
- if (l) {
1845
- if (void 0 !== t.strictVersion) {
1846
- const e = i;
1847
- if ('boolean' != typeof t.strictVersion) return h.errors = [
1848
- {
1849
- params: {
1850
- type: 'boolean'
1851
- }
1852
- }
1853
- ], !1;
1854
- l = e === i;
1855
- } else l = !0;
1856
- if (l) if (void 0 !== t.version) {
1857
- let e = t.version;
1858
- const r = i, n = i;
1859
- let s = !1;
1860
- const a = i;
1861
- if (!1 !== e) {
1862
- const t = {
1863
- params: {}
1864
- };
1865
- null === o ? o = [
1866
- t
1867
- ] : o.push(t), i++;
1868
- }
1869
- var c = a === i;
1870
- if (s = s || c, !s) {
1871
- const t = i;
1872
- if ('string' != typeof e) {
1873
- const t = {
1874
- params: {
1875
- type: 'string'
1876
- }
1877
- };
1878
- null === o ? o = [
1879
- t
1880
- ] : o.push(t), i++;
1881
- }
1882
- c = t === i, s = s || c;
1883
- }
1884
- if (!s) {
1885
- const t = {
1886
- params: {}
1887
- };
1888
- return null === o ? o = [
1889
- t
1890
- ] : o.push(t), i++, h.errors = o, !1;
1891
- }
1892
- i = n, null !== o && (n ? o.length = n : o = null), l = r === i;
1893
- } else l = !0;
1894
- }
1895
- }
1896
- }
1897
- }
1898
- }
1899
- }
1900
- }
1901
- }
1902
- }
1903
- }
1904
- return h.errors = o, 0 === i;
1905
- }
1906
- function g(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
1907
- let a = null, o = 0;
1908
- if (0 === o) {
1909
- if (!t || 'object' != typeof t || Array.isArray(t)) return g.errors = [
1910
- {
1911
- params: {
1912
- type: 'object'
1913
- }
1914
- }
1915
- ], !1;
1916
- for(const r in t){
1917
- let n = t[r];
1918
- const l = o, p = o;
1919
- let f = !1;
1920
- const c = o;
1921
- h(n, {
1922
- instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
1923
- parentData: t,
1924
- parentDataProperty: r,
1925
- rootData: s
1926
- }) || (a = null === a ? h.errors : a.concat(h.errors), o = a.length);
1927
- var i = c === o;
1928
- if (f = f || i, !f) {
1929
- const t = o;
1930
- if (o == o) if ('string' == typeof n) {
1931
- if (n.length < 1) {
1932
- const t = {
1933
- params: {}
1934
- };
1935
- null === a ? a = [
1936
- t
1937
- ] : a.push(t), o++;
1938
- }
1939
- } else {
1940
- const t = {
1941
- params: {
1942
- type: 'string'
1943
- }
1944
- };
1945
- null === a ? a = [
1946
- t
1947
- ] : a.push(t), o++;
1948
- }
1949
- i = t === o, f = f || i;
1950
- }
1951
- if (!f) {
1952
- const t = {
1953
- params: {}
1954
- };
1955
- return null === a ? a = [
1956
- t
1957
- ] : a.push(t), o++, g.errors = a, !1;
1958
- }
1959
- if (o = p, null !== a && (p ? a.length = p : a = null), l !== o) break;
1960
- }
1961
- }
1962
- return g.errors = a, 0 === o;
1963
- }
1964
- function d(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t } = {}) {
1965
- let a = null, o = 0;
1966
- const i = o;
1967
- let l = !1;
1968
- const p = o;
1969
- if (o === p) if (Array.isArray(t)) {
1970
- const r = t.length;
1971
- for(let n = 0; n < r; n++){
1972
- let r = t[n];
1973
- const i = o, l = o;
1974
- let p = !1;
1975
- const c = o;
1976
- if (o == o) if ('string' == typeof r) {
1977
- if (r.length < 1) {
1978
- const t = {
1979
- params: {}
1980
- };
1981
- null === a ? a = [
1982
- t
1983
- ] : a.push(t), o++;
1984
- }
1985
- } else {
1986
- const t = {
1987
- params: {
1988
- type: 'string'
1989
- }
1990
- };
1991
- null === a ? a = [
1992
- t
1993
- ] : a.push(t), o++;
1994
- }
1995
- var f = c === o;
1996
- if (p = p || f, !p) {
1997
- const i = o;
1998
- g(r, {
1999
- instancePath: e + '/' + n,
2000
- parentData: t,
2001
- parentDataProperty: n,
2002
- rootData: s
2003
- }) || (a = null === a ? g.errors : a.concat(g.errors), o = a.length), f = i === o, p = p || f;
2004
- }
2005
- if (p) o = l, null !== a && (l ? a.length = l : a = null);
2006
- else {
2007
- const t = {
2008
- params: {}
2009
- };
2010
- null === a ? a = [
2011
- t
2012
- ] : a.push(t), o++;
2013
- }
2014
- if (i !== o) break;
2015
- }
2016
- } else {
2017
- const t = {
2018
- params: {
2019
- type: 'array'
2020
- }
2021
- };
2022
- null === a ? a = [
2023
- t
2024
- ] : a.push(t), o++;
2025
- }
2026
- var c = p === o;
2027
- if (l = l || c, !l) {
2028
- const i = o;
2029
- g(t, {
2030
- instancePath: e,
2031
- parentData: r,
2032
- parentDataProperty: n,
2033
- rootData: s
2034
- }) || (a = null === a ? g.errors : a.concat(g.errors), o = a.length), c = i === o, l = l || c;
2035
- }
2036
- if (!l) {
2037
- const t = {
2038
- params: {}
2039
- };
2040
- return null === a ? a = [
2041
- t
2042
- ] : a.push(t), o++, d.errors = a, !1;
2043
- }
2044
- return o = i, null !== a && (i ? a.length = i : a = null), d.errors = a, 0 === o;
2045
- }
2046
- function D(n, { instancePath: s = '', parentData: a, parentDataProperty: i, rootData: l = n } = {}) {
2047
- let f = null, c = 0;
2048
- if (0 === c) {
2049
- if (!n || 'object' != typeof n || Array.isArray(n)) return D.errors = [
2050
- {
2051
- params: {
2052
- type: 'object'
2053
- }
2054
- }
2055
- ], !1;
2056
- {
2057
- const a = c;
2058
- for(const t in n)if (!r.call(e.properties, t)) return D.errors = [
2059
- {
2060
- params: {
2061
- additionalProperty: t
2062
- }
2063
- }
2064
- ], !1;
2065
- if (a === c) {
2066
- if (void 0 !== n.exposes) {
2067
- const t = c;
2068
- o(n.exposes, {
2069
- instancePath: s + '/exposes',
2070
- parentData: n,
2071
- parentDataProperty: 'exposes',
2072
- rootData: l
2073
- }) || (f = null === f ? o.errors : f.concat(o.errors), c = f.length);
2074
- var m = t === c;
2075
- } else m = !0;
2076
- if (m) {
2077
- if (void 0 !== n.filename) {
2078
- let e = n.filename;
2079
- const r = c;
2080
- if (c === r) {
2081
- if ('string' != typeof e) return D.errors = [
2082
- {
2083
- params: {
2084
- type: 'string'
2085
- }
2086
- }
2087
- ], !1;
2088
- if (e.includes('!') || !1 !== t.test(e)) return D.errors = [
2089
- {
2090
- params: {}
2091
- }
2092
- ], !1;
2093
- }
2094
- m = r === c;
2095
- } else m = !0;
2096
- if (m) {
2097
- if (void 0 !== n.library) {
2098
- const t = c;
2099
- p(n.library, {
2100
- instancePath: s + '/library',
2101
- parentData: n,
2102
- parentDataProperty: 'library',
2103
- rootData: l
2104
- }) || (f = null === f ? p.errors : f.concat(p.errors), c = f.length), m = t === c;
2105
- } else m = !0;
2106
- if (m) {
2107
- if (void 0 !== n.name) {
2108
- const t = c;
2109
- if ('string' != typeof n.name) return D.errors = [
2110
- {
2111
- params: {
2112
- type: 'string'
2113
- }
2114
- }
2115
- ], !1;
2116
- m = t === c;
2117
- } else m = !0;
2118
- if (m) {
2119
- if (void 0 !== n.remoteType) {
2120
- let t = n.remoteType;
2121
- const e = c, r = c;
2122
- let s = !1, a = null;
2123
- const o = c;
2124
- if ('var' !== t && 'module' !== t && 'assign' !== t && 'this' !== t && 'window' !== t && 'self' !== t && 'global' !== t && 'commonjs' !== t && 'commonjs2' !== t && 'commonjs-module' !== t && 'commonjs-static' !== t && 'amd' !== t && 'amd-require' !== t && 'umd' !== t && 'umd2' !== t && 'jsonp' !== t && 'system' !== t && 'promise' !== t && 'import' !== t && 'script' !== t && 'node-commonjs' !== t) {
2125
- const t = {
2126
- params: {}
2127
- };
2128
- null === f ? f = [
2129
- t
2130
- ] : f.push(t), c++;
2131
- }
2132
- if (o === c && (s = !0, a = 0), !s) {
2133
- const t = {
2134
- params: {
2135
- passingSchemas: a
2136
- }
2137
- };
2138
- return null === f ? f = [
2139
- t
2140
- ] : f.push(t), c++, D.errors = f, !1;
2141
- }
2142
- c = r, null !== f && (r ? f.length = r : f = null), m = e === c;
2143
- } else m = !0;
2144
- if (m) {
2145
- if (void 0 !== n.remotes) {
2146
- const t = c;
2147
- u(n.remotes, {
2148
- instancePath: s + '/remotes',
2149
- parentData: n,
2150
- parentDataProperty: 'remotes',
2151
- rootData: l
2152
- }) || (f = null === f ? u.errors : f.concat(u.errors), c = f.length), m = t === c;
2153
- } else m = !0;
2154
- if (m) {
2155
- if (void 0 !== n.runtime) {
2156
- let t = n.runtime;
2157
- const e = c, r = c;
2158
- let s = !1;
2159
- const a = c;
2160
- if (!1 !== t) {
2161
- const t = {
2162
- params: {}
2163
- };
2164
- null === f ? f = [
2165
- t
2166
- ] : f.push(t), c++;
2167
- }
2168
- var y = a === c;
2169
- if (s = s || y, !s) {
2170
- const e = c;
2171
- if (c === e) if ('string' == typeof t) {
2172
- if (t.length < 1) {
2173
- const t = {
2174
- params: {}
2175
- };
2176
- null === f ? f = [
2177
- t
2178
- ] : f.push(t), c++;
2179
- }
2180
- } else {
2181
- const t = {
2182
- params: {
2183
- type: 'string'
2184
- }
2185
- };
2186
- null === f ? f = [
2187
- t
2188
- ] : f.push(t), c++;
2189
- }
2190
- y = e === c, s = s || y;
2191
- }
2192
- if (!s) {
2193
- const t = {
2194
- params: {}
2195
- };
2196
- return null === f ? f = [
2197
- t
2198
- ] : f.push(t), c++, D.errors = f, !1;
2199
- }
2200
- c = r, null !== f && (r ? f.length = r : f = null), m = e === c;
2201
- } else m = !0;
2202
- if (m) {
2203
- if (void 0 !== n.shareScope) {
2204
- let t = n.shareScope;
2205
- const e = c;
2206
- if (c === e) {
2207
- if ('string' != typeof t) return D.errors = [
2208
- {
2209
- params: {
2210
- type: 'string'
2211
- }
2212
- }
2213
- ], !1;
2214
- if (t.length < 1) return D.errors = [
2215
- {
2216
- params: {}
2217
- }
2218
- ], !1;
2219
- }
2220
- m = e === c;
2221
- } else m = !0;
2222
- if (m) if (void 0 !== n.shared) {
2223
- const t = c;
2224
- d(n.shared, {
2225
- instancePath: s + '/shared',
2226
- parentData: n,
2227
- parentDataProperty: 'shared',
2228
- rootData: l
2229
- }) || (f = null === f ? d.errors : f.concat(d.errors), c = f.length), m = t === c;
2230
- } else m = !0;
2231
- }
2232
- }
2233
- }
2234
- }
2235
- }
2236
- }
2237
- }
2238
- }
2239
- }
2240
- }
2241
- return D.errors = f, 0 === c;
2242
- }
2243
- const _default = D;
2244
-
2245
- //# sourceMappingURL=ModuleFederationPlugin.check.js.map