@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
|
@@ -68,6 +68,16 @@ declare const _default: {
|
|
|
68
68
|
enum?: undefined;
|
|
69
69
|
})[];
|
|
70
70
|
};
|
|
71
|
+
layer: {
|
|
72
|
+
description: string;
|
|
73
|
+
type: string;
|
|
74
|
+
minLength: number;
|
|
75
|
+
};
|
|
76
|
+
request: {
|
|
77
|
+
description: string;
|
|
78
|
+
type: string;
|
|
79
|
+
minLength: number;
|
|
80
|
+
};
|
|
71
81
|
};
|
|
72
82
|
};
|
|
73
83
|
ProvidesItem: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//@ts-nocheck
|
|
4
3
|
exports.default = {
|
|
5
4
|
definitions: {
|
|
6
5
|
Provides: {
|
|
@@ -78,6 +77,16 @@ exports.default = {
|
|
|
78
77
|
},
|
|
79
78
|
],
|
|
80
79
|
},
|
|
80
|
+
layer: {
|
|
81
|
+
description: 'Layer for the shared module.',
|
|
82
|
+
type: 'string',
|
|
83
|
+
minLength: 1,
|
|
84
|
+
},
|
|
85
|
+
request: {
|
|
86
|
+
description: 'The actual request to use for importing the module. If not specified, the property name/key will be used.',
|
|
87
|
+
type: 'string',
|
|
88
|
+
minLength: 1,
|
|
89
|
+
},
|
|
81
90
|
},
|
|
82
91
|
},
|
|
83
92
|
ProvidesItem: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderSharedPlugin.js","sourceRoot":"","sources":["../../../../src/schemas/sharing/ProviderSharedPlugin.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"ProviderSharedPlugin.js","sourceRoot":"","sources":["../../../../src/schemas/sharing/ProviderSharedPlugin.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,WAAW,EAAE;QACX,QAAQ,EAAE;YACR,WAAW,EACT,uLAAuL;YACzL,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,WAAW,EACT,uEAAuE;wBACzE,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,kGAAkG;YACpG,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,WAAW,EACT,oLAAoL;oBACtL,IAAI,EAAE,SAAS;iBAChB;gBACD,eAAe,EAAE;oBACf,WAAW,EAAE,iDAAiD;oBAC9D,KAAK,EAAE;wBACL;4BACE,WAAW,EAAE,+BAA+B;4BAC5C,IAAI,EAAE,CAAC,KAAK,CAAC;yBACd;wBACD;4BACE,WAAW,EACT,oIAAoI;4BACtI,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,QAAQ,EAAE;oBACR,WAAW,EACT,yEAAyE;oBAC3E,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,CAAC;iBACb;gBACD,UAAU,EAAE;oBACV,WAAW,EAAE,mBAAmB;oBAChC,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,EACT,uFAAuF;oBACzF,KAAK,EAAE;wBACL;4BACE,WAAW,EAAE,0BAA0B;4BACvC,IAAI,EAAE,CAAC,KAAK,CAAC;yBACd;wBACD;4BACE,WAAW,EACT,+EAA+E;4BACjF,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,KAAK,EAAE;oBACL,WAAW,EAAE,8BAA8B;oBAC3C,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,CAAC;iBACb;gBACD,OAAO,EAAE;oBACP,WAAW,EACT,2GAA2G;oBAC7G,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,CAAC;iBACb;aACF;SACF;QACD,YAAY,EAAE;YACZ,WAAW,EACT,mHAAmH;YACrH,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;QACD,cAAc,EAAE;YACd,WAAW,EACT,8GAA8G;YAChH,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE;gBACpB,WAAW,EACT,uEAAuE;gBACzE,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,8BAA8B;qBACrC;oBACD;wBACE,IAAI,EAAE,4BAA4B;qBACnC;iBACF;aACF;SACF;KACF;IACD,KAAK,EAAE,4BAA4B;IACnC,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,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;KACF;IACD,QAAQ,EAAE,CAAC,UAAU,CAAC;CACvB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const validate: typeof
|
|
2
|
-
export default
|
|
3
|
-
declare function
|
|
1
|
+
export declare const validate: typeof a;
|
|
2
|
+
export default a;
|
|
3
|
+
declare function a(r: any, { instancePath: e, parentData: t, parentDataProperty: n, rootData: o, }?: {
|
|
4
4
|
instancePath?: string | undefined;
|
|
5
5
|
parentData: any;
|
|
6
6
|
parentDataProperty: any;
|
|
@@ -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,
|
|
@@ -18,23 +18,28 @@ const r = {
|
|
|
18
18
|
packageName: { type: 'string', minLength: 1 },
|
|
19
19
|
requiredVersion: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
|
|
20
20
|
shareKey: { type: 'string', minLength: 1 },
|
|
21
|
-
shareScope: {
|
|
21
|
+
shareScope: {
|
|
22
|
+
anyOf: [
|
|
23
|
+
{ type: 'string', minLength: 1 },
|
|
24
|
+
{ type: 'array', items: { type: 'string', minLength: 1 } },
|
|
25
|
+
],
|
|
26
|
+
},
|
|
22
27
|
singleton: { type: 'boolean' },
|
|
23
28
|
strictVersion: { type: 'boolean' },
|
|
24
29
|
version: { anyOf: [{ enum: [!1] }, { type: 'string' }] },
|
|
25
30
|
},
|
|
26
31
|
}, e = Object.prototype.hasOwnProperty;
|
|
27
|
-
function t(n, { instancePath:
|
|
28
|
-
let
|
|
32
|
+
function t(n, { instancePath: s = '', parentData: a, parentDataProperty: o, rootData: l = n, } = {}) {
|
|
33
|
+
let i = null, p = 0;
|
|
29
34
|
if (0 === p) {
|
|
30
35
|
if (!n || 'object' != typeof n || Array.isArray(n))
|
|
31
36
|
return (t.errors = [{ params: { type: 'object' } }]), !1;
|
|
32
37
|
{
|
|
33
|
-
const
|
|
34
|
-
for (const
|
|
35
|
-
if (!e.call(r.properties,
|
|
36
|
-
return (t.errors = [{ params: { additionalProperty:
|
|
37
|
-
if (
|
|
38
|
+
const s = p;
|
|
39
|
+
for (const s in n)
|
|
40
|
+
if (!e.call(r.properties, s))
|
|
41
|
+
return (t.errors = [{ params: { additionalProperty: s } }]), !1;
|
|
42
|
+
if (s === p) {
|
|
38
43
|
if (void 0 !== n.eager) {
|
|
39
44
|
const r = p;
|
|
40
45
|
if ('boolean' != typeof n.eager)
|
|
@@ -46,38 +51,38 @@ function t(n, { instancePath: a = '', parentData: s, parentDataProperty: o, root
|
|
|
46
51
|
if (f) {
|
|
47
52
|
if (void 0 !== n.import) {
|
|
48
53
|
let e = n.import;
|
|
49
|
-
const
|
|
54
|
+
const s = p, a = p;
|
|
50
55
|
let o = !1;
|
|
51
|
-
const
|
|
56
|
+
const l = p;
|
|
52
57
|
if (!1 !== e) {
|
|
53
58
|
const e = {
|
|
54
59
|
params: { allowedValues: r.properties.import.anyOf[0].enum },
|
|
55
60
|
};
|
|
56
|
-
null ===
|
|
61
|
+
null === i ? (i = [e]) : i.push(e), p++;
|
|
57
62
|
}
|
|
58
|
-
var u =
|
|
63
|
+
var u = l === p;
|
|
59
64
|
if (((o = o || u), !o)) {
|
|
60
65
|
const r = p;
|
|
61
66
|
if (p == p)
|
|
62
67
|
if ('string' == typeof e) {
|
|
63
68
|
if (e.length < 1) {
|
|
64
69
|
const r = { params: {} };
|
|
65
|
-
null ===
|
|
70
|
+
null === i ? (i = [r]) : i.push(r), p++;
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
73
|
else {
|
|
69
74
|
const r = { params: { type: 'string' } };
|
|
70
|
-
null ===
|
|
75
|
+
null === i ? (i = [r]) : i.push(r), p++;
|
|
71
76
|
}
|
|
72
77
|
(u = r === p), (o = o || u);
|
|
73
78
|
}
|
|
74
79
|
if (!o) {
|
|
75
80
|
const r = { params: {} };
|
|
76
|
-
return (null ===
|
|
81
|
+
return (null === i ? (i = [r]) : i.push(r), p++, (t.errors = i), !1);
|
|
77
82
|
}
|
|
78
|
-
(p =
|
|
79
|
-
null !==
|
|
80
|
-
(f =
|
|
83
|
+
(p = a),
|
|
84
|
+
null !== i && (a ? (i.length = a) : (i = null)),
|
|
85
|
+
(f = s === p);
|
|
81
86
|
}
|
|
82
87
|
else
|
|
83
88
|
f = !0;
|
|
@@ -98,33 +103,33 @@ function t(n, { instancePath: a = '', parentData: s, parentDataProperty: o, root
|
|
|
98
103
|
if (f) {
|
|
99
104
|
if (void 0 !== n.requiredVersion) {
|
|
100
105
|
let e = n.requiredVersion;
|
|
101
|
-
const
|
|
106
|
+
const s = p, a = p;
|
|
102
107
|
let o = !1;
|
|
103
|
-
const
|
|
108
|
+
const l = p;
|
|
104
109
|
if (!1 !== e) {
|
|
105
110
|
const e = {
|
|
106
111
|
params: {
|
|
107
112
|
allowedValues: r.properties.requiredVersion.anyOf[0].enum,
|
|
108
113
|
},
|
|
109
114
|
};
|
|
110
|
-
null ===
|
|
115
|
+
null === i ? (i = [e]) : i.push(e), p++;
|
|
111
116
|
}
|
|
112
|
-
var c =
|
|
117
|
+
var c = l === p;
|
|
113
118
|
if (((o = o || c), !o)) {
|
|
114
119
|
const r = p;
|
|
115
120
|
if ('string' != typeof e) {
|
|
116
121
|
const r = { params: { type: 'string' } };
|
|
117
|
-
null ===
|
|
122
|
+
null === i ? (i = [r]) : i.push(r), p++;
|
|
118
123
|
}
|
|
119
124
|
(c = r === p), (o = o || c);
|
|
120
125
|
}
|
|
121
126
|
if (!o) {
|
|
122
127
|
const r = { params: {} };
|
|
123
|
-
return (null ===
|
|
128
|
+
return (null === i ? (i = [r]) : i.push(r), p++, (t.errors = i), !1);
|
|
124
129
|
}
|
|
125
|
-
(p =
|
|
126
|
-
null !==
|
|
127
|
-
(f =
|
|
130
|
+
(p = a),
|
|
131
|
+
null !== i && (a ? (i.length = a) : (i = null)),
|
|
132
|
+
(f = s === p);
|
|
128
133
|
}
|
|
129
134
|
else
|
|
130
135
|
f = !0;
|
|
@@ -145,14 +150,60 @@ function t(n, { instancePath: a = '', parentData: s, parentDataProperty: o, root
|
|
|
145
150
|
if (f) {
|
|
146
151
|
if (void 0 !== n.shareScope) {
|
|
147
152
|
let r = n.shareScope;
|
|
148
|
-
const e = p;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
if (
|
|
153
|
-
|
|
153
|
+
const e = p, s = p;
|
|
154
|
+
let a = !1;
|
|
155
|
+
const o = p;
|
|
156
|
+
if (p === o)
|
|
157
|
+
if ('string' == typeof r) {
|
|
158
|
+
if (r.length < 1) {
|
|
159
|
+
const r = { params: {} };
|
|
160
|
+
null === i ? (i = [r]) : i.push(r), p++;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
const r = { params: { type: 'string' } };
|
|
165
|
+
null === i ? (i = [r]) : i.push(r), p++;
|
|
166
|
+
}
|
|
167
|
+
var y = o === p;
|
|
168
|
+
if (((a = a || y), !a)) {
|
|
169
|
+
const e = p;
|
|
170
|
+
if (p === e)
|
|
171
|
+
if (Array.isArray(r)) {
|
|
172
|
+
const e = r.length;
|
|
173
|
+
for (let t = 0; t < e; t++) {
|
|
174
|
+
let e = r[t];
|
|
175
|
+
const n = p;
|
|
176
|
+
if (p === n)
|
|
177
|
+
if ('string' == typeof e) {
|
|
178
|
+
if (e.length < 1) {
|
|
179
|
+
const r = { params: {} };
|
|
180
|
+
null === i ? (i = [r]) : i.push(r), p++;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
const r = { params: { type: 'string' } };
|
|
185
|
+
null === i ? (i = [r]) : i.push(r), p++;
|
|
186
|
+
}
|
|
187
|
+
if (n !== p)
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
const r = { params: { type: 'array' } };
|
|
193
|
+
null === i ? (i = [r]) : i.push(r), p++;
|
|
194
|
+
}
|
|
195
|
+
(y = e === p), (a = a || y);
|
|
196
|
+
}
|
|
197
|
+
if (!a) {
|
|
198
|
+
const r = { params: {} };
|
|
199
|
+
return (null === i ? (i = [r]) : i.push(r),
|
|
200
|
+
p++,
|
|
201
|
+
(t.errors = i),
|
|
202
|
+
!1);
|
|
154
203
|
}
|
|
155
|
-
|
|
204
|
+
(p = s),
|
|
205
|
+
null !== i && (s ? (i.length = s) : (i = null)),
|
|
206
|
+
(f = e === p);
|
|
156
207
|
}
|
|
157
208
|
else
|
|
158
209
|
f = !0;
|
|
@@ -177,36 +228,36 @@ function t(n, { instancePath: a = '', parentData: s, parentDataProperty: o, root
|
|
|
177
228
|
if (f)
|
|
178
229
|
if (void 0 !== n.version) {
|
|
179
230
|
let e = n.version;
|
|
180
|
-
const
|
|
231
|
+
const s = p, a = p;
|
|
181
232
|
let o = !1;
|
|
182
|
-
const
|
|
233
|
+
const l = p;
|
|
183
234
|
if (!1 !== e) {
|
|
184
235
|
const e = {
|
|
185
236
|
params: {
|
|
186
237
|
allowedValues: r.properties.version.anyOf[0].enum,
|
|
187
238
|
},
|
|
188
239
|
};
|
|
189
|
-
null ===
|
|
240
|
+
null === i ? (i = [e]) : i.push(e), p++;
|
|
190
241
|
}
|
|
191
|
-
var
|
|
192
|
-
if (((o = o ||
|
|
242
|
+
var h = l === p;
|
|
243
|
+
if (((o = o || h), !o)) {
|
|
193
244
|
const r = p;
|
|
194
245
|
if ('string' != typeof e) {
|
|
195
246
|
const r = { params: { type: 'string' } };
|
|
196
|
-
null ===
|
|
247
|
+
null === i ? (i = [r]) : i.push(r), p++;
|
|
197
248
|
}
|
|
198
|
-
(
|
|
249
|
+
(h = r === p), (o = o || h);
|
|
199
250
|
}
|
|
200
251
|
if (!o) {
|
|
201
252
|
const r = { params: {} };
|
|
202
|
-
return (null ===
|
|
253
|
+
return (null === i ? (i = [r]) : i.push(r),
|
|
203
254
|
p++,
|
|
204
|
-
(t.errors =
|
|
255
|
+
(t.errors = i),
|
|
205
256
|
!1);
|
|
206
257
|
}
|
|
207
|
-
(p =
|
|
208
|
-
null !==
|
|
209
|
-
(f =
|
|
258
|
+
(p = a),
|
|
259
|
+
null !== i && (a ? (i.length = a) : (i = null)),
|
|
260
|
+
(f = s === p);
|
|
210
261
|
}
|
|
211
262
|
else
|
|
212
263
|
f = !0;
|
|
@@ -220,169 +271,222 @@ function t(n, { instancePath: a = '', parentData: s, parentDataProperty: o, root
|
|
|
220
271
|
}
|
|
221
272
|
}
|
|
222
273
|
}
|
|
223
|
-
return (t.errors =
|
|
274
|
+
return (t.errors = i), 0 === p;
|
|
224
275
|
}
|
|
225
|
-
function n(r, { instancePath: e = '', parentData:
|
|
226
|
-
let
|
|
227
|
-
if (0 ===
|
|
276
|
+
function n(r, { instancePath: e = '', parentData: s, parentDataProperty: a, rootData: o = r, } = {}) {
|
|
277
|
+
let l = null, i = 0;
|
|
278
|
+
if (0 === i) {
|
|
228
279
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
229
280
|
return (n.errors = [{ params: { type: 'object' } }]), !1;
|
|
230
|
-
for (const
|
|
231
|
-
let
|
|
232
|
-
const f =
|
|
281
|
+
for (const s in r) {
|
|
282
|
+
let a = r[s];
|
|
283
|
+
const f = i, u = i;
|
|
233
284
|
let c = !1;
|
|
234
|
-
const y =
|
|
235
|
-
t(
|
|
236
|
-
instancePath: e + '/' +
|
|
285
|
+
const y = i;
|
|
286
|
+
t(a, {
|
|
287
|
+
instancePath: e + '/' + s.replace(/~/g, '~0').replace(/\//g, '~1'),
|
|
237
288
|
parentData: r,
|
|
238
|
-
parentDataProperty:
|
|
289
|
+
parentDataProperty: s,
|
|
239
290
|
rootData: o,
|
|
240
|
-
}) || ((
|
|
241
|
-
var p = y ===
|
|
291
|
+
}) || ((l = null === l ? t.errors : l.concat(t.errors)), (i = l.length));
|
|
292
|
+
var p = y === i;
|
|
242
293
|
if (((c = c || p), !c)) {
|
|
243
|
-
const r =
|
|
244
|
-
if (
|
|
245
|
-
if ('string' == typeof
|
|
246
|
-
if (
|
|
294
|
+
const r = i;
|
|
295
|
+
if (i == i)
|
|
296
|
+
if ('string' == typeof a) {
|
|
297
|
+
if (a.length < 1) {
|
|
247
298
|
const r = { params: {} };
|
|
248
|
-
null ===
|
|
299
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
249
300
|
}
|
|
250
301
|
}
|
|
251
302
|
else {
|
|
252
303
|
const r = { params: { type: 'string' } };
|
|
253
|
-
null ===
|
|
304
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
254
305
|
}
|
|
255
|
-
(p = r ===
|
|
306
|
+
(p = r === i), (c = c || p);
|
|
256
307
|
}
|
|
257
308
|
if (!c) {
|
|
258
309
|
const r = { params: {} };
|
|
259
|
-
return null ===
|
|
310
|
+
return null === l ? (l = [r]) : l.push(r), i++, (n.errors = l), !1;
|
|
260
311
|
}
|
|
261
|
-
if (((
|
|
312
|
+
if (((i = u), null !== l && (u ? (l.length = u) : (l = null)), f !== i))
|
|
262
313
|
break;
|
|
263
314
|
}
|
|
264
315
|
}
|
|
265
|
-
return (n.errors =
|
|
316
|
+
return (n.errors = l), 0 === i;
|
|
266
317
|
}
|
|
267
|
-
function
|
|
268
|
-
let
|
|
269
|
-
const p =
|
|
318
|
+
function s(r, { instancePath: e = '', parentData: t, parentDataProperty: a, rootData: o = r, } = {}) {
|
|
319
|
+
let l = null, i = 0;
|
|
320
|
+
const p = i;
|
|
270
321
|
let f = !1;
|
|
271
|
-
const u =
|
|
272
|
-
if (
|
|
322
|
+
const u = i;
|
|
323
|
+
if (i === u)
|
|
273
324
|
if (Array.isArray(r)) {
|
|
274
325
|
const t = r.length;
|
|
275
|
-
for (let
|
|
276
|
-
let t = r[
|
|
277
|
-
const
|
|
326
|
+
for (let s = 0; s < t; s++) {
|
|
327
|
+
let t = r[s];
|
|
328
|
+
const a = i, p = i;
|
|
278
329
|
let f = !1;
|
|
279
|
-
const u =
|
|
280
|
-
if (
|
|
330
|
+
const u = i;
|
|
331
|
+
if (i == i)
|
|
281
332
|
if ('string' == typeof t) {
|
|
282
333
|
if (t.length < 1) {
|
|
283
334
|
const r = { params: {} };
|
|
284
|
-
null ===
|
|
335
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
285
336
|
}
|
|
286
337
|
}
|
|
287
338
|
else {
|
|
288
339
|
const r = { params: { type: 'string' } };
|
|
289
|
-
null ===
|
|
340
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
290
341
|
}
|
|
291
|
-
var c = u ===
|
|
342
|
+
var c = u === i;
|
|
292
343
|
if (((f = f || c), !f)) {
|
|
293
|
-
const
|
|
344
|
+
const a = i;
|
|
294
345
|
n(t, {
|
|
295
|
-
instancePath: e + '/' +
|
|
346
|
+
instancePath: e + '/' + s,
|
|
296
347
|
parentData: r,
|
|
297
|
-
parentDataProperty:
|
|
348
|
+
parentDataProperty: s,
|
|
298
349
|
rootData: o,
|
|
299
350
|
}) ||
|
|
300
|
-
((
|
|
301
|
-
(c =
|
|
351
|
+
((l = null === l ? n.errors : l.concat(n.errors)), (i = l.length)),
|
|
352
|
+
(c = a === i),
|
|
302
353
|
(f = f || c);
|
|
303
354
|
}
|
|
304
355
|
if (f)
|
|
305
|
-
(
|
|
356
|
+
(i = p), null !== l && (p ? (l.length = p) : (l = null));
|
|
306
357
|
else {
|
|
307
358
|
const r = { params: {} };
|
|
308
|
-
null ===
|
|
359
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
309
360
|
}
|
|
310
|
-
if (
|
|
361
|
+
if (a !== i)
|
|
311
362
|
break;
|
|
312
363
|
}
|
|
313
364
|
}
|
|
314
365
|
else {
|
|
315
366
|
const r = { params: { type: 'array' } };
|
|
316
|
-
null ===
|
|
367
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
317
368
|
}
|
|
318
|
-
var y = u ===
|
|
369
|
+
var y = u === i;
|
|
319
370
|
if (((f = f || y), !f)) {
|
|
320
|
-
const
|
|
371
|
+
const s = i;
|
|
321
372
|
n(r, {
|
|
322
373
|
instancePath: e,
|
|
323
374
|
parentData: t,
|
|
324
|
-
parentDataProperty:
|
|
375
|
+
parentDataProperty: a,
|
|
325
376
|
rootData: o,
|
|
326
|
-
}) || ((
|
|
327
|
-
(y =
|
|
377
|
+
}) || ((l = null === l ? n.errors : l.concat(n.errors)), (i = l.length)),
|
|
378
|
+
(y = s === i),
|
|
328
379
|
(f = f || y);
|
|
329
380
|
}
|
|
330
381
|
if (!f) {
|
|
331
382
|
const r = { params: {} };
|
|
332
|
-
return null ===
|
|
383
|
+
return null === l ? (l = [r]) : l.push(r), i++, (s.errors = l), !1;
|
|
333
384
|
}
|
|
334
|
-
return ((
|
|
335
|
-
null !==
|
|
336
|
-
(
|
|
337
|
-
0 ===
|
|
385
|
+
return ((i = p),
|
|
386
|
+
null !== l && (p ? (l.length = p) : (l = null)),
|
|
387
|
+
(s.errors = l),
|
|
388
|
+
0 === i);
|
|
338
389
|
}
|
|
339
|
-
function
|
|
340
|
-
let
|
|
341
|
-
if (0 ===
|
|
390
|
+
function a(r, { instancePath: e = '', parentData: t, parentDataProperty: n, rootData: o = r, } = {}) {
|
|
391
|
+
let l = null, i = 0;
|
|
392
|
+
if (0 === i) {
|
|
342
393
|
if (!r || 'object' != typeof r || Array.isArray(r))
|
|
343
|
-
return (
|
|
394
|
+
return (a.errors = [{ params: { type: 'object' } }]), !1;
|
|
344
395
|
{
|
|
345
396
|
let t;
|
|
346
397
|
if (void 0 === r.shared && (t = 'shared'))
|
|
347
|
-
return (
|
|
398
|
+
return (a.errors = [{ params: { missingProperty: t } }]), !1;
|
|
348
399
|
{
|
|
349
|
-
const t =
|
|
400
|
+
const t = i;
|
|
350
401
|
for (const e in r)
|
|
351
|
-
if ('shareScope' !== e && 'shared' !== e)
|
|
352
|
-
return (
|
|
353
|
-
if (t ===
|
|
354
|
-
if (void 0 !== r.
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
return (s.errors = [{ params: { type: 'string' } }]), !1;
|
|
360
|
-
if (e.length < 1)
|
|
361
|
-
return (s.errors = [{ params: {} }]), !1;
|
|
362
|
-
}
|
|
363
|
-
var p = t === l;
|
|
402
|
+
if ('async' !== e && 'shareScope' !== e && 'shared' !== e)
|
|
403
|
+
return (a.errors = [{ params: { additionalProperty: e } }]), !1;
|
|
404
|
+
if (t === i) {
|
|
405
|
+
if (void 0 !== r.async) {
|
|
406
|
+
const e = i;
|
|
407
|
+
if ('boolean' != typeof r.async)
|
|
408
|
+
return (a.errors = [{ params: { type: 'boolean' } }]), !1;
|
|
409
|
+
var p = e === i;
|
|
364
410
|
}
|
|
365
411
|
else
|
|
366
412
|
p = !0;
|
|
367
|
-
if (p)
|
|
368
|
-
if (void 0 !== r.
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
413
|
+
if (p) {
|
|
414
|
+
if (void 0 !== r.shareScope) {
|
|
415
|
+
let e = r.shareScope;
|
|
416
|
+
const t = i, n = i;
|
|
417
|
+
let s = !1;
|
|
418
|
+
const o = i;
|
|
419
|
+
if (i === o)
|
|
420
|
+
if ('string' == typeof e) {
|
|
421
|
+
if (e.length < 1) {
|
|
422
|
+
const r = { params: {} };
|
|
423
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
const r = { params: { type: 'string' } };
|
|
428
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
429
|
+
}
|
|
430
|
+
var f = o === i;
|
|
431
|
+
if (((s = s || f), !s)) {
|
|
432
|
+
const r = i;
|
|
433
|
+
if (i === r)
|
|
434
|
+
if (Array.isArray(e)) {
|
|
435
|
+
const r = e.length;
|
|
436
|
+
for (let t = 0; t < r; t++) {
|
|
437
|
+
let r = e[t];
|
|
438
|
+
const n = i;
|
|
439
|
+
if (i === n)
|
|
440
|
+
if ('string' == typeof r) {
|
|
441
|
+
if (r.length < 1) {
|
|
442
|
+
const r = { params: {} };
|
|
443
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
const r = { params: { type: 'string' } };
|
|
448
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
449
|
+
}
|
|
450
|
+
if (n !== i)
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
const r = { params: { type: 'array' } };
|
|
456
|
+
null === l ? (l = [r]) : l.push(r), i++;
|
|
457
|
+
}
|
|
458
|
+
(f = r === i), (s = s || f);
|
|
459
|
+
}
|
|
460
|
+
if (!s) {
|
|
461
|
+
const r = { params: {} };
|
|
462
|
+
return (null === l ? (l = [r]) : l.push(r), i++, (a.errors = l), !1);
|
|
463
|
+
}
|
|
464
|
+
(i = n),
|
|
465
|
+
null !== l && (n ? (l.length = n) : (l = null)),
|
|
466
|
+
(p = t === i);
|
|
379
467
|
}
|
|
380
468
|
else
|
|
381
469
|
p = !0;
|
|
470
|
+
if (p)
|
|
471
|
+
if (void 0 !== r.shared) {
|
|
472
|
+
const t = i;
|
|
473
|
+
s(r.shared, {
|
|
474
|
+
instancePath: e + '/shared',
|
|
475
|
+
parentData: r,
|
|
476
|
+
parentDataProperty: 'shared',
|
|
477
|
+
rootData: o,
|
|
478
|
+
}) ||
|
|
479
|
+
((l = null === l ? s.errors : l.concat(s.errors)),
|
|
480
|
+
(i = l.length)),
|
|
481
|
+
(p = t === i);
|
|
482
|
+
}
|
|
483
|
+
else
|
|
484
|
+
p = !0;
|
|
485
|
+
}
|
|
382
486
|
}
|
|
383
487
|
}
|
|
384
488
|
}
|
|
385
489
|
}
|
|
386
|
-
return (
|
|
490
|
+
return (a.errors = l), 0 === i;
|
|
387
491
|
}
|
|
388
492
|
//# sourceMappingURL=SharePlugin.check.js.map
|