@module-federation/enhanced 0.11.4 → 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.
Files changed (95) hide show
  1. package/dist/package.json +4 -3
  2. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +53 -0
  3. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +14 -2
  4. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +10 -2
  5. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +14 -2
  6. package/dist/src/lib/container/ContainerEntryDependency.d.ts +3 -3
  7. package/dist/src/lib/container/ContainerEntryDependency.js +1 -1
  8. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  9. package/dist/src/lib/container/ContainerEntryModule.d.ts +2 -2
  10. package/dist/src/lib/container/ContainerEntryModule.js +5 -2
  11. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
  12. package/dist/src/lib/container/ContainerReferencePlugin.js +1 -1
  13. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
  14. package/dist/src/lib/container/ModuleFederationPlugin.js +8 -0
  15. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  16. package/dist/src/lib/container/RemoteModule.d.ts +3 -3
  17. package/dist/src/lib/container/RemoteModule.js +5 -2
  18. package/dist/src/lib/container/RemoteModule.js.map +1 -1
  19. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +5 -5
  20. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  21. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +1 -38
  22. package/dist/src/lib/sharing/ConsumeSharedModule.js +25 -15
  23. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  24. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +64 -41
  25. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  26. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +3 -1
  27. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  28. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +5 -3
  29. package/dist/src/lib/sharing/ProvideSharedDependency.js +12 -6
  30. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
  31. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +3 -2
  32. package/dist/src/lib/sharing/ProvideSharedModule.js +10 -12
  33. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
  34. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +1 -3
  35. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
  36. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +2 -10
  37. package/dist/src/lib/sharing/ProvideSharedPlugin.js +65 -43
  38. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  39. package/dist/src/lib/sharing/SharePlugin.d.ts +2 -3
  40. package/dist/src/lib/sharing/SharePlugin.js +8 -5
  41. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  42. package/dist/src/lib/sharing/ShareRuntimeModule.js +9 -7
  43. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
  44. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +2 -1
  45. package/dist/src/lib/sharing/resolveMatchedConfigs.js +33 -16
  46. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  47. package/dist/src/lib/sharing/utils.d.ts +3 -2
  48. package/dist/src/lib/sharing/utils.js +2 -1
  49. package/dist/src/lib/sharing/utils.js.map +1 -1
  50. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +3 -3
  51. package/dist/src/schemas/container/ContainerPlugin.check.js +333 -290
  52. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  53. package/dist/src/schemas/container/ContainerPlugin.d.ts +31 -18
  54. package/dist/src/schemas/container/ContainerPlugin.js +34 -21
  55. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  56. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +3 -3
  57. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +293 -188
  58. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  59. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +25 -5
  60. package/dist/src/schemas/container/ContainerReferencePlugin.js +31 -4
  61. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  62. package/dist/src/schemas/container/ExternalsType.check.js +2 -2
  63. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
  64. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +1464 -1282
  65. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  66. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +130 -78
  67. package/dist/src/schemas/container/ModuleFederationPlugin.js +144 -83
  68. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  69. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +3 -3
  70. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +302 -160
  71. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  72. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +33 -2
  73. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +39 -2
  74. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  75. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +1 -1
  76. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +374 -164
  77. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  78. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +51 -2
  79. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +60 -2
  80. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  81. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +148 -94
  82. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
  83. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +10 -0
  84. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +10 -1
  85. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
  86. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +3 -3
  87. package/dist/src/schemas/sharing/SharePlugin.check.js +239 -135
  88. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  89. package/dist/src/schemas/sharing/SharePlugin.d.ts +24 -4
  90. package/dist/src/schemas/sharing/SharePlugin.js +30 -4
  91. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  92. package/dist/src/utils.d.ts +9 -0
  93. package/dist/src/utils.js +31 -0
  94. package/dist/src/utils.js.map +1 -0
  95. 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,aAAa;AACb,kBAAe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AW,EACT,+EAA+E;4BACjF,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;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
