@module-federation/enhanced 0.19.1 → 0.21.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/README.md +1 -1
- package/dist/package.json +3 -2
- package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +1 -1
- package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +1 -1
- package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +1 -1
- package/dist/src/lib/container/ContainerEntryModule.js +1 -1
- package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
- package/dist/src/lib/container/ModuleFederationPlugin.js +2 -1
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/lib/container/RemoteRuntimeModule.js +13 -2
- package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -1
- package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +5 -5
- package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationModulesPlugin.js +11 -2
- package/dist/src/lib/container/runtime/FederationModulesPlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +16 -7
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
- package/dist/src/lib/container/runtime/getFederationGlobal.js +22 -3
- package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -1
- package/dist/src/lib/container/runtime/utils.js +35 -16
- package/dist/src/lib/container/runtime/utils.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +48 -7
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +19 -26
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedPlugin.js +4 -4
- package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/SharePlugin.js +2 -2
- package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
- package/dist/src/schemas/container/ContainerPlugin.check.d.ts +1 -1
- package/dist/src/schemas/container/ContainerPlugin.check.js +175 -97
- package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ContainerPlugin.d.ts +12 -1
- package/dist/src/schemas/container/ContainerPlugin.js +18 -1
- package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +1925 -1095
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +111 -6
- package/dist/src/schemas/container/ModuleFederationPlugin.js +132 -6
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +6 -6
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +2 -2
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +2 -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 +79 -79
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +2 -2
- package/dist/src/schemas/sharing/ProvideSharedPlugin.js +2 -2
- package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/SharePlugin.check.d.ts +3 -3
- package/dist/src/schemas/sharing/SharePlugin.check.js +97 -98
- package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/SharePlugin.d.ts +2 -2
- package/dist/src/schemas/sharing/SharePlugin.js +2 -2
- package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
- package/dist/src/types/runtime.d.ts +4 -1
- package/dist/src/wrapper/ModuleFederationPlugin.d.ts +1 -1
- package/dist/src/wrapper/ModuleFederationPlugin.js +53 -6
- package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
- package/package.json +14 -13
|
@@ -7,8 +7,8 @@ exports.validate = void 0;
|
|
|
7
7
|
* This file was automatically generated.
|
|
8
8
|
* DO NOT MODIFY BY HAND.
|
|
9
9
|
*/
|
|
10
|
-
exports.validate =
|
|
11
|
-
exports.default =
|
|
10
|
+
exports.validate = a;
|
|
11
|
+
exports.default = a;
|
|
12
12
|
const r = {
|
|
13
13
|
type: 'object',
|
|
14
14
|
additionalProperties: !1,
|
|
@@ -32,7 +32,7 @@ const r = {
|
|
|
32
32
|
request: { type: 'string', minLength: 1 },
|
|
33
33
|
layer: { type: 'string', minLength: 1 },
|
|
34
34
|
issuerLayer: { type: 'string', minLength: 1 },
|
|
35
|
-
|
|
35
|
+
allowNodeModulesSuffixMatch: { type: 'boolean' },
|
|
36
36
|
},
|
|
37
37
|
}, e = {
|
|
38
38
|
type: 'object',
|
|
@@ -48,7 +48,7 @@ const r = {
|
|
|
48
48
|
{ required: ['fallbackVersion'] },
|
|
49
49
|
],
|
|
50
50
|
}, t = Object.prototype.hasOwnProperty;
|
|
51
|
-
function s(n, { instancePath: o = '', parentData:
|
|
51
|
+
function s(n, { instancePath: o = '', parentData: a, parentDataProperty: i, rootData: l = n, } = {}) {
|
|
52
52
|
let p = null, f = 0;
|
|
53
53
|
if (0 === f) {
|
|
54
54
|
if (!n || 'object' != typeof n || Array.isArray(n))
|
|
@@ -70,8 +70,8 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
70
70
|
if (u) {
|
|
71
71
|
if (void 0 !== n.exclude) {
|
|
72
72
|
let r = n.exclude;
|
|
73
|
-
const t = f, o = f,
|
|
74
|
-
let
|
|
73
|
+
const t = f, o = f, a = f;
|
|
74
|
+
let i = !1;
|
|
75
75
|
const l = f;
|
|
76
76
|
if (r && 'object' == typeof r && !Array.isArray(r)) {
|
|
77
77
|
let e;
|
|
@@ -81,7 +81,7 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
var c = l === f;
|
|
84
|
-
if (((
|
|
84
|
+
if (((i = i || c), !i)) {
|
|
85
85
|
const e = f;
|
|
86
86
|
if (r && 'object' == typeof r && !Array.isArray(r)) {
|
|
87
87
|
let e;
|
|
@@ -90,7 +90,7 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
90
90
|
null === p ? (p = [r]) : p.push(r), f++;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
if (((c = e === f), (
|
|
93
|
+
if (((c = e === f), (i = i || c), !i)) {
|
|
94
94
|
const e = f;
|
|
95
95
|
if (r && 'object' == typeof r && !Array.isArray(r)) {
|
|
96
96
|
let e;
|
|
@@ -99,15 +99,15 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
99
99
|
null === p ? (p = [r]) : p.push(r), f++;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
(c = e === f), (
|
|
102
|
+
(c = e === f), (i = i || c);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
if (!
|
|
105
|
+
if (!i) {
|
|
106
106
|
const r = { params: {} };
|
|
107
107
|
return (null === p ? (p = [r]) : p.push(r), f++, (s.errors = p), !1);
|
|
108
108
|
}
|
|
109
|
-
if (((f =
|
|
110
|
-
null !== p && (
|
|
109
|
+
if (((f = a),
|
|
110
|
+
null !== p && (a ? (p.length = a) : (p = null)),
|
|
111
111
|
f === o)) {
|
|
112
112
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
113
113
|
return (s.errors = [{ params: { type: 'object' } }]), !1;
|
|
@@ -161,8 +161,8 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
161
161
|
if (u) {
|
|
162
162
|
if (void 0 !== n.include) {
|
|
163
163
|
let r = n.include;
|
|
164
|
-
const t = f, o = f,
|
|
165
|
-
let
|
|
164
|
+
const t = f, o = f, a = f;
|
|
165
|
+
let i = !1;
|
|
166
166
|
const l = f;
|
|
167
167
|
if (r && 'object' == typeof r && !Array.isArray(r)) {
|
|
168
168
|
let e;
|
|
@@ -171,8 +171,8 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
171
171
|
null === p ? (p = [r]) : p.push(r), f++;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
var
|
|
175
|
-
if (((
|
|
174
|
+
var h = l === f;
|
|
175
|
+
if (((i = i || h), !i)) {
|
|
176
176
|
const e = f;
|
|
177
177
|
if (r && 'object' == typeof r && !Array.isArray(r)) {
|
|
178
178
|
let e;
|
|
@@ -181,7 +181,7 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
181
181
|
null === p ? (p = [r]) : p.push(r), f++;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
if (((
|
|
184
|
+
if (((h = e === f), (i = i || h), !i)) {
|
|
185
185
|
const e = f;
|
|
186
186
|
if (r && 'object' == typeof r && !Array.isArray(r)) {
|
|
187
187
|
let e;
|
|
@@ -191,15 +191,15 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
191
191
|
null === p ? (p = [r]) : p.push(r), f++;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
(
|
|
194
|
+
(h = e === f), (i = i || h);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
if (!
|
|
197
|
+
if (!i) {
|
|
198
198
|
const r = { params: {} };
|
|
199
199
|
return (null === p ? (p = [r]) : p.push(r), f++, (s.errors = p), !1);
|
|
200
200
|
}
|
|
201
|
-
if (((f =
|
|
202
|
-
null !== p && (
|
|
201
|
+
if (((f = a),
|
|
202
|
+
null !== p && (a ? (p.length = a) : (p = null)),
|
|
203
203
|
f === o)) {
|
|
204
204
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
205
205
|
return (s.errors = [{ params: { type: 'object' } }]), !1;
|
|
@@ -220,28 +220,28 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
220
220
|
{ params: { type: e.properties.request.type } },
|
|
221
221
|
]),
|
|
222
222
|
!1);
|
|
223
|
-
var
|
|
223
|
+
var g = n === f;
|
|
224
224
|
}
|
|
225
225
|
else
|
|
226
|
-
|
|
227
|
-
if (
|
|
226
|
+
g = !0;
|
|
227
|
+
if (g) {
|
|
228
228
|
if (void 0 !== r.version) {
|
|
229
229
|
const e = f;
|
|
230
230
|
if ('string' != typeof r.version)
|
|
231
231
|
return ((s.errors = [{ params: { type: 'string' } }]), !1);
|
|
232
|
-
|
|
232
|
+
g = e === f;
|
|
233
233
|
}
|
|
234
234
|
else
|
|
235
|
-
|
|
236
|
-
if (
|
|
235
|
+
g = !0;
|
|
236
|
+
if (g)
|
|
237
237
|
if (void 0 !== r.fallbackVersion) {
|
|
238
238
|
const e = f;
|
|
239
239
|
if ('string' != typeof r.fallbackVersion)
|
|
240
240
|
return ((s.errors = [{ params: { type: 'string' } }]), !1);
|
|
241
|
-
|
|
241
|
+
g = e === f;
|
|
242
242
|
}
|
|
243
243
|
else
|
|
244
|
-
|
|
244
|
+
g = !0;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
}
|
|
@@ -254,8 +254,8 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
254
254
|
if (void 0 !== n.import) {
|
|
255
255
|
let e = n.import;
|
|
256
256
|
const t = f, o = f;
|
|
257
|
-
let
|
|
258
|
-
const
|
|
257
|
+
let a = !1;
|
|
258
|
+
const i = f;
|
|
259
259
|
if (!1 !== e) {
|
|
260
260
|
const e = {
|
|
261
261
|
params: {
|
|
@@ -264,8 +264,8 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
264
264
|
};
|
|
265
265
|
null === p ? (p = [e]) : p.push(e), f++;
|
|
266
266
|
}
|
|
267
|
-
var
|
|
268
|
-
if (((
|
|
267
|
+
var m = i === f;
|
|
268
|
+
if (((a = a || m), !a)) {
|
|
269
269
|
const r = f;
|
|
270
270
|
if (f == f)
|
|
271
271
|
if ('string' == typeof e) {
|
|
@@ -278,9 +278,9 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
278
278
|
const r = { params: { type: 'string' } };
|
|
279
279
|
null === p ? (p = [r]) : p.push(r), f++;
|
|
280
280
|
}
|
|
281
|
-
(
|
|
281
|
+
(m = r === f), (a = a || m);
|
|
282
282
|
}
|
|
283
|
-
if (!
|
|
283
|
+
if (!a) {
|
|
284
284
|
const r = { params: {} };
|
|
285
285
|
return (null === p ? (p = [r]) : p.push(r), f++, (s.errors = p), !1);
|
|
286
286
|
}
|
|
@@ -308,8 +308,8 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
308
308
|
if (void 0 !== n.requiredVersion) {
|
|
309
309
|
let e = n.requiredVersion;
|
|
310
310
|
const t = f, o = f;
|
|
311
|
-
let
|
|
312
|
-
const
|
|
311
|
+
let a = !1;
|
|
312
|
+
const i = f;
|
|
313
313
|
if (!1 !== e) {
|
|
314
314
|
const e = {
|
|
315
315
|
params: {
|
|
@@ -318,16 +318,16 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
318
318
|
};
|
|
319
319
|
null === p ? (p = [e]) : p.push(e), f++;
|
|
320
320
|
}
|
|
321
|
-
var d =
|
|
322
|
-
if (((
|
|
321
|
+
var d = i === f;
|
|
322
|
+
if (((a = a || d), !a)) {
|
|
323
323
|
const r = f;
|
|
324
324
|
if ('string' != typeof e) {
|
|
325
325
|
const r = { params: { type: 'string' } };
|
|
326
326
|
null === p ? (p = [r]) : p.push(r), f++;
|
|
327
327
|
}
|
|
328
|
-
(d = r === f), (
|
|
328
|
+
(d = r === f), (a = a || d);
|
|
329
329
|
}
|
|
330
|
-
if (!
|
|
330
|
+
if (!a) {
|
|
331
331
|
const r = { params: {} };
|
|
332
332
|
return (null === p ? (p = [r]) : p.push(r),
|
|
333
333
|
f++,
|
|
@@ -359,8 +359,8 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
359
359
|
let r = n.shareScope;
|
|
360
360
|
const e = f, t = f;
|
|
361
361
|
let o = !1;
|
|
362
|
-
const
|
|
363
|
-
if (f ===
|
|
362
|
+
const a = f;
|
|
363
|
+
if (f === a)
|
|
364
364
|
if ('string' == typeof r) {
|
|
365
365
|
if (r.length < 1) {
|
|
366
366
|
const r = { params: {} };
|
|
@@ -371,7 +371,7 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
371
371
|
const r = { params: { type: 'string' } };
|
|
372
372
|
null === p ? (p = [r]) : p.push(r), f++;
|
|
373
373
|
}
|
|
374
|
-
var v =
|
|
374
|
+
var v = a === f;
|
|
375
375
|
if (((o = o || v), !o)) {
|
|
376
376
|
const e = f;
|
|
377
377
|
if (f === e)
|
|
@@ -437,8 +437,8 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
437
437
|
if (void 0 !== n.version) {
|
|
438
438
|
let e = n.version;
|
|
439
439
|
const t = f, o = f;
|
|
440
|
-
let
|
|
441
|
-
const
|
|
440
|
+
let a = !1;
|
|
441
|
+
const i = f;
|
|
442
442
|
if (!1 !== e) {
|
|
443
443
|
const e = {
|
|
444
444
|
params: {
|
|
@@ -447,16 +447,16 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
447
447
|
};
|
|
448
448
|
null === p ? (p = [e]) : p.push(e), f++;
|
|
449
449
|
}
|
|
450
|
-
var b =
|
|
451
|
-
if (((
|
|
450
|
+
var b = i === f;
|
|
451
|
+
if (((a = a || b), !a)) {
|
|
452
452
|
const r = f;
|
|
453
453
|
if ('string' != typeof e) {
|
|
454
454
|
const r = { params: { type: 'string' } };
|
|
455
455
|
null === p ? (p = [r]) : p.push(r), f++;
|
|
456
456
|
}
|
|
457
|
-
(b = r === f), (
|
|
457
|
+
(b = r === f), (a = a || b);
|
|
458
458
|
}
|
|
459
|
-
if (!
|
|
459
|
+
if (!a) {
|
|
460
460
|
const r = { params: {} };
|
|
461
461
|
return (null === p ? (p = [r]) : p.push(r),
|
|
462
462
|
f++,
|
|
@@ -521,11 +521,10 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
521
521
|
else
|
|
522
522
|
u = !0;
|
|
523
523
|
if (u)
|
|
524
|
-
if (void 0 !==
|
|
525
|
-
n.nodeModulesReconstructedLookup) {
|
|
524
|
+
if (void 0 !== n.allowNodeModulesSuffixMatch) {
|
|
526
525
|
const r = f;
|
|
527
526
|
if ('boolean' !=
|
|
528
|
-
typeof n.
|
|
527
|
+
typeof n.allowNodeModulesSuffixMatch)
|
|
529
528
|
return ((s.errors = [
|
|
530
529
|
{ params: { type: 'boolean' } },
|
|
531
530
|
]),
|
|
@@ -552,8 +551,8 @@ function s(n, { instancePath: o = '', parentData: i, parentDataProperty: a, root
|
|
|
552
551
|
}
|
|
553
552
|
return (s.errors = p), 0 === f;
|
|
554
553
|
}
|
|
555
|
-
function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, rootData:
|
|
556
|
-
let
|
|
554
|
+
function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, rootData: a = r, } = {}) {
|
|
555
|
+
let i = null, l = 0;
|
|
557
556
|
if (0 === l) {
|
|
558
557
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
559
558
|
return (n.errors = [{ params: { type: 'object' } }]), !1;
|
|
@@ -566,8 +565,8 @@ function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, root
|
|
|
566
565
|
instancePath: e + '/' + t.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
567
566
|
parentData: r,
|
|
568
567
|
parentDataProperty: t,
|
|
569
|
-
rootData:
|
|
570
|
-
}) || ((
|
|
568
|
+
rootData: a,
|
|
569
|
+
}) || ((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length));
|
|
571
570
|
var p = y === l;
|
|
572
571
|
if (((c = c || p), !c)) {
|
|
573
572
|
const r = l;
|
|
@@ -575,27 +574,27 @@ function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, root
|
|
|
575
574
|
if ('string' == typeof o) {
|
|
576
575
|
if (o.length < 1) {
|
|
577
576
|
const r = { params: {} };
|
|
578
|
-
null ===
|
|
577
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
579
578
|
}
|
|
580
579
|
}
|
|
581
580
|
else {
|
|
582
581
|
const r = { params: { type: 'string' } };
|
|
583
|
-
null ===
|
|
582
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
584
583
|
}
|
|
585
584
|
(p = r === l), (c = c || p);
|
|
586
585
|
}
|
|
587
586
|
if (!c) {
|
|
588
587
|
const r = { params: {} };
|
|
589
|
-
return null ===
|
|
588
|
+
return null === i ? (i = [r]) : i.push(r), l++, (n.errors = i), !1;
|
|
590
589
|
}
|
|
591
|
-
if (((l = u), null !==
|
|
590
|
+
if (((l = u), null !== i && (u ? (i.length = u) : (i = null)), f !== l))
|
|
592
591
|
break;
|
|
593
592
|
}
|
|
594
593
|
}
|
|
595
|
-
return (n.errors =
|
|
594
|
+
return (n.errors = i), 0 === l;
|
|
596
595
|
}
|
|
597
|
-
function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData:
|
|
598
|
-
let
|
|
596
|
+
function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData: a = r, } = {}) {
|
|
597
|
+
let i = null, l = 0;
|
|
599
598
|
const p = l;
|
|
600
599
|
let f = !1;
|
|
601
600
|
const u = l;
|
|
@@ -611,12 +610,12 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
611
610
|
if ('string' == typeof t) {
|
|
612
611
|
if (t.length < 1) {
|
|
613
612
|
const r = { params: {} };
|
|
614
|
-
null ===
|
|
613
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
615
614
|
}
|
|
616
615
|
}
|
|
617
616
|
else {
|
|
618
617
|
const r = { params: { type: 'string' } };
|
|
619
|
-
null ===
|
|
618
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
620
619
|
}
|
|
621
620
|
var c = u === l;
|
|
622
621
|
if (((f = f || c), !f)) {
|
|
@@ -625,17 +624,17 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
625
624
|
instancePath: e + '/' + s,
|
|
626
625
|
parentData: r,
|
|
627
626
|
parentDataProperty: s,
|
|
628
|
-
rootData:
|
|
627
|
+
rootData: a,
|
|
629
628
|
}) ||
|
|
630
|
-
((
|
|
629
|
+
((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
|
|
631
630
|
(c = o === l),
|
|
632
631
|
(f = f || c);
|
|
633
632
|
}
|
|
634
633
|
if (f)
|
|
635
|
-
(l = p), null !==
|
|
634
|
+
(l = p), null !== i && (p ? (i.length = p) : (i = null));
|
|
636
635
|
else {
|
|
637
636
|
const r = { params: {} };
|
|
638
|
-
null ===
|
|
637
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
639
638
|
}
|
|
640
639
|
if (o !== l)
|
|
641
640
|
break;
|
|
@@ -643,7 +642,7 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
643
642
|
}
|
|
644
643
|
else {
|
|
645
644
|
const r = { params: { type: 'array' } };
|
|
646
|
-
null ===
|
|
645
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
647
646
|
}
|
|
648
647
|
var y = u === l;
|
|
649
648
|
if (((f = f || y), !f)) {
|
|
@@ -652,29 +651,29 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
652
651
|
instancePath: e,
|
|
653
652
|
parentData: t,
|
|
654
653
|
parentDataProperty: s,
|
|
655
|
-
rootData:
|
|
656
|
-
}) || ((
|
|
654
|
+
rootData: a,
|
|
655
|
+
}) || ((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
|
|
657
656
|
(y = o === l),
|
|
658
657
|
(f = f || y);
|
|
659
658
|
}
|
|
660
659
|
if (!f) {
|
|
661
660
|
const r = { params: {} };
|
|
662
|
-
return null ===
|
|
661
|
+
return null === i ? (i = [r]) : i.push(r), l++, (o.errors = i), !1;
|
|
663
662
|
}
|
|
664
663
|
return ((l = p),
|
|
665
|
-
null !==
|
|
666
|
-
(o.errors =
|
|
664
|
+
null !== i && (p ? (i.length = p) : (i = null)),
|
|
665
|
+
(o.errors = i),
|
|
667
666
|
0 === l);
|
|
668
667
|
}
|
|
669
|
-
function
|
|
670
|
-
let
|
|
668
|
+
function a(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData: n = r, } = {}) {
|
|
669
|
+
let i = null, l = 0;
|
|
671
670
|
if (0 === l) {
|
|
672
671
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
673
|
-
return (
|
|
672
|
+
return (a.errors = [{ params: { type: 'object' } }]), !1;
|
|
674
673
|
{
|
|
675
674
|
let t;
|
|
676
675
|
if (void 0 === r.shared && (t = 'shared'))
|
|
677
|
-
return (
|
|
676
|
+
return (a.errors = [{ params: { missingProperty: t } }]), !1;
|
|
678
677
|
{
|
|
679
678
|
const t = l;
|
|
680
679
|
for (const e in r)
|
|
@@ -682,12 +681,12 @@ function i(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
682
681
|
'shareScope' !== e &&
|
|
683
682
|
'shared' !== e &&
|
|
684
683
|
'experiments' !== e)
|
|
685
|
-
return (
|
|
684
|
+
return (a.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
686
685
|
if (t === l) {
|
|
687
686
|
if (void 0 !== r.async) {
|
|
688
687
|
const e = l;
|
|
689
688
|
if ('boolean' != typeof r.async)
|
|
690
|
-
return (
|
|
689
|
+
return (a.errors = [{ params: { type: 'boolean' } }]), !1;
|
|
691
690
|
var p = e === l;
|
|
692
691
|
}
|
|
693
692
|
else
|
|
@@ -702,12 +701,12 @@ function i(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
702
701
|
if ('string' == typeof e) {
|
|
703
702
|
if (e.length < 1) {
|
|
704
703
|
const r = { params: {} };
|
|
705
|
-
null ===
|
|
704
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
706
705
|
}
|
|
707
706
|
}
|
|
708
707
|
else {
|
|
709
708
|
const r = { params: { type: 'string' } };
|
|
710
|
-
null ===
|
|
709
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
711
710
|
}
|
|
712
711
|
var f = o === l;
|
|
713
712
|
if (((n = n || f), !n)) {
|
|
@@ -722,12 +721,12 @@ function i(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
722
721
|
if ('string' == typeof r) {
|
|
723
722
|
if (r.length < 1) {
|
|
724
723
|
const r = { params: {} };
|
|
725
|
-
null ===
|
|
724
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
726
725
|
}
|
|
727
726
|
}
|
|
728
727
|
else {
|
|
729
728
|
const r = { params: { type: 'string' } };
|
|
730
|
-
null ===
|
|
729
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
731
730
|
}
|
|
732
731
|
if (s !== l)
|
|
733
732
|
break;
|
|
@@ -735,16 +734,16 @@ function i(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
735
734
|
}
|
|
736
735
|
else {
|
|
737
736
|
const r = { params: { type: 'array' } };
|
|
738
|
-
null ===
|
|
737
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
739
738
|
}
|
|
740
739
|
(f = r === l), (n = n || f);
|
|
741
740
|
}
|
|
742
741
|
if (!n) {
|
|
743
742
|
const r = { params: {} };
|
|
744
|
-
return (null ===
|
|
743
|
+
return (null === i ? (i = [r]) : i.push(r), l++, (a.errors = i), !1);
|
|
745
744
|
}
|
|
746
745
|
(l = s),
|
|
747
|
-
null !==
|
|
746
|
+
null !== i && (s ? (i.length = s) : (i = null)),
|
|
748
747
|
(p = t === l);
|
|
749
748
|
}
|
|
750
749
|
else
|
|
@@ -758,8 +757,8 @@ function i(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
758
757
|
parentDataProperty: 'shared',
|
|
759
758
|
rootData: n,
|
|
760
759
|
}) ||
|
|
761
|
-
((
|
|
762
|
-
(l =
|
|
760
|
+
((i = null === i ? o.errors : i.concat(o.errors)),
|
|
761
|
+
(l = i.length)),
|
|
763
762
|
(p = t === l);
|
|
764
763
|
}
|
|
765
764
|
else
|
|
@@ -770,19 +769,19 @@ function i(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
770
769
|
const t = l;
|
|
771
770
|
if (l === t) {
|
|
772
771
|
if (!e || 'object' != typeof e || Array.isArray(e))
|
|
773
|
-
return (
|
|
772
|
+
return (a.errors = [{ params: { type: 'object' } }]), !1;
|
|
774
773
|
{
|
|
775
774
|
const r = l;
|
|
776
775
|
for (const r in e)
|
|
777
|
-
if ('
|
|
778
|
-
return ((
|
|
776
|
+
if ('allowNodeModulesSuffixMatch' !== r)
|
|
777
|
+
return ((a.errors = [
|
|
779
778
|
{ params: { additionalProperty: r } },
|
|
780
779
|
]),
|
|
781
780
|
!1);
|
|
782
781
|
if (r === l &&
|
|
783
|
-
void 0 !== e.
|
|
784
|
-
'boolean' != typeof e.
|
|
785
|
-
return ((
|
|
782
|
+
void 0 !== e.allowNodeModulesSuffixMatch &&
|
|
783
|
+
'boolean' != typeof e.allowNodeModulesSuffixMatch)
|
|
784
|
+
return ((a.errors = [{ params: { type: 'boolean' } }]), !1);
|
|
786
785
|
}
|
|
787
786
|
}
|
|
788
787
|
p = t === l;
|
|
@@ -795,6 +794,6 @@ function i(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
795
794
|
}
|
|
796
795
|
}
|
|
797
796
|
}
|
|
798
|
-
return (
|
|
797
|
+
return (a.errors = i), 0 === l;
|
|
799
798
|
}
|
|
800
799
|
//# sourceMappingURL=SharePlugin.check.js.map
|