@module-federation/enhanced 0.17.1 → 0.18.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 (49) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +29 -0
  3. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +10 -0
  4. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +23 -0
  5. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +18 -0
  6. package/dist/src/lib/container/ContainerPlugin.js +4 -0
  7. package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
  8. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +3 -1
  9. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +3 -1
  10. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
  11. package/dist/src/lib/sharing/ConsumeSharedModule.js +3 -1
  12. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  13. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +5 -2
  14. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +278 -107
  15. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  16. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +13 -0
  17. package/dist/src/lib/sharing/ProvideSharedPlugin.js +414 -76
  18. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  19. package/dist/src/lib/sharing/SharePlugin.js +15 -1
  20. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  21. package/dist/src/lib/sharing/resolveMatchedConfigs.js +7 -11
  22. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  23. package/dist/src/lib/sharing/utils.d.ts +7 -0
  24. package/dist/src/lib/sharing/utils.js +52 -0
  25. package/dist/src/lib/sharing/utils.js.map +1 -1
  26. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +492 -239
  27. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  28. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +56 -0
  29. package/dist/src/schemas/container/ModuleFederationPlugin.js +60 -0
  30. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  31. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +3 -3
  32. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +362 -117
  33. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  34. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +65 -0
  35. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +68 -0
  36. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  37. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +3 -3
  38. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +641 -352
  39. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  40. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +58 -0
  41. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +64 -0
  42. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  43. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +3 -3
  44. package/dist/src/schemas/sharing/SharePlugin.check.js +590 -282
  45. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  46. package/dist/src/schemas/sharing/SharePlugin.d.ts +82 -0
  47. package/dist/src/schemas/sharing/SharePlugin.js +86 -0
  48. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  49. package/package.json +13 -13
@@ -7,8 +7,8 @@ exports.validate = void 0;
7
7
  * This file was automatically generated.
8
8
  * DO NOT MODIFY BY HAND.
9
9
  */
10
- exports.validate = a;
11
- exports.default = a;
10
+ exports.validate = o;
11
+ exports.default = o;
12
12
  const r = {
13
13
  type: 'object',
14
14
  additionalProperties: !1,
@@ -31,32 +31,35 @@ const r = {
31
31
  request: { type: 'string', minLength: 1 },
32
32
  singleton: { type: 'boolean' },
33
33
  strictVersion: { type: 'boolean' },
34
+ exclude: { $ref: '#/definitions/IncludeExcludeOptions' },
35
+ include: { $ref: '#/definitions/IncludeExcludeOptions' },
36
+ nodeModulesReconstructedLookup: { type: 'boolean' },
34
37
  },
35
38
  }, e = Object.prototype.hasOwnProperty;
