@module-federation/enhanced 0.11.4 → 0.13.0

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 (95) hide show
  1. package/dist/package.json +4 -3
  2. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +53 -0
  3. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +14 -2
  4. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +10 -2
  5. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +14 -2
  6. package/dist/src/lib/container/ContainerEntryDependency.d.ts +3 -3
  7. package/dist/src/lib/container/ContainerEntryDependency.js +1 -1
  8. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  9. package/dist/src/lib/container/ContainerEntryModule.d.ts +2 -2
  10. package/dist/src/lib/container/ContainerEntryModule.js +5 -2
  11. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
  12. package/dist/src/lib/container/ContainerReferencePlugin.js +1 -1
  13. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
  14. package/dist/src/lib/container/ModuleFederationPlugin.js +11 -5
  15. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  16. package/dist/src/lib/container/RemoteModule.d.ts +3 -3
  17. package/dist/src/lib/container/RemoteModule.js +5 -2
  18. package/dist/src/lib/container/RemoteModule.js.map +1 -1
  19. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +5 -5
  20. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  21. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +1 -38
  22. package/dist/src/lib/sharing/ConsumeSharedModule.js +25 -15
  23. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  24. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +64 -41
  25. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  26. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +3 -1
  27. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  28. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +5 -3
  29. package/dist/src/lib/sharing/ProvideSharedDependency.js +12 -6
  30. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
  31. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +3 -2
  32. package/dist/src/lib/sharing/ProvideSharedModule.js +10 -12
  33. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
  34. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +1 -3
  35. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
  36. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +2 -10
  37. package/dist/src/lib/sharing/ProvideSharedPlugin.js +65 -43
  38. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  39. package/dist/src/lib/sharing/SharePlugin.d.ts +2 -3
  40. package/dist/src/lib/sharing/SharePlugin.js +8 -5
  41. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  42. package/dist/src/lib/sharing/ShareRuntimeModule.js +9 -7
  43. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
  44. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +2 -1
  45. package/dist/src/lib/sharing/resolveMatchedConfigs.js +33 -16
  46. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  47. package/dist/src/lib/sharing/utils.d.ts +3 -2
  48. package/dist/src/lib/sharing/utils.js +2 -1
  49. package/dist/src/lib/sharing/utils.js.map +1 -1
  50. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +3 -3
  51. package/dist/src/schemas/container/ContainerPlugin.check.js +333 -290
  52. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  53. package/dist/src/schemas/container/ContainerPlugin.d.ts +31 -18
  54. package/dist/src/schemas/container/ContainerPlugin.js +34 -21
  55. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  56. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +3 -3
  57. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +293 -188
  58. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  59. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +25 -5
  60. package/dist/src/schemas/container/ContainerReferencePlugin.js +31 -4
  61. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  62. package/dist/src/schemas/container/ExternalsType.check.js +2 -2
  63. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
  64. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +1464 -1282
  65. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  66. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +130 -78
  67. package/dist/src/schemas/container/ModuleFederationPlugin.js +144 -83
  68. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  69. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +3 -3
  70. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +302 -160
  71. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  72. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +33 -2
  73. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +39 -2
  74. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  75. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +1 -1
  76. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +374 -164
  77. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  78. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +51 -2
  79. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +60 -2
  80. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  81. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +148 -94
  82. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
  83. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +10 -0
  84. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +10 -1
  85. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
  86. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +3 -3
  87. package/dist/src/schemas/sharing/SharePlugin.check.js +239 -135
  88. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  89. package/dist/src/schemas/sharing/SharePlugin.d.ts +24 -4
  90. package/dist/src/schemas/sharing/SharePlugin.js +30 -4
  91. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  92. package/dist/src/utils.d.ts +9 -0
  93. package/dist/src/utils.js +31 -0
  94. package/dist/src/utils.js.map +1 -0
  95. package/package.json +15 -14
@@ -8,11 +8,10 @@ exports.validate = void 0;
8
8
  * DO NOT MODIFY BY HAND.
9
9
  */
10
10
  const t = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
