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