@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
|
@@ -121,7 +121,7 @@ exports.default = {
|
|
|
121
121
|
description: 'Filter consumed modules based on the request path (only include matches).',
|
|
122
122
|
$ref: '#/definitions/IncludeExcludeOptions',
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
allowNodeModulesSuffixMatch: {
|
|
125
125
|
description: 'Enable reconstructed lookup for node_modules paths for this share item',
|
|
126
126
|
type: 'boolean',
|
|
127
127
|
},
|
|
@@ -222,7 +222,7 @@ exports.default = {
|
|
|
222
222
|
type: 'object',
|
|
223
223
|
additionalProperties: false,
|
|
224
224
|
properties: {
|
|
225
|
-
|
|
225
|
+
allowNodeModulesSuffixMatch: {
|
|
226
226
|
description: 'Enable reconstructed lookup for node_modules paths',
|
|
227
227
|
type: 'boolean',
|
|
228
228
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumeSharedPlugin.js","sourceRoot":"","sources":["../../../../src/schemas/sharing/ConsumeSharedPlugin.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,oBAAoB;AACpB;;;GAGG;;AAEH,kBAAe;IACb,WAAW,EAAE;QACX,QAAQ,EAAE;YACR,WAAW,EACT,0IAA0I;YAC5I,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,WAAW,EAAE,mDAAmD;wBAChE,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,4BAA4B;6BACnC;4BACD;gCACE,IAAI,EAAE,8BAA8B;6BACrC;yBACF;qBACF;iBACF;gBACD;oBACE,IAAI,EAAE,8BAA8B;iBACrC;aACF;SACF;QACD,cAAc,EAAE;YACd,WAA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AO,EAAE;oBACP,WAAW,EAAE,4BAA4B;oBACzC,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,CAAC;iBACb;gBACD,SAAS,EAAE;oBACT,WAAW,EACT,wFAAwF;oBAC1F,IAAI,EAAE,SAAS;iBAChB;gBACD,aAAa,EAAE;oBACb,WAAW,EACT,2NAA2N;oBAC7N,IAAI,EAAE,SAAS;iBAChB;gBACD,OAAO,EAAE;oBACP,WAAW,EAAE,oDAAoD;oBACjE,IAAI,EAAE,qCAAqC;iBAC5C;gBACD,OAAO,EAAE;oBACP,WAAW,EACT,2EAA2E;oBAC7E,IAAI,EAAE,qCAAqC;iBAC5C;gBACD,
|
|
1
|
+
{"version":3,"file":"ConsumeSharedPlugin.js","sourceRoot":"","sources":["../../../../src/schemas/sharing/ConsumeSharedPlugin.ts"],"names":[],"mappings":";AAAA,cAAc;AACd,oBAAoB;AACpB;;;GAGG;;AAEH,kBAAe;IACb,WAAW,EAAE;QACX,QAAQ,EAAE;YACR,WAAW,EACT,0IAA0I;YAC5I,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,WAAW,EAAE,mDAAmD;wBAChE,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,4BAA4B;6BACnC;4BACD;gCACE,IAAI,EAAE,8BAA8B;6BACrC;yBACF;qBACF;iBACF;gBACD;oBACE,IAAI,EAAE,8BAA8B;iBACrC;aACF;SACF;QACD,cAAc,EAAE;YACd,WAAW,EACT,8EAA8E;YAChF,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,WAAW,EACT,iLAAiL;oBACnL,IAAI,EAAE,SAAS;iBAChB;gBACD,MAAM,EAAE;oBACN,WAAW,EACT,6FAA6F;oBAC/F,KAAK,EAAE;wBACL;4BACE,WAAW,EAAE,qBAAqB;4BAClC,IAAI,EAAE,CAAC,KAAK,CAAC;yBACd;wBACD;4BAC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,WAAW,EACT,sGAAsG;iBACzG;aACF;YACD,oBAAoB,EAAE,KAAK;SAC5B;KACF;IACD,KAAK,EAAE,4BAA4B;IACnC,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,IAAI,EAAE,wBAAwB;SAC/B;QACD,UAAU,EAAE;YACV,WAAW,EACT,yEAAyE;YAC3E,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,CAAC;iBACb;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,CAAC;qBACb;iBACF;aACF;SACF;QACD,WAAW,EAAE;YACX,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,2BAA2B,EAAE;oBAC3B,WAAW,EAAE,oDAAoD;oBACjE,IAAI,EAAE,SAAS;iBAChB;aACF;SACF;KACF;IACD,QAAQ,EAAE,CAAC,UAAU,CAAC;CACd,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const validate: typeof o;
|
|
2
2
|
export default o;
|
|
3
|
-
declare function o(r: any, { instancePath: e, parentData: t, parentDataProperty: s, rootData:
|
|
3
|
+
declare function o(r: any, { instancePath: e, parentData: t, parentDataProperty: s, rootData: a, }?: {
|
|
4
4
|
instancePath?: string | undefined;
|
|
5
5
|
rootData?: any;
|
|
6
6
|
}): any;
|
|
@@ -30,10 +30,10 @@ const r = {
|
|
|
30
30
|
version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
|
|
31
31
|
exclude: { $ref: '#/definitions/IncludeExcludeOptions' },
|
|
32
32
|
include: { $ref: '#/definitions/IncludeExcludeOptions' },
|
|
33
|
-
|
|
33
|
+
allowNodeModulesSuffixMatch: { type: 'boolean' },
|
|
34
34
|
},
|
|
35
35
|
}, e = Object.prototype.hasOwnProperty;
|
|
36
|
-
function t(s, { instancePath: n = '', parentData: o, parentDataProperty:
|
|
36
|
+
function t(s, { instancePath: n = '', parentData: o, parentDataProperty: a, rootData: i = s, } = {}) {
|
|
37
37
|
let l = null, p = 0;
|
|
38
38
|
if (0 === p) {
|
|
39
39
|
if (!s || 'object' != typeof s || Array.isArray(s))
|
|
@@ -85,8 +85,8 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
85
85
|
let r = s.shareScope;
|
|
86
86
|
const e = p, n = p;
|
|
87
87
|
let o = !1;
|
|
88
|
-
const
|
|
89
|
-
if (p ===
|
|
88
|
+
const a = p;
|
|
89
|
+
if (p === a)
|
|
90
90
|
if ('string' == typeof r) {
|
|
91
91
|
if (r.length < 1) {
|
|
92
92
|
const r = { params: {} };
|
|
@@ -97,7 +97,7 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
97
97
|
const r = { params: { type: 'string' } };
|
|
98
98
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
99
99
|
}
|
|
100
|
-
var u =
|
|
100
|
+
var u = a === p;
|
|
101
101
|
if (((o = o || u), !o)) {
|
|
102
102
|
const e = p;
|
|
103
103
|
if (p === e)
|
|
@@ -141,8 +141,8 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
141
141
|
if (void 0 !== s.requiredVersion) {
|
|
142
142
|
let e = s.requiredVersion;
|
|
143
143
|
const n = p, o = p;
|
|
144
|
-
let
|
|
145
|
-
const
|
|
144
|
+
let a = !1;
|
|
145
|
+
const i = p;
|
|
146
146
|
if (!1 !== e) {
|
|
147
147
|
const e = {
|
|
148
148
|
params: {
|
|
@@ -151,16 +151,16 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
151
151
|
};
|
|
152
152
|
null === l ? (l = [e]) : l.push(e), p++;
|
|
153
153
|
}
|
|
154
|
-
var c =
|
|
155
|
-
if (((
|
|
154
|
+
var c = i === p;
|
|
155
|
+
if (((a = a || c), !a)) {
|
|
156
156
|
const r = p;
|
|
157
157
|
if ('string' != typeof e) {
|
|
158
158
|
const r = { params: { type: 'string' } };
|
|
159
159
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
160
160
|
}
|
|
161
|
-
(c = r === p), (
|
|
161
|
+
(c = r === p), (a = a || c);
|
|
162
162
|
}
|
|
163
|
-
if (!
|
|
163
|
+
if (!a) {
|
|
164
164
|
const r = { params: {} };
|
|
165
165
|
return (null === l ? (l = [r]) : l.push(r),
|
|
166
166
|
p++,
|
|
@@ -224,8 +224,8 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
224
224
|
if (void 0 !== s.version) {
|
|
225
225
|
let e = s.version;
|
|
226
226
|
const n = p, o = p;
|
|
227
|
-
let
|
|
228
|
-
const
|
|
227
|
+
let a = !1;
|
|
228
|
+
const i = p;
|
|
229
229
|
if (!1 !== e) {
|
|
230
230
|
const e = {
|
|
231
231
|
params: {
|
|
@@ -234,16 +234,16 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
234
234
|
};
|
|
235
235
|
null === l ? (l = [e]) : l.push(e), p++;
|
|
236
236
|
}
|
|
237
|
-
var y =
|
|
238
|
-
if (((
|
|
237
|
+
var y = i === p;
|
|
238
|
+
if (((a = a || y), !a)) {
|
|
239
239
|
const r = p;
|
|
240
240
|
if ('string' != typeof e) {
|
|
241
241
|
const r = { params: { type: 'string' } };
|
|
242
242
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
243
243
|
}
|
|
244
|
-
(y = r === p), (
|
|
244
|
+
(y = r === p), (a = a || y);
|
|
245
245
|
}
|
|
246
|
-
if (!
|
|
246
|
+
if (!a) {
|
|
247
247
|
const r = { params: {} };
|
|
248
248
|
return (null === l ? (l = [r]) : l.push(r),
|
|
249
249
|
p++,
|
|
@@ -260,8 +260,8 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
260
260
|
if (void 0 !== s.exclude) {
|
|
261
261
|
let r = s.exclude;
|
|
262
262
|
const e = p, n = p, o = p;
|
|
263
|
-
let
|
|
264
|
-
const
|
|
263
|
+
let a = !1;
|
|
264
|
+
const i = p;
|
|
265
265
|
if (r &&
|
|
266
266
|
'object' == typeof r &&
|
|
267
267
|
!Array.isArray(r)) {
|
|
@@ -271,8 +271,8 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
271
271
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
var
|
|
275
|
-
if (((
|
|
274
|
+
var h = i === p;
|
|
275
|
+
if (((a = a || h), !a)) {
|
|
276
276
|
const e = p;
|
|
277
277
|
if (r &&
|
|
278
278
|
'object' == typeof r &&
|
|
@@ -285,9 +285,9 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
285
285
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
(
|
|
288
|
+
(h = e === p), (a = a || h);
|
|
289
289
|
}
|
|
290
|
-
if (!
|
|
290
|
+
if (!a) {
|
|
291
291
|
const r = { params: {} };
|
|
292
292
|
return (null === l ? (l = [r]) : l.push(r),
|
|
293
293
|
p++,
|
|
@@ -319,22 +319,22 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
319
319
|
let e = r.request;
|
|
320
320
|
const s = p, n = p;
|
|
321
321
|
let o = !1;
|
|
322
|
-
const
|
|
322
|
+
const a = p;
|
|
323
323
|
if ('string' != typeof e) {
|
|
324
324
|
const r = {
|
|
325
325
|
params: { type: 'string' },
|
|
326
326
|
};
|
|
327
327
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
328
328
|
}
|
|
329
|
-
var
|
|
330
|
-
if (((o = o ||
|
|
329
|
+
var g = a === p;
|
|
330
|
+
if (((o = o || g), !o)) {
|
|
331
331
|
const r = p;
|
|
332
332
|
if (!(e instanceof RegExp)) {
|
|
333
333
|
const r = { params: {} };
|
|
334
334
|
null === l ? (l = [r]) : l.push(r),
|
|
335
335
|
p++;
|
|
336
336
|
}
|
|
337
|
-
(
|
|
337
|
+
(g = r === p), (o = o || g);
|
|
338
338
|
}
|
|
339
339
|
if (!o) {
|
|
340
340
|
const r = { params: {} };
|
|
@@ -386,8 +386,8 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
386
386
|
if (void 0 !== s.include) {
|
|
387
387
|
let r = s.include;
|
|
388
388
|
const e = p, n = p, o = p;
|
|
389
|
-
let
|
|
390
|
-
const
|
|
389
|
+
let a = !1;
|
|
390
|
+
const i = p;
|
|
391
391
|
if (r &&
|
|
392
392
|
'object' == typeof r &&
|
|
393
393
|
!Array.isArray(r)) {
|
|
@@ -399,8 +399,8 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
399
399
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
var d =
|
|
403
|
-
if (((
|
|
402
|
+
var d = i === p;
|
|
403
|
+
if (((a = a || d), !a)) {
|
|
404
404
|
const e = p;
|
|
405
405
|
if (r &&
|
|
406
406
|
'object' == typeof r &&
|
|
@@ -414,9 +414,9 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
414
414
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
(d = e === p), (
|
|
417
|
+
(d = e === p), (a = a || d);
|
|
418
418
|
}
|
|
419
|
-
if (!
|
|
419
|
+
if (!a) {
|
|
420
420
|
const r = { params: {} };
|
|
421
421
|
return (null === l ? (l = [r]) : l.push(r),
|
|
422
422
|
p++,
|
|
@@ -451,7 +451,7 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
451
451
|
let e = r.request;
|
|
452
452
|
const s = p, n = p;
|
|
453
453
|
let o = !1;
|
|
454
|
-
const
|
|
454
|
+
const a = p;
|
|
455
455
|
if ('string' != typeof e) {
|
|
456
456
|
const r = {
|
|
457
457
|
params: { type: 'string' },
|
|
@@ -459,7 +459,7 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
459
459
|
null === l ? (l = [r]) : l.push(r),
|
|
460
460
|
p++;
|
|
461
461
|
}
|
|
462
|
-
var v =
|
|
462
|
+
var v = a === p;
|
|
463
463
|
if (((o = o || v), !o)) {
|
|
464
464
|
const r = p;
|
|
465
465
|
if (!(e instanceof RegExp)) {
|
|
@@ -519,10 +519,10 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
519
519
|
else
|
|
520
520
|
f = !0;
|
|
521
521
|
if (f)
|
|
522
|
-
if (void 0 !== s.
|
|
522
|
+
if (void 0 !== s.allowNodeModulesSuffixMatch) {
|
|
523
523
|
const r = p;
|
|
524
524
|
if ('boolean' !=
|
|
525
|
-
typeof s.
|
|
525
|
+
typeof s.allowNodeModulesSuffixMatch)
|
|
526
526
|
return ((t.errors = [
|
|
527
527
|
{ params: { type: 'boolean' } },
|
|
528
528
|
]),
|
|
@@ -547,8 +547,8 @@ function t(s, { instancePath: n = '', parentData: o, parentDataProperty: i, root
|
|
|
547
547
|
}
|
|
548
548
|
return (t.errors = l), 0 === p;
|
|
549
549
|
}
|
|
550
|
-
function s(r, { instancePath: e = '', parentData: n, parentDataProperty: o, rootData:
|
|
551
|
-
let
|
|
550
|
+
function s(r, { instancePath: e = '', parentData: n, parentDataProperty: o, rootData: a = r, } = {}) {
|
|
551
|
+
let i = null, l = 0;
|
|
552
552
|
if (0 === l) {
|
|
553
553
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
554
554
|
return (s.errors = [{ params: { type: 'object' } }]), !1;
|
|
@@ -561,8 +561,8 @@ function s(r, { instancePath: e = '', parentData: n, parentDataProperty: o, root
|
|
|
561
561
|
instancePath: e + '/' + n.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
562
562
|
parentData: r,
|
|
563
563
|
parentDataProperty: n,
|
|
564
|
-
rootData:
|
|
565
|
-
}) || ((
|
|
564
|
+
rootData: a,
|
|
565
|
+
}) || ((i = null === i ? t.errors : i.concat(t.errors)), (l = i.length));
|
|
566
566
|
var p = y === l;
|
|
567
567
|
if (((c = c || p), !c)) {
|
|
568
568
|
const r = l;
|
|
@@ -570,27 +570,27 @@ function s(r, { instancePath: e = '', parentData: n, parentDataProperty: o, root
|
|
|
570
570
|
if ('string' == typeof o) {
|
|
571
571
|
if (o.length < 1) {
|
|
572
572
|
const r = { params: {} };
|
|
573
|
-
null ===
|
|
573
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
else {
|
|
577
577
|
const r = { params: { type: 'string' } };
|
|
578
|
-
null ===
|
|
578
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
579
579
|
}
|
|
580
580
|
(p = r === l), (c = c || p);
|
|
581
581
|
}
|
|
582
582
|
if (!c) {
|
|
583
583
|
const r = { params: {} };
|
|
584
|
-
return null ===
|
|
584
|
+
return null === i ? (i = [r]) : i.push(r), l++, (s.errors = i), !1;
|
|
585
585
|
}
|
|
586
|
-
if (((l = u), null !==
|
|
586
|
+
if (((l = u), null !== i && (u ? (i.length = u) : (i = null)), f !== l))
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
return (s.errors =
|
|
590
|
+
return (s.errors = i), 0 === l;
|
|
591
591
|
}
|
|
592
|
-
function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, rootData:
|
|
593
|
-
let
|
|
592
|
+
function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, rootData: a = r, } = {}) {
|
|
593
|
+
let i = null, l = 0;
|
|
594
594
|
const p = l;
|
|
595
595
|
let f = !1;
|
|
596
596
|
const u = l;
|
|
@@ -606,12 +606,12 @@ function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, root
|
|
|
606
606
|
if ('string' == typeof t) {
|
|
607
607
|
if (t.length < 1) {
|
|
608
608
|
const r = { params: {} };
|
|
609
|
-
null ===
|
|
609
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
else {
|
|
613
613
|
const r = { params: { type: 'string' } };
|
|
614
|
-
null ===
|
|
614
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
615
615
|
}
|
|
616
616
|
var c = u === l;
|
|
617
617
|
if (((f = f || c), !f)) {
|
|
@@ -620,17 +620,17 @@ function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, root
|
|
|
620
620
|
instancePath: e + '/' + n,
|
|
621
621
|
parentData: r,
|
|
622
622
|
parentDataProperty: n,
|
|
623
|
-
rootData:
|
|
623
|
+
rootData: a,
|
|
624
624
|
}) ||
|
|
625
|
-
((
|
|
625
|
+
((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length)),
|
|
626
626
|
(c = o === l),
|
|
627
627
|
(f = f || c);
|
|
628
628
|
}
|
|
629
629
|
if (f)
|
|
630
|
-
(l = p), null !==
|
|
630
|
+
(l = p), null !== i && (p ? (i.length = p) : (i = null));
|
|
631
631
|
else {
|
|
632
632
|
const r = { params: {} };
|
|
633
|
-
null ===
|
|
633
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
634
634
|
}
|
|
635
635
|
if (o !== l)
|
|
636
636
|
break;
|
|
@@ -638,7 +638,7 @@ function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, root
|
|
|
638
638
|
}
|
|
639
639
|
else {
|
|
640
640
|
const r = { params: { type: 'array' } };
|
|
641
|
-
null ===
|
|
641
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
642
642
|
}
|
|
643
643
|
var y = u === l;
|
|
644
644
|
if (((f = f || y), !f)) {
|
|
@@ -647,22 +647,22 @@ function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, root
|
|
|
647
647
|
instancePath: e,
|
|
648
648
|
parentData: t,
|
|
649
649
|
parentDataProperty: o,
|
|
650
|
-
rootData:
|
|
651
|
-
}) || ((
|
|
650
|
+
rootData: a,
|
|
651
|
+
}) || ((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length)),
|
|
652
652
|
(y = n === l),
|
|
653
653
|
(f = f || y);
|
|
654
654
|
}
|
|
655
655
|
if (!f) {
|
|
656
656
|
const r = { params: {} };
|
|
657
|
-
return null ===
|
|
657
|
+
return null === i ? (i = [r]) : i.push(r), l++, (n.errors = i), !1;
|
|
658
658
|
}
|
|
659
659
|
return ((l = p),
|
|
660
|
-
null !==
|
|
661
|
-
(n.errors =
|
|
660
|
+
null !== i && (p ? (i.length = p) : (i = null)),
|
|
661
|
+
(n.errors = i),
|
|
662
662
|
0 === l);
|
|
663
663
|
}
|
|
664
|
-
function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData:
|
|
665
|
-
let
|
|
664
|
+
function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData: a = r, } = {}) {
|
|
665
|
+
let i = null, l = 0;
|
|
666
666
|
if (0 === l) {
|
|
667
667
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
668
668
|
return (o.errors = [{ params: { type: 'object' } }]), !1;
|
|
@@ -682,10 +682,10 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
682
682
|
instancePath: e + '/provides',
|
|
683
683
|
parentData: r,
|
|
684
684
|
parentDataProperty: 'provides',
|
|
685
|
-
rootData:
|
|
685
|
+
rootData: a,
|
|
686
686
|
}) ||
|
|
687
|
-
((
|
|
688
|
-
(l =
|
|
687
|
+
((i = null === i ? n.errors : i.concat(n.errors)),
|
|
688
|
+
(l = i.length));
|
|
689
689
|
var p = t === l;
|
|
690
690
|
}
|
|
691
691
|
else
|
|
@@ -695,19 +695,19 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
695
695
|
let e = r.shareScope;
|
|
696
696
|
const t = l, s = l;
|
|
697
697
|
let n = !1;
|
|
698
|
-
const
|
|
699
|
-
if (l ===
|
|
698
|
+
const a = l;
|
|
699
|
+
if (l === a)
|
|
700
700
|
if ('string' == typeof e) {
|
|
701
701
|
if (e.length < 1) {
|
|
702
702
|
const r = { params: {} };
|
|
703
|
-
null ===
|
|
703
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
else {
|
|
707
707
|
const r = { params: { type: 'string' } };
|
|
708
|
-
null ===
|
|
708
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
709
709
|
}
|
|
710
|
-
var f =
|
|
710
|
+
var f = a === l;
|
|
711
711
|
if (((n = n || f), !n)) {
|
|
712
712
|
const r = l;
|
|
713
713
|
if (l === r)
|
|
@@ -720,12 +720,12 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
720
720
|
if ('string' == typeof r) {
|
|
721
721
|
if (r.length < 1) {
|
|
722
722
|
const r = { params: {} };
|
|
723
|
-
null ===
|
|
723
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
else {
|
|
727
727
|
const r = { params: { type: 'string' } };
|
|
728
|
-
null ===
|
|
728
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
729
729
|
}
|
|
730
730
|
if (s !== l)
|
|
731
731
|
break;
|
|
@@ -733,16 +733,16 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
733
733
|
}
|
|
734
734
|
else {
|
|
735
735
|
const r = { params: { type: 'array' } };
|
|
736
|
-
null ===
|
|
736
|
+
null === i ? (i = [r]) : i.push(r), l++;
|
|
737
737
|
}
|
|
738
738
|
(f = r === l), (n = n || f);
|
|
739
739
|
}
|
|
740
740
|
if (!n) {
|
|
741
741
|
const r = { params: {} };
|
|
742
|
-
return (null ===
|
|
742
|
+
return (null === i ? (i = [r]) : i.push(r), l++, (o.errors = i), !1);
|
|
743
743
|
}
|
|
744
744
|
(l = s),
|
|
745
|
-
null !==
|
|
745
|
+
null !== i && (s ? (i.length = s) : (i = null)),
|
|
746
746
|
(p = t === l);
|
|
747
747
|
}
|
|
748
748
|
else
|
|
@@ -757,12 +757,12 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
757
757
|
{
|
|
758
758
|
const r = l;
|
|
759
759
|
for (const r in e)
|
|
760
|
-
if ('
|
|
760
|
+
if ('allowNodeModulesSuffixMatch' !== r)
|
|
761
761
|
return ((o.errors = [{ params: { additionalProperty: r } }]),
|
|
762
762
|
!1);
|
|
763
763
|
if (r === l &&
|
|
764
|
-
void 0 !== e.
|
|
765
|
-
'boolean' != typeof e.
|
|
764
|
+
void 0 !== e.allowNodeModulesSuffixMatch &&
|
|
765
|
+
'boolean' != typeof e.allowNodeModulesSuffixMatch)
|
|
766
766
|
return (o.errors = [{ params: { type: 'boolean' } }]), !1;
|
|
767
767
|
}
|
|
768
768
|
}
|
|
@@ -775,6 +775,6 @@ function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, root
|
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
|
-
return (o.errors =
|
|
778
|
+
return (o.errors = i), 0 === l;
|
|
779
779
|
}
|
|
780
780
|
//# sourceMappingURL=ProvideSharedPlugin.check.js.map
|