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