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