+ {"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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,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 s;
2
- export default s;
3
- declare function s(r: any, { instancePath: e, parentData: t, parentDataProperty: n, rootData: o, }?: {
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 = s;
11
- exports.default = s;
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: { type: 'string', minLength: 1 },
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: a = '', parentData: s, parentDataProperty: o, rootData: i = n, } = {}) {
28
- let l = null, p = 0;
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 a = p;
34
- for (const a in n)
35
- if (!e.call(r.properties, a))
36
- return (t.errors = [{ params: { additionalProperty: a } }]), !1;
37
- if (a === p) {
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 a = p, s = p;
54
+ const s = p, a = p;
50
55
  let o = !1;
51
- const i = p;
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 === l ? (l = [e]) : l.push(e), p++;
61
+ null === i ? (i = [e]) : i.push(e), p++;
57
62
  }
58
- var u = i === p;
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 === l ? (l = [r]) : l.push(r), p++;
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 === l ? (l = [r]) : l.push(r), p++;
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 === l ? (l = [r]) : l.push(r), p++, (t.errors = l), !1);
81
+ return (null === i ? (i = [r]) : i.push(r), p++, (t.errors = i), !1);
77
82
  }
78
- (p = s),
79
- null !== l && (s ? (l.length = s) : (l = null)),
80
- (f = a === p);
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 a = p, s = p;
106
+ const s = p, a = p;
102
107
  let o = !1;
103
- const i = p;
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 === l ? (l = [e]) : l.push(e), p++;
115
+ null === i ? (i = [e]) : i.push(e), p++;
111
116
  }
112
- var c = i === p;
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 === l ? (l = [r]) : l.push(r), p++;
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 === l ? (l = [r]) : l.push(r), p++, (t.errors = l), !1);
128
+ return (null === i ? (i = [r]) : i.push(r), p++, (t.errors = i), !1);
124
129
  }
125
- (p = s),
126
- null !== l && (s ? (l.length = s) : (l = null)),
127
- (f = a === p);
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
- if (p === e) {
150
- if ('string' != typeof r)
151
- return ((t.errors = [{ params: { type: 'string' } }]), !1);
152
- if (r.length < 1)
153
- return (t.errors = [{ params: {} }]), !1;
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
- f = e === p;
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 a = p, s = p;
231
+ const s = p, a = p;
181
232
  let o = !1;
182
- const i = p;
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 === l ? (l = [e]) : l.push(e), p++;
240
+ null === i ? (i = [e]) : i.push(e), p++;
190
241
  }
191
- var y = i === p;
192
- if (((o = o || y), !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 === l ? (l = [r]) : l.push(r), p++;
247
+ null === i ? (i = [r]) : i.push(r), p++;
197
248
  }
198
- (y = r === p), (o = o || y);
249
+ (h = r === p), (o = o || h);
199
250
  }
200
251
  if (!o) {
201
252
  const r = { params: {} };
202
- return (null === l ? (l = [r]) : l.push(r),
253
+ return (null === i ? (i = [r]) : i.push(r),
203
254
  p++,
204
- (t.errors = l),
255
+ (t.errors = i),
205
256
  !1);
206
257
  }
207
- (p = s),
208
- null !== l && (s ? (l.length = s) : (l = null)),
209
- (f = a === p);
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 = l), 0 === p;
274
+ return (t.errors = i), 0 === p;
224
275
  }