36
- function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, rootData: i = n, } = {}) {
39
+ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: a, rootData: i = s, } = {}) {
37
40
  let l = null, p = 0;
38
41
  if (0 === p) {
39
- if (!n || 'object' != typeof n || Array.isArray(n))
42
+ if (!s || 'object' != typeof s || Array.isArray(s))
40
43
  return (t.errors = [{ params: { type: 'object' } }]), !1;
41
44
  {
42
- const s = p;
43
- for (const s in n)
44
- if (!e.call(r.properties, s))
45
- return (t.errors = [{ params: { additionalProperty: s } }]), !1;
46
- if (s === p) {
47
- if (void 0 !== n.eager) {
45
+ const n = p;
46
+ for (const n in s)
47
+ if (!e.call(r.properties, n))
48
+ return (t.errors = [{ params: { additionalProperty: n } }]), !1;
49
+ if (n === p) {
50
+ if (void 0 !== s.eager) {
48
51
  const r = p;
49
- if ('boolean' != typeof n.eager)
52
+ if ('boolean' != typeof s.eager)
50
53
  return (t.errors = [{ params: { type: 'boolean' } }]), !1;
51
54
  var f = r === p;
52
55
  }
53
56
  else
54
57
  f = !0;
55
58
  if (f) {
56
- if (void 0 !== n.import) {
57
- let e = n.import;
58
- const s = p, a = p;
59
- let o = !1;
59
+ if (void 0 !== s.import) {
60
+ let e = s.import;
61
+ const n = p, o = p;
62
+ let a = !1;
60
63
  const i = p;
61
64
  if (!1 !== e) {
62
65
  const e = {
@@ -65,7 +68,7 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
65
68
  null === l ? (l = [e]) : l.push(e), p++;
66
69
  }
67
70
  var u = i === p;
68
- if (((o = o || u), !o)) {
71
+ if (((a = a || u), !a)) {
69
72
  const r = p;
70
73
  if (p == p)
71
74
  if ('string' == typeof e) {
@@ -78,21 +81,21 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
78
81
  const r = { params: { type: 'string' } };
79
82
  null === l ? (l = [r]) : l.push(r), p++;
80
83
  }
81
- (u = r === p), (o = o || u);
84
+ (u = r === p), (a = a || u);
82
85
  }
83
- if (!o) {
86
+ if (!a) {
84
87
  const r = { params: {} };
85
88
  return (null === l ? (l = [r]) : l.push(r), p++, (t.errors = l), !1);
86
89
  }
87
- (p = a),
88
- null !== l && (a ? (l.length = a) : (l = null)),
89
- (f = s === p);
90
+ (p = o),
91
+ null !== l && (o ? (l.length = o) : (l = null)),
92
+ (f = n === p);
90
93
  }
91
94
  else
92
95
  f = !0;
93
96
  if (f) {
94
- if (void 0 !== n.packageName) {
95
- let r = n.packageName;
97
+ if (void 0 !== s.packageName) {
98
+ let r = s.packageName;
96
99
  const e = p;
97
100
  if (p === e) {
98
101
  if ('string' != typeof r)
@@ -105,10 +108,10 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
105
108
  else
106
109
  f = !0;
107
110
  if (f) {
108
- if (void 0 !== n.requiredVersion) {
109
- let e = n.requiredVersion;
110
- const s = p, a = p;
111
- let o = !1;
111
+ if (void 0 !== s.requiredVersion) {
112
+ let e = s.requiredVersion;
113
+ const n = p, o = p;
114
+ let a = !1;
112
115
  const i = p;
113
116
  if (!1 !== e) {
114
117
  const e = {
@@ -119,27 +122,27 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
119
122
  null === l ? (l = [e]) : l.push(e), p++;
120
123
  }
121
124
  var c = i === p;
122
- if (((o = o || c), !o)) {
125
+ if (((a = a || c), !a)) {
123
126
  const r = p;
124
127
  if ('string' != typeof e) {
125
128
  const r = { params: { type: 'string' } };
126
129
  null === l ? (l = [r]) : l.push(r), p++;
127
130
  }
128
- (c = r === p), (o = o || c);
131
+ (c = r === p), (a = a || c);
129
132
  }
130
- if (!o) {
133
+ if (!a) {
131
134
  const r = { params: {} };
132
135
  return (null === l ? (l = [r]) : l.push(r), p++, (t.errors = l), !1);
133
136
  }
134
- (p = a),
135
- null !== l && (a ? (l.length = a) : (l = null)),
136
- (f = s === p);
137
+ (p = o),
138
+ null !== l && (o ? (l.length = o) : (l = null)),
139
+ (f = n === p);
137
140
  }
138
141
  else
139
142
  f = !0;
140
143
  if (f) {
141
- if (void 0 !== n.shareKey) {
142
- let r = n.shareKey;
144
+ if (void 0 !== s.shareKey) {
145
+ let r = s.shareKey;
143
146
  const e = p;
144
147
  if (p === e) {
145
148
  if ('string' != typeof r)
@@ -152,12 +155,12 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
152
155
  else
153
156
  f = !0;
154
157
  if (f) {
155
- if (void 0 !== n.shareScope) {
156
- let r = n.shareScope;
157
- const e = p, s = p;
158
- let a = !1;
159
- const o = p;
160
- if (p === o)
158
+ if (void 0 !== s.shareScope) {
159
+ let r = s.shareScope;
160
+ const e = p, n = p;
161
+ let o = !1;
162
+ const a = p;
163
+ if (p === a)
161
164
  if ('string' == typeof r) {
162
165
  if (r.length < 1) {
163
166
  const r = { params: {} };
@@ -168,16 +171,16 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
168
171
  const r = { params: { type: 'string' } };
169
172
  null === l ? (l = [r]) : l.push(r), p++;
170
173
  }
171
- var y = o === p;
172
- if (((a = a || y), !a)) {
174
+ var y = a === p;
175
+ if (((o = o || y), !o)) {
173
176
  const e = p;
174
177
  if (p === e)
175
178
  if (Array.isArray(r)) {
176
179
  const e = r.length;
177
180
  for (let t = 0; t < e; t++) {
178
181
  let e = r[t];
179
- const n = p;
180
- if (p === n)
182
+ const s = p;
183
+ if (p === s)
181
184
  if ('string' == typeof e) {
182
185
  if (e.length < 1) {
183
186
  const r = { params: {} };
@@ -188,7 +191,7 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
188
191
  const r = { params: { type: 'string' } };
189
192
  null === l ? (l = [r]) : l.push(r), p++;
190
193
  }
191
- if (n !== p)
194
+ if (s !== p)
192
195
  break;
193
196
  }
194
197
  }
@@ -196,24 +199,24 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
196
199
  const r = { params: { type: 'array' } };
197
200
  null === l ? (l = [r]) : l.push(r), p++;
198
201
  }
199
- (y = e === p), (a = a || y);
202
+ (y = e === p), (o = o || y);
200
203
  }
201
- if (!a) {
204
+ if (!o) {
202
205
  const r = { params: {} };
203
206
  return (null === l ? (l = [r]) : l.push(r),
204
207
  p++,
205
208
  (t.errors = l),
206
209
  !1);
207
210
  }
208
- (p = s),
209
- null !== l && (s ? (l.length = s) : (l = null)),
211
+ (p = n),
212
+ null !== l && (n ? (l.length = n) : (l = null)),
210
213
  (f = e === p);
211
214
  }
212
215
  else
213
216
  f = !0;
214
217
  if (f) {
215
- if (void 0 !== n.layer) {
216
- let r = n.layer;
218
+ if (void 0 !== s.layer) {
219
+ let r = s.layer;
217
220
  const e = p;
218
221
  if (p === e) {
219
222
  if ('string' != typeof r)
@@ -226,8 +229,8 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
226
229
  else
227
230
  f = !0;
228
231
  if (f) {
229
- if (void 0 !== n.issuerLayer) {
230
- let r = n.issuerLayer;
232
+ if (void 0 !== s.issuerLayer) {
233
+ let r = s.issuerLayer;
231
234
  const e = p;
232
235
  if (p === e) {
233
236
  if ('string' != typeof r)
@@ -240,8 +243,8 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
240
243
  else
241
244
  f = !0;
242
245
  if (f) {
243
- if (void 0 !== n.request) {
244
- let r = n.request;
246
+ if (void 0 !== s.request) {
247
+ let r = s.request;
245
248
  const e = p;
246
249
  if (p === e) {
247
250
  if ('string' != typeof r)
@@ -255,19 +258,19 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
255
258
  else
256
259
  f = !0;
257
260
  if (f) {
258
- if (void 0 !== n.singleton) {
261
+ if (void 0 !== s.singleton) {
259
262
  const r = p;
260
- if ('boolean' != typeof n.singleton)
263
+ if ('boolean' != typeof s.singleton)
261
264
  return ((t.errors = [{ params: { type: 'boolean' } }]),
262
265
  !1);
263
266
  f = r === p;
264
267
  }
265
268
  else
266
269
  f = !0;
267
- if (f)
268
- if (void 0 !== n.strictVersion) {
270
+ if (f) {
271
+ if (void 0 !== s.strictVersion) {
269
272
  const r = p;
270
- if ('boolean' != typeof n.strictVersion)
273
+ if ('boolean' != typeof s.strictVersion)
271
274
  return ((t.errors = [
272
275
  { params: { type: 'boolean' } },
273
276
  ]),
@@ -276,6 +279,224 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
276
279
  }
277
280
  else
278
281
  f = !0;
282
+ if (f) {
283
+ if (void 0 !== s.exclude) {
284
+ let r = s.exclude;
285
+ const e = p;
286
+ if (p == p) {
287
+ if (!r ||
288
+ 'object' != typeof r ||
289
+ Array.isArray(r))
290
+ return ((t.errors = [
291
+ { params: { type: 'object' } },
292
+ ]),
293
+ !1);
294
+ {
295
+ const e = p;
296
+ for (const e in r)
297
+ if ('request' !== e &&
298
+ 'version' !== e &&
299
+ 'fallbackVersion' !== e)
300
+ return ((t.errors = [
301
+ {
302
+ params: { additionalProperty: e },
303
+ },
304
+ ]),
305
+ !1);
306
+ if (e === p) {
307
+ if (void 0 !== r.request) {
308
+ let e = r.request;
309
+ const s = p, n = p;
310
+ let o = !1;
311
+ const a = p;
312
+ if ('string' != typeof e) {
313
+ const r = {
314
+ params: { type: 'string' },
315
+ };
316
+ null === l ? (l = [r]) : l.push(r),
317
+ p++;
318
+ }
319
+ var m = a === p;
320
+ if (((o = o || m), !o)) {
321
+ const r = p;
322
+ if (!(e instanceof RegExp)) {
323
+ const r = { params: {} };
324
+ null === l ? (l = [r]) : l.push(r),
325
+ p++;
326
+ }
327
+ (m = r === p), (o = o || m);
328
+ }
329
+ if (!o) {
330
+ const r = { params: {} };
331
+ return (null === l ? (l = [r]) : l.push(r),
332
+ p++,
333
+ (t.errors = l),
334
+ !1);
335
+ }
336
+ (p = n),
337
+ null !== l &&
338
+ (n ? (l.length = n) : (l = null));
339
+ var g = s === p;
340
+ }
341
+ else
342
+ g = !0;
343
+ if (g) {
344
+ if (void 0 !== r.version) {
345
+ const e = p;
346
+ if ('string' != typeof r.version)
347
+ return ((t.errors = [
348
+ { params: { type: 'string' } },
349
+ ]),
350
+ !1);
351
+ g = e === p;
352
+ }
353
+ else
354
+ g = !0;
355
+ if (g)
356
+ if (void 0 !== r.fallbackVersion) {
357
+ const e = p;
358
+ if ('string' !=
359
+ typeof r.fallbackVersion)
360
+ return ((t.errors = [
361
+ {
362
+ params: { type: 'string' },
363
+ },
364
+ ]),
365
+ !1);
366
+ g = e === p;
367
+ }
368
+ else
369
+ g = !0;
370
+ }
371
+ }
372
+ }
373
+ }
374
+ f = e === p;
375
+ }
376
+ else
377
+ f = !0;
378
+ if (f) {
379
+ if (void 0 !== s.include) {
380
+ let r = s.include;
381
+ const e = p;
382
+ if (p == p) {
383
+ if (!r ||
384
+ 'object' != typeof r ||
385
+ Array.isArray(r))
386
+ return ((t.errors = [
387
+ { params: { type: 'object' } },
388
+ ]),
389
+ !1);
390
+ {
391
+ const e = p;
392
+ for (const e in r)
393
+ if ('request' !== e &&
394
+ 'version' !== e &&
395
+ 'fallbackVersion' !== e)
396
+ return ((t.errors = [
397
+ {
398
+ params: {
399
+ additionalProperty: e,
400
+ },
401
+ },
402
+ ]),
403
+ !1);
404
+ if (e === p) {
405
+ if (void 0 !== r.request) {
406
+ let e = r.request;
407
+ const s = p, n = p;
408
+ let o = !1;
409
+ const a = p;
410
+ if ('string' != typeof e) {
411
+ const r = {
412
+ params: { type: 'string' },
413
+ };
414
+ null === l ? (l = [r]) : l.push(r),
415
+ p++;
416
+ }
417
+ var h = a === p;
418
+ if (((o = o || h), !o)) {
419
+ const r = p;
420
+ if (!(e instanceof RegExp)) {
421
+ const r = { params: {} };
422
+ null === l
423
+ ? (l = [r])
424
+ : l.push(r),
425
+ p++;
426
+ }
427
+ (h = r === p), (o = o || h);
428
+ }
429
+ if (!o) {
430
+ const r = { params: {} };
431
+ return (null === l
432
+ ? (l = [r])
433
+ : l.push(r),
434
+ p++,
435
+ (t.errors = l),
436
+ !1);
437
+ }
438
+ (p = n),
439
+ null !== l &&
440
+ (n ? (l.length = n) : (l = null));
441
+ var d = s === p;
442
+ }
443
+ else
444
+ d = !0;
445
+ if (d) {
446
+ if (void 0 !== r.version) {
447
+ const e = p;
448
+ if ('string' != typeof r.version)
449
+ return ((t.errors = [
450
+ {
451
+ params: { type: 'string' },
452
+ },
453
+ ]),
454
+ !1);
455
+ d = e === p;
456
+ }
457
+ else
458
+ d = !0;
459
+ if (d)
460
+ if (void 0 !== r.fallbackVersion) {
461
+ const e = p;
462
+ if ('string' !=
463
+ typeof r.fallbackVersion)
464
+ return ((t.errors = [
465
+ {
466
+ params: {
467
+ type: 'string',
468
+ },
469
+ },
470
+ ]),
471
+ !1);
472
+ d = e === p;
473
+ }
474
+ else
475
+ d = !0;
476
+ }
477
+ }
478
+ }
479
+ }
480
+ f = e === p;
481
+ }
482
+ else
483
+ f = !0;
484
+ if (f)
485
+ if (void 0 !== s.nodeModulesReconstructedLookup) {
486
+ const r = p;
487
+ if ('boolean' !=
488
+ typeof s.nodeModulesReconstructedLookup)
489
+ return ((t.errors = [
490
+ { params: { type: 'boolean' } },
491
+ ]),
492
+ !1);
493
+ f = r === p;
494
+ }
495
+ else
496
+ f = !0;
497
+ }
498
+ }
499
+ }
279
500
  }
280
501
  }
281
502
  }
@@ -290,28 +511,28 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
290
511
  }
291
512
  return (t.errors = l), 0 === p;
292
513
  }
293
- function n(r, { instancePath: e = '', parentData: s, parentDataProperty: a, rootData: o = r, } = {}) {
514
+ function s(r, { instancePath: e = '', parentData: n, parentDataProperty: o, rootData: a = r, } = {}) {
294
515
  let i = null, l = 0;
295
516
  if (0 === l) {
296
517
  if (!r || 'object' != typeof r || Array.isArray(r))
297
- return (n.errors = [{ params: { type: 'object' } }]), !1;
298
- for (const s in r) {
299
- let a = r[s];
518
+ return (s.errors = [{ params: { type: 'object' } }]), !1;
519
+ for (const n in r) {
520
+ let o = r[n];
300
521
  const f = l, u = l;
301
522
  let c = !1;
302
523
  const y = l;
303
- t(a, {
304
- instancePath: e + '/' + s.replace(/~/g, '~0').replace(/\//g, '~1'),
524
+ t(o, {
525
+ instancePath: e + '/' + n.replace(/~/g, '~0').replace(/\//g, '~1'),
305
526
  parentData: r,
306
- parentDataProperty: s,
307
- rootData: o,
527
+ parentDataProperty: n,
528
+ rootData: a,
308
529
  }) || ((i = null === i ? t.errors : i.concat(t.errors)), (l = i.length));
309
530
  var p = y === l;
310
531
  if (((c = c || p), !c)) {
311
532
  const r = l;
312
533
  if (l == l)
313
- if ('string' == typeof a) {
314
- if (a.length < 1) {
534
+ if ('string' == typeof o) {
535
+ if (o.length < 1) {
315
536
  const r = { params: {} };
316
537
  null === i ? (i = [r]) : i.push(r), l++;
317
538
  }
@@ -324,15 +545,15 @@ function n(r, { instancePath: e = '', parentData: s, parentDataProperty: a, root
324
545
  }
325
546
  if (!c) {
326
547
  const r = { params: {} };
327
- return null === i ? (i = [r]) : i.push(r), l++, (n.errors = i), !1;
548
+ return null === i ? (i = [r]) : i.push(r), l++, (s.errors = i), !1;
328
549
  }
329
550
  if (((l = u), null !== i && (u ? (i.length = u) : (i = null)), f !== l))
330
551
  break;
331
552
  }
332
553
  }
333
- return (n.errors = i), 0 === l;
554
+ return (s.errors = i), 0 === l;
334
555
  }
335
- function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, rootData: o = r, } = {}) {
556
+ function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, rootData: a = r, } = {}) {
336
557
  let i = null, l = 0;
337
558
  const p = l;
338
559
  let f = !1;
@@ -340,9 +561,9 @@ function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, root
340
561
  if (l === u)
341
562
  if (Array.isArray(r)) {
342
563
  const t = r.length;
343
- for (let s = 0; s < t; s++) {
344
- let t = r[s];
345
- const a = l, p = l;
564
+ for (let n = 0; n < t; n++) {
565
+ let t = r[n];
566
+ const o = l, p = l;
346
567
  let f = !1;
347
568
  const u = l;
348
569
  if (l == l)
@@ -358,15 +579,15 @@ function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, root
358
579
  }
359
580
  var c = u === l;
360
581
  if (((f = f || c), !f)) {
361
- const a = l;
362
- n(t, {
363
- instancePath: e + '/' + s,
582
+ const o = l;
583
+ s(t, {
584
+ instancePath: e + '/' + n,
364
585
  parentData: r,
365
- parentDataProperty: s,
366
- rootData: o,
586
+ parentDataProperty: n,
587
+ rootData: a,
367
588
  }) ||
368
- ((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
369
- (c = a === l),
589
+ ((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length)),
590
+ (c = o === l),
370
591
  (f = f || c);
371
592
  }
372
593
  if (f)
@@ -375,7 +596,7 @@ function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, root
375
596
  const r = { params: {} };
376
597
  null === i ? (i = [r]) : i.push(r), l++;
377
598
  }
378
- if (a !== l)
599
+ if (o !== l)
379
600
  break;
380
601
  }
381
602
  }
@@ -385,61 +606,61 @@ function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, root
385
606
  }
386
607
  var y = u === l;
387
608
  if (((f = f || y), !f)) {
388
- const s = l;
389
- n(r, {
609
+ const n = l;
610
+ s(r, {
390
611
  instancePath: e,
391
612
  parentData: t,
392
- parentDataProperty: a,
393
- rootData: o,
394
- }) || ((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
395
- (y = s === l),
613
+ parentDataProperty: o,
614
+ rootData: a,
615
+ }) || ((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length)),
616
+ (y = n === l),
396
617
  (f = f || y);
397
618
  }
398
619
  if (!f) {
399
620
  const r = { params: {} };
400
- return null === i ? (i = [r]) : i.push(r), l++, (s.errors = i), !1;
621
+ return null === i ? (i = [r]) : i.push(r), l++, (n.errors = i), !1;
401
622
  }
402
623
  return ((l = p),
403
624
  null !== i && (p ? (i.length = p) : (i = null)),
404
- (s.errors = i),
625
+ (n.errors = i),
405
626
  0 === l);
406
627
  }
407
- function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, rootData: o = r, } = {}) {
628
+ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData: a = r, } = {}) {
408
629
  let i = null, l = 0;
409
630
  if (0 === l) {
410
631
  if (!r || 'object' != typeof r || Array.isArray(r))
411
- return (a.errors = [{ params: { type: 'object' } }]), !1;
632
+ return (o.errors = [{ params: { type: 'object' } }]), !1;
412
633
  {
413
634
  let t;
414
635
  if (void 0 === r.consumes && (t = 'consumes'))
415
- return (a.errors = [{ params: { missingProperty: t } }]), !1;
636
+ return (o.errors = [{ params: { missingProperty: t } }]), !1;
416
637
  {
417
638
  const t = l;
418
639
  for (const e in r)
419
- if ('consumes' !== e && 'shareScope' !== e)
420
- return (a.errors = [{ params: { additionalProperty: e } }]), !1;
640
+ if ('consumes' !== e && 'shareScope' !== e && 'experiments' !== e)
641
+ return (o.errors = [{ params: { additionalProperty: e } }]), !1;
421
642
  if (t === l) {
422
643
  if (void 0 !== r.consumes) {
423
644
  const t = l;
424
- s(r.consumes, {
645
+ n(r.consumes, {
425
646
  instancePath: e + '/consumes',
426
647
  parentData: r,
427
648
  parentDataProperty: 'consumes',
428
- rootData: o,
649
+ rootData: a,
429
650
  }) ||
430
- ((i = null === i ? s.errors : i.concat(s.errors)),
651
+ ((i = null === i ? n.errors : i.concat(n.errors)),
431
652
  (l = i.length));
432
653
  var p = t === l;
433
654
  }
434
655
  else
435
656
  p = !0;
436
- if (p)
657
+ if (p) {
437
658
  if (void 0 !== r.shareScope) {
438
659
  let e = r.shareScope;
439
- const t = l, n = l;
440
- let s = !1;
441
- const o = l;
442
- if (l === o)
660
+ const t = l, s = l;
661
+ let n = !1;
662
+ const a = l;
663
+ if (l === a)
443
664
  if ('string' == typeof e) {
444
665
  if (e.length < 1) {
445
666
  const r = { params: {} };
@@ -450,16 +671,16 @@ function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, root
450
671
  const r = { params: { type: 'string' } };
451
672
  null === i ? (i = [r]) : i.push(r), l++;
452
673
  }
453
- var f = o === l;
454
- if (((s = s || f), !s)) {
674
+ var f = a === l;
675
+ if (((n = n || f), !n)) {
455
676
  const r = l;
456
677
  if (l === r)
457
678
  if (Array.isArray(e)) {
458
679
  const r = e.length;
459
680
  for (let t = 0; t < r; t++) {
460
681
  let r = e[t];
461
- const n = l;
462
- if (l === n)
682
+ const s = l;
683
+ if (l === s)
463
684
  if ('string' == typeof r) {
464
685
  if (r.length < 1) {
465
686
  const r = { params: {} };
@@ -470,7 +691,7 @@ function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, root
470
691
  const r = { params: { type: 'string' } };
471
692
  null === i ? (i = [r]) : i.push(r), l++;
472
693
  }
473
- if (n !== l)
694
+ if (s !== l)
474
695
  break;
475
696
  }
476
697
  }
@@ -478,22 +699,46 @@ function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, root
478
699
  const r = { params: { type: 'array' } };
479
700
  null === i ? (i = [r]) : i.push(r), l++;
480
701
  }
481
- (f = r === l), (s = s || f);
702
+ (f = r === l), (n = n || f);
482
703
  }
483
- if (!s) {
704
+ if (!n) {
484
705
  const r = { params: {} };
485
- return (null === i ? (i = [r]) : i.push(r), l++, (a.errors = i), !1);
706
+ return (null === i ? (i = [r]) : i.push(r), l++, (o.errors = i), !1);
486
707
  }
487
- (l = n),
488
- null !== i && (n ? (i.length = n) : (i = null)),
708
+ (l = s),
709
+ null !== i && (s ? (i.length = s) : (i = null)),
489
710
  (p = t === l);
490
711
  }
491
712
  else
492
713
  p = !0;
714
+ if (p)
715
+ if (void 0 !== r.experiments) {
716
+ let e = r.experiments;
717
+ const t = l;
718
+ if (l === t) {
719
+ if (!e || 'object' != typeof e || Array.isArray(e))
720
+ return (o.errors = [{ params: { type: 'object' } }]), !1;
721
+ {
722
+ const r = l;
723
+ for (const r in e)
724
+ if ('nodeModulesReconstructedLookup' !== r)
725
+ return ((o.errors = [{ params: { additionalProperty: r } }]),
726
+ !1);
727
+ if (r === l &&
728
+ void 0 !== e.nodeModulesReconstructedLookup &&
729
+ 'boolean' != typeof e.nodeModulesReconstructedLookup)
730
+ return (o.errors = [{ params: { type: 'boolean' } }]), !1;
731
+ }
732
+ }
733
+ p = t === l;
734
+ }
735
+ else
736
+ p = !0;
737
+ }
493
738
  }
494
739
  }
495
740
  }
496
741
  }
497
- return (a.errors = i), 0 === l;
742
+ return (o.errors = i), 0 === l;
498
743
  }
499
744
  //# sourceMappingURL=ConsumeSharedPlugin.check.js.map