@module-federation/enhanced 0.11.3 → 0.12.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.
- package/dist/package.json +4 -3
- package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +53 -0
- package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +14 -2
- package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +10 -2
- package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +14 -2
- package/dist/src/lib/container/ContainerEntryDependency.d.ts +3 -3
- package/dist/src/lib/container/ContainerEntryDependency.js +1 -1
- package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
- package/dist/src/lib/container/ContainerEntryModule.d.ts +2 -2
- package/dist/src/lib/container/ContainerEntryModule.js +5 -2
- package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
- package/dist/src/lib/container/ContainerReferencePlugin.js +1 -1
- package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
- package/dist/src/lib/container/ModuleFederationPlugin.js +8 -0
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/lib/container/RemoteModule.d.ts +3 -3
- package/dist/src/lib/container/RemoteModule.js +5 -2
- package/dist/src/lib/container/RemoteModule.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +5 -14
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +1 -38
- package/dist/src/lib/sharing/ConsumeSharedModule.js +25 -15
- package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +64 -41
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +3 -1
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +5 -3
- package/dist/src/lib/sharing/ProvideSharedDependency.js +12 -6
- package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedModule.d.ts +3 -2
- package/dist/src/lib/sharing/ProvideSharedModule.js +10 -12
- package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +1 -3
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +2 -10
- package/dist/src/lib/sharing/ProvideSharedPlugin.js +65 -43
- package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/SharePlugin.d.ts +2 -3
- package/dist/src/lib/sharing/SharePlugin.js +8 -5
- package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
- package/dist/src/lib/sharing/ShareRuntimeModule.js +9 -7
- package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +2 -1
- package/dist/src/lib/sharing/resolveMatchedConfigs.js +33 -16
- package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
- package/dist/src/lib/sharing/utils.d.ts +3 -2
- package/dist/src/lib/sharing/utils.js +2 -1
- package/dist/src/lib/sharing/utils.js.map +1 -1
- package/dist/src/schemas/container/ContainerPlugin.check.d.ts +3 -3
- package/dist/src/schemas/container/ContainerPlugin.check.js +333 -290
- package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ContainerPlugin.d.ts +31 -18
- package/dist/src/schemas/container/ContainerPlugin.js +34 -21
- package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
- package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +3 -3
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js +293 -188
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +25 -5
- package/dist/src/schemas/container/ContainerReferencePlugin.js +31 -4
- package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
- package/dist/src/schemas/container/ExternalsType.check.js +2 -2
- package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +1464 -1282
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +130 -78
- package/dist/src/schemas/container/ModuleFederationPlugin.js +144 -83
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +3 -3
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +302 -160
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +33 -2
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +39 -2
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +374 -164
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +51 -2
- package/dist/src/schemas/sharing/ProvideSharedPlugin.js +60 -2
- package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +148 -94
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +10 -0
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js +10 -1
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/SharePlugin.check.d.ts +3 -3
- package/dist/src/schemas/sharing/SharePlugin.check.js +239 -135
- package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/SharePlugin.d.ts +24 -4
- package/dist/src/schemas/sharing/SharePlugin.js +30 -4
- package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
- package/dist/src/utils.d.ts +9 -0
- package/dist/src/utils.js +31 -0
- package/dist/src/utils.js.map +1 -0
- package/package.json +15 -14
|
@@ -8,11 +8,10 @@ exports.validate = void 0;
|
|
|
8
8
|
* DO NOT MODIFY BY HAND.
|
|
9
9
|
*/
|
|
10
10
|
const t = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
|
|
11
|
-
exports.validate =
|
|
12
|
-
exports.default =
|
|
11
|
+
exports.validate = u;
|
|
12
|
+
exports.default = u;
|
|
13
13
|
const e = {
|
|
14
14
|
definitions: {
|
|
15
|
-
RuntimePlugin: { type: 'array', items: { type: 'string' } },
|
|
16
15
|
AmdContainer: { type: 'string', minLength: 1 },
|
|
17
16
|
AuxiliaryComment: {
|
|
18
17
|
anyOf: [
|
|
@@ -157,57 +156,62 @@ const e = {
|
|
|
157
156
|
library: { $ref: '#/definitions/LibraryOptions' },
|
|
158
157
|
name: { type: 'string', minLength: 1 },
|
|
159
158
|
runtime: { $ref: '#/definitions/EntryRuntime' },
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
shareScope: {
|
|
160
|
+
anyOf: [
|
|
161
|
+
{ type: 'string', minLength: 1 },
|
|
162
|
+
{ type: 'array', items: { type: 'string', minLength: 1 } },
|
|
163
|
+
],
|
|
164
|
+
},
|
|
162
165
|
experiments: {
|
|
163
166
|
type: 'object',
|
|
167
|
+
additionalProperties: !1,
|
|
164
168
|
properties: {
|
|
165
169
|
asyncStartup: { type: 'boolean' },
|
|
166
|
-
externalRuntime: {
|
|
167
|
-
|
|
168
|
-
},
|
|
170
|
+
externalRuntime: { type: 'boolean', default: !1 },
|
|
171
|
+
provideExternalRuntime: { type: 'boolean', default: !1 },
|
|
169
172
|
},
|
|
170
|
-
additionalProperties: !1,
|
|
171
173
|
},
|
|
174
|
+
dataPrefetch: { type: 'boolean' },
|
|
175
|
+
runtimePlugins: { type: 'array', items: { type: 'string' } },
|
|
172
176
|
},
|
|
173
177
|
required: ['name', 'exposes'],
|
|
174
|
-
}, r = { anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }] };
|
|
175
|
-
function
|
|
178
|
+
}, r = { anyOf: [{ enum: [!1] }, { type: 'string', minLength: 1 }] }, n = Object.prototype.hasOwnProperty;
|
|
179
|
+
function s(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: a = t, } = {}) {
|
|
176
180
|
if (!Array.isArray(t))
|
|
177
|
-
return (
|
|
181
|
+
return (s.errors = [{ params: { type: 'array' } }]), !1;
|
|
178
182
|
{
|
|
179
183
|
const e = t.length;
|
|
180
184
|
for (let r = 0; r < e; r++) {
|
|
181
185
|
let e = t[r];
|
|
182
|
-
const
|
|
186
|
+
const n = 0;
|
|
183
187
|
if ('string' != typeof e)
|
|
184
|
-
return (
|
|
188
|
+
return (s.errors = [{ params: { type: 'string' } }]), !1;
|
|
185
189
|
if (e.length < 1)
|
|
186
|
-
return (
|
|
187
|
-
if (0 !==
|
|
190
|
+
return (s.errors = [{ params: {} }]), !1;
|
|
191
|
+
if (0 !== n)
|
|
188
192
|
break;
|
|
189
193
|
}
|
|
190
194
|
}
|
|
191
|
-
return (
|
|
195
|
+
return (s.errors = null), !0;
|
|
192
196
|
}
|
|
193
|
-
function
|
|
197
|
+
function a(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: o = t, } = {}) {
|
|
194
198
|
let i = null, p = 0;
|
|
195
199
|
if (0 === p) {
|
|
196
200
|
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
197
|
-
return (
|
|
201
|
+
return (a.errors = [{ params: { type: 'object' } }]), !1;
|
|
198
202
|
{
|
|
199
203
|
let r;
|
|
200
204
|
if (void 0 === t.import && (r = 'import'))
|
|
201
|
-
return (
|
|
205
|
+
return (a.errors = [{ params: { missingProperty: r } }]), !1;
|
|
202
206
|
{
|
|
203
207
|
const r = p;
|
|
204
208
|
for (const e in t)
|
|
205
209
|
if ('import' !== e && 'name' !== e)
|
|
206
|
-
return (
|
|
210
|
+
return (a.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
207
211
|
if (r === p) {
|
|
208
212
|
if (void 0 !== t.import) {
|
|
209
213
|
let r = t.import;
|
|
210
|
-
const
|
|
214
|
+
const n = p, m = p;
|
|
211
215
|
let u = !1;
|
|
212
216
|
const c = p;
|
|
213
217
|
if (p == p)
|
|
@@ -223,24 +227,24 @@ function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, root
|
|
|
223
227
|
}
|
|
224
228
|
var l = c === p;
|
|
225
229
|
if (((u = u || l), !u)) {
|
|
226
|
-
const
|
|
227
|
-
|
|
230
|
+
const n = p;
|
|
231
|
+
s(r, {
|
|
228
232
|
instancePath: e + '/import',
|
|
229
233
|
parentData: t,
|
|
230
234
|
parentDataProperty: 'import',
|
|
231
235
|
rootData: o,
|
|
232
236
|
}) ||
|
|
233
|
-
((i = null === i ?
|
|
237
|
+
((i = null === i ? s.errors : i.concat(s.errors)),
|
|
234
238
|
(p = i.length)),
|
|
235
|
-
(l =
|
|
239
|
+
(l = n === p),
|
|
236
240
|
(u = u || l);
|
|
237
241
|
}
|
|
238
242
|
if (!u) {
|
|
239
243
|
const t = { params: {} };
|
|
240
|
-
return (null === i ? (i = [t]) : i.push(t), p++, (
|
|
244
|
+
return (null === i ? (i = [t]) : i.push(t), p++, (a.errors = i), !1);
|
|
241
245
|
}
|
|
242
246
|
(p = m), null !== i && (m ? (i.length = m) : (i = null));
|
|
243
|
-
var f =
|
|
247
|
+
var f = n === p;
|
|
244
248
|
}
|
|
245
249
|
else
|
|
246
250
|
f = !0;
|
|
@@ -248,7 +252,7 @@ function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, root
|
|
|
248
252
|
if (void 0 !== t.name) {
|
|
249
253
|
const e = p;
|
|
250
254
|
if ('string' != typeof t.name)
|
|
251
|
-
return (
|
|
255
|
+
return (a.errors = [{ params: { type: 'string' } }]), !1;
|
|
252
256
|
f = e === p;
|
|
253
257
|
}
|
|
254
258
|
else
|
|
@@ -257,30 +261,30 @@ function s(t, { instancePath: e = '', parentData: r, parentDataProperty: a, root
|
|
|
257
261
|
}
|
|
258
262
|
}
|
|
259
263
|
}
|
|
260
|
-
return (
|
|
264
|
+
return (a.errors = i), 0 === p;
|
|
261
265
|
}
|
|
262
|
-
function
|
|
266
|
+
function o(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: i = t, } = {}) {
|
|
263
267
|
let p = null, l = 0;
|
|
264
268
|
if (0 === l) {
|
|
265
269
|
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
266
|
-
return (
|
|
270
|
+
return (o.errors = [{ params: { type: 'object' } }]), !1;
|
|
267
271
|
for (const r in t) {
|
|
268
|
-
let
|
|
272
|
+
let n = t[r];
|
|
269
273
|
const m = l, u = l;
|
|
270
274
|
let c = !1;
|
|
271
275
|
const y = l;
|
|
272
|
-
|
|
276
|
+
a(n, {
|
|
273
277
|
instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
274
278
|
parentData: t,
|
|
275
279
|
parentDataProperty: r,
|
|
276
280
|
rootData: i,
|
|
277
|
-
}) || ((p = null === p ?
|
|
281
|
+
}) || ((p = null === p ? a.errors : p.concat(a.errors)), (l = p.length));
|
|
278
282
|
var f = y === l;
|
|
279
283
|
if (((c = c || f), !c)) {
|
|
280
|
-
const
|
|
284
|
+
const a = l;
|
|
281
285
|
if (l == l)
|
|
282
|
-
if ('string' == typeof
|
|
283
|
-
if (
|
|
286
|
+
if ('string' == typeof n) {
|
|
287
|
+
if (n.length < 1) {
|
|
284
288
|
const t = { params: {} };
|
|
285
289
|
null === p ? (p = [t]) : p.push(t), l++;
|
|
286
290
|
}
|
|
@@ -289,31 +293,31 @@ function a(t, { instancePath: e = '', parentData: r, parentDataProperty: o, root
|
|
|
289
293
|
const t = { params: { type: 'string' } };
|
|
290
294
|
null === p ? (p = [t]) : p.push(t), l++;
|
|
291
295
|
}
|
|
292
|
-
if (((f =
|
|
293
|
-
const
|
|
294
|
-
n
|
|
296
|
+
if (((f = a === l), (c = c || f), !c)) {
|
|
297
|
+
const a = l;
|
|
298
|
+
s(n, {
|
|
295
299
|
instancePath: e + '/' + r.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
296
300
|
parentData: t,
|
|
297
301
|
parentDataProperty: r,
|
|
298
302
|
rootData: i,
|
|
299
303
|
}) ||
|
|
300
|
-
((p = null === p ?
|
|
301
|
-
(f =
|
|
304
|
+
((p = null === p ? s.errors : p.concat(s.errors)), (l = p.length)),
|
|
305
|
+
(f = a === l),
|
|
302
306
|
(c = c || f);
|
|
303
307
|
}
|
|
304
308
|
}
|
|
305
309
|
if (!c) {
|
|
306
310
|
const t = { params: {} };
|
|
307
|
-
return null === p ? (p = [t]) : p.push(t), l++, (
|
|
311
|
+
return null === p ? (p = [t]) : p.push(t), l++, (o.errors = p), !1;
|
|
308
312
|
}
|
|
309
313
|
if (((l = u), null !== p && (u ? (p.length = u) : (p = null)), m !== l))
|
|
310
314
|
break;
|
|
311
315
|
}
|
|
312
316
|
}
|
|
313
|
-
return (
|
|
317
|
+
return (o.errors = p), 0 === l;
|
|
314
318
|
}
|
|
315
|
-
function
|
|
316
|
-
let
|
|
319
|
+
function i(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
320
|
+
let a = null, p = 0;
|
|
317
321
|
const l = p;
|
|
318
322
|
let f = !1;
|
|
319
323
|
const m = p;
|
|
@@ -322,69 +326,69 @@ function o(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
322
326
|
const r = t.length;
|
|
323
327
|
for (let n = 0; n < r; n++) {
|
|
324
328
|
let r = t[n];
|
|
325
|
-
const
|
|
329
|
+
const i = p, l = p;
|
|
326
330
|
let f = !1;
|
|
327
331
|
const m = p;
|
|
328
332
|
if (p == p)
|
|
329
333
|
if ('string' == typeof r) {
|
|
330
334
|
if (r.length < 1) {
|
|
331
335
|
const t = { params: {} };
|
|
332
|
-
null ===
|
|
336
|
+
null === a ? (a = [t]) : a.push(t), p++;
|
|
333
337
|
}
|
|
334
338
|
}
|
|
335
339
|
else {
|
|
336
340
|
const t = { params: { type: 'string' } };
|
|
337
|
-
null ===
|
|
341
|
+
null === a ? (a = [t]) : a.push(t), p++;
|
|
338
342
|
}
|
|
339
343
|
var u = m === p;
|
|
340
344
|
if (((f = f || u), !f)) {
|
|
341
|
-
const
|
|
342
|
-
|
|
345
|
+
const i = p;
|
|
346
|
+
o(r, {
|
|
343
347
|
instancePath: e + '/' + n,
|
|
344
348
|
parentData: t,
|
|
345
349
|
parentDataProperty: n,
|
|
346
350
|
rootData: s,
|
|
347
351
|
}) ||
|
|
348
|
-
((
|
|
349
|
-
(u =
|
|
352
|
+
((a = null === a ? o.errors : a.concat(o.errors)), (p = a.length)),
|
|
353
|
+
(u = i === p),
|
|
350
354
|
(f = f || u);
|
|
351
355
|
}
|
|
352
356
|
if (f)
|
|
353
|
-
(p = l), null !==
|
|
357
|
+
(p = l), null !== a && (l ? (a.length = l) : (a = null));
|
|
354
358
|
else {
|
|
355
359
|
const t = { params: {} };
|
|
356
|
-
null ===
|
|
360
|
+
null === a ? (a = [t]) : a.push(t), p++;
|
|
357
361
|
}
|
|
358
|
-
if (
|
|
362
|
+
if (i !== p)
|
|
359
363
|
break;
|
|
360
364
|
}
|
|
361
365
|
}
|
|
362
366
|
else {
|
|
363
367
|
const t = { params: { type: 'array' } };
|
|
364
|
-
null ===
|
|
368
|
+
null === a ? (a = [t]) : a.push(t), p++;
|
|
365
369
|
}
|
|
366
370
|
var c = m === p;
|
|
367
371
|
if (((f = f || c), !f)) {
|
|
368
|
-
const
|
|
369
|
-
|
|
372
|
+
const i = p;
|
|
373
|
+
o(t, {
|
|
370
374
|
instancePath: e,
|
|
371
375
|
parentData: r,
|
|
372
376
|
parentDataProperty: n,
|
|
373
377
|
rootData: s,
|
|
374
|
-
}) || ((
|
|
375
|
-
(c =
|
|
378
|
+
}) || ((a = null === a ? o.errors : a.concat(o.errors)), (p = a.length)),
|
|
379
|
+
(c = i === p),
|
|
376
380
|
(f = f || c);
|
|
377
381
|
}
|
|
378
382
|
if (!f) {
|
|
379
383
|
const t = { params: {} };
|
|
380
|
-
return null ===
|
|
384
|
+
return null === a ? (a = [t]) : a.push(t), p++, (i.errors = a), !1;
|
|
381
385
|
}
|
|
382
386
|
return ((p = l),
|
|
383
|
-
null !==
|
|
384
|
-
(
|
|
387
|
+
null !== a && (l ? (a.length = l) : (a = null)),
|
|
388
|
+
(i.errors = a),
|
|
385
389
|
0 === p);
|
|
386
390
|
}
|
|
387
|
-
const
|
|
391
|
+
const p = {
|
|
388
392
|
anyOf: [
|
|
389
393
|
{
|
|
390
394
|
enum: [
|
|
@@ -411,17 +415,17 @@ const i = {
|
|
|
411
415
|
{ type: 'string' },
|
|
412
416
|
],
|
|
413
417
|
};
|
|
414
|
-
function
|
|
418
|
+
function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
415
419
|
let a = null, o = 0;
|
|
416
420
|
const i = o;
|
|
417
|
-
let
|
|
421
|
+
let p = !1;
|
|
418
422
|
const f = o;
|
|
419
423
|
if ('string' != typeof t) {
|
|
420
424
|
const t = { params: { type: 'string' } };
|
|
421
425
|
null === a ? (a = [t]) : a.push(t), o++;
|
|
422
426
|
}
|
|
423
427
|
var m = f === o;
|
|
424
|
-
if (((
|
|
428
|
+
if (((p = p || m), !p)) {
|
|
425
429
|
const e = o;
|
|
426
430
|
if (o == o)
|
|
427
431
|
if (t && 'object' == typeof t && !Array.isArray(t)) {
|
|
@@ -487,23 +491,23 @@ function p(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
487
491
|
const t = { params: { type: 'object' } };
|
|
488
492
|
null === a ? (a = [t]) : a.push(t), o++;
|
|
489
493
|
}
|
|
490
|
-
(m = e === o), (
|
|
494
|
+
(m = e === o), (p = p || m);
|
|
491
495
|
}
|
|
492
|
-
if (!
|
|
496
|
+
if (!p) {
|
|
493
497
|
const t = { params: {} };
|
|
494
|
-
return null === a ? (a = [t]) : a.push(t), o++, (
|
|
498
|
+
return null === a ? (a = [t]) : a.push(t), o++, (l.errors = a), !1;
|
|
495
499
|
}
|
|
496
500
|
return ((o = i),
|
|
497
501
|
null !== a && (i ? (a.length = i) : (a = null)),
|
|
498
|
-
(
|
|
502
|
+
(l.errors = a),
|
|
499
503
|
0 === o);
|
|
500
504
|
}
|
|
501
|
-
function
|
|
505
|
+
function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
502
506
|
let a = null, o = 0;
|
|
503
507
|
const i = o;
|
|
504
508
|
let p = !1;
|
|
505
|
-
const
|
|
506
|
-
if (o ===
|
|
509
|
+
const l = o;
|
|
510
|
+
if (o === l)
|
|
507
511
|
if (Array.isArray(t))
|
|
508
512
|
if (t.length < 1) {
|
|
509
513
|
const t = { params: { limit: 1 } };
|
|
@@ -533,7 +537,7 @@ function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
533
537
|
const t = { params: { type: 'array' } };
|
|
534
538
|
null === a ? (a = [t]) : a.push(t), o++;
|
|
535
539
|
}
|
|
536
|
-
var m =
|
|
540
|
+
var m = l === o;
|
|
537
541
|
if (((p = p || m), !p)) {
|
|
538
542
|
const e = o;
|
|
539
543
|
if (o === e)
|
|
@@ -665,22 +669,22 @@ function l(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
665
669
|
}
|
|
666
670
|
if (!p) {
|
|
667
671
|
const t = { params: {} };
|
|
668
|
-
return null === a ? (a = [t]) : a.push(t), o++, (
|
|
672
|
+
return null === a ? (a = [t]) : a.push(t), o++, (f.errors = a), !1;
|
|
669
673
|
}
|
|
670
674
|
return ((o = i),
|
|
671
675
|
null !== a && (i ? (a.length = i) : (a = null)),
|
|
672
|
-
(
|
|
676
|
+
(f.errors = a),
|
|
673
677
|
0 === o);
|
|
674
678
|
}
|
|
675
|
-
function
|
|
679
|
+
function m(t, { instancePath: e = '', parentData: r, parentDataProperty: n, rootData: s = t, } = {}) {
|
|
676
680
|
let a = null, o = 0;
|
|
677
681
|
if (0 === o) {
|
|
678
682
|
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
679
|
-
return (
|
|
683
|
+
return (m.errors = [{ params: { type: 'object' } }]), !1;
|
|
680
684
|
{
|
|
681
685
|
let r;
|
|
682
686
|
if (void 0 === t.type && (r = 'type'))
|
|
683
|
-
return (
|
|
687
|
+
return (m.errors = [{ params: { missingProperty: r } }]), !1;
|
|
684
688
|
{
|
|
685
689
|
const r = o;
|
|
686
690
|
for (const e in t)
|
|
@@ -690,43 +694,43 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
690
694
|
'name' !== e &&
|
|
691
695
|
'type' !== e &&
|
|
692
696
|
'umdNamedDefine' !== e)
|
|
693
|
-
return (
|
|
697
|
+
return (m.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
694
698
|
if (r === o) {
|
|
695
699
|
if (void 0 !== t.amdContainer) {
|
|
696
700
|
let e = t.amdContainer;
|
|
697
701
|
const r = o;
|
|
698
702
|
if (o == o) {
|
|
699
703
|
if ('string' != typeof e)
|
|
700
|
-
return (
|
|
704
|
+
return (m.errors = [{ params: { type: 'string' } }]), !1;
|
|
701
705
|
if (e.length < 1)
|
|
702
|
-
return (
|
|
706
|
+
return (m.errors = [{ params: {} }]), !1;
|
|
703
707
|
}
|
|
704
|
-
var
|
|
708
|
+
var i = r === o;
|
|
705
709
|
}
|
|
706
710
|
else
|
|
707
|
-
|
|
708
|
-
if (
|
|
711
|
+
i = !0;
|
|
712
|
+
if (i) {
|
|
709
713
|
if (void 0 !== t.auxiliaryComment) {
|
|
710
714
|
const r = o;
|
|
711
|
-
|
|
715
|
+
l(t.auxiliaryComment, {
|
|
712
716
|
instancePath: e + '/auxiliaryComment',
|
|
713
717
|
parentData: t,
|
|
714
718
|
parentDataProperty: 'auxiliaryComment',
|
|
715
719
|
rootData: s,
|
|
716
720
|
}) ||
|
|
717
|
-
((a = null === a ?
|
|
721
|
+
((a = null === a ? l.errors : a.concat(l.errors)),
|
|
718
722
|
(o = a.length)),
|
|
719
|
-
(
|
|
723
|
+
(i = r === o);
|
|
720
724
|
}
|
|
721
725
|
else
|
|
722
|
-
|
|
723
|
-
if (
|
|
726
|
+
i = !0;
|
|
727
|
+
if (i) {
|
|
724
728
|
if (void 0 !== t.export) {
|
|
725
729
|
let e = t.export;
|
|
726
730
|
const r = o, n = o;
|
|
727
731
|
let s = !1;
|
|
728
|
-
const
|
|
729
|
-
if (o ===
|
|
732
|
+
const p = o;
|
|
733
|
+
if (o === p)
|
|
730
734
|
if (Array.isArray(e)) {
|
|
731
735
|
const t = e.length;
|
|
732
736
|
for (let r = 0; r < t; r++) {
|
|
@@ -751,7 +755,7 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
751
755
|
const t = { params: { type: 'array' } };
|
|
752
756
|
null === a ? (a = [t]) : a.push(t), o++;
|
|
753
757
|
}
|
|
754
|
-
var u =
|
|
758
|
+
var u = p === o;
|
|
755
759
|
if (((s = s || u), !s)) {
|
|
756
760
|
const t = o;
|
|
757
761
|
if (o === t)
|
|
@@ -769,35 +773,35 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
769
773
|
}
|
|
770
774
|
if (!s) {
|
|
771
775
|
const t = { params: {} };
|
|
772
|
-
return (null === a ? (a = [t]) : a.push(t), o++, (
|
|
776
|
+
return (null === a ? (a = [t]) : a.push(t), o++, (m.errors = a), !1);
|
|
773
777
|
}
|
|
774
778
|
(o = n),
|
|
775
779
|
null !== a && (n ? (a.length = n) : (a = null)),
|
|
776
|
-
(
|
|
780
|
+
(i = r === o);
|
|
777
781
|
}
|
|
778
782
|
else
|
|
779
|
-
|
|
780
|
-
if (
|
|
783
|
+
i = !0;
|
|
784
|
+
if (i) {
|
|
781
785
|
if (void 0 !== t.name) {
|
|
782
786
|
const r = o;
|
|
783
|
-
|
|
787
|
+
f(t.name, {
|
|
784
788
|
instancePath: e + '/name',
|
|
785
789
|
parentData: t,
|
|
786
790
|
parentDataProperty: 'name',
|
|
787
791
|
rootData: s,
|
|
788
792
|
}) ||
|
|
789
|
-
((a = null === a ?
|
|
793
|
+
((a = null === a ? f.errors : a.concat(f.errors)),
|
|
790
794
|
(o = a.length)),
|
|
791
|
-
(
|
|
795
|
+
(i = r === o);
|
|
792
796
|
}
|
|
793
797
|
else
|
|
794
|
-
|
|
795
|
-
if (
|
|
798
|
+
i = !0;
|
|
799
|
+
if (i) {
|
|
796
800
|
if (void 0 !== t.type) {
|
|
797
801
|
let e = t.type;
|
|
798
802
|
const r = o, n = o;
|
|
799
803
|
let s = !1;
|
|
800
|
-
const
|
|
804
|
+
const l = o;
|
|
801
805
|
if ('var' !== e &&
|
|
802
806
|
'module' !== e &&
|
|
803
807
|
'assign' !== e &&
|
|
@@ -816,10 +820,10 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
816
820
|
'umd2' !== e &&
|
|
817
821
|
'jsonp' !== e &&
|
|
818
822
|
'system' !== e) {
|
|
819
|
-
const t = { params: { allowedValues:
|
|
823
|
+
const t = { params: { allowedValues: p.anyOf[0].enum } };
|
|
820
824
|
null === a ? (a = [t]) : a.push(t), o++;
|
|
821
825
|
}
|
|
822
|
-
var c =
|
|
826
|
+
var c = l === o;
|
|
823
827
|
if (((s = s || c), !s)) {
|
|
824
828
|
const t = o;
|
|
825
829
|
if ('string' != typeof e) {
|
|
@@ -832,24 +836,24 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
832
836
|
const t = { params: {} };
|
|
833
837
|
return (null === a ? (a = [t]) : a.push(t),
|
|
834
838
|
o++,
|
|
835
|
-
(
|
|
839
|
+
(m.errors = a),
|
|
836
840
|
!1);
|
|
837
841
|
}
|
|
838
842
|
(o = n),
|
|
839
843
|
null !== a && (n ? (a.length = n) : (a = null)),
|
|
840
|
-
(
|
|
844
|
+
(i = r === o);
|
|
841
845
|
}
|
|
842
846
|
else
|
|
843
|
-
|
|
844
|
-
if (
|
|
847
|
+
i = !0;
|
|
848
|
+
if (i)
|
|
845
849
|
if (void 0 !== t.umdNamedDefine) {
|
|
846
850
|
const e = o;
|
|
847
851
|
if ('boolean' != typeof t.umdNamedDefine)
|
|
848
|
-
return ((
|
|
849
|
-
|
|
852
|
+
return ((m.errors = [{ params: { type: 'boolean' } }]), !1);
|
|
853
|
+
i = e === o;
|
|
850
854
|
}
|
|
851
855
|
else
|
|
852
|
-
|
|
856
|
+
i = !0;
|
|
853
857
|
}
|
|
854
858
|
}
|
|
855
859
|
}
|
|
@@ -858,241 +862,280 @@ function f(t, { instancePath: e = '', parentData: r, parentDataProperty: n, root
|
|
|
858
862
|
}
|
|
859
863
|
}
|
|
860
864
|
}
|
|
861
|
-
return (
|
|
865
|
+
return (m.errors = a), 0 === o;
|
|
862
866
|
}
|
|
863
|
-
function
|
|
864
|
-
let
|
|
865
|
-
if (0 ===
|
|
866
|
-
if (!
|
|
867
|
-
return (
|
|
867
|
+
function u(s, { instancePath: a = '', parentData: o, parentDataProperty: p, rootData: l = s, } = {}) {
|
|
868
|
+
let f = null, c = 0;
|
|
869
|
+
if (0 === c) {
|
|
870
|
+
if (!s || 'object' != typeof s || Array.isArray(s))
|
|
871
|
+
return (u.errors = [{ params: { type: 'object' } }]), !1;
|
|
868
872
|
{
|
|
869
|
-
let
|
|
870
|
-
if ((void 0 ===
|
|
871
|
-
(void 0 ===
|
|
872
|
-
return (
|
|
873
|
+
let o;
|
|
874
|
+
if ((void 0 === s.name && (o = 'name')) ||
|
|
875
|
+
(void 0 === s.exposes && (o = 'exposes')))
|
|
876
|
+
return (u.errors = [{ params: { missingProperty: o } }]), !1;
|
|
873
877
|
{
|
|
874
|
-
const
|
|
875
|
-
for (const t in
|
|
876
|
-
if (
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
return (m.errors = [{ params: { additionalProperty: t } }]), !1;
|
|
885
|
-
if (a === u) {
|
|
886
|
-
if (void 0 !== n.exposes) {
|
|
887
|
-
const t = u;
|
|
888
|
-
o(n.exposes, {
|
|
889
|
-
instancePath: s + '/exposes',
|
|
890
|
-
parentData: n,
|
|
878
|
+
const o = c;
|
|
879
|
+
for (const t in s)
|
|
880
|
+
if (!n.call(e.properties, t))
|
|
881
|
+
return (u.errors = [{ params: { additionalProperty: t } }]), !1;
|
|
882
|
+
if (o === c) {
|
|
883
|
+
if (void 0 !== s.exposes) {
|
|
884
|
+
const t = c;
|
|
885
|
+
i(s.exposes, {
|
|
886
|
+
instancePath: a + '/exposes',
|
|
887
|
+
parentData: s,
|
|
891
888
|
parentDataProperty: 'exposes',
|
|
892
|
-
rootData:
|
|
889
|
+
rootData: l,
|
|
893
890
|
}) ||
|
|
894
|
-
((
|
|
895
|
-
(
|
|
896
|
-
var
|
|
891
|
+
((f = null === f ? i.errors : f.concat(i.errors)),
|
|
892
|
+
(c = f.length));
|
|
893
|
+
var y = t === c;
|
|
897
894
|
}
|
|
898
895
|
else
|
|
899
|
-
|
|
900
|
-
if (
|
|
901
|
-
if (void 0 !==
|
|
902
|
-
let e =
|
|
903
|
-
const r =
|
|
904
|
-
if (
|
|
896
|
+
y = !0;
|
|
897
|
+
if (y) {
|
|
898
|
+
if (void 0 !== s.filename) {
|
|
899
|
+
let e = s.filename;
|
|
900
|
+
const r = c;
|
|
901
|
+
if (c === r) {
|
|
905
902
|
if ('string' != typeof e)
|
|
906
|
-
return (
|
|
903
|
+
return (u.errors = [{ params: { type: 'string' } }]), !1;
|
|
907
904
|
if (e.length < 1)
|
|
908
|
-
return (
|
|
905
|
+
return (u.errors = [{ params: {} }]), !1;
|
|
909
906
|
if (e.includes('!') || !1 !== t.test(e))
|
|
910
|
-
return (
|
|
907
|
+
return (u.errors = [{ params: {} }]), !1;
|
|
911
908
|
}
|
|
912
|
-
|
|
909
|
+
y = r === c;
|
|
913
910
|
}
|
|
914
911
|
else
|
|
915
|
-
|
|
916
|
-
if (
|
|
917
|
-
if (void 0 !==
|
|
918
|
-
const t =
|
|
919
|
-
|
|
920
|
-
instancePath:
|
|
921
|
-
parentData:
|
|
912
|
+
y = !0;
|
|
913
|
+
if (y) {
|
|
914
|
+
if (void 0 !== s.library) {
|
|
915
|
+
const t = c;
|
|
916
|
+
m(s.library, {
|
|
917
|
+
instancePath: a + '/library',
|
|
918
|
+
parentData: s,
|
|
922
919
|
parentDataProperty: 'library',
|
|
923
|
-
rootData:
|
|
920
|
+
rootData: l,
|
|
924
921
|
}) ||
|
|
925
|
-
((
|
|
926
|
-
(
|
|
927
|
-
(
|
|
922
|
+
((f = null === f ? m.errors : f.concat(m.errors)),
|
|
923
|
+
(c = f.length)),
|
|
924
|
+
(y = t === c);
|
|
928
925
|
}
|
|
929
926
|
else
|
|
930
|
-
|
|
931
|
-
if (
|
|
932
|
-
if (void 0 !==
|
|
933
|
-
let t =
|
|
934
|
-
const e =
|
|
935
|
-
if (
|
|
927
|
+
y = !0;
|
|
928
|
+
if (y) {
|
|
929
|
+
if (void 0 !== s.name) {
|
|
930
|
+
let t = s.name;
|
|
931
|
+
const e = c;
|
|
932
|
+
if (c === e) {
|
|
936
933
|
if ('string' != typeof t)
|
|
937
|
-
return (
|
|
934
|
+
return (u.errors = [{ params: { type: 'string' } }]), !1;
|
|
938
935
|
if (t.length < 1)
|
|
939
|
-
return (
|
|
936
|
+
return (u.errors = [{ params: {} }]), !1;
|
|
940
937
|
}
|
|
941
|
-
|
|
938
|
+
y = e === c;
|
|
942
939
|
}
|
|
943
940
|
else
|
|
944
|
-
|
|
945
|
-
if (
|
|
946
|
-
if (void 0 !==
|
|
947
|
-
let t =
|
|
948
|
-
const e =
|
|
941
|
+
y = !0;
|
|
942
|
+
if (y) {
|
|
943
|
+
if (void 0 !== s.runtime) {
|
|
944
|
+
let t = s.runtime;
|
|
945
|
+
const e = c, n = c;
|
|
949
946
|
let a = !1;
|
|
950
|
-
const o =
|
|
947
|
+
const o = c;
|
|
951
948
|
if (!1 !== t) {
|
|
952
949
|
const t = { params: { allowedValues: r.anyOf[0].enum } };
|
|
953
|
-
null ===
|
|
950
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
954
951
|
}
|
|
955
|
-
var
|
|
956
|
-
if (((a = a ||
|
|
957
|
-
const e =
|
|
958
|
-
if (
|
|
952
|
+
var g = o === c;
|
|
953
|
+
if (((a = a || g), !a)) {
|
|
954
|
+
const e = c;
|
|
955
|
+
if (c === e)
|
|
959
956
|
if ('string' == typeof t) {
|
|
960
957
|
if (t.length < 1) {
|
|
961
958
|
const t = { params: {} };
|
|
962
|
-
null ===
|
|
959
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
963
960
|
}
|
|
964
961
|
}
|
|
965
962
|
else {
|
|
966
963
|
const t = { params: { type: 'string' } };
|
|
967
|
-
null ===
|
|
964
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
968
965
|
}
|
|
969
|
-
(
|
|
966
|
+
(g = e === c), (a = a || g);
|
|
970
967
|
}
|
|
971
968
|
if (!a) {
|
|
972
969
|
const t = { params: {} };
|
|
973
|
-
return (null ===
|
|
974
|
-
|
|
975
|
-
(
|
|
970
|
+
return (null === f ? (f = [t]) : f.push(t),
|
|
971
|
+
c++,
|
|
972
|
+
(u.errors = f),
|
|
976
973
|
!1);
|
|
977
974
|
}
|
|
978
|
-
(
|
|
979
|
-
null !==
|
|
980
|
-
(
|
|
975
|
+
(c = n),
|
|
976
|
+
null !== f && (n ? (f.length = n) : (f = null)),
|
|
977
|
+
(y = e === c);
|
|
981
978
|
}
|
|
982
979
|
else
|
|
983
|
-
|
|
984
|
-
if (
|
|
985
|
-
if (void 0 !==
|
|
986
|
-
let t =
|
|
987
|
-
const e =
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
{
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
if ('string' != typeof t[r])
|
|
996
|
-
return ((m.errors = [{ params: { type: 'string' } }]),
|
|
997
|
-
!1);
|
|
998
|
-
if (e !== u)
|
|
999
|
-
break;
|
|
980
|
+
y = !0;
|
|
981
|
+
if (y) {
|
|
982
|
+
if (void 0 !== s.shareScope) {
|
|
983
|
+
let t = s.shareScope;
|
|
984
|
+
const e = c, r = c;
|
|
985
|
+
let n = !1;
|
|
986
|
+
const a = c;
|
|
987
|
+
if (c === a)
|
|
988
|
+
if ('string' == typeof t) {
|
|
989
|
+
if (t.length < 1) {
|
|
990
|
+
const t = { params: {} };
|
|
991
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
1000
992
|
}
|
|
1001
993
|
}
|
|
994
|
+
else {
|
|
995
|
+
const t = { params: { type: 'string' } };
|
|
996
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
997
|
+
}
|
|
998
|
+
var h = a === c;
|
|
999
|
+
if (((n = n || h), !n)) {
|
|
1000
|
+
const e = c;
|
|
1001
|
+
if (c === e)
|
|
1002
|
+
if (Array.isArray(t)) {
|
|
1003
|
+
const e = t.length;
|
|
1004
|
+
for (let r = 0; r < e; r++) {
|
|
1005
|
+
let e = t[r];
|
|
1006
|
+
const n = c;
|
|
1007
|
+
if (c === n)
|
|
1008
|
+
if ('string' == typeof e) {
|
|
1009
|
+
if (e.length < 1) {
|
|
1010
|
+
const t = { params: {} };
|
|
1011
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
else {
|
|
1015
|
+
const t = { params: { type: 'string' } };
|
|
1016
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
1017
|
+
}
|
|
1018
|
+
if (n !== c)
|
|
1019
|
+
break;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
else {
|
|
1023
|
+
const t = { params: { type: 'array' } };
|
|
1024
|
+
null === f ? (f = [t]) : f.push(t), c++;
|
|
1025
|
+
}
|
|
1026
|
+
(h = e === c), (n = n || h);
|
|
1002
1027
|
}
|
|
1003
|
-
|
|
1028
|
+
if (!n) {
|
|
1029
|
+
const t = { params: {} };
|
|
1030
|
+
return (null === f ? (f = [t]) : f.push(t),
|
|
1031
|
+
c++,
|
|
1032
|
+
(u.errors = f),
|
|
1033
|
+
!1);
|
|
1034
|
+
}
|
|
1035
|
+
(c = r),
|
|
1036
|
+
null !== f && (r ? (f.length = r) : (f = null)),
|
|
1037
|
+
(y = e === c);
|
|
1004
1038
|
}
|
|
1005
1039
|
else
|
|
1006
|
-
|
|
1007
|
-
if (
|
|
1008
|
-
if (void 0 !==
|
|
1009
|
-
let t =
|
|
1010
|
-
const e =
|
|
1011
|
-
if (
|
|
1012
|
-
if ('
|
|
1013
|
-
return ((
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
const r = u;
|
|
1031
|
-
for (const e in t)
|
|
1032
|
-
if ('asyncStartup' !== e &&
|
|
1033
|
-
'externalRuntime' !== e)
|
|
1034
|
-
return ((m.errors = [
|
|
1035
|
-
{ params: { additionalProperty: e } },
|
|
1040
|
+
y = !0;
|
|
1041
|
+
if (y) {
|
|
1042
|
+
if (void 0 !== s.experiments) {
|
|
1043
|
+
let t = s.experiments;
|
|
1044
|
+
const e = c;
|
|
1045
|
+
if (c === e) {
|
|
1046
|
+
if (!t || 'object' != typeof t || Array.isArray(t))
|
|
1047
|
+
return ((u.errors = [{ params: { type: 'object' } }]), !1);
|
|
1048
|
+
{
|
|
1049
|
+
const e = c;
|
|
1050
|
+
for (const e in t)
|
|
1051
|
+
if ('asyncStartup' !== e &&
|
|
1052
|
+
'externalRuntime' !== e &&
|
|
1053
|
+
'provideExternalRuntime' !== e)
|
|
1054
|
+
return ((u.errors = [
|
|
1055
|
+
{ params: { additionalProperty: e } },
|
|
1056
|
+
]),
|
|
1057
|
+
!1);
|
|
1058
|
+
if (e === c) {
|
|
1059
|
+
if (void 0 !== t.asyncStartup) {
|
|
1060
|
+
const e = c;
|
|
1061
|
+
if ('boolean' != typeof t.asyncStartup)
|
|
1062
|
+
return ((u.errors = [
|
|
1063
|
+
{ params: { type: 'boolean' } },
|
|
1036
1064
|
]),
|
|
1037
1065
|
!1);
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1066
|
+
var d = e === c;
|
|
1067
|
+
}
|
|
1068
|
+
else
|
|
1069
|
+
d = !0;
|
|
1070
|
+
if (d) {
|
|
1071
|
+
if (void 0 !== t.externalRuntime) {
|
|
1072
|
+
const e = c;
|
|
1073
|
+
if ('boolean' != typeof t.externalRuntime)
|
|
1074
|
+
return ((u.errors = [
|
|
1043
1075
|
{ params: { type: 'boolean' } },
|
|
1044
1076
|
]),
|
|
1045
1077
|
!1);
|
|
1046
|
-
|
|
1078
|
+
d = e === c;
|
|
1047
1079
|
}
|
|
1048
1080
|
else
|
|
1049
|
-
|
|
1050
|
-
if (
|
|
1051
|
-
if (void 0 !== t.
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
null === l ? (l = [t]) : l.push(t), u++;
|
|
1059
|
-
}
|
|
1060
|
-
var d = o === u;
|
|
1061
|
-
if (((a = a || d), !a)) {
|
|
1062
|
-
const t = u;
|
|
1063
|
-
if ('provide' !== r) {
|
|
1064
|
-
const t = {
|
|
1065
|
-
params: {
|
|
1066
|
-
allowedValues: e.properties.experiments
|
|
1067
|
-
.properties.externalRuntime
|
|
1068
|
-
.anyOf[1].enum,
|
|
1069
|
-
},
|
|
1070
|
-
};
|
|
1071
|
-
null === l ? (l = [t]) : l.push(t), u++;
|
|
1072
|
-
}
|
|
1073
|
-
(d = t === u), (a = a || d);
|
|
1074
|
-
}
|
|
1075
|
-
if (!a) {
|
|
1076
|
-
const t = { params: {} };
|
|
1077
|
-
return (null === l ? (l = [t]) : l.push(t),
|
|
1078
|
-
u++,
|
|
1079
|
-
(m.errors = l),
|
|
1081
|
+
d = !0;
|
|
1082
|
+
if (d)
|
|
1083
|
+
if (void 0 !== t.provideExternalRuntime) {
|
|
1084
|
+
const e = c;
|
|
1085
|
+
if ('boolean' !=
|
|
1086
|
+
typeof t.provideExternalRuntime)
|
|
1087
|
+
return ((u.errors = [
|
|
1088
|
+
{ params: { type: 'boolean' } },
|
|
1089
|
+
]),
|
|
1080
1090
|
!1);
|
|
1081
|
-
|
|
1082
|
-
(u = s),
|
|
1083
|
-
null !== l &&
|
|
1084
|
-
(s ? (l.length = s) : (l = null)),
|
|
1085
|
-
(g = n === u);
|
|
1091
|
+
d = e === c;
|
|
1086
1092
|
}
|
|
1087
1093
|
else
|
|
1088
|
-
|
|
1094
|
+
d = !0;
|
|
1089
1095
|
}
|
|
1090
1096
|
}
|
|
1091
1097
|
}
|
|
1092
|
-
|
|
1098
|
+
}
|
|
1099
|
+
y = e === c;
|
|
1100
|
+
}
|
|
1101
|
+
else
|
|
1102
|
+
y = !0;
|
|
1103
|
+
if (y) {
|
|
1104
|
+
if (void 0 !== s.dataPrefetch) {
|
|
1105
|
+
const t = c;
|
|
1106
|
+
if ('boolean' != typeof s.dataPrefetch)
|
|
1107
|
+
return ((u.errors = [{ params: { type: 'boolean' } }]), !1);
|
|
1108
|
+
y = t === c;
|
|
1093
1109
|
}
|
|
1094
1110
|
else
|
|
1095
|
-
|
|
1111
|
+
y = !0;
|
|
1112
|
+
if (y)
|
|
1113
|
+
if (void 0 !== s.runtimePlugins) {
|
|
1114
|
+
let t = s.runtimePlugins;
|
|
1115
|
+
const e = c;
|
|
1116
|
+
if (c === e) {
|
|
1117
|
+
if (!Array.isArray(t))
|
|
1118
|
+
return ((u.errors = [{ params: { type: 'array' } }]),
|
|
1119
|
+
!1);
|
|
1120
|
+
{
|
|
1121
|
+
const e = t.length;
|
|
1122
|
+
for (let r = 0; r < e; r++) {
|
|
1123
|
+
const e = c;
|
|
1124
|
+
if ('string' != typeof t[r])
|
|
1125
|
+
return ((u.errors = [
|
|
1126
|
+
{ params: { type: 'string' } },
|
|
1127
|
+
]),
|
|
1128
|
+
!1);
|
|
1129
|
+
if (e !== c)
|
|
1130
|
+
break;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
y = e === c;
|
|
1135
|
+
}
|
|
1136
|
+
else
|
|
1137
|
+
y = !0;
|
|
1138
|
+
}
|
|
1096
1139
|
}
|
|
1097
1140
|
}
|
|
1098
1141
|
}
|
|
@@ -1103,6 +1146,6 @@ function m(n, { instancePath: s = '', parentData: a, parentDataProperty: i, root
|
|
|
1103
1146
|
}
|
|
1104
1147
|
}
|
|
1105
1148
|
}
|
|
1106
|
-
return (
|
|
1149
|
+
return (u.errors = f), 0 === c;
|
|
1107
1150
|
}
|
|
1108
1151
|
//# sourceMappingURL=ContainerPlugin.check.js.map
|