225
- function n(r, { instancePath: e = '', parentData: a, parentDataProperty: s, rootData: o = r, } = {}) {
226
- let i = null, l = 0;
227
- if (0 === l) {
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 a in r) {
231
- let s = r[a];
232
- const f = l, u = l;
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 = l;
235
- t(s, {
236
- instancePath: e + '/' + a.replace(/~/g, '~0').replace(/\//g, '~1'),
285
+ const y = i;
286
+ t(a, {
287
+ instancePath: e + '/' + s.replace(/~/g, '~0').replace(/\//g, '~1'),
237
288
  parentData: r,
238
- parentDataProperty: a,
289
+ parentDataProperty: s,
239
290
  rootData: o,
240
- }) || ((i = null === i ? t.errors : i.concat(t.errors)), (l = i.length));
241
- var p = y === l;
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 = l;
244
- if (l == l)
245
- if ('string' == typeof s) {
246
- if (s.length < 1) {
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 === i ? (i = [r]) : i.push(r), l++;
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 === i ? (i = [r]) : i.push(r), l++;
304
+ null === l ? (l = [r]) : l.push(r), i++;
254
305
  }
255
- (p = r === l), (c = c || p);
306
+ (p = r === i), (c = c || p);
256
307
  }
257
308
  if (!c) {
258
309
  const r = { params: {} };
259
- return null === i ? (i = [r]) : i.push(r), l++, (n.errors = i), !1;
310
+ return null === l ? (l = [r]) : l.push(r), i++, (n.errors = l), !1;
260
311
  }
261
- if (((l = u), null !== i && (u ? (i.length = u) : (i = null)), f !== l))
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 = i), 0 === l;
316
+ return (n.errors = l), 0 === i;
266
317
  }
267
- function a(r, { instancePath: e = '', parentData: t, parentDataProperty: s, rootData: o = r, } = {}) {
268
- let i = null, l = 0;
269
- const p = l;
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 = l;
272
- if (l === u)
322
+ const u = i;
323
+ if (i === u)
273
324
  if (Array.isArray(r)) {
274
325
  const t = r.length;
275
- for (let a = 0; a < t; a++) {
276
- let t = r[a];
277
- const s = l, p = l;
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 = l;
280
- if (l == l)
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 === i ? (i = [r]) : i.push(r), l++;
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 === i ? (i = [r]) : i.push(r), l++;
340
+ null === l ? (l = [r]) : l.push(r), i++;
290
341
  }
291
- var c = u === l;
342
+ var c = u === i;
292
343
  if (((f = f || c), !f)) {
293
- const s = l;
344
+ const a = i;
294
345
  n(t, {
295
- instancePath: e + '/' + a,
346
+ instancePath: e + '/' + s,
296
347
  parentData: r,
297
- parentDataProperty: a,
348
+ parentDataProperty: s,
298
349
  rootData: o,
299
350
  }) ||
300
- ((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
301
- (c = s === l),
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
- (l = p), null !== i && (p ? (i.length = p) : (i = null));
356
+ (i = p), null !== l && (p ? (l.length = p) : (l = null));
306
357
  else {
307
358
  const r = { params: {} };
308
- null === i ? (i = [r]) : i.push(r), l++;
359
+ null === l ? (l = [r]) : l.push(r), i++;
309
360
  }
310
- if (s !== l)
361
+ if (a !== i)
311
362
  break;
312
363
  }
313
364
  }
314
365
  else {
315
366
  const r = { params: { type: 'array' } };
316
- null === i ? (i = [r]) : i.push(r), l++;
367
+ null === l ? (l = [r]) : l.push(r), i++;
317
368
  }
318
- var y = u === l;
369
+ var y = u === i;
319
370
  if (((f = f || y), !f)) {
320
- const a = l;
371
+ const s = i;
321
372
  n(r, {
322
373
  instancePath: e,
323
374
  parentData: t,
324
- parentDataProperty: s,
375
+ parentDataProperty: a,
325
376
  rootData: o,
326
- }) || ((i = null === i ? n.errors : i.concat(n.errors)), (l = i.length)),
327
- (y = a === l),
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 === i ? (i = [r]) : i.push(r), l++, (a.errors = i), !1;
383
+ return null === l ? (l = [r]) : l.push(r), i++, (s.errors = l), !1;
333
384
  }
334
- return ((l = p),
335
- null !== i && (p ? (i.length = p) : (i = null)),
336
- (a.errors = i),
337
- 0 === l);
385
+ return ((i = p),
386
+ null !== l && (p ? (l.length = p) : (l = null)),
387
+ (s.errors = l),
388
+ 0 === i);
338
389
  }
339
- function s(r, { instancePath: e = '', parentData: t, parentDataProperty: n, rootData: o = r, } = {}) {
340
- let i = null, l = 0;
341
- if (0 === l) {
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 (s.errors = [{ params: { type: 'object' } }]), !1;
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 (s.errors = [{ params: { missingProperty: t } }]), !1;
398
+ return (a.errors = [{ params: { missingProperty: t } }]), !1;
348
399
  {
349
- const t = l;
400
+ const t = i;
350
401
  for (const e in r)
351
- if ('shareScope' !== e && 'shared' !== e)
352
- return (s.errors = [{ params: { additionalProperty: e } }]), !1;
353
- if (t === l) {
354
- if (void 0 !== r.shareScope) {
355
- let e = r.shareScope;
356
- const t = l;
357
- if (l === t) {
358
- if ('string' != typeof e)
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.shared) {
369
- const t = l;
370
- a(r.shared, {
371
- instancePath: e + '/shared',
372
- parentData: r,
373
- parentDataProperty: 'shared',
374
- rootData: o,
375
- }) ||
376
- ((i = null === i ? a.errors : i.concat(a.errors)),
377
- (l = i.length)),
378
- (p = t === l);
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 (s.errors = i), 0 === l;
490
+ return (a.errors = l), 0 === i;
387
491
  }
388
492
  //# sourceMappingURL=SharePlugin.check.js.map