11
- exports.validate = m;
12
- exports.default = m;
11
+ exports.validate = u;
12
+ exports.default = u;
13
13
  const e = {
14
14
  definitions: {
15
- RuntimePlugin: { type: 'array', items: { type: 'string' } },
16
15
  AmdContainer: { type: 'string', minLength: 1 },
17
16
  AuxiliaryComment: {
18
17
  anyOf: [
@@ -157,57 +156,62 @@ const e = {
157
156
  library: { $ref: '#/definitions/LibraryOptions' },
158
157
  name: { type: 'string', minLength: 1 },
159
158
  runtime: { $ref: '#/definitions/EntryRuntime' },
160
- runtimePlugins: { $ref: '#/definitions/RuntimePlugin' },
161
- shareScope: { type: 'string', minLength: 1 },
159
+ shareScope: {
160
+ anyOf: [
161
+ { type: 'string', minLength: 1 },
162
+ { type: 'array', items: { type: 'string', minLength: 1 } },
163
+ ],
164
+ },
162
165
  experiments: {
163
166
  type: 'object',
167
+ additionalProperties: !1,
164
168
  properties: {
165
169
  asyncStartup: { type: 'boolean' },
166
- externalRuntime: {
167
- anyOf: [{ type: 'boolean' }, { enum: ['provide'] }],
168
- },
170
+ externalRuntime: { type: 'boolean', default: !1 },
171
+ provideExternalRuntime: { type: 'boolean', default: !1 },
169
172
  },
170
- additionalProperties: !1,
171
173
  },
174
+ dataPrefetch: { type: 'boolean' },
175
+ runtimePlugins: { type: 'array', items: { type: 'string' } },
172
176
  },
173
177
  required: ['name', 'exposes'],
174
- }, r = { anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }] };
175
- function n(t, { instancePath: e = '', parentData: r, parentDataProperty: s, rootData: a = t, } = {}) {
178
+ }, r = { anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }] }, n = Object.prototype.hasOwnProperty;
179
+ function s(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: a = t, } = {}) {
176
180
  if (!Array.isArray(t))
177
- return (n.errors = [{ params: { type: 'array' } }]), !1;
181
+ return (s.errors = [{ params: { type: 'array' } }]), !1;
178
182
  {
179
183
  const e = t.length;
180
184
  for (let r = 0; r < e; r++) {
181
185
  let e = t[r];
182
- const s = 0;
186
+ const n = 0;
183
187
  if ('string' != typeof e)
184
- return (n.errors = [{ params: { type: 'string' } }]), !1;
188
+ return (s.errors = [{ params: { type: 'string' } }]), !1;
185
189
  if (e.length < 1)
186
- return (n.errors = [{ params: {} }]), !1;
187
- if (0 !== s)
190
+ return (s.errors = [{ params: {} }]), !1;
191
+ if (0 !== n)
188
192
  break;
189
193
  }
190
194
  }
191
- return (n.errors = null), !0;
195
+ return (s.errors = null), !0;
192
196
  }
