@module-federation/enhanced 0.10.0 → 0.11.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.
- package/dist/package.json +1 -1
- package/dist/src/lib/container/ContainerEntryDependency.d.ts +1 -4
- package/dist/src/lib/container/ContainerEntryDependency.js +1 -3
- package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryModule.d.ts +1 -3
- package/dist/src/lib/container/ContainerEntryModule.js +4 -22
- package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryModuleFactory.js +1 -1
- package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -1
- package/dist/src/lib/container/ContainerPlugin.js +3 -5
- package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
- package/dist/src/lib/container/ModuleFederationPlugin.js +7 -5
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.d.ts +1 -0
- package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js +18 -2
- package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js.map +1 -1
- package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.d.ts +22 -0
- package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js +69 -5
- package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +1 -0
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +42 -55
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +11 -5
- package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -1
- package/dist/src/lib/startup/StartupHelpers.js +1 -0
- package/dist/src/lib/startup/StartupHelpers.js.map +1 -1
- package/dist/src/schemas/container/ContainerPlugin.check.d.ts +1 -1
- package/dist/src/schemas/container/ContainerPlugin.check.js +516 -544
- package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ContainerPlugin.d.ts +3 -6
- package/dist/src/schemas/container/ContainerPlugin.js +3 -9
- package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +0 -5
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +535 -604
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +3 -8
- package/dist/src/schemas/container/ModuleFederationPlugin.js +3 -11
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
- package/package.json +12 -12
- package/dist/src/lib/container/runtime/RemoteEntryPlugin.d.ts +0 -8
- package/dist/src/lib/container/runtime/RemoteEntryPlugin.js +0 -32
- package/dist/src/lib/container/runtime/RemoteEntryPlugin.js.map +0 -1
|
@@ -7,10 +7,10 @@ exports.validate = void 0;
|
|
|
7
7
|
* This file was automatically generated.
|
|
8
8
|
* DO NOT MODIFY BY HAND.
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
10
|
+
const t = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
|
|
11
11
|
exports.validate = m;
|
|
12
12
|
exports.default = m;
|
|
13
|
-
const
|
|
13
|
+
const e = {
|
|
14
14
|
definitions: {
|
|
15
15
|
RuntimePlugin: { type: 'array', items: { type: 'string' } },
|
|
16
16
|
AmdContainer: { type: 'string', minLength: 1 },
|
|
@@ -162,9 +162,7 @@ const t = {
|
|
|
162
162
|
experiments: {
|
|
163
163
|
type: 'object',
|
|
164
164
|
properties: {
|
|
165
|
-
|
|
166
|
-
anyOf: [{ type: 'boolean' }, { enum: ['hoisted'] }],
|
|
167
|
-
},
|
|
165
|
+
asyncStartup: { type: 'boolean' },
|
|
168
166
|
externalRuntime: {
|
|
169
167
|
anyOf: [{ type: 'boolean' }, { enum: ['provide'] }],
|
|
170
168
|
},
|
|
@@ -174,17 +172,17 @@ const t = {
|
|
|
174
172
|
},
|
|
175
173
|
required: ['name', 'exposes'],
|
|
176
174
|
}, r = { anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }] };
|
|
177
|
-
function n(
|
|
178
|
-
if (!Array.isArray(
|
|
175
|
+
function n(t, { instancePath: e = '', parentData: r, parentDataProperty: s, rootData: a = t, } = {}) {
|
|
176
|
+
if (!Array.isArray(t))
|
|
179
177
|
return (n.errors = [{ params: { type: 'array' } }]), !1;
|
|
180
178
|
{
|
|
181
|
-
const
|
|
182
|
-
for (let r = 0; r <
|
|
183
|
-
let
|
|
179
|
+
const e = t.length;
|
|
180
|
+
for (let r = 0; r < e; r++) {
|
|
181
|
+
let e = t[r];
|
|
184
182
|
const s = 0;
|
|
185
|
-
if ('string' != typeof
|
|
183
|
+
if ('string' != typeof e)
|
|
186
184
|
return (n.errors = [{ params: { type: 'string' } }]), !1;
|
|
187
|
-
if (
|
|
185
|
+
if (e.length < 1)
|
|
188
186
|
return (n.errors = [{ params: {} }]), !1;
|
|
189
187
|
if (0 !== s)
|
|
190
188
|
break;
|
|
@@ -192,66 +190,66 @@ function n(e, { instancePath: t = '', parentData: r, parentDataProperty: s, root
|
|
|
192
190
|
}
|
|
193
191
|
return (n.errors = null), !0;
|
|
194
192
|
}
|
|
195
|
-
function s(
|
|
196
|
-
let i = null,
|
|
197
|
-
if (0 ===
|
|
198
|
-
if (!
|
|
193
|
+
function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, rootData: o = t, } = {}) {
|
|
194
|
+
let i = null, p = 0;
|
|
195
|
+
if (0 === p) {
|
|
196
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
199
197
|
return (s.errors = [{ params: { type: 'object' } }]), !1;
|
|
200
198
|
{
|
|
201
199
|
let r;
|
|
202
|
-
if (void 0 ===
|
|
200
|
+
if (void 0 === t.import && (r = 'import'))
|
|
203
201
|
return (s.errors = [{ params: { missingProperty: r } }]), !1;
|
|
204
202
|
{
|
|
205
|
-
const r =
|
|
206
|
-
for (const
|
|
207
|
-
if ('import' !==
|
|
208
|
-
return (s.errors = [{ params: { additionalProperty:
|
|
209
|
-
if (r ===
|
|
210
|
-
if (void 0 !==
|
|
211
|
-
let r =
|
|
212
|
-
const
|
|
203
|
+
const r = p;
|
|
204
|
+
for (const e in t)
|
|
205
|
+
if ('import' !== e && 'name' !== e)
|
|
206
|
+
return (s.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
207
|
+
if (r === p) {
|
|
208
|
+
if (void 0 !== t.import) {
|
|
209
|
+
let r = t.import;
|
|
210
|
+
const a = p, m = p;
|
|
213
211
|
let u = !1;
|
|
214
|
-
const c =
|
|
215
|
-
if (
|
|
212
|
+
const c = p;
|
|
213
|
+
if (p == p)
|
|
216
214
|
if ('string' == typeof r) {
|
|
217
215
|
if (r.length < 1) {
|
|
218
|
-
const
|
|
219
|
-
null === i ? (i = [
|
|
216
|
+
const t = { params: {} };
|
|
217
|
+
null === i ? (i = [t]) : i.push(t), p++;
|
|
220
218
|
}
|
|
221
219
|
}
|
|
222
220
|
else {
|
|
223
|
-
const
|
|
224
|
-
null === i ? (i = [
|
|
221
|
+
const t = { params: { type: 'string' } };
|
|
222
|
+
null === i ? (i = [t]) : i.push(t), p++;
|
|
225
223
|
}
|
|
226
|
-
var
|
|
227
|
-
if (((u = u ||
|
|
228
|
-
const s =
|
|
224
|
+
var l = c === p;
|
|
225
|
+
if (((u = u || l), !u)) {
|
|
226
|
+
const s = p;
|
|
229
227
|
n(r, {
|
|
230
|
-
instancePath:
|
|
231
|
-
parentData:
|
|
228
|
+
instancePath: e + '/import',
|
|
229
|
+
parentData: t,
|
|
232
230
|
parentDataProperty: 'import',
|
|
233
|
-
rootData:
|
|
231
|
+
rootData: o,
|
|
234
232
|
}) ||
|
|
235
233
|
((i = null === i ? n.errors : i.concat(n.errors)),
|
|
236
|
-
(
|
|
237
|
-
(
|
|
238
|
-
(u = u ||
|
|
234
|
+
(p = i.length)),
|
|
235
|
+
(l = s === p),
|
|
236
|
+
(u = u || l);
|
|
239
237
|
}
|
|
240
238
|
if (!u) {
|
|
241
|
-
const
|
|
242
|
-
return (null === i ? (i = [
|
|
239
|
+
const t = { params: {} };
|
|
240
|
+
return (null === i ? (i = [t]) : i.push(t), p++, (s.errors = i), !1);
|
|
243
241
|
}
|
|
244
|
-
(
|
|
245
|
-
var f =
|
|
242
|
+
(p = m), null !== i && (m ? (i.length = m) : (i = null));
|
|
243
|
+
var f = a === p;
|
|
246
244
|
}
|
|
247
245
|
else
|
|
248
246
|
f = !0;
|
|
249
247
|
if (f)
|
|
250
|
-
if (void 0 !==
|
|
251
|
-
const
|
|
252
|
-
if ('string' != typeof
|
|
248
|
+
if (void 0 !== t.name) {
|
|
249
|
+
const e = p;
|
|
250
|
+
if ('string' != typeof t.name)
|
|
253
251
|
return (s.errors = [{ params: { type: 'string' } }]), !1;
|
|
254
|
-
f =
|
|
252
|
+
f = e === p;
|
|
255
253
|
}
|
|
256
254
|
else
|
|
257
255
|
f = !0;
|
|
@@ -259,132 +257,132 @@ function s(e, { instancePath: t = '', parentData: r, parentDataProperty: o, root
|
|
|
259
257
|
}
|
|
260
258
|
}
|
|
261
259
|
}
|
|
262
|
-
return (s.errors = i), 0 ===
|
|
260
|
+
return (s.errors = i), 0 === p;
|
|
263
261
|
}
|
|
264
|
-
function
|
|
265
|
-
let
|
|
266
|
-
if (0 ===
|
|
267
|
-
if (!
|
|
268
|
-
return (
|
|
269
|
-
for (const r in
|
|
270
|
-
let
|
|
271
|
-
const m =
|
|
262
|
+
function a(t, { instancePath: e = '', parentData: r, parentDataProperty: o, rootData: i = t, } = {}) {
|
|
263
|
+
let p = null, l = 0;
|
|
264
|
+
if (0 === l) {
|
|
265
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
266
|
+
return (a.errors = [{ params: { type: 'object' } }]), !1;
|
|
267
|
+
for (const r in t) {
|
|
268
|
+
let o = t[r];
|
|
269
|
+
const m = l, u = l;
|
|
272
270
|
let c = !1;
|
|
273
|
-
const y =
|
|
274
|
-
s(
|
|
275
|
-
instancePath:
|
|
276
|
-
parentData:
|
|
271
|
+
const y = l;
|
|
272
|
+
s(o, {
|
|
273
|
+
instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
274
|
+
parentData: t,
|
|
277
275
|
parentDataProperty: r,
|
|
278
276
|
rootData: i,
|
|
279
|
-
}) || ((
|
|
280
|
-
var f = y ===
|
|
277
|
+
}) || ((p = null === p ? s.errors : p.concat(s.errors)), (l = p.length));
|
|
278
|
+
var f = y === l;
|
|
281
279
|
if (((c = c || f), !c)) {
|
|
282
|
-
const s =
|
|
283
|
-
if (
|
|
284
|
-
if ('string' == typeof
|
|
285
|
-
if (
|
|
286
|
-
const
|
|
287
|
-
null ===
|
|
280
|
+
const s = l;
|
|
281
|
+
if (l == l)
|
|
282
|
+
if ('string' == typeof o) {
|
|
283
|
+
if (o.length < 1) {
|
|
284
|
+
const t = { params: {} };
|
|
285
|
+
null === p ? (p = [t]) : p.push(t), l++;
|
|
288
286
|
}
|
|
289
287
|
}
|
|
290
288
|
else {
|
|
291
|
-
const
|
|
292
|
-
null ===
|
|
289
|
+
const t = { params: { type: 'string' } };
|
|
290
|
+
null === p ? (p = [t]) : p.push(t), l++;
|
|
293
291
|
}
|
|
294
|
-
if (((f = s ===
|
|
295
|
-
const s =
|
|
296
|
-
n(
|
|
297
|
-
instancePath:
|
|
298
|
-
parentData:
|
|
292
|
+
if (((f = s === l), (c = c || f), !c)) {
|
|
293
|
+
const s = l;
|
|
294
|
+
n(o, {
|
|
295
|
+
instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
296
|
+
parentData: t,
|
|
299
297
|
parentDataProperty: r,
|
|
300
298
|
rootData: i,
|
|
301
299
|
}) ||
|
|
302
|
-
((
|
|
303
|
-
(f = s ===
|
|
300
|
+
((p = null === p ? n.errors : p.concat(n.errors)), (l = p.length)),
|
|
301
|
+
(f = s === l),
|
|
304
302
|
(c = c || f);
|
|
305
303
|
}
|
|
306
304
|
}
|
|
307
305
|
if (!c) {
|
|
308
|
-
const
|
|
309
|
-
return null ===
|
|
306
|
+
const t = { params: {} };
|
|
307
|
+
return null === p ? (p = [t]) : p.push(t), l++, (a.errors = p), !1;
|
|
310
308
|
}
|
|
311
|
-
if (((
|
|
309
|
+
if (((l = u), null !== p && (u ? (p.length = u) : (p = null)), m !== l))
|
|
312
310
|
break;
|
|
313
311
|
}
|
|
314
312
|
}
|
|
315
|
-
return (
|
|
313
|
+
return (a.errors = p), 0 === l;
|
|
316
314
|
}
|
|
317
|
-
function
|
|
318
|
-
let i = null,
|
|
319
|
-
const
|
|
315
|
+
function o(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
316
|
+
let i = null, p = 0;
|
|
317
|
+
const l = p;
|
|
320
318
|
let f = !1;
|
|
321
|
-
const m =
|
|
322
|
-
if (
|
|
323
|
-
if (Array.isArray(
|
|
324
|
-
const r =
|
|
319
|
+
const m = p;
|
|
320
|
+
if (p === m)
|
|
321
|
+
if (Array.isArray(t)) {
|
|
322
|
+
const r = t.length;
|
|
325
323
|
for (let n = 0; n < r; n++) {
|
|
326
|
-
let r =
|
|
327
|
-
const
|
|
324
|
+
let r = t[n];
|
|
325
|
+
const o = p, l = p;
|
|
328
326
|
let f = !1;
|
|
329
|
-
const m =
|
|
330
|
-
if (
|
|
327
|
+
const m = p;
|
|
328
|
+
if (p == p)
|
|
331
329
|
if ('string' == typeof r) {
|
|
332
330
|
if (r.length < 1) {
|
|
333
|
-
const
|
|
334
|
-
null === i ? (i = [
|
|
331
|
+
const t = { params: {} };
|
|
332
|
+
null === i ? (i = [t]) : i.push(t), p++;
|
|
335
333
|
}
|
|
336
334
|
}
|
|
337
335
|
else {
|
|
338
|
-
const
|
|
339
|
-
null === i ? (i = [
|
|
336
|
+
const t = { params: { type: 'string' } };
|
|
337
|
+
null === i ? (i = [t]) : i.push(t), p++;
|
|
340
338
|
}
|
|
341
|
-
var u = m ===
|
|
339
|
+
var u = m === p;
|
|
342
340
|
if (((f = f || u), !f)) {
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
instancePath:
|
|
346
|
-
parentData:
|
|
341
|
+
const o = p;
|
|
342
|
+
a(r, {
|
|
343
|
+
instancePath: e + '/' + n,
|
|
344
|
+
parentData: t,
|
|
347
345
|
parentDataProperty: n,
|
|
348
346
|
rootData: s,
|
|
349
347
|
}) ||
|
|
350
|
-
((i = null === i ?
|
|
351
|
-
(u =
|
|
348
|
+
((i = null === i ? a.errors : i.concat(a.errors)), (p = i.length)),
|
|
349
|
+
(u = o === p),
|
|
352
350
|
(f = f || u);
|
|
353
351
|
}
|
|
354
352
|
if (f)
|
|
355
|
-
(
|
|
353
|
+
(p = l), null !== i && (l ? (i.length = l) : (i = null));
|
|
356
354
|
else {
|
|
357
|
-
const
|
|
358
|
-
null === i ? (i = [
|
|
355
|
+
const t = { params: {} };
|
|
356
|
+
null === i ? (i = [t]) : i.push(t), p++;
|
|
359
357
|
}
|
|
360
|
-
if (
|
|
358
|
+
if (o !== p)
|
|
361
359
|
break;
|
|
362
360
|
}
|
|
363
361
|
}
|
|
364
362
|
else {
|
|
365
|
-
const
|
|
366
|
-
null === i ? (i = [
|
|
363
|
+
const t = { params: { type: 'array' } };
|
|
364
|
+
null === i ? (i = [t]) : i.push(t), p++;
|
|
367
365
|
}
|
|
368
|
-
var c = m ===
|
|
366
|
+
var c = m === p;
|
|
369
367
|
if (((f = f || c), !f)) {
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
instancePath:
|
|
368
|
+
const o = p;
|
|
369
|
+
a(t, {
|
|
370
|
+
instancePath: e,
|
|
373
371
|
parentData: r,
|
|
374
372
|
parentDataProperty: n,
|
|
375
373
|
rootData: s,
|
|
376
|
-
}) || ((i = null === i ?
|
|
377
|
-
(c =
|
|
374
|
+
}) || ((i = null === i ? a.errors : i.concat(a.errors)), (p = i.length)),
|
|
375
|
+
(c = o === p),
|
|
378
376
|
(f = f || c);
|
|
379
377
|
}
|
|
380
378
|
if (!f) {
|
|
381
|
-
const
|
|
382
|
-
return null === i ? (i = [
|
|
379
|
+
const t = { params: {} };
|
|
380
|
+
return null === i ? (i = [t]) : i.push(t), p++, (o.errors = i), !1;
|
|
383
381
|
}
|
|
384
|
-
return ((
|
|
385
|
-
null !== i && (
|
|
386
|
-
(
|
|
387
|
-
0 ===
|
|
382
|
+
return ((p = l),
|
|
383
|
+
null !== i && (l ? (i.length = l) : (i = null)),
|
|
384
|
+
(o.errors = i),
|
|
385
|
+
0 === p);
|
|
388
386
|
}
|
|
389
387
|
const i = {
|
|
390
388
|
anyOf: [
|
|
@@ -413,71 +411,71 @@ const i = {
|
|
|
413
411
|
{ type: 'string' },
|
|
414
412
|
],
|
|
415
413
|
};
|
|
416
|
-
function
|
|
417
|
-
let
|
|
418
|
-
const i =
|
|
419
|
-
let
|
|
420
|
-
const f =
|
|
421
|
-
if ('string' != typeof
|
|
422
|
-
const
|
|
423
|
-
null ===
|
|
414
|
+
function p(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
415
|
+
let a = null, o = 0;
|
|
416
|
+
const i = o;
|
|
417
|
+
let l = !1;
|
|
418
|
+
const f = o;
|
|
419
|
+
if ('string' != typeof t) {
|
|
420
|
+
const t = { params: { type: 'string' } };
|
|
421
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
424
422
|
}
|
|
425
|
-
var m = f ===
|
|
426
|
-
if (((
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
if (
|
|
430
|
-
const
|
|
431
|
-
for (const
|
|
432
|
-
if ('amd' !==
|
|
433
|
-
'commonjs' !==
|
|
434
|
-
'commonjs2' !==
|
|
435
|
-
'root' !==
|
|
436
|
-
const
|
|
437
|
-
null ===
|
|
423
|
+
var m = f === o;
|
|
424
|
+
if (((l = l || m), !l)) {
|
|
425
|
+
const e = o;
|
|
426
|
+
if (o == o)
|
|
427
|
+
if (t && 'object' == typeof t && !Array.isArray(t)) {
|
|
428
|
+
const e = o;
|
|
429
|
+
for (const e in t)
|
|
430
|
+
if ('amd' !== e &&
|
|
431
|
+
'commonjs' !== e &&
|
|
432
|
+
'commonjs2' !== e &&
|
|
433
|
+
'root' !== e) {
|
|
434
|
+
const t = { params: { additionalProperty: e } };
|
|
435
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
438
436
|
break;
|
|
439
437
|
}
|
|
440
|
-
if (
|
|
441
|
-
if (void 0 !==
|
|
442
|
-
const
|
|
443
|
-
if ('string' != typeof
|
|
444
|
-
const
|
|
445
|
-
null ===
|
|
438
|
+
if (e === o) {
|
|
439
|
+
if (void 0 !== t.amd) {
|
|
440
|
+
const e = o;
|
|
441
|
+
if ('string' != typeof t.amd) {
|
|
442
|
+
const t = { params: { type: 'string' } };
|
|
443
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
446
444
|
}
|
|
447
|
-
var u =
|
|
445
|
+
var u = e === o;
|
|
448
446
|
}
|
|
449
447
|
else
|
|
450
448
|
u = !0;
|
|
451
449
|
if (u) {
|
|
452
|
-
if (void 0 !==
|
|
453
|
-
const
|
|
454
|
-
if ('string' != typeof
|
|
455
|
-
const
|
|
456
|
-
null ===
|
|
450
|
+
if (void 0 !== t.commonjs) {
|
|
451
|
+
const e = o;
|
|
452
|
+
if ('string' != typeof t.commonjs) {
|
|
453
|
+
const t = { params: { type: 'string' } };
|
|
454
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
457
455
|
}
|
|
458
|
-
u =
|
|
456
|
+
u = e === o;
|
|
459
457
|
}
|
|
460
458
|
else
|
|
461
459
|
u = !0;
|
|
462
460
|
if (u) {
|
|
463
|
-
if (void 0 !==
|
|
464
|
-
const
|
|
465
|
-
if ('string' != typeof
|
|
466
|
-
const
|
|
467
|
-
null ===
|
|
461
|
+
if (void 0 !== t.commonjs2) {
|
|
462
|
+
const e = o;
|
|
463
|
+
if ('string' != typeof t.commonjs2) {
|
|
464
|
+
const t = { params: { type: 'string' } };
|
|
465
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
468
466
|
}
|
|
469
|
-
u =
|
|
467
|
+
u = e === o;
|
|
470
468
|
}
|
|
471
469
|
else
|
|
472
470
|
u = !0;
|
|
473
471
|
if (u)
|
|
474
|
-
if (void 0 !==
|
|
475
|
-
const
|
|
476
|
-
if ('string' != typeof
|
|
477
|
-
const
|
|
478
|
-
null ===
|
|
472
|
+
if (void 0 !== t.root) {
|
|
473
|
+
const e = o;
|
|
474
|
+
if ('string' != typeof t.root) {
|
|
475
|
+
const t = { params: { type: 'string' } };
|
|
476
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
479
477
|
}
|
|
480
|
-
u =
|
|
478
|
+
u = e === o;
|
|
481
479
|
}
|
|
482
480
|
else
|
|
483
481
|
u = !0;
|
|
@@ -486,172 +484,172 @@ function l(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
|
|
|
486
484
|
}
|
|
487
485
|
}
|
|
488
486
|
else {
|
|
489
|
-
const
|
|
490
|
-
null ===
|
|
487
|
+
const t = { params: { type: 'object' } };
|
|
488
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
491
489
|
}
|
|
492
|
-
(m =
|
|
490
|
+
(m = e === o), (l = l || m);
|
|
493
491
|
}
|
|
494
|
-
if (!
|
|
495
|
-
const
|
|
496
|
-
return null ===
|
|
492
|
+
if (!l) {
|
|
493
|
+
const t = { params: {} };
|
|
494
|
+
return null === a ? (a = [t]) : a.push(t), o++, (p.errors = a), !1;
|
|
497
495
|
}
|
|
498
|
-
return ((
|
|
499
|
-
null !==
|
|
500
|
-
(
|
|
501
|
-
0 ===
|
|
496
|
+
return ((o = i),
|
|
497
|
+
null !== a && (i ? (a.length = i) : (a = null)),
|
|
498
|
+
(p.errors = a),
|
|
499
|
+
0 === o);
|
|
502
500
|
}
|
|
503
|
-
function
|
|
504
|
-
let
|
|
505
|
-
const i =
|
|
506
|
-
let
|
|
507
|
-
const f =
|
|
508
|
-
if (
|
|
509
|
-
if (Array.isArray(
|
|
510
|
-
if (
|
|
511
|
-
const
|
|
512
|
-
null ===
|
|
501
|
+
function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
502
|
+
let a = null, o = 0;
|
|
503
|
+
const i = o;
|
|
504
|
+
let p = !1;
|
|
505
|
+
const f = o;
|
|
506
|
+
if (o === f)
|
|
507
|
+
if (Array.isArray(t))
|
|
508
|
+
if (t.length < 1) {
|
|
509
|
+
const t = { params: { limit: 1 } };
|
|
510
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
513
511
|
}
|
|
514
512
|
else {
|
|
515
|
-
const
|
|
516
|
-
for (let r = 0; r <
|
|
517
|
-
let
|
|
518
|
-
const n =
|
|
519
|
-
if (
|
|
520
|
-
if ('string' == typeof
|
|
521
|
-
if (
|
|
522
|
-
const
|
|
523
|
-
null ===
|
|
513
|
+
const e = t.length;
|
|
514
|
+
for (let r = 0; r < e; r++) {
|
|
515
|
+
let e = t[r];
|
|
516
|
+
const n = o;
|
|
517
|
+
if (o === n)
|
|
518
|
+
if ('string' == typeof e) {
|
|
519
|
+
if (e.length < 1) {
|
|
520
|
+
const t = { params: {} };
|
|
521
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
524
522
|
}
|
|
525
523
|
}
|
|
526
524
|
else {
|
|
527
|
-
const
|
|
528
|
-
null ===
|
|
525
|
+
const t = { params: { type: 'string' } };
|
|
526
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
529
527
|
}
|
|
530
|
-
if (n !==
|
|
528
|
+
if (n !== o)
|
|
531
529
|
break;
|
|
532
530
|
}
|
|
533
531
|
}
|
|
534
532
|
else {
|
|
535
|
-
const
|
|
536
|
-
null ===
|
|
533
|
+
const t = { params: { type: 'array' } };
|
|
534
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
537
535
|
}
|
|
538
|
-
var m = f ===
|
|
539
|
-
if (((
|
|
540
|
-
const
|
|
541
|
-
if (
|
|
542
|
-
if ('string' == typeof
|
|
543
|
-
if (
|
|
544
|
-
const
|
|
545
|
-
null ===
|
|
536
|
+
var m = f === o;
|
|
537
|
+
if (((p = p || m), !p)) {
|
|
538
|
+
const e = o;
|
|
539
|
+
if (o === e)
|
|
540
|
+
if ('string' == typeof t) {
|
|
541
|
+
if (t.length < 1) {
|
|
542
|
+
const t = { params: {} };
|
|
543
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
546
544
|
}
|
|
547
545
|
}
|
|
548
546
|
else {
|
|
549
|
-
const
|
|
550
|
-
null ===
|
|
547
|
+
const t = { params: { type: 'string' } };
|
|
548
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
551
549
|
}
|
|
552
|
-
if (((m =
|
|
553
|
-
const
|
|
554
|
-
if (
|
|
555
|
-
if (
|
|
556
|
-
const
|
|
557
|
-
for (const
|
|
558
|
-
if ('amd' !==
|
|
559
|
-
const
|
|
560
|
-
null ===
|
|
550
|
+
if (((m = e === o), (p = p || m), !p)) {
|
|
551
|
+
const e = o;
|
|
552
|
+
if (o == o)
|
|
553
|
+
if (t && 'object' == typeof t && !Array.isArray(t)) {
|
|
554
|
+
const e = o;
|
|
555
|
+
for (const e in t)
|
|
556
|
+
if ('amd' !== e && 'commonjs' !== e && 'root' !== e) {
|
|
557
|
+
const t = { params: { additionalProperty: e } };
|
|
558
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
561
559
|
break;
|
|
562
560
|
}
|
|
563
|
-
if (
|
|
564
|
-
if (void 0 !==
|
|
565
|
-
let
|
|
566
|
-
const r =
|
|
567
|
-
if (
|
|
568
|
-
if ('string' == typeof
|
|
569
|
-
if (
|
|
570
|
-
const
|
|
571
|
-
null ===
|
|
561
|
+
if (e === o) {
|
|
562
|
+
if (void 0 !== t.amd) {
|
|
563
|
+
let e = t.amd;
|
|
564
|
+
const r = o;
|
|
565
|
+
if (o === r)
|
|
566
|
+
if ('string' == typeof e) {
|
|
567
|
+
if (e.length < 1) {
|
|
568
|
+
const t = { params: {} };
|
|
569
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
572
570
|
}
|
|
573
571
|
}
|
|
574
572
|
else {
|
|
575
|
-
const
|
|
576
|
-
null ===
|
|
573
|
+
const t = { params: { type: 'string' } };
|
|
574
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
577
575
|
}
|
|
578
|
-
var u = r ===
|
|
576
|
+
var u = r === o;
|
|
579
577
|
}
|
|
580
578
|
else
|
|
581
579
|
u = !0;
|
|
582
580
|
if (u) {
|
|
583
|
-
if (void 0 !==
|
|
584
|
-
let
|
|
585
|
-
const r =
|
|
586
|
-
if (
|
|
587
|
-
if ('string' == typeof
|
|
588
|
-
if (
|
|
589
|
-
const
|
|
590
|
-
null ===
|
|
581
|
+
if (void 0 !== t.commonjs) {
|
|
582
|
+
let e = t.commonjs;
|
|
583
|
+
const r = o;
|
|
584
|
+
if (o === r)
|
|
585
|
+
if ('string' == typeof e) {
|
|
586
|
+
if (e.length < 1) {
|
|
587
|
+
const t = { params: {} };
|
|
588
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
591
589
|
}
|
|
592
590
|
}
|
|
593
591
|
else {
|
|
594
|
-
const
|
|
595
|
-
null ===
|
|
592
|
+
const t = { params: { type: 'string' } };
|
|
593
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
596
594
|
}
|
|
597
|
-
u = r ===
|
|
595
|
+
u = r === o;
|
|
598
596
|
}
|
|
599
597
|
else
|
|
600
598
|
u = !0;
|
|
601
599
|
if (u)
|
|
602
|
-
if (void 0 !==
|
|
603
|
-
let
|
|
604
|
-
const r =
|
|
600
|
+
if (void 0 !== t.root) {
|
|
601
|
+
let e = t.root;
|
|
602
|
+
const r = o, n = o;
|
|
605
603
|
let s = !1;
|
|
606
|
-
const i =
|
|
607
|
-
if (
|
|
608
|
-
if (Array.isArray(
|
|
609
|
-
const
|
|
610
|
-
for (let r = 0; r <
|
|
611
|
-
let
|
|
612
|
-
const n =
|
|
613
|
-
if (
|
|
614
|
-
if ('string' == typeof
|
|
615
|
-
if (
|
|
616
|
-
const
|
|
617
|
-
null ===
|
|
604
|
+
const i = o;
|
|
605
|
+
if (o === i)
|
|
606
|
+
if (Array.isArray(e)) {
|
|
607
|
+
const t = e.length;
|
|
608
|
+
for (let r = 0; r < t; r++) {
|
|
609
|
+
let t = e[r];
|
|
610
|
+
const n = o;
|
|
611
|
+
if (o === n)
|
|
612
|
+
if ('string' == typeof t) {
|
|
613
|
+
if (t.length < 1) {
|
|
614
|
+
const t = { params: {} };
|
|
615
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
618
616
|
}
|
|
619
617
|
}
|
|
620
618
|
else {
|
|
621
|
-
const
|
|
622
|
-
null ===
|
|
619
|
+
const t = { params: { type: 'string' } };
|
|
620
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
623
621
|
}
|
|
624
|
-
if (n !==
|
|
622
|
+
if (n !== o)
|
|
625
623
|
break;
|
|
626
624
|
}
|
|
627
625
|
}
|
|
628
626
|
else {
|
|
629
|
-
const
|
|
630
|
-
null ===
|
|
627
|
+
const t = { params: { type: 'array' } };
|
|
628
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
631
629
|
}
|
|
632
|
-
var c = i ===
|
|
630
|
+
var c = i === o;
|
|
633
631
|
if (((s = s || c), !s)) {
|
|
634
|
-
const
|
|
635
|
-
if (
|
|
636
|
-
if ('string' == typeof
|
|
637
|
-
if (
|
|
638
|
-
const
|
|
639
|
-
null ===
|
|
632
|
+
const t = o;
|
|
633
|
+
if (o === t)
|
|
634
|
+
if ('string' == typeof e) {
|
|
635
|
+
if (e.length < 1) {
|
|
636
|
+
const t = { params: {} };
|
|
637
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
640
638
|
}
|
|
641
639
|
}
|
|
642
640
|
else {
|
|
643
|
-
const
|
|
644
|
-
null ===
|
|
641
|
+
const t = { params: { type: 'string' } };
|
|
642
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
645
643
|
}
|
|
646
|
-
(c =
|
|
644
|
+
(c = t === o), (s = s || c);
|
|
647
645
|
}
|
|
648
646
|
if (s)
|
|
649
|
-
(
|
|
647
|
+
(o = n), null !== a && (n ? (a.length = n) : (a = null));
|
|
650
648
|
else {
|
|
651
|
-
const
|
|
652
|
-
null ===
|
|
649
|
+
const t = { params: {} };
|
|
650
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
653
651
|
}
|
|
654
|
-
u = r ===
|
|
652
|
+
u = r === o;
|
|
655
653
|
}
|
|
656
654
|
else
|
|
657
655
|
u = !0;
|
|
@@ -659,196 +657,196 @@ function p(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
|
|
|
659
657
|
}
|
|
660
658
|
}
|
|
661
659
|
else {
|
|
662
|
-
const
|
|
663
|
-
null ===
|
|
660
|
+
const t = { params: { type: 'object' } };
|
|
661
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
664
662
|
}
|
|
665
|
-
(m =
|
|
663
|
+
(m = e === o), (p = p || m);
|
|
666
664
|
}
|
|
667
665
|
}
|
|
668
|
-
if (!
|
|
669
|
-
const
|
|
670
|
-
return null ===
|
|
666
|
+
if (!p) {
|
|
667
|
+
const t = { params: {} };
|
|
668
|
+
return null === a ? (a = [t]) : a.push(t), o++, (l.errors = a), !1;
|
|
671
669
|
}
|
|
672
|
-
return ((
|
|
673
|
-
null !==
|
|
674
|
-
(
|
|
675
|
-
0 ===
|
|
670
|
+
return ((o = i),
|
|
671
|
+
null !== a && (i ? (a.length = i) : (a = null)),
|
|
672
|
+
(l.errors = a),
|
|
673
|
+
0 === o);
|
|
676
674
|
}
|
|
677
|
-
function f(
|
|
678
|
-
let
|
|
679
|
-
if (0 ===
|
|
680
|
-
if (!
|
|
675
|
+
function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
676
|
+
let a = null, o = 0;
|
|
677
|
+
if (0 === o) {
|
|
678
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
681
679
|
return (f.errors = [{ params: { type: 'object' } }]), !1;
|
|
682
680
|
{
|
|
683
681
|
let r;
|
|
684
|
-
if (void 0 ===
|
|
682
|
+
if (void 0 === t.type && (r = 'type'))
|
|
685
683
|
return (f.errors = [{ params: { missingProperty: r } }]), !1;
|
|
686
684
|
{
|
|
687
|
-
const r =
|
|
688
|
-
for (const
|
|
689
|
-
if ('amdContainer' !==
|
|
690
|
-
'auxiliaryComment' !==
|
|
691
|
-
'export' !==
|
|
692
|
-
'name' !==
|
|
693
|
-
'type' !==
|
|
694
|
-
'umdNamedDefine' !==
|
|
695
|
-
return (f.errors = [{ params: { additionalProperty:
|
|
696
|
-
if (r ===
|
|
697
|
-
if (void 0 !==
|
|
698
|
-
let
|
|
699
|
-
const r =
|
|
700
|
-
if (
|
|
701
|
-
if ('string' != typeof
|
|
685
|
+
const r = o;
|
|
686
|
+
for (const e in t)
|
|
687
|
+
if ('amdContainer' !== e &&
|
|
688
|
+
'auxiliaryComment' !== e &&
|
|
689
|
+
'export' !== e &&
|
|
690
|
+
'name' !== e &&
|
|
691
|
+
'type' !== e &&
|
|
692
|
+
'umdNamedDefine' !== e)
|
|
693
|
+
return (f.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
694
|
+
if (r === o) {
|
|
695
|
+
if (void 0 !== t.amdContainer) {
|
|
696
|
+
let e = t.amdContainer;
|
|
697
|
+
const r = o;
|
|
698
|
+
if (o == o) {
|
|
699
|
+
if ('string' != typeof e)
|
|
702
700
|
return (f.errors = [{ params: { type: 'string' } }]), !1;
|
|
703
|
-
if (
|
|
701
|
+
if (e.length < 1)
|
|
704
702
|
return (f.errors = [{ params: {} }]), !1;
|
|
705
703
|
}
|
|
706
|
-
var m = r ===
|
|
704
|
+
var m = r === o;
|
|
707
705
|
}
|
|
708
706
|
else
|
|
709
707
|
m = !0;
|
|
710
708
|
if (m) {
|
|
711
|
-
if (void 0 !==
|
|
712
|
-
const r =
|
|
713
|
-
|
|
714
|
-
instancePath:
|
|
715
|
-
parentData:
|
|
709
|
+
if (void 0 !== t.auxiliaryComment) {
|
|
710
|
+
const r = o;
|
|
711
|
+
p(t.auxiliaryComment, {
|
|
712
|
+
instancePath: e + '/auxiliaryComment',
|
|
713
|
+
parentData: t,
|
|
716
714
|
parentDataProperty: 'auxiliaryComment',
|
|
717
715
|
rootData: s,
|
|
718
716
|
}) ||
|
|
719
|
-
((
|
|
720
|
-
(
|
|
721
|
-
(m = r ===
|
|
717
|
+
((a = null === a ? p.errors : a.concat(p.errors)),
|
|
718
|
+
(o = a.length)),
|
|
719
|
+
(m = r === o);
|
|
722
720
|
}
|
|
723
721
|
else
|
|
724
722
|
m = !0;
|
|
725
723
|
if (m) {
|
|
726
|
-
if (void 0 !==
|
|
727
|
-
let
|
|
728
|
-
const r =
|
|
724
|
+
if (void 0 !== t.export) {
|
|
725
|
+
let e = t.export;
|
|
726
|
+
const r = o, n = o;
|
|
729
727
|
let s = !1;
|
|
730
|
-
const i =
|
|
731
|
-
if (
|
|
732
|
-
if (Array.isArray(
|
|
733
|
-
const
|
|
734
|
-
for (let r = 0; r <
|
|
735
|
-
let
|
|
736
|
-
const n =
|
|
737
|
-
if (
|
|
738
|
-
if ('string' == typeof
|
|
739
|
-
if (
|
|
740
|
-
const
|
|
741
|
-
null ===
|
|
728
|
+
const i = o;
|
|
729
|
+
if (o === i)
|
|
730
|
+
if (Array.isArray(e)) {
|
|
731
|
+
const t = e.length;
|
|
732
|
+
for (let r = 0; r < t; r++) {
|
|
733
|
+
let t = e[r];
|
|
734
|
+
const n = o;
|
|
735
|
+
if (o === n)
|
|
736
|
+
if ('string' == typeof t) {
|
|
737
|
+
if (t.length < 1) {
|
|
738
|
+
const t = { params: {} };
|
|
739
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
742
740
|
}
|
|
743
741
|
}
|
|
744
742
|
else {
|
|
745
|
-
const
|
|
746
|
-
null ===
|
|
743
|
+
const t = { params: { type: 'string' } };
|
|
744
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
747
745
|
}
|
|
748
|
-
if (n !==
|
|
746
|
+
if (n !== o)
|
|
749
747
|
break;
|
|
750
748
|
}
|
|
751
749
|
}
|
|
752
750
|
else {
|
|
753
|
-
const
|
|
754
|
-
null ===
|
|
751
|
+
const t = { params: { type: 'array' } };
|
|
752
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
755
753
|
}
|
|
756
|
-
var u = i ===
|
|
754
|
+
var u = i === o;
|
|
757
755
|
if (((s = s || u), !s)) {
|
|
758
|
-
const
|
|
759
|
-
if (
|
|
760
|
-
if ('string' == typeof
|
|
761
|
-
if (
|
|
762
|
-
const
|
|
763
|
-
null ===
|
|
756
|
+
const t = o;
|
|
757
|
+
if (o === t)
|
|
758
|
+
if ('string' == typeof e) {
|
|
759
|
+
if (e.length < 1) {
|
|
760
|
+
const t = { params: {} };
|
|
761
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
764
762
|
}
|
|
765
763
|
}
|
|
766
764
|
else {
|
|
767
|
-
const
|
|
768
|
-
null ===
|
|
765
|
+
const t = { params: { type: 'string' } };
|
|
766
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
769
767
|
}
|
|
770
|
-
(u =
|
|
768
|
+
(u = t === o), (s = s || u);
|
|
771
769
|
}
|
|
772
770
|
if (!s) {
|
|
773
|
-
const
|
|
774
|
-
return (null ===
|
|
771
|
+
const t = { params: {} };
|
|
772
|
+
return (null === a ? (a = [t]) : a.push(t), o++, (f.errors = a), !1);
|
|
775
773
|
}
|
|
776
|
-
(
|
|
777
|
-
null !==
|
|
778
|
-
(m = r ===
|
|
774
|
+
(o = n),
|
|
775
|
+
null !== a && (n ? (a.length = n) : (a = null)),
|
|
776
|
+
(m = r === o);
|
|
779
777
|
}
|
|
780
778
|
else
|
|
781
779
|
m = !0;
|
|
782
780
|
if (m) {
|
|
783
|
-
if (void 0 !==
|
|
784
|
-
const r =
|
|
785
|
-
|
|
786
|
-
instancePath:
|
|
787
|
-
parentData:
|
|
781
|
+
if (void 0 !== t.name) {
|
|
782
|
+
const r = o;
|
|
783
|
+
l(t.name, {
|
|
784
|
+
instancePath: e + '/name',
|
|
785
|
+
parentData: t,
|
|
788
786
|
parentDataProperty: 'name',
|
|
789
787
|
rootData: s,
|
|
790
788
|
}) ||
|
|
791
|
-
((
|
|
792
|
-
(
|
|
793
|
-
(m = r ===
|
|
789
|
+
((a = null === a ? l.errors : a.concat(l.errors)),
|
|
790
|
+
(o = a.length)),
|
|
791
|
+
(m = r === o);
|
|
794
792
|
}
|
|
795
793
|
else
|
|
796
794
|
m = !0;
|
|
797
795
|
if (m) {
|
|
798
|
-
if (void 0 !==
|
|
799
|
-
let
|
|
800
|
-
const r =
|
|
796
|
+
if (void 0 !== t.type) {
|
|
797
|
+
let e = t.type;
|
|
798
|
+
const r = o, n = o;
|
|
801
799
|
let s = !1;
|
|
802
|
-
const
|
|
803
|
-
if ('var' !==
|
|
804
|
-
'module' !==
|
|
805
|
-
'assign' !==
|
|
806
|
-
'assign-properties' !==
|
|
807
|
-
'this' !==
|
|
808
|
-
'window' !==
|
|
809
|
-
'self' !==
|
|
810
|
-
'global' !==
|
|
811
|
-
'commonjs' !==
|
|
812
|
-
'commonjs2' !==
|
|
813
|
-
'commonjs-module' !==
|
|
814
|
-
'commonjs-static' !==
|
|
815
|
-
'amd' !==
|
|
816
|
-
'amd-require' !==
|
|
817
|
-
'umd' !==
|
|
818
|
-
'umd2' !==
|
|
819
|
-
'jsonp' !==
|
|
820
|
-
'system' !==
|
|
821
|
-
const
|
|
822
|
-
null ===
|
|
800
|
+
const p = o;
|
|
801
|
+
if ('var' !== e &&
|
|
802
|
+
'module' !== e &&
|
|
803
|
+
'assign' !== e &&
|
|
804
|
+
'assign-properties' !== e &&
|
|
805
|
+
'this' !== e &&
|
|
806
|
+
'window' !== e &&
|
|
807
|
+
'self' !== e &&
|
|
808
|
+
'global' !== e &&
|
|
809
|
+
'commonjs' !== e &&
|
|
810
|
+
'commonjs2' !== e &&
|
|
811
|
+
'commonjs-module' !== e &&
|
|
812
|
+
'commonjs-static' !== e &&
|
|
813
|
+
'amd' !== e &&
|
|
814
|
+
'amd-require' !== e &&
|
|
815
|
+
'umd' !== e &&
|
|
816
|
+
'umd2' !== e &&
|
|
817
|
+
'jsonp' !== e &&
|
|
818
|
+
'system' !== e) {
|
|
819
|
+
const t = { params: { allowedValues: i.anyOf[0].enum } };
|
|
820
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
823
821
|
}
|
|
824
|
-
var c =
|
|
822
|
+
var c = p === o;
|
|
825
823
|
if (((s = s || c), !s)) {
|
|
826
|
-
const
|
|
827
|
-
if ('string' != typeof
|
|
828
|
-
const
|
|
829
|
-
null ===
|
|
824
|
+
const t = o;
|
|
825
|
+
if ('string' != typeof e) {
|
|
826
|
+
const t = { params: { type: 'string' } };
|
|
827
|
+
null === a ? (a = [t]) : a.push(t), o++;
|
|
830
828
|
}
|
|
831
|
-
(c =
|
|
829
|
+
(c = t === o), (s = s || c);
|
|
832
830
|
}
|
|
833
831
|
if (!s) {
|
|
834
|
-
const
|
|
835
|
-
return (null ===
|
|
836
|
-
|
|
837
|
-
(f.errors =
|
|
832
|
+
const t = { params: {} };
|
|
833
|
+
return (null === a ? (a = [t]) : a.push(t),
|
|
834
|
+
o++,
|
|
835
|
+
(f.errors = a),
|
|
838
836
|
!1);
|
|
839
837
|
}
|
|
840
|
-
(
|
|
841
|
-
null !==
|
|
842
|
-
(m = r ===
|
|
838
|
+
(o = n),
|
|
839
|
+
null !== a && (n ? (a.length = n) : (a = null)),
|
|
840
|
+
(m = r === o);
|
|
843
841
|
}
|
|
844
842
|
else
|
|
845
843
|
m = !0;
|
|
846
844
|
if (m)
|
|
847
|
-
if (void 0 !==
|
|
848
|
-
const
|
|
849
|
-
if ('boolean' != typeof
|
|
845
|
+
if (void 0 !== t.umdNamedDefine) {
|
|
846
|
+
const e = o;
|
|
847
|
+
if ('boolean' != typeof t.umdNamedDefine)
|
|
850
848
|
return ((f.errors = [{ params: { type: 'boolean' } }]), !1);
|
|
851
|
-
m =
|
|
849
|
+
m = e === o;
|
|
852
850
|
}
|
|
853
851
|
else
|
|
854
852
|
m = !0;
|
|
@@ -860,55 +858,55 @@ function f(e, { instancePath: t = '', parentData: r, parentDataProperty: n, root
|
|
|
860
858
|
}
|
|
861
859
|
}
|
|
862
860
|
}
|
|
863
|
-
return (f.errors =
|
|
861
|
+
return (f.errors = a), 0 === o;
|
|
864
862
|
}
|
|
865
|
-
function m(n, { instancePath: s = '', parentData:
|
|
866
|
-
let
|
|
863
|
+
function m(n, { instancePath: s = '', parentData: a, parentDataProperty: i, rootData: p = n, } = {}) {
|
|
864
|
+
let l = null, u = 0;
|
|
867
865
|
if (0 === u) {
|
|
868
866
|
if (!n || 'object' != typeof n || Array.isArray(n))
|
|
869
867
|
return (m.errors = [{ params: { type: 'object' } }]), !1;
|
|
870
868
|
{
|
|
871
|
-
let
|
|
872
|
-
if ((void 0 === n.name && (
|
|
873
|
-
(void 0 === n.exposes && (
|
|
874
|
-
return (m.errors = [{ params: { missingProperty:
|
|
869
|
+
let a;
|
|
870
|
+
if ((void 0 === n.name && (a = 'name')) ||
|
|
871
|
+
(void 0 === n.exposes && (a = 'exposes')))
|
|
872
|
+
return (m.errors = [{ params: { missingProperty: a } }]), !1;
|
|
875
873
|
{
|
|
876
|
-
const
|
|
877
|
-
for (const
|
|
878
|
-
if ('exposes' !==
|
|
879
|
-
'filename' !==
|
|
880
|
-
'library' !==
|
|
881
|
-
'name' !==
|
|
882
|
-
'runtime' !==
|
|
883
|
-
'runtimePlugins' !==
|
|
884
|
-
'shareScope' !==
|
|
885
|
-
'experiments' !==
|
|
886
|
-
return (m.errors = [{ params: { additionalProperty:
|
|
887
|
-
if (
|
|
874
|
+
const a = u;
|
|
875
|
+
for (const t in n)
|
|
876
|
+
if ('exposes' !== t &&
|
|
877
|
+
'filename' !== t &&
|
|
878
|
+
'library' !== t &&
|
|
879
|
+
'name' !== t &&
|
|
880
|
+
'runtime' !== t &&
|
|
881
|
+
'runtimePlugins' !== t &&
|
|
882
|
+
'shareScope' !== t &&
|
|
883
|
+
'experiments' !== t)
|
|
884
|
+
return (m.errors = [{ params: { additionalProperty: t } }]), !1;
|
|
885
|
+
if (a === u) {
|
|
888
886
|
if (void 0 !== n.exposes) {
|
|
889
|
-
const
|
|
890
|
-
|
|
887
|
+
const t = u;
|
|
888
|
+
o(n.exposes, {
|
|
891
889
|
instancePath: s + '/exposes',
|
|
892
890
|
parentData: n,
|
|
893
891
|
parentDataProperty: 'exposes',
|
|
894
|
-
rootData:
|
|
892
|
+
rootData: p,
|
|
895
893
|
}) ||
|
|
896
|
-
((
|
|
897
|
-
(u =
|
|
898
|
-
var c =
|
|
894
|
+
((l = null === l ? o.errors : l.concat(o.errors)),
|
|
895
|
+
(u = l.length));
|
|
896
|
+
var c = t === u;
|
|
899
897
|
}
|
|
900
898
|
else
|
|
901
899
|
c = !0;
|
|
902
900
|
if (c) {
|
|
903
901
|
if (void 0 !== n.filename) {
|
|
904
|
-
let
|
|
902
|
+
let e = n.filename;
|
|
905
903
|
const r = u;
|
|
906
904
|
if (u === r) {
|
|
907
|
-
if ('string' != typeof
|
|
905
|
+
if ('string' != typeof e)
|
|
908
906
|
return (m.errors = [{ params: { type: 'string' } }]), !1;
|
|
909
|
-
if (
|
|
907
|
+
if (e.length < 1)
|
|
910
908
|
return (m.errors = [{ params: {} }]), !1;
|
|
911
|
-
if (
|
|
909
|
+
if (e.includes('!') || !1 !== t.test(e))
|
|
912
910
|
return (m.errors = [{ params: {} }]), !1;
|
|
913
911
|
}
|
|
914
912
|
c = r === u;
|
|
@@ -917,203 +915,177 @@ function m(n, { instancePath: s = '', parentData: o, parentDataProperty: i, root
|
|
|
917
915
|
c = !0;
|
|
918
916
|
if (c) {
|
|
919
917
|
if (void 0 !== n.library) {
|
|
920
|
-
const
|
|
918
|
+
const t = u;
|
|
921
919
|
f(n.library, {
|
|
922
920
|
instancePath: s + '/library',
|
|
923
921
|
parentData: n,
|
|
924
922
|
parentDataProperty: 'library',
|
|
925
|
-
rootData:
|
|
923
|
+
rootData: p,
|
|
926
924
|
}) ||
|
|
927
|
-
((
|
|
928
|
-
(u =
|
|
929
|
-
(c =
|
|
925
|
+
((l = null === l ? f.errors : l.concat(f.errors)),
|
|
926
|
+
(u = l.length)),
|
|
927
|
+
(c = t === u);
|
|
930
928
|
}
|
|
931
929
|
else
|
|
932
930
|
c = !0;
|
|
933
931
|
if (c) {
|
|
934
932
|
if (void 0 !== n.name) {
|
|
935
|
-
let
|
|
936
|
-
const
|
|
937
|
-
if (u ===
|
|
938
|
-
if ('string' != typeof
|
|
933
|
+
let t = n.name;
|
|
934
|
+
const e = u;
|
|
935
|
+
if (u === e) {
|
|
936
|
+
if ('string' != typeof t)
|
|
939
937
|
return (m.errors = [{ params: { type: 'string' } }]), !1;
|
|
940
|
-
if (
|
|
938
|
+
if (t.length < 1)
|
|
941
939
|
return (m.errors = [{ params: {} }]), !1;
|
|
942
940
|
}
|
|
943
|
-
c =
|
|
941
|
+
c = e === u;
|
|
944
942
|
}
|
|
945
943
|
else
|
|
946
944
|
c = !0;
|
|
947
945
|
if (c) {
|
|
948
946
|
if (void 0 !== n.runtime) {
|
|
949
|
-
let
|
|
950
|
-
const
|
|
951
|
-
let
|
|
952
|
-
const
|
|
953
|
-
if (!1 !==
|
|
954
|
-
const
|
|
955
|
-
null ===
|
|
947
|
+
let t = n.runtime;
|
|
948
|
+
const e = u, s = u;
|
|
949
|
+
let a = !1;
|
|
950
|
+
const o = u;
|
|
951
|
+
if (!1 !== t) {
|
|
952
|
+
const t = { params: { allowedValues: r.anyOf[0].enum } };
|
|
953
|
+
null === l ? (l = [t]) : l.push(t), u++;
|
|
956
954
|
}
|
|
957
|
-
var y =
|
|
958
|
-
if (((
|
|
959
|
-
const
|
|
960
|
-
if (u ===
|
|
961
|
-
if ('string' == typeof
|
|
962
|
-
if (
|
|
963
|
-
const
|
|
964
|
-
null ===
|
|
955
|
+
var y = o === u;
|
|
956
|
+
if (((a = a || y), !a)) {
|
|
957
|
+
const e = u;
|
|
958
|
+
if (u === e)
|
|
959
|
+
if ('string' == typeof t) {
|
|
960
|
+
if (t.length < 1) {
|
|
961
|
+
const t = { params: {} };
|
|
962
|
+
null === l ? (l = [t]) : l.push(t), u++;
|
|
965
963
|
}
|
|
966
964
|
}
|
|
967
965
|
else {
|
|
968
|
-
const
|
|
969
|
-
null ===
|
|
966
|
+
const t = { params: { type: 'string' } };
|
|
967
|
+
null === l ? (l = [t]) : l.push(t), u++;
|
|
970
968
|
}
|
|
971
|
-
(y =
|
|
969
|
+
(y = e === u), (a = a || y);
|
|
972
970
|
}
|
|
973
|
-
if (!
|
|
974
|
-
const
|
|
975
|
-
return (null ===
|
|
971
|
+
if (!a) {
|
|
972
|
+
const t = { params: {} };
|
|
973
|
+
return (null === l ? (l = [t]) : l.push(t),
|
|
976
974
|
u++,
|
|
977
|
-
(m.errors =
|
|
975
|
+
(m.errors = l),
|
|
978
976
|
!1);
|
|
979
977
|
}
|
|
980
978
|
(u = s),
|
|
981
|
-
null !==
|
|
982
|
-
(c =
|
|
979
|
+
null !== l && (s ? (l.length = s) : (l = null)),
|
|
980
|
+
(c = e === u);
|
|
983
981
|
}
|
|
984
982
|
else
|
|
985
983
|
c = !0;
|
|
986
984
|
if (c) {
|
|
987
985
|
if (void 0 !== n.runtimePlugins) {
|
|
988
|
-
let
|
|
989
|
-
const
|
|
986
|
+
let t = n.runtimePlugins;
|
|
987
|
+
const e = u;
|
|
990
988
|
if (u == u) {
|
|
991
|
-
if (!Array.isArray(
|
|
989
|
+
if (!Array.isArray(t))
|
|
992
990
|
return ((m.errors = [{ params: { type: 'array' } }]), !1);
|
|
993
991
|
{
|
|
994
|
-
const
|
|
995
|
-
for (let r = 0; r <
|
|
996
|
-
const
|
|
997
|
-
if ('string' != typeof
|
|
992
|
+
const e = t.length;
|
|
993
|
+
for (let r = 0; r < e; r++) {
|
|
994
|
+
const e = u;
|
|
995
|
+
if ('string' != typeof t[r])
|
|
998
996
|
return ((m.errors = [{ params: { type: 'string' } }]),
|
|
999
997
|
!1);
|
|
1000
|
-
if (
|
|
998
|
+
if (e !== u)
|
|
1001
999
|
break;
|
|
1002
1000
|
}
|
|
1003
1001
|
}
|
|
1004
1002
|
}
|
|
1005
|
-
c =
|
|
1003
|
+
c = e === u;
|
|
1006
1004
|
}
|
|
1007
1005
|
else
|
|
1008
1006
|
c = !0;
|
|
1009
1007
|
if (c) {
|
|
1010
1008
|
if (void 0 !== n.shareScope) {
|
|
1011
|
-
let
|
|
1012
|
-
const
|
|
1013
|
-
if (u ===
|
|
1014
|
-
if ('string' != typeof
|
|
1009
|
+
let t = n.shareScope;
|
|
1010
|
+
const e = u;
|
|
1011
|
+
if (u === e) {
|
|
1012
|
+
if ('string' != typeof t)
|
|
1015
1013
|
return ((m.errors = [{ params: { type: 'string' } }]), !1);
|
|
1016
|
-
if (
|
|
1014
|
+
if (t.length < 1)
|
|
1017
1015
|
return (m.errors = [{ params: {} }]), !1;
|
|
1018
1016
|
}
|
|
1019
|
-
c =
|
|
1017
|
+
c = e === u;
|
|
1020
1018
|
}
|
|
1021
1019
|
else
|
|
1022
1020
|
c = !0;
|
|
1023
1021
|
if (c)
|
|
1024
1022
|
if (void 0 !== n.experiments) {
|
|
1025
|
-
let
|
|
1023
|
+
let t = n.experiments;
|
|
1026
1024
|
const r = u;
|
|
1027
1025
|
if (u === r) {
|
|
1028
|
-
if (!
|
|
1026
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
1029
1027
|
return ((m.errors = [{ params: { type: 'object' } }]),
|
|
1030
1028
|
!1);
|
|
1031
1029
|
{
|
|
1032
1030
|
const r = u;
|
|
1033
|
-
for (const
|
|
1034
|
-
if ('
|
|
1035
|
-
'externalRuntime' !==
|
|
1031
|
+
for (const e in t)
|
|
1032
|
+
if ('asyncStartup' !== e &&
|
|
1033
|
+
'externalRuntime' !== e)
|
|
1036
1034
|
return ((m.errors = [
|
|
1037
|
-
{ params: { additionalProperty:
|
|
1035
|
+
{ params: { additionalProperty: e } },
|
|
1038
1036
|
]),
|
|
1039
1037
|
!1);
|
|
1040
1038
|
if (r === u) {
|
|
1041
|
-
if (void 0 !==
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
const e = { params: { type: 'boolean' } };
|
|
1048
|
-
null === p ? (p = [e]) : p.push(e), u++;
|
|
1049
|
-
}
|
|
1050
|
-
var g = a === u;
|
|
1051
|
-
if (((o = o || g), !o)) {
|
|
1052
|
-
const e = u;
|
|
1053
|
-
if ('hoisted' !== r) {
|
|
1054
|
-
const e = {
|
|
1055
|
-
params: {
|
|
1056
|
-
allowedValues: t.properties.experiments.properties
|
|
1057
|
-
.federationRuntime.anyOf[1].enum,
|
|
1058
|
-
},
|
|
1059
|
-
};
|
|
1060
|
-
null === p ? (p = [e]) : p.push(e), u++;
|
|
1061
|
-
}
|
|
1062
|
-
(g = e === u), (o = o || g);
|
|
1063
|
-
}
|
|
1064
|
-
if (!o) {
|
|
1065
|
-
const e = { params: {} };
|
|
1066
|
-
return (null === p ? (p = [e]) : p.push(e),
|
|
1067
|
-
u++,
|
|
1068
|
-
(m.errors = p),
|
|
1039
|
+
if (void 0 !== t.asyncStartup) {
|
|
1040
|
+
const e = u;
|
|
1041
|
+
if ('boolean' != typeof t.asyncStartup)
|
|
1042
|
+
return ((m.errors = [
|
|
1043
|
+
{ params: { type: 'boolean' } },
|
|
1044
|
+
]),
|
|
1069
1045
|
!1);
|
|
1070
|
-
|
|
1071
|
-
(u = s),
|
|
1072
|
-
null !== p &&
|
|
1073
|
-
(s ? (p.length = s) : (p = null));
|
|
1074
|
-
var d = n === u;
|
|
1046
|
+
var g = e === u;
|
|
1075
1047
|
}
|
|
1076
1048
|
else
|
|
1077
|
-
|
|
1078
|
-
if (
|
|
1079
|
-
if (void 0 !==
|
|
1080
|
-
let r =
|
|
1049
|
+
g = !0;
|
|
1050
|
+
if (g)
|
|
1051
|
+
if (void 0 !== t.externalRuntime) {
|
|
1052
|
+
let r = t.externalRuntime;
|
|
1081
1053
|
const n = u, s = u;
|
|
1082
|
-
let
|
|
1083
|
-
const
|
|
1054
|
+
let a = !1;
|
|
1055
|
+
const o = u;
|
|
1084
1056
|
if ('boolean' != typeof r) {
|
|
1085
|
-
const
|
|
1086
|
-
null ===
|
|
1057
|
+
const t = { params: { type: 'boolean' } };
|
|
1058
|
+
null === l ? (l = [t]) : l.push(t), u++;
|
|
1087
1059
|
}
|
|
1088
|
-
var
|
|
1089
|
-
if (((
|
|
1090
|
-
const
|
|
1060
|
+
var d = o === u;
|
|
1061
|
+
if (((a = a || d), !a)) {
|
|
1062
|
+
const t = u;
|
|
1091
1063
|
if ('provide' !== r) {
|
|
1092
|
-
const
|
|
1064
|
+
const t = {
|
|
1093
1065
|
params: {
|
|
1094
|
-
allowedValues:
|
|
1066
|
+
allowedValues: e.properties.experiments
|
|
1095
1067
|
.properties.externalRuntime
|
|
1096
1068
|
.anyOf[1].enum,
|
|
1097
1069
|
},
|
|
1098
1070
|
};
|
|
1099
|
-
null ===
|
|
1071
|
+
null === l ? (l = [t]) : l.push(t), u++;
|
|
1100
1072
|
}
|
|
1101
|
-
(
|
|
1073
|
+
(d = t === u), (a = a || d);
|
|
1102
1074
|
}
|
|
1103
|
-
if (!
|
|
1104
|
-
const
|
|
1105
|
-
return (null ===
|
|
1075
|
+
if (!a) {
|
|
1076
|
+
const t = { params: {} };
|
|
1077
|
+
return (null === l ? (l = [t]) : l.push(t),
|
|
1106
1078
|
u++,
|
|
1107
|
-
(m.errors =
|
|
1079
|
+
(m.errors = l),
|
|
1108
1080
|
!1);
|
|
1109
1081
|
}
|
|
1110
1082
|
(u = s),
|
|
1111
|
-
null !==
|
|
1112
|
-
(s ? (
|
|
1113
|
-
(
|
|
1083
|
+
null !== l &&
|
|
1084
|
+
(s ? (l.length = s) : (l = null)),
|
|
1085
|
+
(g = n === u);
|
|
1114
1086
|
}
|
|
1115
1087
|
else
|
|
1116
|
-
|
|
1088
|
+
g = !0;
|
|
1117
1089
|
}
|
|
1118
1090
|
}
|
|
1119
1091
|
}
|
|
@@ -1131,6 +1103,6 @@ function m(n, { instancePath: s = '', parentData: o, parentDataProperty: i, root
|
|
|
1131
1103
|
}
|
|
1132
1104
|
}
|
|
1133
1105
|
}
|
|
1134
|
-
return (m.errors =
|
|
1106
|
+
return (m.errors = l), 0 === u;
|
|
1135
1107
|
}
|
|
1136
1108
|
//# sourceMappingURL=ContainerPlugin.check.js.map
|