@module-federation/enhanced 0.1.4 → 0.1.5

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