193
- function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, rootData: o = t, } = {}) {
197
+ function a(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: o = t, } = {}) {
194
198
  let i = null, p = 0;
195
199
  if (0 === p) {
196
200
  if (!t || 'object' != typeof t || Array.isArray(t))
197
- return (s.errors = [{ params: { type: 'object' } }]), !1;
201
+ return (a.errors = [{ params: { type: 'object' } }]), !1;
198
202
  {
199
203
  let r;
200
204
  if (void 0 === t.import && (r = 'import'))
201
- return (s.errors = [{ params: { missingProperty: r } }]), !1;
205
+ return (a.errors = [{ params: { missingProperty: r } }]), !1;
202
206
  {
203
207
  const r = p;
204
208
  for (const e in t)
205
209
  if ('import' !== e && 'name' !== e)
206
- return (s.errors = [{ params: { additionalProperty: e } }]), !1;
210
+ return (a.errors = [{ params: { additionalProperty: e } }]), !1;
207
211
  if (r === p) {
208
212
  if (void 0 !== t.import) {
209
213
  let r = t.import;
210
- const a = p, m = p;
214
+ const n = p, m = p;
211
215
  let u = !1;
212
216
  const c = p;
213
217
  if (p == p)
@@ -223,24 +227,24 @@ function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, root
223
227
  }
224
228
  var l = c === p;
225
229
  if (((u = u || l), !u)) {
226
- const s = p;
227
- n(r, {
230
+ const n = p;
231
+ s(r, {
228
232
  instancePath: e + '/import',
229
233
  parentData: t,
230
234
  parentDataProperty: 'import',
231
235
  rootData: o,
232
236
  }) ||
233
- ((i = null === i ? n.errors : i.concat(n.errors)),
237
+ ((i = null === i ? s.errors : i.concat(s.errors)),
234
238
  (p = i.length)),
235
- (l = s === p),
239
+ (l = n === p),
236
240
  (u = u || l);
237
241
  }
238
242
  if (!u) {
239
243
  const t = { params: {} };
240
- return (null === i ? (i = [t]) : i.push(t), p++, (s.errors = i), !1);
244
+ return (null === i ? (i = [t]) : i.push(t), p++, (a.errors = i), !1);
241
245
  }
242
246
  (p = m), null !== i && (m ? (i.length = m) : (i = null));
243
- var f = a === p;
247
+ var f = n === p;
244
248
  }
245
249
  else
246
250
  f = !0;
@@ -248,7 +252,7 @@ function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, root
248
252
  if (void 0 !== t.name) {
249
253
  const e = p;
250
254
  if ('string' != typeof t.name)
251
- return (s.errors = [{ params: { type: 'string' } }]), !1;
255
+ return (a.errors = [{ params: { type: 'string' } }]), !1;
252
256
  f = e === p;
253
257
  }
254
258
  else
@@ -257,30 +261,30 @@ function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, root
257
261
  }
258
262
  }
259
263
  }
260
- return (s.errors = i), 0 === p;
264
+ return (a.errors = i), 0 === p;
261
265
  }
262
- function a(t, { instancePath: e = '', parentData: r, parentDataProperty: o, rootData: i = t, } = {}) {
266
+ function o(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: i = t, } = {}) {
263
267
  let p = null, l = 0;
264
268
  if (0 === l) {
265
269
  if (!t || 'object' != typeof t || Array.isArray(t))
266
- return (a.errors = [{ params: { type: 'object' } }]), !1;
270
+ return (o.errors = [{ params: { type: 'object' } }]), !1;
267
271
  for (const r in t) {
268
- let o = t[r];
272
+ let n = t[r];
269
273
  const m = l, u = l;
270
274
  let c = !1;
271
275
  const y = l;
272
- s(o, {
276
+ a(n, {
273
277
  instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
274
278
  parentData: t,
275
279
  parentDataProperty: r,
276
280
  rootData: i,
277
- }) || ((p = null === p ? s.errors : p.concat(s.errors)), (l = p.length));
281
+ }) || ((p = null === p ? a.errors : p.concat(a.errors)), (l = p.length));
278
282
  var f = y === l;
279
283
  if (((c = c || f), !c)) {
280
- const s = l;
284
+ const a = l;
281
285
  if (l == l)
282
- if ('string' == typeof o) {
283
- if (o.length < 1) {
286
+ if ('string' == typeof n) {
287
+ if (n.length < 1) {
284
288
  const t = { params: {} };
285
289
  null === p ? (p = [t]) : p.push(t), l++;
286
290
  }
@@ -289,31 +293,31 @@ function a(t, { instancePath: e = '', parentData: r, parentDataProperty: o, root
289
293
  const t = { params: { type: 'string' } };
290
294
  null === p ? (p = [t]) : p.push(t), l++;
291
295
  }
292
- if (((f = s === l), (c = c || f), !c)) {
293
- const s = l;
294
- n(o, {
296
+ if (((f = a === l), (c = c || f), !c)) {
297
+ const a = l;
298
+ s(n, {
295
299
  instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
296
300
  parentData: t,
297
301
  parentDataProperty: r,
298
302
  rootData: i,
299
303
  }) ||
300
- ((p = null === p ? n.errors : p.concat(n.errors)), (l = p.length)),
301
- (f = s === l),
304
+ ((p = null === p ? s.errors : p.concat(s.errors)), (l = p.length)),
305
+ (f = a === l),
302
306
  (c = c || f);
303
307
  }
304
308
  }
305
309
  if (!c) {
306
310
  const t = { params: {} };
307
- return null === p ? (p = [t]) : p.push(t), l++, (a.errors = p), !1;
311
+ return null === p ? (p = [t]) : p.push(t), l++, (o.errors = p), !1;
308
312
  }
309
313
  if (((l = u), null !== p && (u ? (p.length = u) : (p = null)), m !== l))
310
314
  break;
311
315
  }
312
316
  }
313
- return (a.errors = p), 0 === l;
317
+ return (o.errors = p), 0 === l;
314
318
  }
315
- function o(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
316
- let i = null, p = 0;
319
+ function i(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
320
+ let a = null, p = 0;
317
321
  const l = p;
318
322
  let f = !1;
319
323
  const m = p;
@@ -322,69 +326,69 @@ function o(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
322
326
  const r = t.length;
323
327
  for (let n = 0; n < r; n++) {
324
328
  let r = t[n];
325
- const o = p, l = p;
329
+ const i = p, l = p;
326
330
  let f = !1;
327
331
  const m = p;
328
332
  if (p == p)
329
333
  if ('string' == typeof r) {
330
334
  if (r.length < 1) {
331
335
  const t = { params: {} };
332
- null === i ? (i = [t]) : i.push(t), p++;
336
+ null === a ? (a = [t]) : a.push(t), p++;
333
337
  }
334
338
  }
335
339
  else {
336
340
  const t = { params: { type: 'string' } };
337
- null === i ? (i = [t]) : i.push(t), p++;
341
+ null === a ? (a = [t]) : a.push(t), p++;
338
342
  }
339
343
  var u = m === p;
340
344
  if (((f = f || u), !f)) {
341
- const o = p;
342
- a(r, {
345
+ const i = p;
346
+ o(r, {
343
347
  instancePath: e + '/' + n,
344
348
  parentData: t,
345
349
  parentDataProperty: n,
346
350
  rootData: s,
347
351
  }) ||
348
- ((i = null === i ? a.errors : i.concat(a.errors)), (p = i.length)),
349
- (u = o === p),
352
+ ((a = null === a ? o.errors : a.concat(o.errors)), (p = a.length)),
353
+ (u = i === p),
350
354
  (f = f || u);
351
355
  }
352
356
  if (f)
353
- (p = l), null !== i && (l ? (i.length = l) : (i = null));
357
+ (p = l), null !== a && (l ? (a.length = l) : (a = null));
354
358
  else {
355
359
  const t = { params: {} };
356
- null === i ? (i = [t]) : i.push(t), p++;
360
+ null === a ? (a = [t]) : a.push(t), p++;
357
361
  }
358
- if (o !== p)
362
+ if (i !== p)
359
363
  break;
360
364
  }
361
365
  }
362
366
  else {
363
367
  const t = { params: { type: 'array' } };
364
- null === i ? (i = [t]) : i.push(t), p++;
368
+ null === a ? (a = [t]) : a.push(t), p++;
365
369
  }
366
370
  var c = m === p;
367
371
  if (((f = f || c), !f)) {
368
- const o = p;
369
- a(t, {
372
+ const i = p;
373
+ o(t, {
370
374
  instancePath: e,
371
375
  parentData: r,
372
376
  parentDataProperty: n,
373
377
  rootData: s,
374
- }) || ((i = null === i ? a.errors : i.concat(a.errors)), (p = i.length)),
375
- (c = o === p),
378
+ }) || ((a = null === a ? o.errors : a.concat(o.errors)), (p = a.length)),
379
+ (c = i === p),
376
380
  (f = f || c);
377
381
  }
378
382
  if (!f) {
379
383
  const t = { params: {} };
380
- return null === i ? (i = [t]) : i.push(t), p++, (o.errors = i), !1;
384
+ return null === a ? (a = [t]) : a.push(t), p++, (i.errors = a), !1;
381
385
  }
382
386
  return ((p = l),
383
- null !== i && (l ? (i.length = l) : (i = null)),
384
- (o.errors = i),
387
+ null !== a && (l ? (a.length = l) : (a = null)),
388
+ (i.errors = a),
385
389
  0 === p);
386
390
  }
387
- const i = {
391
+ const p = {
388
392
  anyOf: [
389
393
  {
390
394
  enum: [
@@ -411,17 +415,17 @@ const i = {
411
415
  { type: 'string' },
412
416
  ],
413
417
  };
414
- function p(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
418
+ function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
415
419
  let a = null, o = 0;
416
420
  const i = o;
417
- let l = !1;
421
+ let p = !1;
418
422
  const f = o;
419
423
  if ('string' != typeof t) {
420
424
  const t = { params: { type: 'string' } };
421
425
  null === a ? (a = [t]) : a.push(t), o++;
422
426
  }
423
427
  var m = f === o;
424
- if (((l = l || m), !l)) {
428
+ if (((p = p || m), !p)) {
425
429
  const e = o;
426
430
  if (o == o)
427
431
  if (t && 'object' == typeof t && !Array.isArray(t)) {
@@ -487,23 +491,23 @@ function p(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
487
491
  const t = { params: { type: 'object' } };
488
492
  null === a ? (a = [t]) : a.push(t), o++;
489
493
  }
490
- (m = e === o), (l = l || m);
494
+ (m = e === o), (p = p || m);
491
495
  }
492
- if (!l) {
496
+ if (!p) {
493
497
  const t = { params: {} };
494
- return null === a ? (a = [t]) : a.push(t), o++, (p.errors = a), !1;
498
+ return null === a ? (a = [t]) : a.push(t), o++, (l.errors = a), !1;
495
499
  }
496
500
  return ((o = i),
497
501
  null !== a && (i ? (a.length = i) : (a = null)),
498
- (p.errors = a),
502
+ (l.errors = a),
499
503
  0 === o);
500
504
  }
501
- function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
505
+ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
502
506
  let a = null, o = 0;
503
507
  const i = o;
504
508
  let p = !1;
505
- const f = o;
506
- if (o === f)
509
+ const l = o;
510
+ if (o === l)
507
511
  if (Array.isArray(t))
508
512
  if (t.length < 1) {
509
513
  const t = { params: { limit: 1 } };
@@ -533,7 +537,7 @@ function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
533
537
  const t = { params: { type: 'array' } };
534
538
  null === a ? (a = [t]) : a.push(t), o++;
535
539
  }
536
- var m = f === o;
540
+ var m = l === o;
537
541
  if (((p = p || m), !p)) {
538
542
  const e = o;
539
543
  if (o === e)
@@ -665,22 +669,22 @@ function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
665
669
  }
666
670
  if (!p) {
667
671
  const t = { params: {} };
668
- return null === a ? (a = [t]) : a.push(t), o++, (l.errors = a), !1;
672
+ return null === a ? (a = [t]) : a.push(t), o++, (f.errors = a), !1;
669
673
  }
670
674
  return ((o = i),
671
675
  null !== a && (i ? (a.length = i) : (a = null)),
672
- (l.errors = a),
676
+ (f.errors = a),
673
677
  0 === o);
674
678
  }
675
- function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
679
+ function m(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
676
680
  let a = null, o = 0;
677
681
  if (0 === o) {
678
682
  if (!t || 'object' != typeof t || Array.isArray(t))
679
- return (f.errors = [{ params: { type: 'object' } }]), !1;
683
+ return (m.errors = [{ params: { type: 'object' } }]), !1;
680
684
  {
681
685
  let r;
682
686
  if (void 0 === t.type && (r = 'type'))
683
- return (f.errors = [{ params: { missingProperty: r } }]), !1;
687
+ return (m.errors = [{ params: { missingProperty: r } }]), !1;
684
688
  {
685
689
  const r = o;
686
690
  for (const e in t)
@@ -690,43 +694,43 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
690
694
  'name' !== e &&
691
695
  'type' !== e &&
692
696
  'umdNamedDefine' !== e)
693
- return (f.errors = [{ params: { additionalProperty: e } }]), !1;
697
+ return (m.errors = [{ params: { additionalProperty: e } }]), !1;
694
698
  if (r === o) {
695
699
  if (void 0 !== t.amdContainer) {
696
700
  let e = t.amdContainer;
697
701
  const r = o;
698
702
  if (o == o) {
699
703
  if ('string' != typeof e)
700
- return (f.errors = [{ params: { type: 'string' } }]), !1;
704
+ return (m.errors = [{ params: { type: 'string' } }]), !1;
701
705
  if (e.length < 1)
702
- return (f.errors = [{ params: {} }]), !1;
706
+ return (m.errors = [{ params: {} }]), !1;
703
707
  }
704
- var m = r === o;
708
+ var i = r === o;
705
709
  }
706
710
  else
707
- m = !0;
708
- if (m) {
711
+ i = !0;
712
+ if (i) {
709
713
  if (void 0 !== t.auxiliaryComment) {
710
714
  const r = o;
711
- p(t.auxiliaryComment, {
715
+ l(t.auxiliaryComment, {
712
716
  instancePath: e + '/auxiliaryComment',
713
717
  parentData: t,
714
718
  parentDataProperty: 'auxiliaryComment',
715
719
  rootData: s,
716
720
  }) ||
717
- ((a = null === a ? p.errors : a.concat(p.errors)),
721
+ ((a = null === a ? l.errors : a.concat(l.errors)),
718
722
  (o = a.length)),
719
- (m = r === o);
723
+ (i = r === o);
720
724
  }
721
725
  else
722
- m = !0;
723
- if (m) {
726
+ i = !0;
727
+ if (i) {
724
728
  if (void 0 !== t.export) {
725
729
  let e = t.export;
726
730
  const r = o, n = o;
727
731
  let s = !1;
728
- const i = o;
729
- if (o === i)
732
+ const p = o;
733
+ if (o === p)
730
734
  if (Array.isArray(e)) {
731
735
  const t = e.length;
732
736
  for (let r = 0; r < t; r++) {
@@ -751,7 +755,7 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
751
755
  const t = { params: { type: 'array' } };
752
756
  null === a ? (a = [t]) : a.push(t), o++;
753
757
  }
754
- var u = i === o;
758
+ var u = p === o;
755
759
  if (((s = s || u), !s)) {
756
760
  const t = o;
757
761
  if (o === t)
@@ -769,35 +773,35 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
769
773
  }
770
774
  if (!s) {
771
775
  const t = { params: {} };
772
- return (null === a ? (a = [t]) : a.push(t), o++, (f.errors = a), !1);
776
+ return (null === a ? (a = [t]) : a.push(t), o++, (m.errors = a), !1);
773
777
  }
774
778
  (o = n),
775
779
  null !== a && (n ? (a.length = n) : (a = null)),
776
- (m = r === o);
780
+ (i = r === o);
777
781
  }
778
782
  else
779
- m = !0;
780
- if (m) {
783
+ i = !0;
784
+ if (i) {
781
785
  if (void 0 !== t.name) {
782
786
  const r = o;
783
- l(t.name, {
787
+ f(t.name, {
784
788
  instancePath: e + '/name',
785
789
  parentData: t,
786
790
  parentDataProperty: 'name',
787
791
  rootData: s,
788
792
  }) ||
789
- ((a = null === a ? l.errors : a.concat(l.errors)),
793
+ ((a = null === a ? f.errors : a.concat(f.errors)),
790
794
  (o = a.length)),
791
- (m = r === o);
795
+ (i = r === o);
792
796
  }
793
797
  else
794
- m = !0;
795
- if (m) {
798
+ i = !0;
799
+ if (i) {
796
800
  if (void 0 !== t.type) {
797
801
  let e = t.type;
798
802
  const r = o, n = o;
799
803
  let s = !1;
800
- const p = o;
804
+ const l = o;
801
805
  if ('var' !== e &&
802
806
  'module' !== e &&
803
807
  'assign' !== e &&
@@ -816,10 +820,10 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
816
820
  'umd2' !== e &&
817
821
  'jsonp' !== e &&
818
822
  'system' !== e) {
819
- const t = { params: { allowedValues: i.anyOf[0].enum } };
823
+ const t = { params: { allowedValues: p.anyOf[0].enum } };
820
824
  null === a ? (a = [t]) : a.push(t), o++;
821
825
  }
822
- var c = p === o;
826
+ var c = l === o;
823
827
  if (((s = s || c), !s)) {
824
828
  const t = o;
825
829
  if ('string' != typeof e) {
@@ -832,24 +836,24 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
832
836
  const t = { params: {} };
833
837
  return (null === a ? (a = [t]) : a.push(t),
834
838
  o++,
835
- (f.errors = a),
839
+ (m.errors = a),
836
840
  !1);
837
841
  }
838
842
  (o = n),
839
843
  null !== a && (n ? (a.length = n) : (a = null)),
840
- (m = r === o);
844
+ (i = r === o);
841
845
  }
842
846
  else
843
- m = !0;
844
- if (m)
847
+ i = !0;
848
+ if (i)
845
849
  if (void 0 !== t.umdNamedDefine) {
846
850
  const e = o;
847
851
  if ('boolean' != typeof t.umdNamedDefine)
848
- return ((f.errors = [{ params: { type: 'boolean' } }]), !1);
849
- m = e === o;
852
+ return ((m.errors = [{ params: { type: 'boolean' } }]), !1);
853
+ i = e === o;
850
854
  }
851
855
  else
852
- m = !0;
856
+ i = !0;
853
857
  }
854
858
  }
855
859
  }
@@ -858,241 +862,280 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
858
862
  }
859
863
  }
860
864
  }
861
- return (f.errors = a), 0 === o;
865
+ return (m.errors = a), 0 === o;
862
866
  }
863
- function m(n, { instancePath: s = '', parentData: a, parentDataProperty: i, rootData: p = n, } = {}) {
864
- let l = null, u = 0;
865
- if (0 === u) {
866
- if (!n || 'object' != typeof n || Array.isArray(n))
867
- return (m.errors = [{ params: { type: 'object' } }]), !1;
867
+ function u(s, { instancePath: a = '', parentData: o, parentDataProperty: p, rootData: l = s, } = {}) {
868
+ let f = null, c = 0;
869
+ if (0 === c) {
870
+ if (!s || 'object' != typeof s || Array.isArray(s))
871
+ return (u.errors = [{ params: { type: 'object' } }]), !1;
868
872
  {
869
- let a;
870
- if ((void 0 === n.name && (a = 'name')) ||
871
- (void 0 === n.exposes && (a = 'exposes')))
872
- return (m.errors = [{ params: { missingProperty: a } }]), !1;
873
+ let o;
874
+ if ((void 0 === s.name && (o = 'name')) ||
875
+ (void 0 === s.exposes && (o = 'exposes')))
876
+ return (u.errors = [{ params: { missingProperty: o } }]), !1;
873
877
  {
874
- const a = u;
875
- for (const t in n)
876
- if ('exposes' !== t &&
877
- 'filename' !== t &&
878
- 'library' !== t &&
879
- 'name' !== t &&
880
- 'runtime' !== t &&
881
- 'runtimePlugins' !== t &&
882
- 'shareScope' !== t &&
883
- 'experiments' !== t)
884
- return (m.errors = [{ params: { additionalProperty: t } }]), !1;
885
- if (a === u) {
886
- if (void 0 !== n.exposes) {
887
- const t = u;
888
- o(n.exposes, {
889
- instancePath: s + '/exposes',
890
- parentData: n,
878
+ const o = c;
879
+ for (const t in s)
880
+ if (!n.call(e.properties, t))
881
+ return (u.errors = [{ params: { additionalProperty: t } }]), !1;
882
+ if (o === c) {
883
+ if (void 0 !== s.exposes) {
884
+ const t = c;
885
+ i(s.exposes, {
886
+ instancePath: a + '/exposes',
887
+ parentData: s,
891
888
  parentDataProperty: 'exposes',
892
- rootData: p,
889
+ rootData: l,
893
890
  }) ||
894
- ((l = null === l ? o.errors : l.concat(o.errors)),
895
- (u = l.length));
896
- var c = t === u;
891
+ ((f = null === f ? i.errors : f.concat(i.errors)),
892
+ (c = f.length));
893
+ var y = t === c;
897
894
  }
898
895
  else
899
- c = !0;
900
- if (c) {
901
- if (void 0 !== n.filename) {
902
- let e = n.filename;
903
- const r = u;
904
- if (u === r) {
896
+ y = !0;
897
+ if (y) {
898
+ if (void 0 !== s.filename) {
899
+ let e = s.filename;
900
+ const r = c;
901
+ if (c === r) {
905
902
  if ('string' != typeof e)
906
- return (m.errors = [{ params: { type: 'string' } }]), !1;
903
+ return (u.errors = [{ params: { type: 'string' } }]), !1;
907
904
  if (e.length < 1)
908
- return (m.errors = [{ params: {} }]), !1;
905
+ return (u.errors = [{ params: {} }]), !1;
909
906
  if (e.includes('!') || !1 !== t.test(e))
910
- return (m.errors = [{ params: {} }]), !1;
907
+ return (u.errors = [{ params: {} }]), !1;
911
908
  }
912
- c = r === u;
909
+ y = r === c;
913
910
  }
914
911
  else
915
- c = !0;
916
- if (c) {
917
- if (void 0 !== n.library) {
918
- const t = u;
919
- f(n.library, {
920
- instancePath: s + '/library',
921
- parentData: n,
912
+ y = !0;
913
+ if (y) {
914
+ if (void 0 !== s.library) {
915
+ const t = c;
916
+ m(s.library, {
917
+ instancePath: a + '/library',
918
+ parentData: s,
922
919
  parentDataProperty: 'library',
923
- rootData: p,
920
+ rootData: l,
924
921
  }) ||
925
- ((l = null === l ? f.errors : l.concat(f.errors)),
926
- (u = l.length)),
927
- (c = t === u);
922
+ ((f = null === f ? m.errors : f.concat(m.errors)),
923
+ (c = f.length)),
924
+ (y = t === c);
928
925
  }
929
926
  else
930
- c = !0;
931
- if (c) {
932
- if (void 0 !== n.name) {
933
- let t = n.name;
934
- const e = u;
935
- if (u === e) {
927
+ y = !0;
928
+ if (y) {
929
+ if (void 0 !== s.name) {
930
+ let t = s.name;
931
+ const e = c;
932
+ if (c === e) {
936
933
  if ('string' != typeof t)
937
- return (m.errors = [{ params: { type: 'string' } }]), !1;
934
+ return (u.errors = [{ params: { type: 'string' } }]), !1;
938
935
  if (t.length < 1)
939
- return (m.errors = [{ params: {} }]), !1;
936
+ return (u.errors = [{ params: {} }]), !1;
940
937
  }
941
- c = e === u;
938
+ y = e === c;
942
939
  }
943
940
  else
944
- c = !0;
945
- if (c) {
946
- if (void 0 !== n.runtime) {
947
- let t = n.runtime;
948
- const e = u, s = u;
941
+ y = !0;
942
+ if (y) {
943
+ if (void 0 !== s.runtime) {
944
+ let t = s.runtime;
945
+ const e = c, n = c;
949
946
  let a = !1;
950
- const o = u;
947
+ const o = c;
951
948
  if (!1 !== t) {
952
949
  const t = { params: { allowedValues: r.anyOf[0].enum } };
953
- null === l ? (l = [t]) : l.push(t), u++;
950
+ null === f ? (f = [t]) : f.push(t), c++;
954
951
  }
955
- var y = o === u;
956
- if (((a = a || y), !a)) {
957
- const e = u;
958
- if (u === e)
952
+ var g = o === c;
953
+ if (((a = a || g), !a)) {
954
+ const e = c;
955
+ if (c === e)
959
956
  if ('string' == typeof t) {
960
957
  if (t.length < 1) {
961
958
  const t = { params: {} };
962
- null === l ? (l = [t]) : l.push(t), u++;
959
+ null === f ? (f = [t]) : f.push(t), c++;
963
960
  }
964
961
  }
965
962
  else {
966
963
  const t = { params: { type: 'string' } };
967
- null === l ? (l = [t]) : l.push(t), u++;
964
+ null === f ? (f = [t]) : f.push(t), c++;
968
965
  }
969
- (y = e === u), (a = a || y);
966
+ (g = e === c), (a = a || g);
970
967
  }
971
968
  if (!a) {
972
969
  const t = { params: {} };
973
- return (null === l ? (l = [t]) : l.push(t),
974
- u++,
975
- (m.errors = l),
970
+ return (null === f ? (f = [t]) : f.push(t),
971
+ c++,
972
+ (u.errors = f),
976
973
  !1);
977
974
  }
978
- (u = s),
979
- null !== l && (s ? (l.length = s) : (l = null)),
980
- (c = e === u);
975
+ (c = n),
976
+ null !== f && (n ? (f.length = n) : (f = null)),
977
+ (y = e === c);
981
978
  }
982
979
  else
983
- c = !0;
984
- if (c) {
985
- if (void 0 !== n.runtimePlugins) {
986
- let t = n.runtimePlugins;
987
- const e = u;
988
- if (u == u) {
989
- if (!Array.isArray(t))
990
- return ((m.errors = [{ params: { type: 'array' } }]), !1);
991
- {
992
- const e = t.length;
993
- for (let r = 0; r < e; r++) {
994
- const e = u;
995
- if ('string' != typeof t[r])
996
- return ((m.errors = [{ params: { type: 'string' } }]),
997
- !1);
998
- if (e !== u)
999
- break;
980
+ y = !0;
981
+ if (y) {
982
+ if (void 0 !== s.shareScope) {
983
+ let t = s.shareScope;
984
+ const e = c, r = c;
985
+ let n = !1;
986
+ const a = c;
987
+ if (c === a)
988
+ if ('string' == typeof t) {
989
+ if (t.length < 1) {
990
+ const t = { params: {} };
991
+ null === f ? (f = [t]) : f.push(t), c++;
1000
992
  }
1001
993
  }
994
+ else {
995
+ const t = { params: { type: 'string' } };
996
+ null === f ? (f = [t]) : f.push(t), c++;
997
+ }
998
+ var h = a === c;
999
+ if (((n = n || h), !n)) {
1000
+ const e = c;
1001
+ if (c === e)
1002
+ if (Array.isArray(t)) {
1003
+ const e = t.length;
1004
+ for (let r = 0; r < e; r++) {
1005
+ let e = t[r];
1006
+ const n = c;
1007
+ if (c === n)
1008
+ if ('string' == typeof e) {
1009
+ if (e.length < 1) {
1010
+ const t = { params: {} };
1011
+ null === f ? (f = [t]) : f.push(t), c++;
1012
+ }
1013
+ }
1014
+ else {
1015
+ const t = { params: { type: 'string' } };
1016
+ null === f ? (f = [t]) : f.push(t), c++;
1017
+ }
1018
+ if (n !== c)
1019
+ break;
1020
+ }
1021
+ }
1022
+ else {
1023
+ const t = { params: { type: 'array' } };
1024
+ null === f ? (f = [t]) : f.push(t), c++;
1025
+ }
1026
+ (h = e === c), (n = n || h);
1002
1027
  }
1003
- c = e === u;
1028
+ if (!n) {
1029
+ const t = { params: {} };
1030
+ return (null === f ? (f = [t]) : f.push(t),
1031
+ c++,
1032
+ (u.errors = f),
1033
+ !1);
1034
+ }
1035
+ (c = r),
1036
+ null !== f && (r ? (f.length = r) : (f = null)),
1037
+ (y = e === c);
1004
1038
  }
1005
1039
  else
1006
- c = !0;
1007
- if (c) {
1008
- if (void 0 !== n.shareScope) {
1009
- let t = n.shareScope;
1010
- const e = u;
1011
- if (u === e) {
1012
- if ('string' != typeof t)
1013
- return ((m.errors = [{ params: { type: 'string' } }]), !1);
1014
- if (t.length < 1)
1015
- return (m.errors = [{ params: {} }]), !1;
1016
- }
1017
- c = e === u;
1018
- }
1019
- else
1020
- c = !0;
1021
- if (c)
1022
- if (void 0 !== n.experiments) {
1023
- let t = n.experiments;
1024
- const r = u;
1025
- if (u === r) {
1026
- if (!t || 'object' != typeof t || Array.isArray(t))
1027
- return ((m.errors = [{ params: { type: 'object' } }]),
1028
- !1);
1029
- {
1030
- const r = u;
1031
- for (const e in t)
1032
- if ('asyncStartup' !== e &&
1033
- 'externalRuntime' !== e)
1034
- return ((m.errors = [
1035
- { params: { additionalProperty: e } },
1040
+ y = !0;
1041
+ if (y) {
1042
+ if (void 0 !== s.experiments) {
1043
+ let t = s.experiments;
1044
+ const e = c;
1045
+ if (c === e) {
1046
+ if (!t || 'object' != typeof t || Array.isArray(t))
1047
+ return ((u.errors = [{ params: { type: 'object' } }]), !1);
1048
+ {
1049
+ const e = c;
1050
+ for (const e in t)
1051
+ if ('asyncStartup' !== e &&
1052
+ 'externalRuntime' !== e &&
1053
+ 'provideExternalRuntime' !== e)
1054
+ return ((u.errors = [
1055
+ { params: { additionalProperty: e } },
1056
+ ]),
1057
+ !1);
1058
+ if (e === c) {
1059
+ if (void 0 !== t.asyncStartup) {
1060
+ const e = c;
1061
+ if ('boolean' != typeof t.asyncStartup)
1062
+ return ((u.errors = [
1063
+ { params: { type: 'boolean' } },
1036
1064
  ]),
1037
1065
  !1);
1038
- if (r === u) {
1039
- if (void 0 !== t.asyncStartup) {
1040
- const e = u;
1041
- if ('boolean' != typeof t.asyncStartup)
1042
- return ((m.errors = [
1066
+ var d = e === c;
1067
+ }
1068
+ else
1069
+ d = !0;
1070
+ if (d) {
1071
+ if (void 0 !== t.externalRuntime) {
1072
+ const e = c;
1073
+ if ('boolean' != typeof t.externalRuntime)
1074
+ return ((u.errors = [
1043
1075
  { params: { type: 'boolean' } },
1044
1076
  ]),
1045
1077
  !1);
1046
- var g = e === u;
1078
+ d = e === c;
1047
1079
  }
1048
1080
  else
1049
- g = !0;
1050
- if (g)
1051
- if (void 0 !== t.externalRuntime) {
1052
- let r = t.externalRuntime;
1053
- const n = u, s = u;
1054
- let a = !1;
1055
- const o = u;
1056
- if ('boolean' != typeof r) {
1057
- const t = { params: { type: 'boolean' } };
1058
- null === l ? (l = [t]) : l.push(t), u++;
1059
- }
1060
- var d = o === u;
1061
- if (((a = a || d), !a)) {
1062
- const t = u;
1063
- if ('provide' !== r) {
1064
- const t = {
1065
- params: {
1066
- allowedValues: e.properties.experiments
1067
- .properties.externalRuntime
1068
- .anyOf[1].enum,
1069
- },
1070
- };
1071
- null === l ? (l = [t]) : l.push(t), u++;
1072
- }
1073
- (d = t === u), (a = a || d);
1074
- }
1075
- if (!a) {
1076
- const t = { params: {} };
1077
- return (null === l ? (l = [t]) : l.push(t),
1078
- u++,
1079
- (m.errors = l),
1081
+ d = !0;
1082
+ if (d)
1083
+ if (void 0 !== t.provideExternalRuntime) {
1084
+ const e = c;
1085
+ if ('boolean' !=
1086
+ typeof t.provideExternalRuntime)
1087
+ return ((u.errors = [
1088
+ { params: { type: 'boolean' } },
1089
+ ]),
1080
1090
  !1);
1081
- }
1082
- (u = s),
1083
- null !== l &&
1084
- (s ? (l.length = s) : (l = null)),
1085
- (g = n === u);
1091
+ d = e === c;
1086
1092
  }
1087
1093
  else
1088
- g = !0;
1094
+ d = !0;
1089
1095
  }
1090
1096
  }
1091
1097
  }
1092
- c = r === u;
1098
+ }
1099
+ y = e === c;
1100
+ }
1101
+ else
1102
+ y = !0;
1103
+ if (y) {
1104
+ if (void 0 !== s.dataPrefetch) {
1105
+ const t = c;
1106
+ if ('boolean' != typeof s.dataPrefetch)
1107
+ return ((u.errors = [{ params: { type: 'boolean' } }]), !1);
1108
+ y = t === c;
1093
1109
  }
1094
1110
  else
1095
- c = !0;
1111
+ y = !0;
1112
+ if (y)
1113
+ if (void 0 !== s.runtimePlugins) {
1114
+ let t = s.runtimePlugins;
1115
+ const e = c;
1116
+ if (c === e) {
1117
+ if (!Array.isArray(t))
1118
+ return ((u.errors = [{ params: { type: 'array' } }]),
1119
+ !1);
1120
+ {
1121
+ const e = t.length;
1122
+ for (let r = 0; r < e; r++) {
1123
+ const e = c;
1124
+ if ('string' != typeof t[r])
1125
+ return ((u.errors = [
1126
+ { params: { type: 'string' } },
1127
+ ]),
1128
+ !1);
1129
+ if (e !== c)
1130
+ break;
1131
+ }
1132
+ }
1133
+ }
1134
+ y = e === c;
1135
+ }
1136
+ else
1137
+ y = !0;
1138
+ }
1096
1139
  }
1097
1140
  }
1098
1141
  }
@@ -1103,6 +1146,6 @@ function m(n, { instancePath: s = '', parentData: a, parentDataProperty: i, root
1103
1146
  }
1104
1147
  }
1105
1148
  }
1106
- return (m.errors = l), 0 === u;
1149
+ return (u.errors = f), 0 === c;
1107
1150
  }
1108
1151
  //# sourceMappingURL=ContainerPlugin.check.js.map