@module-federation/enhanced 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +26 -0
- package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +9 -0
- package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +26 -0
- package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +18 -0
- package/dist/src/lib/container/ContainerPlugin.js +4 -0
- package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +87 -10
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +11 -0
- package/dist/src/lib/sharing/ProvideSharedPlugin.js +141 -60
- package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
- package/dist/src/lib/sharing/SharePlugin.js +4 -0
- package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
- package/dist/src/lib/sharing/utils.d.ts +7 -0
- package/dist/src/lib/sharing/utils.js +52 -0
- package/dist/src/lib/sharing/utils.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +3 -3
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +303 -115
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +38 -0
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +44 -0
- package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +3 -3
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +370 -174
- package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +38 -0
- package/dist/src/schemas/sharing/ProvideSharedPlugin.js +44 -0
- 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 +590 -282
- package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
- package/dist/src/schemas/sharing/SharePlugin.d.ts +82 -0
- package/dist/src/schemas/sharing/SharePlugin.js +86 -0
- package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
- package/package.json +13 -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 = o;
|
|
11
|
+
exports.default = o;
|
|
12
12
|
const r = {
|
|
13
13
|
type: 'object',
|
|
14
14
|
additionalProperties: !1,
|
|
@@ -31,32 +31,48 @@ const r = {
|
|
|
31
31
|
request: { type: 'string', minLength: 1 },
|
|
32
32
|
singleton: { type: 'boolean' },
|
|
33
33
|
strictVersion: { type: 'boolean' },
|
|
34
|
+
include: {
|
|
35
|
+
type: 'object',
|
|
36
|
+
additionalProperties: !1,
|
|
37
|
+
properties: {
|
|
38
|
+
version: { type: 'string' },
|
|
39
|
+
request: { anyOf: [{ type: 'string' }, { instanceof: 'RegExp' }] },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
exclude: {
|
|
43
|
+
type: 'object',
|
|
44
|
+
additionalProperties: !1,
|
|
45
|
+
properties: {
|
|
46
|
+
version: { type: 'string' },
|
|
47
|
+
request: { anyOf: [{ type: 'string' }, { instanceof: 'RegExp' }] },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
34
50
|
},
|
|
35
51
|
}, e = Object.prototype.hasOwnProperty;
|
|
36
|
-
function t(
|
|
52
|
+
function t(s, { instancePath: n = '', parentData: o, parentDataProperty: a, rootData: i = s, } = {}) {
|
|
37
53
|
let l = null, p = 0;
|
|
38
54
|
if (0 === p) {
|
|
39
|
-
if (!
|
|
55
|
+
if (!s || 'object' != typeof s || Array.isArray(s))
|
|
40
56
|
return (t.errors = [{ params: { type: 'object' } }]), !1;
|
|
41
57
|
{
|
|
42
|
-
const
|
|
43
|
-
for (const
|
|
44
|
-
if (!e.call(r.properties,
|
|
45
|
-
return (t.errors = [{ params: { additionalProperty:
|
|
46
|
-
if (
|
|
47
|
-
if (void 0 !==
|
|
58
|
+
const n = p;
|
|
59
|
+
for (const n in s)
|
|
60
|
+
if (!e.call(r.properties, n))
|
|
61
|
+
return (t.errors = [{ params: { additionalProperty: n } }]), !1;
|
|
62
|
+
if (n === p) {
|
|
63
|
+
if (void 0 !== s.eager) {
|
|
48
64
|
const r = p;
|
|
49
|
-
if ('boolean' != typeof
|
|
65
|
+
if ('boolean' != typeof s.eager)
|
|
50
66
|
return (t.errors = [{ params: { type: 'boolean' } }]), !1;
|
|
51
67
|
var f = r === p;
|
|
52
68
|
}
|
|
53
69
|
else
|
|
54
70
|
f = !0;
|
|
55
71
|
if (f) {
|
|
56
|
-
if (void 0 !==
|
|
57
|
-
let e =
|
|
58
|
-
const
|
|
59
|
-
let
|
|
72
|
+
if (void 0 !== s.import) {
|
|
73
|
+
let e = s.import;
|
|
74
|
+
const n = p, o = p;
|
|
75
|
+
let a = !1;
|
|
60
76
|
const i = p;
|
|
61
77
|
if (!1 !== e) {
|
|
62
78
|
const e = {
|
|
@@ -65,7 +81,7 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
65
81
|
null === l ? (l = [e]) : l.push(e), p++;
|
|
66
82
|
}
|
|
67
83
|
var u = i === p;
|
|
68
|
-
if (((
|
|
84
|
+
if (((a = a || u), !a)) {
|
|
69
85
|
const r = p;
|
|
70
86
|
if (p == p)
|
|
71
87
|
if ('string' == typeof e) {
|
|
@@ -78,21 +94,21 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
78
94
|
const r = { params: { type: 'string' } };
|
|
79
95
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
80
96
|
}
|
|
81
|
-
(u = r === p), (
|
|
97
|
+
(u = r === p), (a = a || u);
|
|
82
98
|
}
|
|
83
|
-
if (!
|
|
99
|
+
if (!a) {
|
|
84
100
|
const r = { params: {} };
|
|
85
101
|
return (null === l ? (l = [r]) : l.push(r), p++, (t.errors = l), !1);
|
|
86
102
|
}
|
|
87
|
-
(p =
|
|
88
|
-
null !== l && (
|
|
89
|
-
(f =
|
|
103
|
+
(p = o),
|
|
104
|
+
null !== l && (o ? (l.length = o) : (l = null)),
|
|
105
|
+
(f = n === p);
|
|
90
106
|
}
|
|
91
107
|
else
|
|
92
108
|
f = !0;
|
|
93
109
|
if (f) {
|
|
94
|
-
if (void 0 !==
|
|
95
|
-
let r =
|
|
110
|
+
if (void 0 !== s.packageName) {
|
|
111
|
+
let r = s.packageName;
|
|
96
112
|
const e = p;
|
|
97
113
|
if (p === e) {
|
|
98
114
|
if ('string' != typeof r)
|
|
@@ -105,10 +121,10 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
105
121
|
else
|
|
106
122
|
f = !0;
|
|
107
123
|
if (f) {
|
|
108
|
-
if (void 0 !==
|
|
109
|
-
let e =
|
|
110
|
-
const
|
|
111
|
-
let
|
|
124
|
+
if (void 0 !== s.requiredVersion) {
|
|
125
|
+
let e = s.requiredVersion;
|
|
126
|
+
const n = p, o = p;
|
|
127
|
+
let a = !1;
|
|
112
128
|
const i = p;
|
|
113
129
|
if (!1 !== e) {
|
|
114
130
|
const e = {
|
|
@@ -119,27 +135,27 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
119
135
|
null === l ? (l = [e]) : l.push(e), p++;
|
|
120
136
|
}
|
|
121
137
|
var c = i === p;
|
|
122
|
-
if (((
|
|
138
|
+
if (((a = a || c), !a)) {
|
|
123
139
|
const r = p;
|
|
124
140
|
if ('string' != typeof e) {
|
|
125
141
|
const r = { params: { type: 'string' } };
|
|
126
142
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
127
143
|
}
|
|
128
|
-
(c = r === p), (
|
|
144
|
+
(c = r === p), (a = a || c);
|
|
129
145
|
}
|
|
130
|
-
if (!
|
|
146
|
+
if (!a) {
|
|
131
147
|
const r = { params: {} };
|
|
132
148
|
return (null === l ? (l = [r]) : l.push(r), p++, (t.errors = l), !1);
|
|
133
149
|
}
|
|
134
|
-
(p =
|
|
135
|
-
null !== l && (
|
|
136
|
-
(f =
|
|
150
|
+
(p = o),
|
|
151
|
+
null !== l && (o ? (l.length = o) : (l = null)),
|
|
152
|
+
(f = n === p);
|
|
137
153
|
}
|
|
138
154
|
else
|
|
139
155
|
f = !0;
|
|
140
156
|
if (f) {
|
|
141
|
-
if (void 0 !==
|
|
142
|
-
let r =
|
|
157
|
+
if (void 0 !== s.shareKey) {
|
|
158
|
+
let r = s.shareKey;
|
|
143
159
|
const e = p;
|
|
144
160
|
if (p === e) {
|
|
145
161
|
if ('string' != typeof r)
|
|
@@ -152,12 +168,12 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
152
168
|
else
|
|
153
169
|
f = !0;
|
|
154
170
|
if (f) {
|
|
155
|
-
if (void 0 !==
|
|
156
|
-
let r =
|
|
157
|
-
const e = p,
|
|
158
|
-
let
|
|
159
|
-
const
|
|
160
|
-
if (p ===
|
|
171
|
+
if (void 0 !== s.shareScope) {
|
|
172
|
+
let r = s.shareScope;
|
|
173
|
+
const e = p, n = p;
|
|
174
|
+
let o = !1;
|
|
175
|
+
const a = p;
|
|
176
|
+
if (p === a)
|
|
161
177
|
if ('string' == typeof r) {
|
|
162
178
|
if (r.length < 1) {
|
|
163
179
|
const r = { params: {} };
|
|
@@ -168,16 +184,16 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
168
184
|
const r = { params: { type: 'string' } };
|
|
169
185
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
170
186
|
}
|
|
171
|
-
var y =
|
|
172
|
-
if (((
|
|
187
|
+
var y = a === p;
|
|
188
|
+
if (((o = o || y), !o)) {
|
|
173
189
|
const e = p;
|
|
174
190
|
if (p === e)
|
|
175
191
|
if (Array.isArray(r)) {
|
|
176
192
|
const e = r.length;
|
|
177
193
|
for (let t = 0; t < e; t++) {
|
|
178
194
|
let e = r[t];
|
|
179
|
-
const
|
|
180
|
-
if (p ===
|
|
195
|
+
const s = p;
|
|
196
|
+
if (p === s)
|
|
181
197
|
if ('string' == typeof e) {
|
|
182
198
|
if (e.length < 1) {
|
|
183
199
|
const r = { params: {} };
|
|
@@ -188,7 +204,7 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
188
204
|
const r = { params: { type: 'string' } };
|
|
189
205
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
190
206
|
}
|
|
191
|
-
if (
|
|
207
|
+
if (s !== p)
|
|
192
208
|
break;
|
|
193
209
|
}
|
|
194
210
|
}
|
|
@@ -196,24 +212,24 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
196
212
|
const r = { params: { type: 'array' } };
|
|
197
213
|
null === l ? (l = [r]) : l.push(r), p++;
|
|
198
214
|
}
|
|
199
|
-
(y = e === p), (
|
|
215
|
+
(y = e === p), (o = o || y);
|
|
200
216
|
}
|
|
201
|
-
if (!
|
|
217
|
+
if (!o) {
|
|
202
218
|
const r = { params: {} };
|
|
203
219
|
return (null === l ? (l = [r]) : l.push(r),
|
|
204
220
|
p++,
|
|
205
221
|
(t.errors = l),
|
|
206
222
|
!1);
|
|
207
223
|
}
|
|
208
|
-
(p =
|
|
209
|
-
null !== l && (
|
|
224
|
+
(p = n),
|
|
225
|
+
null !== l && (n ? (l.length = n) : (l = null)),
|
|
210
226
|
(f = e === p);
|
|
211
227
|
}
|
|
212
228
|
else
|
|
213
229
|
f = !0;
|
|
214
230
|
if (f) {
|
|
215
|
-
if (void 0 !==
|
|
216
|
-
let r =
|
|
231
|
+
if (void 0 !== s.layer) {
|
|
232
|
+
let r = s.layer;
|
|
217
233
|
const e = p;
|
|
218
234
|
if (p === e) {
|
|
219
235
|
if ('string' != typeof r)
|
|
@@ -226,8 +242,8 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
226
242
|
else
|
|
227
243
|
f = !0;
|
|
228
244
|
if (f) {
|
|
229
|
-
if (void 0 !==
|
|
230
|
-
let r =
|
|
245
|
+
if (void 0 !== s.issuerLayer) {
|
|
246
|
+
let r = s.issuerLayer;
|
|
231
247
|
const e = p;
|
|
232
248
|
if (p === e) {
|
|
233
249
|
if ('string' != typeof r)
|
|
@@ -240,8 +256,8 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
240
256
|
else
|
|
241
257
|
f = !0;
|
|
242
258
|
if (f) {
|
|
243
|
-
if (void 0 !==
|
|
244
|
-
let r =
|
|
259
|
+
if (void 0 !== s.request) {
|
|
260
|
+
let r = s.request;
|
|
245
261
|
const e = p;
|
|
246
262
|
if (p === e) {
|
|
247
263
|
if ('string' != typeof r)
|
|
@@ -255,19 +271,19 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
255
271
|
else
|
|
256
272
|
f = !0;
|
|
257
273
|
if (f) {
|
|
258
|
-
if (void 0 !==
|
|
274
|
+
if (void 0 !== s.singleton) {
|
|
259
275
|
const r = p;
|
|
260
|
-
if ('boolean' != typeof
|
|
276
|
+
if ('boolean' != typeof s.singleton)
|
|
261
277
|
return ((t.errors = [{ params: { type: 'boolean' } }]),
|
|
262
278
|
!1);
|
|
263
279
|
f = r === p;
|
|
264
280
|
}
|
|
265
281
|
else
|
|
266
282
|
f = !0;
|
|
267
|
-
if (f)
|
|
268
|
-
if (void 0 !==
|
|
283
|
+
if (f) {
|
|
284
|
+
if (void 0 !== s.strictVersion) {
|
|
269
285
|
const r = p;
|
|
270
|
-
if ('boolean' != typeof
|
|
286
|
+
if ('boolean' != typeof s.strictVersion)
|
|
271
287
|
return ((t.errors = [
|
|
272
288
|
{ params: { type: 'boolean' } },
|
|
273
289
|
]),
|
|
@@ -276,6 +292,178 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
276
292
|
}
|
|
277
293
|
else
|
|
278
294
|
f = !0;
|
|
295
|
+
if (f) {
|
|
296
|
+
if (void 0 !== s.include) {
|
|
297
|
+
let r = s.include;
|
|
298
|
+
const e = p;
|
|
299
|
+
if (p === e) {
|
|
300
|
+
if (!r ||
|
|
301
|
+
'object' != typeof r ||
|
|
302
|
+
Array.isArray(r))
|
|
303
|
+
return ((t.errors = [
|
|
304
|
+
{ params: { type: 'object' } },
|
|
305
|
+
]),
|
|
306
|
+
!1);
|
|
307
|
+
{
|
|
308
|
+
const e = p;
|
|
309
|
+
for (const e in r)
|
|
310
|
+
if ('version' !== e && 'request' !== e)
|
|
311
|
+
return ((t.errors = [
|
|
312
|
+
{
|
|
313
|
+
params: { additionalProperty: e },
|
|
314
|
+
},
|
|
315
|
+
]),
|
|
316
|
+
!1);
|
|
317
|
+
if (e === p) {
|
|
318
|
+
if (void 0 !== r.version) {
|
|
319
|
+
const e = p;
|
|
320
|
+
if ('string' != typeof r.version)
|
|
321
|
+
return ((t.errors = [
|
|
322
|
+
{ params: { type: 'string' } },
|
|
323
|
+
]),
|
|
324
|
+
!1);
|
|
325
|
+
var g = e === p;
|
|
326
|
+
}
|
|
327
|
+
else
|
|
328
|
+
g = !0;
|
|
329
|
+
if (g)
|
|
330
|
+
if (void 0 !== r.request) {
|
|
331
|
+
let e = r.request;
|
|
332
|
+
const s = p, n = p;
|
|
333
|
+
let o = !1;
|
|
334
|
+
const a = p;
|
|
335
|
+
if ('string' != typeof e) {
|
|
336
|
+
const r = {
|
|
337
|
+
params: { type: 'string' },
|
|
338
|
+
};
|
|
339
|
+
null === l ? (l = [r]) : l.push(r),
|
|
340
|
+
p++;
|
|
341
|
+
}
|
|
342
|
+
var m = a === p;
|
|
343
|
+
if (((o = o || m), !o)) {
|
|
344
|
+
const r = p;
|
|
345
|
+
if (!(e instanceof RegExp)) {
|
|
346
|
+
const r = { params: {} };
|
|
347
|
+
null === l
|
|
348
|
+
? (l = [r])
|
|
349
|
+
: l.push(r),
|
|
350
|
+
p++;
|
|
351
|
+
}
|
|
352
|
+
(m = r === p), (o = o || m);
|
|
353
|
+
}
|
|
354
|
+
if (!o) {
|
|
355
|
+
const r = { params: {} };
|
|
356
|
+
return (null === l
|
|
357
|
+
? (l = [r])
|
|
358
|
+
: l.push(r),
|
|
359
|
+
p++,
|
|
360
|
+
(t.errors = l),
|
|
361
|
+
!1);
|
|
362
|
+
}
|
|
363
|
+
(p = n),
|
|
364
|
+
null !== l &&
|
|
365
|
+
(n ? (l.length = n) : (l = null)),
|
|
366
|
+
(g = s === p);
|
|
367
|
+
}
|
|
368
|
+
else
|
|
369
|
+
g = !0;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
f = e === p;
|
|
374
|
+
}
|
|
375
|
+
else
|
|
376
|
+
f = !0;
|
|
377
|
+
if (f)
|
|
378
|
+
if (void 0 !== s.exclude) {
|
|
379
|
+
let r = s.exclude;
|
|
380
|
+
const e = p;
|
|
381
|
+
if (p === e) {
|
|
382
|
+
if (!r ||
|
|
383
|
+
'object' != typeof r ||
|
|
384
|
+
Array.isArray(r))
|
|
385
|
+
return ((t.errors = [
|
|
386
|
+
{ params: { type: 'object' } },
|
|
387
|
+
]),
|
|
388
|
+
!1);
|
|
389
|
+
{
|
|
390
|
+
const e = p;
|
|
391
|
+
for (const e in r)
|
|
392
|
+
if ('version' !== e && 'request' !== e)
|
|
393
|
+
return ((t.errors = [
|
|
394
|
+
{
|
|
395
|
+
params: {
|
|
396
|
+
additionalProperty: e,
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
]),
|
|
400
|
+
!1);
|
|
401
|
+
if (e === p) {
|
|
402
|
+
if (void 0 !== r.version) {
|
|
403
|
+
const e = p;
|
|
404
|
+
if ('string' != typeof r.version)
|
|
405
|
+
return ((t.errors = [
|
|
406
|
+
{ params: { type: 'string' } },
|
|
407
|
+
]),
|
|
408
|
+
!1);
|
|
409
|
+
var h = e === p;
|
|
410
|
+
}
|
|
411
|
+
else
|
|
412
|
+
h = !0;
|
|
413
|
+
if (h)
|
|
414
|
+
if (void 0 !== r.request) {
|
|
415
|
+
let e = r.request;
|
|
416
|
+
const s = p, n = p;
|
|
417
|
+
let o = !1;
|
|
418
|
+
const a = p;
|
|
419
|
+
if ('string' != typeof e) {
|
|
420
|
+
const r = {
|
|
421
|
+
params: { type: 'string' },
|
|
422
|
+
};
|
|
423
|
+
null === l
|
|
424
|
+
? (l = [r])
|
|
425
|
+
: l.push(r),
|
|
426
|
+
p++;
|
|
427
|
+
}
|
|
428
|
+
var d = a === p;
|
|
429
|
+
if (((o = o || d), !o)) {
|
|
430
|
+
const r = p;
|
|
431
|
+
if (!(e instanceof RegExp)) {
|
|
432
|
+
const r = { params: {} };
|
|
433
|
+
null === l
|
|
434
|
+
? (l = [r])
|
|
435
|
+
: l.push(r),
|
|
436
|
+
p++;
|
|
437
|
+
}
|
|
438
|
+
(d = r === p), (o = o || d);
|
|
439
|
+
}
|
|
440
|
+
if (!o) {
|
|
441
|
+
const r = { params: {} };
|
|
442
|
+
return (null === l
|
|
443
|
+
? (l = [r])
|
|
444
|
+
: l.push(r),
|
|
445
|
+
p++,
|
|
446
|
+
(t.errors = l),
|
|
447
|
+
!1);
|
|
448
|
+
}
|
|
449
|
+
(p = n),
|
|
450
|
+
null !== l &&
|
|
451
|
+
(n
|
|
452
|
+
? (l.length = n)
|
|
453
|
+
: (l = null)),
|
|
454
|
+
(h = s === p);
|
|
455
|
+
}
|
|
456
|
+
else
|
|
457
|
+
h = !0;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
f = e === p;
|
|
462
|
+
}
|
|
463
|
+
else
|
|
464
|
+
f = !0;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
279
467
|
}
|
|
280
468
|
}
|
|
281
469
|
}
|
|
@@ -290,28 +478,28 @@ function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, root
|
|
|
290
478
|
}
|
|
291
479
|
return (t.errors = l), 0 === p;
|
|
292
480
|
}
|
|
293
|
-
function
|
|
481
|
+
function s(r, { instancePath: e = '', parentData: n, parentDataProperty: o, rootData: a = r, } = {}) {
|
|
294
482
|
let i = null, l = 0;
|
|
295
483
|
if (0 === l) {
|
|
296
484
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
297
|
-
return (
|
|
298
|
-
for (const
|
|
299
|
-
let
|
|
485
|
+
return (s.errors = [{ params: { type: 'object' } }]), !1;
|
|
486
|
+
for (const n in r) {
|
|
487
|
+
let o = r[n];
|
|
300
488
|
const f = l, u = l;
|
|
301
489
|
let c = !1;
|
|
302
490
|
const y = l;
|
|
303
|
-
t(
|
|
304
|
-
instancePath: e + '/' +
|
|
491
|
+
t(o, {
|
|
492
|
+
instancePath: e + '/' + n.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
305
493
|
parentData: r,
|
|
306
|
-
parentDataProperty:
|
|
307
|
-
rootData:
|
|
494
|
+
parentDataProperty: n,
|
|
495
|
+
rootData: a,
|
|
308
496
|
}) || ((i = null === i ? t.errors : i.concat(t.errors)), (l = i.length));
|
|
309
497
|
var p = y === l;
|
|
310
498
|
if (((c = c || p), !c)) {
|
|
311
499
|
const r = l;
|
|
312
500
|
if (l == l)
|
|
313
|
-
if ('string' == typeof
|
|
314
|
-
if (
|
|
501
|
+
if ('string' == typeof o) {
|
|
502
|
+
if (o.length < 1) {
|
|
315
503
|
const r = { params: {} };
|
|
316
504
|
null === i ? (i = [r]) : i.push(r), l++;
|
|
317
505
|
}
|
|
@@ -324,15 +512,15 @@ function n(r, { instancePath: e = '', parentData: s, parentDataProperty: a, root
|
|
|
324
512
|
}
|
|
325
513
|
if (!c) {
|
|
326
514
|
const r = { params: {} };
|
|
327
|
-
return null === i ? (i = [r]) : i.push(r), l++, (
|
|
515
|
+
return null === i ? (i = [r]) : i.push(r), l++, (s.errors = i), !1;
|
|
328
516
|
}
|
|
329
517
|
if (((l = u), null !== i && (u ? (i.length = u) : (i = null)), f !== l))
|
|
330
518
|
break;
|
|
331
519
|
}
|
|
332
520
|
}
|
|
333
|
-
return (
|
|
521
|
+
return (s.errors = i), 0 === l;
|
|
334
522
|
}
|
|
335
|
-
function
|
|
523
|
+
function n(r, { instancePath: e = '', parentData: t, parentDataProperty: o, rootData: a = r, } = {}) {
|
|
336
524
|
let i = null, l = 0;
|
|
337
525
|
const p = l;
|
|
338
526
|
let f = !1;
|
|
@@ -340,9 +528,9 @@ function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, root
|
|
|
340
528
|
if (l === u)
|
|
341
529
|
if (Array.isArray(r)) {
|
|
342
530
|
const t = r.length;
|
|
343
|
-
for (let
|
|
344
|
-
let t = r[
|
|
345
|
-
const
|
|
531
|
+
for (let n = 0; n < t; n++) {
|
|
532
|
+
let t = r[n];
|
|
533
|
+
const o = l, p = l;
|
|
346
534
|
let f = !1;
|
|
347
535
|
const u = l;
|
|
348
536
|
if (l == l)
|
|
@@ -358,15 +546,15 @@ function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, root
|
|
|
358
546
|
}
|
|
359
547
|
var c = u === l;
|
|
360
548
|
if (((f = f || c), !f)) {
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
instancePath: e + '/' +
|
|
549
|
+
const o = l;
|
|
550
|
+
s(t, {
|
|
551
|
+
instancePath: e + '/' + n,
|
|
364
552
|
parentData: r,
|
|
365
|
-
parentDataProperty:
|
|
366
|
-
rootData:
|
|
553
|
+
parentDataProperty: n,
|
|
554
|
+
rootData: a,
|
|
367
555
|
}) ||
|
|
368
|
-
((i = null === i ?
|
|
369
|
-
(c =
|
|
556
|
+
((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length)),
|
|
557
|
+
(c = o === l),
|
|
370
558
|
(f = f || c);
|
|
371
559
|
}
|
|
372
560
|
if (f)
|
|
@@ -375,7 +563,7 @@ function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, root
|
|
|
375
563
|
const r = { params: {} };
|
|
376
564
|
null === i ? (i = [r]) : i.push(r), l++;
|
|
377
565
|
}
|
|
378
|
-
if (
|
|
566
|
+
if (o !== l)
|
|
379
567
|
break;
|
|
380
568
|
}
|
|
381
569
|
}
|
|
@@ -385,49 +573,49 @@ function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, root
|
|
|
385
573
|
}
|
|
386
574
|
var y = u === l;
|
|
387
575
|
if (((f = f || y), !f)) {
|
|
388
|
-
const
|
|
389
|
-
|
|
576
|
+
const n = l;
|
|
577
|
+
s(r, {
|
|
390
578
|
instancePath: e,
|
|
391
579
|
parentData: t,
|
|
392
|
-
parentDataProperty:
|
|
393
|
-
rootData:
|
|
394
|
-
}) || ((i = null === i ?
|
|
395
|
-
(y =
|
|
580
|
+
parentDataProperty: o,
|
|
581
|
+
rootData: a,
|
|
582
|
+
}) || ((i = null === i ? s.errors : i.concat(s.errors)), (l = i.length)),
|
|
583
|
+
(y = n === l),
|
|
396
584
|
(f = f || y);
|
|
397
585
|
}
|
|
398
586
|
if (!f) {
|
|
399
587
|
const r = { params: {} };
|
|
400
|
-
return null === i ? (i = [r]) : i.push(r), l++, (
|
|
588
|
+
return null === i ? (i = [r]) : i.push(r), l++, (n.errors = i), !1;
|
|
401
589
|
}
|
|
402
590
|
return ((l = p),
|
|
403
591
|
null !== i && (p ? (i.length = p) : (i = null)),
|
|
404
|
-
(
|
|
592
|
+
(n.errors = i),
|
|
405
593
|
0 === l);
|
|
406
594
|
}
|
|
407
|
-
function
|
|
595
|
+
function o(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData: a = r, } = {}) {
|
|
408
596
|
let i = null, l = 0;
|
|
409
597
|
if (0 === l) {
|
|
410
598
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
411
|
-
return (
|
|
599
|
+
return (o.errors = [{ params: { type: 'object' } }]), !1;
|
|
412
600
|
{
|
|
413
601
|
let t;
|
|
414
602
|
if (void 0 === r.consumes && (t = 'consumes'))
|
|
415
|
-
return (
|
|
603
|
+
return (o.errors = [{ params: { missingProperty: t } }]), !1;
|
|
416
604
|
{
|
|
417
605
|
const t = l;
|
|
418
606
|
for (const e in r)
|
|
419
607
|
if ('consumes' !== e && 'shareScope' !== e)
|
|
420
|
-
return (
|
|
608
|
+
return (o.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
421
609
|
if (t === l) {
|
|
422
610
|
if (void 0 !== r.consumes) {
|
|
423
611
|
const t = l;
|
|
424
|
-
|
|
612
|
+
n(r.consumes, {
|
|
425
613
|
instancePath: e + '/consumes',
|
|
426
614
|
parentData: r,
|
|
427
615
|
parentDataProperty: 'consumes',
|
|
428
|
-
rootData:
|
|
616
|
+
rootData: a,
|
|
429
617
|
}) ||
|
|
430
|
-
((i = null === i ?
|
|
618
|
+
((i = null === i ? n.errors : i.concat(n.errors)),
|
|
431
619
|
(l = i.length));
|
|
432
620
|
var p = t === l;
|
|
433
621
|
}
|
|
@@ -436,10 +624,10 @@ function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, root
|
|
|
436
624
|
if (p)
|
|
437
625
|
if (void 0 !== r.shareScope) {
|
|
438
626
|
let e = r.shareScope;
|
|
439
|
-
const t = l,
|
|
440
|
-
let
|
|
441
|
-
const
|
|
442
|
-
if (l ===
|
|
627
|
+
const t = l, s = l;
|
|
628
|
+
let n = !1;
|
|
629
|
+
const a = l;
|
|
630
|
+
if (l === a)
|
|
443
631
|
if ('string' == typeof e) {
|
|
444
632
|
if (e.length < 1) {
|
|
445
633
|
const r = { params: {} };
|
|
@@ -450,16 +638,16 @@ function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, root
|
|
|
450
638
|
const r = { params: { type: 'string' } };
|
|
451
639
|
null === i ? (i = [r]) : i.push(r), l++;
|
|
452
640
|
}
|
|
453
|
-
var f =
|
|
454
|
-
if (((
|
|
641
|
+
var f = a === l;
|
|
642
|
+
if (((n = n || f), !n)) {
|
|
455
643
|
const r = l;
|
|
456
644
|
if (l === r)
|
|
457
645
|
if (Array.isArray(e)) {
|
|
458
646
|
const r = e.length;
|
|
459
647
|
for (let t = 0; t < r; t++) {
|
|
460
648
|
let r = e[t];
|
|
461
|
-
const
|
|
462
|
-
if (l ===
|
|
649
|
+
const s = l;
|
|
650
|
+
if (l === s)
|
|
463
651
|
if ('string' == typeof r) {
|
|
464
652
|
if (r.length < 1) {
|
|
465
653
|
const r = { params: {} };
|
|
@@ -470,7 +658,7 @@ function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, root
|
|
|
470
658
|
const r = { params: { type: 'string' } };
|
|
471
659
|
null === i ? (i = [r]) : i.push(r), l++;
|
|
472
660
|
}
|
|
473
|
-
if (
|
|
661
|
+
if (s !== l)
|
|
474
662
|
break;
|
|
475
663
|
}
|
|
476
664
|
}
|
|
@@ -478,14 +666,14 @@ function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, root
|
|
|
478
666
|
const r = { params: { type: 'array' } };
|
|
479
667
|
null === i ? (i = [r]) : i.push(r), l++;
|
|
480
668
|
}
|
|
481
|
-
(f = r === l), (
|
|
669
|
+
(f = r === l), (n = n || f);
|
|
482
670
|
}
|
|
483
|
-
if (!
|
|
671
|
+
if (!n) {
|
|
484
672
|
const r = { params: {} };
|
|
485
|
-
return (null === i ? (i = [r]) : i.push(r), l++, (
|
|
673
|
+
return (null === i ? (i = [r]) : i.push(r), l++, (o.errors = i), !1);
|
|
486
674
|
}
|
|
487
|
-
(l =
|
|
488
|
-
null !== i && (
|
|
675
|
+
(l = s),
|
|
676
|
+
null !== i && (s ? (i.length = s) : (i = null)),
|
|
489
677
|
(p = t === l);
|
|
490
678
|
}
|
|
491
679
|
else
|
|
@@ -494,6 +682,6 @@ function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, root
|
|
|
494
682
|
}
|
|
495
683
|
}
|
|
496
684
|
}
|
|
497
|
-
return (
|
|
685
|
+
return (o.errors = i), 0 === l;
|
|
498
686
|
}
|
|
499
687
|
//# sourceMappingURL=ConsumeSharedPlugin.check.js.map
|