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