@module-federation/enhanced 0.1.4 → 0.1.5

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 (194) hide show
  1. package/package.json +8 -8
  2. package/dist/package.json +0 -67
  3. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
  4. package/dist/src/declarations/plugins/container/Dependency.d.ts +0 -285
  5. package/dist/src/declarations/plugins/container/Module.d.ts +0 -138
  6. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
  7. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
  8. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
  9. package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
  10. package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -32
  11. package/dist/src/declarations/plugins/container/WebpackOptions.d.ts +0 -140
  12. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -74
  13. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -67
  14. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -78
  15. package/dist/src/index.d.ts +0 -14
  16. package/dist/src/index.js +0 -37
  17. package/dist/src/index.js.map +0 -1
  18. package/dist/src/lib/Constants.d.ts +0 -117
  19. package/dist/src/lib/Constants.js +0 -125
  20. package/dist/src/lib/Constants.js.map +0 -1
  21. package/dist/src/lib/RuntimeGlobals.d.ts +0 -0
  22. package/dist/src/lib/RuntimeGlobals.js +0 -316
  23. package/dist/src/lib/RuntimeGlobals.js.map +0 -1
  24. package/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +0 -20
  25. package/dist/src/lib/container/AsyncBoundaryPlugin.js +0 -183
  26. package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +0 -1
  27. package/dist/src/lib/container/ContainerEntryDependency.d.ts +0 -24
  28. package/dist/src/lib/container/ContainerEntryDependency.js +0 -39
  29. package/dist/src/lib/container/ContainerEntryDependency.js.map +0 -1
  30. package/dist/src/lib/container/ContainerEntryModule.d.ts +0 -75
  31. package/dist/src/lib/container/ContainerEntryModule.js +0 -250
  32. package/dist/src/lib/container/ContainerEntryModule.js.map +0 -1
  33. package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +0 -15
  34. package/dist/src/lib/container/ContainerEntryModuleFactory.js +0 -30
  35. package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +0 -1
  36. package/dist/src/lib/container/ContainerExposedDependency.d.ts +0 -19
  37. package/dist/src/lib/container/ContainerExposedDependency.js +0 -49
  38. package/dist/src/lib/container/ContainerExposedDependency.js.map +0 -1
  39. package/dist/src/lib/container/ContainerPlugin.d.ts +0 -13
  40. package/dist/src/lib/container/ContainerPlugin.js +0 -185
  41. package/dist/src/lib/container/ContainerPlugin.js.map +0 -1
  42. package/dist/src/lib/container/ContainerReferencePlugin.d.ts +0 -14
  43. package/dist/src/lib/container/ContainerReferencePlugin.js +0 -102
  44. package/dist/src/lib/container/ContainerReferencePlugin.js.map +0 -1
  45. package/dist/src/lib/container/FallbackDependency.d.ts +0 -15
  46. package/dist/src/lib/container/FallbackDependency.js +0 -47
  47. package/dist/src/lib/container/FallbackDependency.js.map +0 -1
  48. package/dist/src/lib/container/FallbackItemDependency.d.ts +0 -3
  49. package/dist/src/lib/container/FallbackItemDependency.js +0 -26
  50. package/dist/src/lib/container/FallbackItemDependency.js.map +0 -1
  51. package/dist/src/lib/container/FallbackModule.d.ts +0 -54
  52. package/dist/src/lib/container/FallbackModule.js +0 -152
  53. package/dist/src/lib/container/FallbackModule.js.map +0 -1
  54. package/dist/src/lib/container/FallbackModuleFactory.d.ts +0 -11
  55. package/dist/src/lib/container/FallbackModuleFactory.js +0 -28
  56. package/dist/src/lib/container/FallbackModuleFactory.js.map +0 -1
  57. package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +0 -14
  58. package/dist/src/lib/container/HoistContainerReferencesPlugin.js +0 -61
  59. package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +0 -1
  60. package/dist/src/lib/container/ModuleFederationPlugin.d.ts +0 -16
  61. package/dist/src/lib/container/ModuleFederationPlugin.js +0 -122
  62. package/dist/src/lib/container/ModuleFederationPlugin.js.map +0 -1
  63. package/dist/src/lib/container/RemoteModule.d.ts +0 -90
  64. package/dist/src/lib/container/RemoteModule.js +0 -148
  65. package/dist/src/lib/container/RemoteModule.js.map +0 -1
  66. package/dist/src/lib/container/RemoteRuntimeModule.d.ts +0 -12
  67. package/dist/src/lib/container/RemoteRuntimeModule.js +0 -101
  68. package/dist/src/lib/container/RemoteRuntimeModule.js.map +0 -1
  69. package/dist/src/lib/container/RemoteToExternalDependency.d.ts +0 -4
  70. package/dist/src/lib/container/RemoteToExternalDependency.js +0 -26
  71. package/dist/src/lib/container/RemoteToExternalDependency.js.map +0 -1
  72. package/dist/src/lib/container/constant.d.ts +0 -3
  73. package/dist/src/lib/container/constant.js +0 -12
  74. package/dist/src/lib/container/constant.js.map +0 -1
  75. package/dist/src/lib/container/options.d.ts +0 -26
  76. package/dist/src/lib/container/options.js +0 -81
  77. package/dist/src/lib/container/options.js.map +0 -1
  78. package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +0 -13
  79. package/dist/src/lib/container/runtime/FederationRuntimeModule.js +0 -27
  80. package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +0 -1
  81. package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +0 -17
  82. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +0 -200
  83. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +0 -1
  84. package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +0 -5
  85. package/dist/src/lib/container/runtime/getFederationGlobal.js +0 -24
  86. package/dist/src/lib/container/runtime/getFederationGlobal.js.map +0 -1
  87. package/dist/src/lib/container/runtime/utils.d.ts +0 -16
  88. package/dist/src/lib/container/runtime/utils.js +0 -83
  89. package/dist/src/lib/container/runtime/utils.js.map +0 -1
  90. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +0 -3
  91. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +0 -26
  92. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +0 -1
  93. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +0 -99
  94. package/dist/src/lib/sharing/ConsumeSharedModule.js +0 -206
  95. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +0 -1
  96. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +0 -30
  97. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +0 -245
  98. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +0 -1
  99. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +0 -31
  100. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +0 -108
  101. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +0 -1
  102. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +0 -3
  103. package/dist/src/lib/sharing/ProvideForSharedDependency.js +0 -27
  104. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +0 -1
  105. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +0 -36
  106. package/dist/src/lib/sharing/ProvideSharedDependency.js +0 -70
  107. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +0 -1
  108. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +0 -67
  109. package/dist/src/lib/sharing/ProvideSharedModule.js +0 -186
  110. package/dist/src/lib/sharing/ProvideSharedModule.js.map +0 -1
  111. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +0 -18
  112. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +0 -30
  113. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +0 -1
  114. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +0 -47
  115. package/dist/src/lib/sharing/ProvideSharedPlugin.js +0 -195
  116. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +0 -1
  117. package/dist/src/lib/sharing/SharePlugin.d.ts +0 -41
  118. package/dist/src/lib/sharing/SharePlugin.js +0 -79
  119. package/dist/src/lib/sharing/SharePlugin.js.map +0 -1
  120. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +0 -14
  121. package/dist/src/lib/sharing/ShareRuntimeModule.js +0 -89
  122. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +0 -1
  123. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +0 -12
  124. package/dist/src/lib/sharing/resolveMatchedConfigs.js +0 -66
  125. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +0 -1
  126. package/dist/src/lib/sharing/utils.d.ts +0 -37
  127. package/dist/src/lib/sharing/utils.js +0 -359
  128. package/dist/src/lib/sharing/utils.js.map +0 -1
  129. package/dist/src/rspack.d.ts +0 -1
  130. package/dist/src/rspack.js +0 -6
  131. package/dist/src/rspack.js.map +0 -1
  132. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +0 -5
  133. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +0 -19
  134. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +0 -1
  135. package/dist/src/runtime.d.ts +0 -1
  136. package/dist/src/runtime.js +0 -18
  137. package/dist/src/runtime.js.map +0 -1
  138. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +0 -7
  139. package/dist/src/schemas/container/ContainerPlugin.check.js +0 -2318
  140. package/dist/src/schemas/container/ContainerPlugin.check.js.map +0 -1
  141. package/dist/src/schemas/container/ContainerPlugin.d.ts +0 -289
  142. package/dist/src/schemas/container/ContainerPlugin.js +0 -326
  143. package/dist/src/schemas/container/ContainerPlugin.js.map +0 -1
  144. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +0 -7
  145. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +0 -939
  146. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +0 -1
  147. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +0 -87
  148. package/dist/src/schemas/container/ContainerReferencePlugin.js +0 -132
  149. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +0 -1
  150. package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +0 -9
  151. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +0 -4001
  152. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +0 -1
  153. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +0 -626
  154. package/dist/src/schemas/container/ModuleFederationPlugin.js +0 -720
  155. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +0 -1
  156. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +0 -7
  157. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +0 -434
  158. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +0 -1
  159. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +0 -104
  160. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +0 -119
  161. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +0 -1
  162. package/dist/src/types/runtime.d.ts +0 -7
  163. package/dist/src/types/runtime.js +0 -3
  164. package/dist/src/types/runtime.js.map +0 -1
  165. package/dist/src/webpack.d.ts +0 -1
  166. package/dist/src/webpack.js +0 -9
  167. package/dist/src/webpack.js.map +0 -1
  168. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +0 -8
  169. package/dist/src/wrapper/AsyncBoundaryPlugin.js +0 -19
  170. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +0 -1
  171. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +0 -8
  172. package/dist/src/wrapper/ConsumeSharedPlugin.js +0 -19
  173. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +0 -1
  174. package/dist/src/wrapper/ContainerPlugin.d.ts +0 -8
  175. package/dist/src/wrapper/ContainerPlugin.js +0 -19
  176. package/dist/src/wrapper/ContainerPlugin.js.map +0 -1
  177. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +0 -8
  178. package/dist/src/wrapper/ContainerReferencePlugin.js +0 -19
  179. package/dist/src/wrapper/ContainerReferencePlugin.js.map +0 -1
  180. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +0 -9
  181. package/dist/src/wrapper/FederationRuntimePlugin.js +0 -22
  182. package/dist/src/wrapper/FederationRuntimePlugin.js.map +0 -1
  183. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +0 -6
  184. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +0 -18
  185. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +0 -1
  186. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +0 -8
  187. package/dist/src/wrapper/ModuleFederationPlugin.js +0 -24
  188. package/dist/src/wrapper/ModuleFederationPlugin.js.map +0 -1
  189. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +0 -8
  190. package/dist/src/wrapper/ProvideSharedPlugin.js +0 -19
  191. package/dist/src/wrapper/ProvideSharedPlugin.js.map +0 -1
  192. package/dist/src/wrapper/SharePlugin.d.ts +0 -8
  193. package/dist/src/wrapper/SharePlugin.js +0 -19
  194. package/dist/src/wrapper/SharePlugin.js.map +0 -1
@@ -1,2318 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /* eslint-disable */
4
- //@ts-nocheck
5
- /*
6
- * This file was automatically generated.
7
- * DO NOT MODIFY BY HAND.
8
- * Run `yarn special-lint-fix` to update
9
- */
10
- const absolutePathRegExp = /^(?:[A-Za-z]:[\\/]|\\\\|\/)/;
11
- const runtimePlugin = {
12
- type: 'array',
13
- items: {
14
- anyOf: [
15
- {
16
- type: 'string',
17
- minLength: 1,
18
- description: 'Runtime Plugin File Path.',
19
- },
20
- {
21
- type: 'object',
22
- required: ['import', 'async'],
23
- properties: {
24
- import: {
25
- type: 'string',
26
- minLength: 1,
27
- description: 'Runtime Plugin File Path.',
28
- },
29
- async: {
30
- type: 'boolean',
31
- },
32
- },
33
- additionalProperties: false,
34
- },
35
- ],
36
- },
37
- };
38
- const schema21 = {
39
- definitions: {
40
- AmdContainer: {
41
- type: 'string',
42
- minLength: 1,
43
- },
44
- AuxiliaryComment: {
45
- anyOf: [
46
- {
47
- type: 'string',
48
- },
49
- {
50
- $ref: '#/definitions/LibraryCustomUmdCommentObject',
51
- },
52
- ],
53
- },
54
- EntryRuntime: {
55
- anyOf: [
56
- {
57
- enum: [false],
58
- },
59
- {
60
- type: 'string',
61
- minLength: 1,
62
- },
63
- ],
64
- },
65
- Exposes: {
66
- anyOf: [
67
- {
68
- type: 'array',
69
- items: {
70
- anyOf: [
71
- {
72
- $ref: '#/definitions/ExposesItem',
73
- },
74
- {
75
- $ref: '#/definitions/ExposesObject',
76
- },
77
- ],
78
- },
79
- },
80
- {
81
- $ref: '#/definitions/ExposesObject',
82
- },
83
- ],
84
- },
85
- ExposesConfig: {
86
- type: 'object',
87
- additionalProperties: false,
88
- properties: {
89
- import: {
90
- anyOf: [
91
- {
92
- $ref: '#/definitions/ExposesItem',
93
- },
94
- {
95
- $ref: '#/definitions/ExposesItems',
96
- },
97
- ],
98
- },
99
- name: {
100
- type: 'string',
101
- },
102
- },
103
- required: ['import'],
104
- },
105
- ExposesItem: {
106
- type: 'string',
107
- minLength: 1,
108
- },
109
- ExposesItems: {
110
- type: 'array',
111
- items: {
112
- $ref: '#/definitions/ExposesItem',
113
- },
114
- },
115
- ExposesObject: {
116
- type: 'object',
117
- additionalProperties: {
118
- anyOf: [
119
- {
120
- $ref: '#/definitions/ExposesConfig',
121
- },
122
- {
123
- $ref: '#/definitions/ExposesItem',
124
- },
125
- {
126
- $ref: '#/definitions/ExposesItems',
127
- },
128
- ],
129
- },
130
- },
131
- LibraryCustomUmdCommentObject: {
132
- type: 'object',
133
- additionalProperties: false,
134
- properties: {
135
- amd: {
136
- type: 'string',
137
- },
138
- commonjs: {
139
- type: 'string',
140
- },
141
- commonjs2: {
142
- type: 'string',
143
- },
144
- root: {
145
- type: 'string',
146
- },
147
- },
148
- },
149
- LibraryCustomUmdObject: {
150
- type: 'object',
151
- additionalProperties: false,
152
- properties: {
153
- amd: {
154
- type: 'string',
155
- minLength: 1,
156
- },
157
- commonjs: {
158
- type: 'string',
159
- minLength: 1,
160
- },
161
- root: {
162
- anyOf: [
163
- {
164
- type: 'array',
165
- items: {
166
- type: 'string',
167
- minLength: 1,
168
- },
169
- },
170
- {
171
- type: 'string',
172
- minLength: 1,
173
- },
174
- ],
175
- },
176
- },
177
- },
178
- LibraryExport: {
179
- anyOf: [
180
- {
181
- type: 'array',
182
- items: {
183
- type: 'string',
184
- minLength: 1,
185
- },
186
- },
187
- {
188
- type: 'string',
189
- minLength: 1,
190
- },
191
- ],
192
- },
193
- LibraryName: {
194
- anyOf: [
195
- {
196
- type: 'array',
197
- items: {
198
- type: 'string',
199
- minLength: 1,
200
- },
201
- minItems: 1,
202
- },
203
- {
204
- type: 'string',
205
- minLength: 1,
206
- },
207
- {
208
- $ref: '#/definitions/LibraryCustomUmdObject',
209
- },
210
- ],
211
- },
212
- LibraryOptions: {
213
- type: 'object',
214
- additionalProperties: false,
215
- properties: {
216
- amdContainer: {
217
- $ref: '#/definitions/AmdContainer',
218
- },
219
- auxiliaryComment: {
220
- $ref: '#/definitions/AuxiliaryComment',
221
- },
222
- export: {
223
- $ref: '#/definitions/LibraryExport',
224
- },
225
- name: {
226
- $ref: '#/definitions/LibraryName',
227
- },
228
- type: {
229
- $ref: '#/definitions/LibraryType',
230
- },
231
- umdNamedDefine: {
232
- $ref: '#/definitions/UmdNamedDefine',
233
- },
234
- },
235
- required: ['type'],
236
- },
237
- LibraryType: {
238
- anyOf: [
239
- {
240
- enum: [
241
- 'var',
242
- 'module',
243
- 'assign',
244
- 'assign-properties',
245
- 'this',
246
- 'window',
247
- 'self',
248
- 'global',
249
- 'commonjs',
250
- 'commonjs2',
251
- 'commonjs-module',
252
- 'commonjs-static',
253
- 'amd',
254
- 'amd-require',
255
- 'umd',
256
- 'umd2',
257
- 'jsonp',
258
- 'system',
259
- ],
260
- },
261
- {
262
- type: 'string',
263
- },
264
- ],
265
- },
266
- UmdNamedDefine: {
267
- type: 'boolean',
268
- },
269
- },
270
- type: 'object',
271
- additionalProperties: false,
272
- properties: {
273
- exposes: {
274
- $ref: '#/definitions/Exposes',
275
- },
276
- filename: {
277
- type: 'string',
278
- absolutePath: false,
279
- minLength: 1,
280
- },
281
- library: {
282
- $ref: '#/definitions/LibraryOptions',
283
- },
284
- name: {
285
- type: 'string',
286
- minLength: 1,
287
- },
288
- runtime: {
289
- $ref: '#/definitions/EntryRuntime',
290
- },
291
- runtimePlugins: runtimePlugin,
292
- shareScope: {
293
- type: 'string',
294
- minLength: 1,
295
- },
296
- },
297
- required: ['name', 'exposes'],
298
- };
299
- const schema39 = {
300
- anyOf: [
301
- {
302
- enum: [false],
303
- },
304
- {
305
- type: 'string',
306
- minLength: 1,
307
- },
308
- ],
309
- };
310
- const schema22 = {
311
- anyOf: [
312
- {
313
- type: 'array',
314
- items: {
315
- anyOf: [
316
- {
317
- $ref: '#/definitions/ExposesItem',
318
- },
319
- {
320
- $ref: '#/definitions/ExposesObject',
321
- },
322
- ],
323
- },
324
- },
325
- {
326
- $ref: '#/definitions/ExposesObject',
327
- },
328
- ],
329
- };
330
- const schema23 = {
331
- type: 'string',
332
- minLength: 1,
333
- };
334
- const schema24 = {
335
- type: 'object',
336
- additionalProperties: {
337
- anyOf: [
338
- {
339
- $ref: '#/definitions/ExposesConfig',
340
- },
341
- {
342
- $ref: '#/definitions/ExposesItem',
343
- },
344
- {
345
- $ref: '#/definitions/ExposesItems',
346
- },
347
- ],
348
- },
349
- };
350
- const schema25 = {
351
- type: 'object',
352
- additionalProperties: false,
353
- properties: {
354
- import: {
355
- anyOf: [
356
- {
357
- $ref: '#/definitions/ExposesItem',
358
- },
359
- {
360
- $ref: '#/definitions/ExposesItems',
361
- },
362
- ],
363
- },
364
- name: {
365
- type: 'string',
366
- },
367
- },
368
- required: ['import'],
369
- };
370
- const schema27 = {
371
- type: 'array',
372
- items: {
373
- $ref: '#/definitions/ExposesItem',
374
- },
375
- };
376
- function validate23(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
377
- let vErrors = null;
378
- let errors = 0;
379
- if (errors === 0) {
380
- if (Array.isArray(data)) {
381
- var valid0 = true;
382
- const len0 = data.length;
383
- for (let i0 = 0; i0 < len0; i0++) {
384
- let data0 = data[i0];
385
- const _errs1 = errors;
386
- const _errs2 = errors;
387
- if (errors === _errs2) {
388
- if (typeof data0 === 'string') {
389
- if (data0.length < 1) {
390
- validate23.errors = [
391
- {
392
- params: {},
393
- },
394
- ];
395
- return false;
396
- }
397
- }
398
- else {
399
- validate23.errors = [
400
- {
401
- params: {
402
- type: 'string',
403
- },
404
- },
405
- ];
406
- return false;
407
- }
408
- }
409
- var valid0 = _errs1 === errors;
410
- if (!valid0) {
411
- break;
412
- }
413
- }
414
- }
415
- else {
416
- validate23.errors = [
417
- {
418
- params: {
419
- type: 'array',
420
- },
421
- },
422
- ];
423
- return false;
424
- }
425
- }
426
- validate23.errors = vErrors;
427
- return errors === 0;
428
- }
429
- function validate22(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
430
- let vErrors = null;
431
- let errors = 0;
432
- if (errors === 0) {
433
- if (data && typeof data == 'object' && !Array.isArray(data)) {
434
- let missing0;
435
- if (data.import === undefined && (missing0 = 'import')) {
436
- validate22.errors = [
437
- {
438
- params: {
439
- missingProperty: missing0,
440
- },
441
- },
442
- ];
443
- return false;
444
- }
445
- else {
446
- const _errs1 = errors;
447
- for (const key0 in data) {
448
- if (!(key0 === 'import' || key0 === 'name')) {
449
- validate22.errors = [
450
- {
451
- params: {
452
- additionalProperty: key0,
453
- },
454
- },
455
- ];
456
- return false;
457
- break;
458
- }
459
- }
460
- if (_errs1 === errors) {
461
- if (data.import !== undefined) {
462
- let data0 = data.import;
463
- const _errs2 = errors;
464
- const _errs3 = errors;
465
- let valid1 = false;
466
- const _errs4 = errors;
467
- const _errs5 = errors;
468
- if (errors === _errs5) {
469
- if (typeof data0 === 'string') {
470
- if (data0.length < 1) {
471
- const err0 = {
472
- params: {},
473
- };
474
- if (vErrors === null) {
475
- vErrors = [err0];
476
- }
477
- else {
478
- vErrors.push(err0);
479
- }
480
- errors++;
481
- }
482
- }
483
- else {
484
- const err1 = {
485
- params: {
486
- type: 'string',
487
- },
488
- };
489
- if (vErrors === null) {
490
- vErrors = [err1];
491
- }
492
- else {
493
- vErrors.push(err1);
494
- }
495
- errors++;
496
- }
497
- }
498
- var _valid0 = _errs4 === errors;
499
- valid1 = valid1 || _valid0;
500
- if (!valid1) {
501
- const _errs7 = errors;
502
- if (!validate23(data0, {
503
- instancePath: instancePath + '/import',
504
- parentData: data,
505
- parentDataProperty: 'import',
506
- rootData,
507
- })) {
508
- vErrors =
509
- vErrors === null
510
- ? validate23.errors
511
- : vErrors.concat(validate23.errors);
512
- errors = vErrors.length;
513
- }
514
- var _valid0 = _errs7 === errors;
515
- valid1 = valid1 || _valid0;
516
- }
517
- if (!valid1) {
518
- const err2 = {
519
- params: {},
520
- };
521
- if (vErrors === null) {
522
- vErrors = [err2];
523
- }
524
- else {
525
- vErrors.push(err2);
526
- }
527
- errors++;
528
- validate22.errors = vErrors;
529
- return false;
530
- }
531
- else {
532
- errors = _errs3;
533
- if (vErrors !== null) {
534
- if (_errs3) {
535
- vErrors.length = _errs3;
536
- }
537
- else {
538
- vErrors = null;
539
- }
540
- }
541
- }
542
- var valid0 = _errs2 === errors;
543
- }
544
- else {
545
- var valid0 = true;
546
- }
547
- if (valid0) {
548
- if (data.name !== undefined) {
549
- const _errs8 = errors;
550
- if (typeof data.name !== 'string') {
551
- validate22.errors = [
552
- {
553
- params: {
554
- type: 'string',
555
- },
556
- },
557
- ];
558
- return false;
559
- }
560
- var valid0 = _errs8 === errors;
561
- }
562
- else {
563
- var valid0 = true;
564
- }
565
- }
566
- }
567
- }
568
- }
569
- else {
570
- validate22.errors = [
571
- {
572
- params: {
573
- type: 'object',
574
- },
575
- },
576
- ];
577
- return false;
578
- }
579
- }
580
- validate22.errors = vErrors;
581
- return errors === 0;
582
- }
583
- function validate21(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
584
- let vErrors = null;
585
- let errors = 0;
586
- if (errors === 0) {
587
- if (data && typeof data == 'object' && !Array.isArray(data)) {
588
- for (const key0 in data) {
589
- let data0 = data[key0];
590
- const _errs2 = errors;
591
- const _errs3 = errors;
592
- let valid1 = false;
593
- const _errs4 = errors;
594
- if (!validate22(data0, {
595
- instancePath: instancePath +
596
- '/' +
597
- key0.replace(/~/g, '~0').replace(/\//g, '~1'),
598
- parentData: data,
599
- parentDataProperty: key0,
600
- rootData,
601
- })) {
602
- vErrors =
603
- vErrors === null
604
- ? validate22.errors
605
- : vErrors.concat(validate22.errors);
606
- errors = vErrors.length;
607
- }
608
- var _valid0 = _errs4 === errors;
609
- valid1 = valid1 || _valid0;
610
- if (!valid1) {
611
- const _errs5 = errors;
612
- const _errs6 = errors;
613
- if (errors === _errs6) {
614
- if (typeof data0 === 'string') {
615
- if (data0.length < 1) {
616
- const err0 = {
617
- params: {},
618
- };
619
- if (vErrors === null) {
620
- vErrors = [err0];
621
- }
622
- else {
623
- vErrors.push(err0);
624
- }
625
- errors++;
626
- }
627
- }
628
- else {
629
- const err1 = {
630
- params: {
631
- type: 'string',
632
- },
633
- };
634
- if (vErrors === null) {
635
- vErrors = [err1];
636
- }
637
- else {
638
- vErrors.push(err1);
639
- }
640
- errors++;
641
- }
642
- }
643
- var _valid0 = _errs5 === errors;
644
- valid1 = valid1 || _valid0;
645
- if (!valid1) {
646
- const _errs8 = errors;
647
- if (!validate23(data0, {
648
- instancePath: instancePath +
649
- '/' +
650
- key0.replace(/~/g, '~0').replace(/\//g, '~1'),
651
- parentData: data,
652
- parentDataProperty: key0,
653
- rootData,
654
- })) {
655
- vErrors =
656
- vErrors === null
657
- ? validate23.errors
658
- : vErrors.concat(validate23.errors);
659
- errors = vErrors.length;
660
- }
661
- var _valid0 = _errs8 === errors;
662
- valid1 = valid1 || _valid0;
663
- }
664
- }
665
- if (!valid1) {
666
- const err2 = {
667
- params: {},
668
- };
669
- if (vErrors === null) {
670
- vErrors = [err2];
671
- }
672
- else {
673
- vErrors.push(err2);
674
- }
675
- errors++;
676
- validate21.errors = vErrors;
677
- return false;
678
- }
679
- else {
680
- errors = _errs3;
681
- if (vErrors !== null) {
682
- if (_errs3) {
683
- vErrors.length = _errs3;
684
- }
685
- else {
686
- vErrors = null;
687
- }
688
- }
689
- }
690
- var valid0 = _errs2 === errors;
691
- if (!valid0) {
692
- break;
693
- }
694
- }
695
- }
696
- else {
697
- validate21.errors = [
698
- {
699
- params: {
700
- type: 'object',
701
- },
702
- },
703
- ];
704
- return false;
705
- }
706
- }
707
- validate21.errors = vErrors;
708
- return errors === 0;
709
- }
710
- function validate20(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
711
- let vErrors = null;
712
- let errors = 0;
713
- const _errs0 = errors;
714
- let valid0 = false;
715
- const _errs1 = errors;
716
- if (errors === _errs1) {
717
- if (Array.isArray(data)) {
718
- var valid1 = true;
719
- const len0 = data.length;
720
- for (let i0 = 0; i0 < len0; i0++) {
721
- let data0 = data[i0];
722
- const _errs3 = errors;
723
- const _errs4 = errors;
724
- let valid2 = false;
725
- const _errs5 = errors;
726
- const _errs6 = errors;
727
- if (errors === _errs6) {
728
- if (typeof data0 === 'string') {
729
- if (data0.length < 1) {
730
- const err0 = {
731
- params: {},
732
- };
733
- if (vErrors === null) {
734
- vErrors = [err0];
735
- }
736
- else {
737
- vErrors.push(err0);
738
- }
739
- errors++;
740
- }
741
- }
742
- else {
743
- const err1 = {
744
- params: {
745
- type: 'string',
746
- },
747
- };
748
- if (vErrors === null) {
749
- vErrors = [err1];
750
- }
751
- else {
752
- vErrors.push(err1);
753
- }
754
- errors++;
755
- }
756
- }
757
- var _valid1 = _errs5 === errors;
758
- valid2 = valid2 || _valid1;
759
- if (!valid2) {
760
- const _errs8 = errors;
761
- if (!validate21(data0, {
762
- instancePath: instancePath + '/' + i0,
763
- parentData: data,
764
- parentDataProperty: i0,
765
- rootData,
766
- })) {
767
- vErrors =
768
- vErrors === null
769
- ? validate21.errors
770
- : vErrors.concat(validate21.errors);
771
- errors = vErrors.length;
772
- }
773
- var _valid1 = _errs8 === errors;
774
- valid2 = valid2 || _valid1;
775
- }
776
- if (!valid2) {
777
- const err2 = {
778
- params: {},
779
- };
780
- if (vErrors === null) {
781
- vErrors = [err2];
782
- }
783
- else {
784
- vErrors.push(err2);
785
- }
786
- errors++;
787
- }
788
- else {
789
- errors = _errs4;
790
- if (vErrors !== null) {
791
- if (_errs4) {
792
- vErrors.length = _errs4;
793
- }
794
- else {
795
- vErrors = null;
796
- }
797
- }
798
- }
799
- var valid1 = _errs3 === errors;
800
- if (!valid1) {
801
- break;
802
- }
803
- }
804
- }
805
- else {
806
- const err3 = {
807
- params: {
808
- type: 'array',
809
- },
810
- };
811
- if (vErrors === null) {
812
- vErrors = [err3];
813
- }
814
- else {
815
- vErrors.push(err3);
816
- }
817
- errors++;
818
- }
819
- }
820
- var _valid0 = _errs1 === errors;
821
- valid0 = valid0 || _valid0;
822
- if (!valid0) {
823
- const _errs9 = errors;
824
- if (!validate21(data, {
825
- instancePath,
826
- parentData,
827
- parentDataProperty,
828
- rootData,
829
- })) {
830
- vErrors =
831
- vErrors === null
832
- ? validate21.errors
833
- : vErrors.concat(validate21.errors);
834
- errors = vErrors.length;
835
- }
836
- var _valid0 = _errs9 === errors;
837
- valid0 = valid0 || _valid0;
838
- }
839
- if (!valid0) {
840
- const err4 = {
841
- params: {},
842
- };
843
- if (vErrors === null) {
844
- vErrors = [err4];
845
- }
846
- else {
847
- vErrors.push(err4);
848
- }
849
- errors++;
850
- validate20.errors = vErrors;
851
- return false;
852
- }
853
- else {
854
- errors = _errs0;
855
- if (vErrors !== null) {
856
- if (_errs0) {
857
- vErrors.length = _errs0;
858
- }
859
- else {
860
- vErrors = null;
861
- }
862
- }
863
- }
864
- validate20.errors = vErrors;
865
- return errors === 0;
866
- }
867
- const schema30 = {
868
- type: 'object',
869
- additionalProperties: false,
870
- properties: {
871
- amdContainer: {
872
- $ref: '#/definitions/AmdContainer',
873
- },
874
- auxiliaryComment: {
875
- $ref: '#/definitions/AuxiliaryComment',
876
- },
877
- export: {
878
- $ref: '#/definitions/LibraryExport',
879
- },
880
- name: {
881
- $ref: '#/definitions/LibraryName',
882
- },
883
- type: {
884
- $ref: '#/definitions/LibraryType',
885
- },
886
- umdNamedDefine: {
887
- $ref: '#/definitions/UmdNamedDefine',
888
- },
889
- },
890
- required: ['type'],
891
- };
892
- const schema31 = {
893
- type: 'string',
894
- minLength: 1,
895
- };
896
- const schema34 = {
897
- anyOf: [
898
- {
899
- type: 'array',
900
- items: {
901
- type: 'string',
902
- minLength: 1,
903
- },
904
- },
905
- {
906
- type: 'string',
907
- minLength: 1,
908
- },
909
- ],
910
- };
911
- const schema37 = {
912
- anyOf: [
913
- {
914
- enum: [
915
- 'var',
916
- 'module',
917
- 'assign',
918
- 'assign-properties',
919
- 'this',
920
- 'window',
921
- 'self',
922
- 'global',
923
- 'commonjs',
924
- 'commonjs2',
925
- 'commonjs-module',
926
- 'commonjs-static',
927
- 'amd',
928
- 'amd-require',
929
- 'umd',
930
- 'umd2',
931
- 'jsonp',
932
- 'system',
933
- ],
934
- },
935
- {
936
- type: 'string',
937
- },
938
- ],
939
- };
940
- const schema38 = {
941
- type: 'boolean',
942
- };
943
- const schema32 = {
944
- anyOf: [
945
- {
946
- type: 'string',
947
- },
948
- {
949
- $ref: '#/definitions/LibraryCustomUmdCommentObject',
950
- },
951
- ],
952
- };
953
- const schema33 = {
954
- type: 'object',
955
- additionalProperties: false,
956
- properties: {
957
- amd: {
958
- type: 'string',
959
- },
960
- commonjs: {
961
- type: 'string',
962
- },
963
- commonjs2: {
964
- type: 'string',
965
- },
966
- root: {
967
- type: 'string',
968
- },
969
- },
970
- };
971
- function validate31(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
972
- let vErrors = null;
973
- let errors = 0;
974
- const _errs0 = errors;
975
- let valid0 = false;
976
- const _errs1 = errors;
977
- if (typeof data !== 'string') {
978
- const err0 = {
979
- params: {
980
- type: 'string',
981
- },
982
- };
983
- if (vErrors === null) {
984
- vErrors = [err0];
985
- }
986
- else {
987
- vErrors.push(err0);
988
- }
989
- errors++;
990
- }
991
- var _valid0 = _errs1 === errors;
992
- valid0 = valid0 || _valid0;
993
- if (!valid0) {
994
- const _errs3 = errors;
995
- const _errs4 = errors;
996
- if (errors === _errs4) {
997
- if (data && typeof data == 'object' && !Array.isArray(data)) {
998
- const _errs6 = errors;
999
- for (const key0 in data) {
1000
- if (!(key0 === 'amd' ||
1001
- key0 === 'commonjs' ||
1002
- key0 === 'commonjs2' ||
1003
- key0 === 'root')) {
1004
- const err1 = {
1005
- params: {
1006
- additionalProperty: key0,
1007
- },
1008
- };
1009
- if (vErrors === null) {
1010
- vErrors = [err1];
1011
- }
1012
- else {
1013
- vErrors.push(err1);
1014
- }
1015
- errors++;
1016
- break;
1017
- }
1018
- }
1019
- if (_errs6 === errors) {
1020
- if (data.amd !== undefined) {
1021
- const _errs7 = errors;
1022
- if (typeof data.amd !== 'string') {
1023
- const err2 = {
1024
- params: {
1025
- type: 'string',
1026
- },
1027
- };
1028
- if (vErrors === null) {
1029
- vErrors = [err2];
1030
- }
1031
- else {
1032
- vErrors.push(err2);
1033
- }
1034
- errors++;
1035
- }
1036
- var valid2 = _errs7 === errors;
1037
- }
1038
- else {
1039
- var valid2 = true;
1040
- }
1041
- if (valid2) {
1042
- if (data.commonjs !== undefined) {
1043
- const _errs9 = errors;
1044
- if (typeof data.commonjs !== 'string') {
1045
- const err3 = {
1046
- params: {
1047
- type: 'string',
1048
- },
1049
- };
1050
- if (vErrors === null) {
1051
- vErrors = [err3];
1052
- }
1053
- else {
1054
- vErrors.push(err3);
1055
- }
1056
- errors++;
1057
- }
1058
- var valid2 = _errs9 === errors;
1059
- }
1060
- else {
1061
- var valid2 = true;
1062
- }
1063
- if (valid2) {
1064
- if (data.commonjs2 !== undefined) {
1065
- const _errs11 = errors;
1066
- if (typeof data.commonjs2 !== 'string') {
1067
- const err4 = {
1068
- params: {
1069
- type: 'string',
1070
- },
1071
- };
1072
- if (vErrors === null) {
1073
- vErrors = [err4];
1074
- }
1075
- else {
1076
- vErrors.push(err4);
1077
- }
1078
- errors++;
1079
- }
1080
- var valid2 = _errs11 === errors;
1081
- }
1082
- else {
1083
- var valid2 = true;
1084
- }
1085
- if (valid2) {
1086
- if (data.root !== undefined) {
1087
- const _errs13 = errors;
1088
- if (typeof data.root !== 'string') {
1089
- const err5 = {
1090
- params: {
1091
- type: 'string',
1092
- },
1093
- };
1094
- if (vErrors === null) {
1095
- vErrors = [err5];
1096
- }
1097
- else {
1098
- vErrors.push(err5);
1099
- }
1100
- errors++;
1101
- }
1102
- var valid2 = _errs13 === errors;
1103
- }
1104
- else {
1105
- var valid2 = true;
1106
- }
1107
- }
1108
- }
1109
- }
1110
- }
1111
- }
1112
- else {
1113
- const err6 = {
1114
- params: {
1115
- type: 'object',
1116
- },
1117
- };
1118
- if (vErrors === null) {
1119
- vErrors = [err6];
1120
- }
1121
- else {
1122
- vErrors.push(err6);
1123
- }
1124
- errors++;
1125
- }
1126
- }
1127
- var _valid0 = _errs3 === errors;
1128
- valid0 = valid0 || _valid0;
1129
- }
1130
- if (!valid0) {
1131
- const err7 = {
1132
- params: {},
1133
- };
1134
- if (vErrors === null) {
1135
- vErrors = [err7];
1136
- }
1137
- else {
1138
- vErrors.push(err7);
1139
- }
1140
- errors++;
1141
- validate31.errors = vErrors;
1142
- return false;
1143
- }
1144
- else {
1145
- errors = _errs0;
1146
- if (vErrors !== null) {
1147
- if (_errs0) {
1148
- vErrors.length = _errs0;
1149
- }
1150
- else {
1151
- vErrors = null;
1152
- }
1153
- }
1154
- }
1155
- validate31.errors = vErrors;
1156
- return errors === 0;
1157
- }
1158
- const schema35 = {
1159
- anyOf: [
1160
- {
1161
- type: 'array',
1162
- items: {
1163
- type: 'string',
1164
- minLength: 1,
1165
- },
1166
- minItems: 1,
1167
- },
1168
- {
1169
- type: 'string',
1170
- minLength: 1,
1171
- },
1172
- {
1173
- $ref: '#/definitions/LibraryCustomUmdObject',
1174
- },
1175
- ],
1176
- };
1177
- const schema36 = {
1178
- type: 'object',
1179
- additionalProperties: false,
1180
- properties: {
1181
- amd: {
1182
- type: 'string',
1183
- minLength: 1,
1184
- },
1185
- commonjs: {
1186
- type: 'string',
1187
- minLength: 1,
1188
- },
1189
- root: {
1190
- anyOf: [
1191
- {
1192
- type: 'array',
1193
- items: {
1194
- type: 'string',
1195
- minLength: 1,
1196
- },
1197
- },
1198
- {
1199
- type: 'string',
1200
- minLength: 1,
1201
- },
1202
- ],
1203
- },
1204
- },
1205
- };
1206
- function validate33(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
1207
- let vErrors = null;
1208
- let errors = 0;
1209
- const _errs0 = errors;
1210
- let valid0 = false;
1211
- const _errs1 = errors;
1212
- if (errors === _errs1) {
1213
- if (Array.isArray(data)) {
1214
- if (data.length < 1) {
1215
- const err0 = {
1216
- params: {
1217
- limit: 1,
1218
- },
1219
- };
1220
- if (vErrors === null) {
1221
- vErrors = [err0];
1222
- }
1223
- else {
1224
- vErrors.push(err0);
1225
- }
1226
- errors++;
1227
- }
1228
- else {
1229
- var valid1 = true;
1230
- const len0 = data.length;
1231
- for (let i0 = 0; i0 < len0; i0++) {
1232
- let data0 = data[i0];
1233
- const _errs3 = errors;
1234
- if (errors === _errs3) {
1235
- if (typeof data0 === 'string') {
1236
- if (data0.length < 1) {
1237
- const err1 = {
1238
- params: {},
1239
- };
1240
- if (vErrors === null) {
1241
- vErrors = [err1];
1242
- }
1243
- else {
1244
- vErrors.push(err1);
1245
- }
1246
- errors++;
1247
- }
1248
- }
1249
- else {
1250
- const err2 = {
1251
- params: {
1252
- type: 'string',
1253
- },
1254
- };
1255
- if (vErrors === null) {
1256
- vErrors = [err2];
1257
- }
1258
- else {
1259
- vErrors.push(err2);
1260
- }
1261
- errors++;
1262
- }
1263
- }
1264
- var valid1 = _errs3 === errors;
1265
- if (!valid1) {
1266
- break;
1267
- }
1268
- }
1269
- }
1270
- }
1271
- else {
1272
- const err3 = {
1273
- params: {
1274
- type: 'array',
1275
- },
1276
- };
1277
- if (vErrors === null) {
1278
- vErrors = [err3];
1279
- }
1280
- else {
1281
- vErrors.push(err3);
1282
- }
1283
- errors++;
1284
- }
1285
- }
1286
- var _valid0 = _errs1 === errors;
1287
- valid0 = valid0 || _valid0;
1288
- if (!valid0) {
1289
- const _errs5 = errors;
1290
- if (errors === _errs5) {
1291
- if (typeof data === 'string') {
1292
- if (data.length < 1) {
1293
- const err4 = {
1294
- params: {},
1295
- };
1296
- if (vErrors === null) {
1297
- vErrors = [err4];
1298
- }
1299
- else {
1300
- vErrors.push(err4);
1301
- }
1302
- errors++;
1303
- }
1304
- }
1305
- else {
1306
- const err5 = {
1307
- params: {
1308
- type: 'string',
1309
- },
1310
- };
1311
- if (vErrors === null) {
1312
- vErrors = [err5];
1313
- }
1314
- else {
1315
- vErrors.push(err5);
1316
- }
1317
- errors++;
1318
- }
1319
- }
1320
- var _valid0 = _errs5 === errors;
1321
- valid0 = valid0 || _valid0;
1322
- if (!valid0) {
1323
- const _errs7 = errors;
1324
- const _errs8 = errors;
1325
- if (errors === _errs8) {
1326
- if (data && typeof data == 'object' && !Array.isArray(data)) {
1327
- const _errs10 = errors;
1328
- for (const key0 in data) {
1329
- if (!(key0 === 'amd' || key0 === 'commonjs' || key0 === 'root')) {
1330
- const err6 = {
1331
- params: {
1332
- additionalProperty: key0,
1333
- },
1334
- };
1335
- if (vErrors === null) {
1336
- vErrors = [err6];
1337
- }
1338
- else {
1339
- vErrors.push(err6);
1340
- }
1341
- errors++;
1342
- break;
1343
- }
1344
- }
1345
- if (_errs10 === errors) {
1346
- if (data.amd !== undefined) {
1347
- let data1 = data.amd;
1348
- const _errs11 = errors;
1349
- if (errors === _errs11) {
1350
- if (typeof data1 === 'string') {
1351
- if (data1.length < 1) {
1352
- const err7 = {
1353
- params: {},
1354
- };
1355
- if (vErrors === null) {
1356
- vErrors = [err7];
1357
- }
1358
- else {
1359
- vErrors.push(err7);
1360
- }
1361
- errors++;
1362
- }
1363
- }
1364
- else {
1365
- const err8 = {
1366
- params: {
1367
- type: 'string',
1368
- },
1369
- };
1370
- if (vErrors === null) {
1371
- vErrors = [err8];
1372
- }
1373
- else {
1374
- vErrors.push(err8);
1375
- }
1376
- errors++;
1377
- }
1378
- }
1379
- var valid3 = _errs11 === errors;
1380
- }
1381
- else {
1382
- var valid3 = true;
1383
- }
1384
- if (valid3) {
1385
- if (data.commonjs !== undefined) {
1386
- let data2 = data.commonjs;
1387
- const _errs13 = errors;
1388
- if (errors === _errs13) {
1389
- if (typeof data2 === 'string') {
1390
- if (data2.length < 1) {
1391
- const err9 = {
1392
- params: {},
1393
- };
1394
- if (vErrors === null) {
1395
- vErrors = [err9];
1396
- }
1397
- else {
1398
- vErrors.push(err9);
1399
- }
1400
- errors++;
1401
- }
1402
- }
1403
- else {
1404
- const err10 = {
1405
- params: {
1406
- type: 'string',
1407
- },
1408
- };
1409
- if (vErrors === null) {
1410
- vErrors = [err10];
1411
- }
1412
- else {
1413
- vErrors.push(err10);
1414
- }
1415
- errors++;
1416
- }
1417
- }
1418
- var valid3 = _errs13 === errors;
1419
- }
1420
- else {
1421
- var valid3 = true;
1422
- }
1423
- if (valid3) {
1424
- if (data.root !== undefined) {
1425
- let data3 = data.root;
1426
- const _errs15 = errors;
1427
- const _errs16 = errors;
1428
- let valid4 = false;
1429
- const _errs17 = errors;
1430
- if (errors === _errs17) {
1431
- if (Array.isArray(data3)) {
1432
- var valid5 = true;
1433
- const len1 = data3.length;
1434
- for (let i1 = 0; i1 < len1; i1++) {
1435
- let data4 = data3[i1];
1436
- const _errs19 = errors;
1437
- if (errors === _errs19) {
1438
- if (typeof data4 === 'string') {
1439
- if (data4.length < 1) {
1440
- const err11 = {
1441
- params: {},
1442
- };
1443
- if (vErrors === null) {
1444
- vErrors = [err11];
1445
- }
1446
- else {
1447
- vErrors.push(err11);
1448
- }
1449
- errors++;
1450
- }
1451
- }
1452
- else {
1453
- const err12 = {
1454
- params: {
1455
- type: 'string',
1456
- },
1457
- };
1458
- if (vErrors === null) {
1459
- vErrors = [err12];
1460
- }
1461
- else {
1462
- vErrors.push(err12);
1463
- }
1464
- errors++;
1465
- }
1466
- }
1467
- var valid5 = _errs19 === errors;
1468
- if (!valid5) {
1469
- break;
1470
- }
1471
- }
1472
- }
1473
- else {
1474
- const err13 = {
1475
- params: {
1476
- type: 'array',
1477
- },
1478
- };
1479
- if (vErrors === null) {
1480
- vErrors = [err13];
1481
- }
1482
- else {
1483
- vErrors.push(err13);
1484
- }
1485
- errors++;
1486
- }
1487
- }
1488
- var _valid1 = _errs17 === errors;
1489
- valid4 = valid4 || _valid1;
1490
- if (!valid4) {
1491
- const _errs21 = errors;
1492
- if (errors === _errs21) {
1493
- if (typeof data3 === 'string') {
1494
- if (data3.length < 1) {
1495
- const err14 = {
1496
- params: {},
1497
- };
1498
- if (vErrors === null) {
1499
- vErrors = [err14];
1500
- }
1501
- else {
1502
- vErrors.push(err14);
1503
- }
1504
- errors++;
1505
- }
1506
- }
1507
- else {
1508
- const err15 = {
1509
- params: {
1510
- type: 'string',
1511
- },
1512
- };
1513
- if (vErrors === null) {
1514
- vErrors = [err15];
1515
- }
1516
- else {
1517
- vErrors.push(err15);
1518
- }
1519
- errors++;
1520
- }
1521
- }
1522
- var _valid1 = _errs21 === errors;
1523
- valid4 = valid4 || _valid1;
1524
- }
1525
- if (!valid4) {
1526
- const err16 = {
1527
- params: {},
1528
- };
1529
- if (vErrors === null) {
1530
- vErrors = [err16];
1531
- }
1532
- else {
1533
- vErrors.push(err16);
1534
- }
1535
- errors++;
1536
- }
1537
- else {
1538
- errors = _errs16;
1539
- if (vErrors !== null) {
1540
- if (_errs16) {
1541
- vErrors.length = _errs16;
1542
- }
1543
- else {
1544
- vErrors = null;
1545
- }
1546
- }
1547
- }
1548
- var valid3 = _errs15 === errors;
1549
- }
1550
- else {
1551
- var valid3 = true;
1552
- }
1553
- }
1554
- }
1555
- }
1556
- }
1557
- else {
1558
- const err17 = {
1559
- params: {
1560
- type: 'object',
1561
- },
1562
- };
1563
- if (vErrors === null) {
1564
- vErrors = [err17];
1565
- }
1566
- else {
1567
- vErrors.push(err17);
1568
- }
1569
- errors++;
1570
- }
1571
- }
1572
- var _valid0 = _errs7 === errors;
1573
- valid0 = valid0 || _valid0;
1574
- }
1575
- }
1576
- if (!valid0) {
1577
- const err18 = {
1578
- params: {},
1579
- };
1580
- if (vErrors === null) {
1581
- vErrors = [err18];
1582
- }
1583
- else {
1584
- vErrors.push(err18);
1585
- }
1586
- errors++;
1587
- validate33.errors = vErrors;
1588
- return false;
1589
- }
1590
- else {
1591
- errors = _errs0;
1592
- if (vErrors !== null) {
1593
- if (_errs0) {
1594
- vErrors.length = _errs0;
1595
- }
1596
- else {
1597
- vErrors = null;
1598
- }
1599
- }
1600
- }
1601
- validate33.errors = vErrors;
1602
- return errors === 0;
1603
- }
1604
- function validate30(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
1605
- let vErrors = null;
1606
- let errors = 0;
1607
- if (errors === 0) {
1608
- if (data && typeof data == 'object' && !Array.isArray(data)) {
1609
- let missing0;
1610
- if (data.type === undefined && (missing0 = 'type')) {
1611
- validate30.errors = [
1612
- {
1613
- params: {
1614
- missingProperty: missing0,
1615
- },
1616
- },
1617
- ];
1618
- return false;
1619
- }
1620
- else {
1621
- const _errs1 = errors;
1622
- for (const key0 in data) {
1623
- if (!(key0 === 'amdContainer' ||
1624
- key0 === 'auxiliaryComment' ||
1625
- key0 === 'export' ||
1626
- key0 === 'name' ||
1627
- key0 === 'type' ||
1628
- key0 === 'umdNamedDefine')) {
1629
- validate30.errors = [
1630
- {
1631
- params: {
1632
- additionalProperty: key0,
1633
- },
1634
- },
1635
- ];
1636
- return false;
1637
- break;
1638
- }
1639
- }
1640
- if (_errs1 === errors) {
1641
- if (data.amdContainer !== undefined) {
1642
- let data0 = data.amdContainer;
1643
- const _errs2 = errors;
1644
- const _errs3 = errors;
1645
- if (errors === _errs3) {
1646
- if (typeof data0 === 'string') {
1647
- if (data0.length < 1) {
1648
- validate30.errors = [
1649
- {
1650
- params: {},
1651
- },
1652
- ];
1653
- return false;
1654
- }
1655
- }
1656
- else {
1657
- validate30.errors = [
1658
- {
1659
- params: {
1660
- type: 'string',
1661
- },
1662
- },
1663
- ];
1664
- return false;
1665
- }
1666
- }
1667
- var valid0 = _errs2 === errors;
1668
- }
1669
- else {
1670
- var valid0 = true;
1671
- }
1672
- if (valid0) {
1673
- if (data.auxiliaryComment !== undefined) {
1674
- const _errs5 = errors;
1675
- if (!validate31(data.auxiliaryComment, {
1676
- instancePath: instancePath + '/auxiliaryComment',
1677
- parentData: data,
1678
- parentDataProperty: 'auxiliaryComment',
1679
- rootData,
1680
- })) {
1681
- vErrors =
1682
- vErrors === null
1683
- ? validate31.errors
1684
- : vErrors.concat(validate31.errors);
1685
- errors = vErrors.length;
1686
- }
1687
- var valid0 = _errs5 === errors;
1688
- }
1689
- else {
1690
- var valid0 = true;
1691
- }
1692
- if (valid0) {
1693
- if (data.export !== undefined) {
1694
- let data2 = data.export;
1695
- const _errs6 = errors;
1696
- const _errs8 = errors;
1697
- let valid3 = false;
1698
- const _errs9 = errors;
1699
- if (errors === _errs9) {
1700
- if (Array.isArray(data2)) {
1701
- var valid4 = true;
1702
- const len0 = data2.length;
1703
- for (let i0 = 0; i0 < len0; i0++) {
1704
- let data3 = data2[i0];
1705
- const _errs11 = errors;
1706
- if (errors === _errs11) {
1707
- if (typeof data3 === 'string') {
1708
- if (data3.length < 1) {
1709
- const err0 = {
1710
- params: {},
1711
- };
1712
- if (vErrors === null) {
1713
- vErrors = [err0];
1714
- }
1715
- else {
1716
- vErrors.push(err0);
1717
- }
1718
- errors++;
1719
- }
1720
- }
1721
- else {
1722
- const err1 = {
1723
- params: {
1724
- type: 'string',
1725
- },
1726
- };
1727
- if (vErrors === null) {
1728
- vErrors = [err1];
1729
- }
1730
- else {
1731
- vErrors.push(err1);
1732
- }
1733
- errors++;
1734
- }
1735
- }
1736
- var valid4 = _errs11 === errors;
1737
- if (!valid4) {
1738
- break;
1739
- }
1740
- }
1741
- }
1742
- else {
1743
- const err2 = {
1744
- params: {
1745
- type: 'array',
1746
- },
1747
- };
1748
- if (vErrors === null) {
1749
- vErrors = [err2];
1750
- }
1751
- else {
1752
- vErrors.push(err2);
1753
- }
1754
- errors++;
1755
- }
1756
- }
1757
- var _valid0 = _errs9 === errors;
1758
- valid3 = valid3 || _valid0;
1759
- if (!valid3) {
1760
- const _errs13 = errors;
1761
- if (errors === _errs13) {
1762
- if (typeof data2 === 'string') {
1763
- if (data2.length < 1) {
1764
- const err3 = {
1765
- params: {},
1766
- };
1767
- if (vErrors === null) {
1768
- vErrors = [err3];
1769
- }
1770
- else {
1771
- vErrors.push(err3);
1772
- }
1773
- errors++;
1774
- }
1775
- }
1776
- else {
1777
- const err4 = {
1778
- params: {
1779
- type: 'string',
1780
- },
1781
- };
1782
- if (vErrors === null) {
1783
- vErrors = [err4];
1784
- }
1785
- else {
1786
- vErrors.push(err4);
1787
- }
1788
- errors++;
1789
- }
1790
- }
1791
- var _valid0 = _errs13 === errors;
1792
- valid3 = valid3 || _valid0;
1793
- }
1794
- if (!valid3) {
1795
- const err5 = {
1796
- params: {},
1797
- };
1798
- if (vErrors === null) {
1799
- vErrors = [err5];
1800
- }
1801
- else {
1802
- vErrors.push(err5);
1803
- }
1804
- errors++;
1805
- validate30.errors = vErrors;
1806
- return false;
1807
- }
1808
- else {
1809
- errors = _errs8;
1810
- if (vErrors !== null) {
1811
- if (_errs8) {
1812
- vErrors.length = _errs8;
1813
- }
1814
- else {
1815
- vErrors = null;
1816
- }
1817
- }
1818
- }
1819
- var valid0 = _errs6 === errors;
1820
- }
1821
- else {
1822
- var valid0 = true;
1823
- }
1824
- if (valid0) {
1825
- if (data.name !== undefined) {
1826
- const _errs15 = errors;
1827
- if (!validate33(data.name, {
1828
- instancePath: instancePath + '/name',
1829
- parentData: data,
1830
- parentDataProperty: 'name',
1831
- rootData,
1832
- })) {
1833
- vErrors =
1834
- vErrors === null
1835
- ? validate33.errors
1836
- : vErrors.concat(validate33.errors);
1837
- errors = vErrors.length;
1838
- }
1839
- var valid0 = _errs15 === errors;
1840
- }
1841
- else {
1842
- var valid0 = true;
1843
- }
1844
- if (valid0) {
1845
- if (data.type !== undefined) {
1846
- let data5 = data.type;
1847
- const _errs16 = errors;
1848
- const _errs18 = errors;
1849
- let valid6 = false;
1850
- const _errs19 = errors;
1851
- if (data5 !== 'var' &&
1852
- data5 !== 'module' &&
1853
- data5 !== 'assign' &&
1854
- data5 !== 'assign-properties' &&
1855
- data5 !== 'this' &&
1856
- data5 !== 'window' &&
1857
- data5 !== 'self' &&
1858
- data5 !== 'global' &&
1859
- data5 !== 'commonjs' &&
1860
- data5 !== 'commonjs2' &&
1861
- data5 !== 'commonjs-module' &&
1862
- data5 !== 'commonjs-static' &&
1863
- data5 !== 'amd' &&
1864
- data5 !== 'amd-require' &&
1865
- data5 !== 'umd' &&
1866
- data5 !== 'umd2' &&
1867
- data5 !== 'jsonp' &&
1868
- data5 !== 'system') {
1869
- const err6 = {
1870
- params: {},
1871
- };
1872
- if (vErrors === null) {
1873
- vErrors = [err6];
1874
- }
1875
- else {
1876
- vErrors.push(err6);
1877
- }
1878
- errors++;
1879
- }
1880
- var _valid1 = _errs19 === errors;
1881
- valid6 = valid6 || _valid1;
1882
- if (!valid6) {
1883
- const _errs20 = errors;
1884
- if (typeof data5 !== 'string') {
1885
- const err7 = {
1886
- params: {
1887
- type: 'string',
1888
- },
1889
- };
1890
- if (vErrors === null) {
1891
- vErrors = [err7];
1892
- }
1893
- else {
1894
- vErrors.push(err7);
1895
- }
1896
- errors++;
1897
- }
1898
- var _valid1 = _errs20 === errors;
1899
- valid6 = valid6 || _valid1;
1900
- }
1901
- if (!valid6) {
1902
- const err8 = {
1903
- params: {},
1904
- };
1905
- if (vErrors === null) {
1906
- vErrors = [err8];
1907
- }
1908
- else {
1909
- vErrors.push(err8);
1910
- }
1911
- errors++;
1912
- validate30.errors = vErrors;
1913
- return false;
1914
- }
1915
- else {
1916
- errors = _errs18;
1917
- if (vErrors !== null) {
1918
- if (_errs18) {
1919
- vErrors.length = _errs18;
1920
- }
1921
- else {
1922
- vErrors = null;
1923
- }
1924
- }
1925
- }
1926
- var valid0 = _errs16 === errors;
1927
- }
1928
- else {
1929
- var valid0 = true;
1930
- }
1931
- if (valid0) {
1932
- if (data.umdNamedDefine !== undefined) {
1933
- const _errs22 = errors;
1934
- if (typeof data.umdNamedDefine !== 'boolean') {
1935
- validate30.errors = [
1936
- {
1937
- params: {
1938
- type: 'boolean',
1939
- },
1940
- },
1941
- ];
1942
- return false;
1943
- }
1944
- var valid0 = _errs22 === errors;
1945
- }
1946
- else {
1947
- var valid0 = true;
1948
- }
1949
- }
1950
- }
1951
- }
1952
- }
1953
- }
1954
- }
1955
- }
1956
- }
1957
- else {
1958
- validate30.errors = [
1959
- {
1960
- params: {
1961
- type: 'object',
1962
- },
1963
- },
1964
- ];
1965
- return false;
1966
- }
1967
- }
1968
- validate30.errors = vErrors;
1969
- return errors === 0;
1970
- }
1971
- function validate19(data, { instancePath = '', parentData, parentDataProperty, rootData = data } = {}) {
1972
- /*# sourceURL="" */ let vErrors = null;
1973
- let errors = 0;
1974
- if (errors === 0) {
1975
- if (data && typeof data == 'object' && !Array.isArray(data)) {
1976
- let missing0;
1977
- if ((data.name === undefined && (missing0 = 'name')) ||
1978
- (data.exposes === undefined && (missing0 = 'exposes'))) {
1979
- validate19.errors = [
1980
- {
1981
- params: {
1982
- missingProperty: missing0,
1983
- },
1984
- },
1985
- ];
1986
- return false;
1987
- }
1988
- else {
1989
- const _errs1 = errors;
1990
- for (const key0 in data) {
1991
- if (!(key0 === 'exposes' ||
1992
- key0 === 'filename' ||
1993
- key0 === 'library' ||
1994
- key0 === 'name' ||
1995
- key0 === 'runtime' ||
1996
- key0 === 'runtimePlugins' ||
1997
- key0 === 'shareScope')) {
1998
- validate19.errors = [
1999
- {
2000
- params: {
2001
- additionalProperty: key0,
2002
- },
2003
- },
2004
- ];
2005
- return false;
2006
- break;
2007
- }
2008
- }
2009
- if (_errs1 === errors) {
2010
- if (data.exposes !== undefined) {
2011
- const _errs2 = errors;
2012
- if (!validate20(data.exposes, {
2013
- instancePath: instancePath + '/exposes',
2014
- parentData: data,
2015
- parentDataProperty: 'exposes',
2016
- rootData,
2017
- })) {
2018
- vErrors =
2019
- vErrors === null
2020
- ? validate20.errors
2021
- : vErrors.concat(validate20.errors);
2022
- errors = vErrors.length;
2023
- }
2024
- var valid0 = _errs2 === errors;
2025
- }
2026
- else {
2027
- var valid0 = true;
2028
- }
2029
- if (valid0) {
2030
- if (data.filename !== undefined) {
2031
- let data1 = data.filename;
2032
- const _errs3 = errors;
2033
- if (errors === _errs3) {
2034
- if (typeof data1 === 'string') {
2035
- if (data1.includes('!') ||
2036
- absolutePathRegExp.test(data1) !== false) {
2037
- validate19.errors = [
2038
- {
2039
- params: {},
2040
- },
2041
- ];
2042
- return false;
2043
- }
2044
- else {
2045
- if (data1.length < 1) {
2046
- validate19.errors = [
2047
- {
2048
- params: {},
2049
- },
2050
- ];
2051
- return false;
2052
- }
2053
- }
2054
- }
2055
- else {
2056
- validate19.errors = [
2057
- {
2058
- params: {
2059
- type: 'string',
2060
- },
2061
- },
2062
- ];
2063
- return false;
2064
- }
2065
- }
2066
- var valid0 = _errs3 === errors;
2067
- }
2068
- else {
2069
- var valid0 = true;
2070
- }
2071
- if (valid0) {
2072
- if (data.library !== undefined) {
2073
- const _errs5 = errors;
2074
- if (!validate30(data.library, {
2075
- instancePath: instancePath + '/library',
2076
- parentData: data,
2077
- parentDataProperty: 'library',
2078
- rootData,
2079
- })) {
2080
- vErrors =
2081
- vErrors === null
2082
- ? validate30.errors
2083
- : vErrors.concat(validate30.errors);
2084
- errors = vErrors.length;
2085
- }
2086
- var valid0 = _errs5 === errors;
2087
- }
2088
- else {
2089
- var valid0 = true;
2090
- }
2091
- if (valid0) {
2092
- if (data.name !== undefined) {
2093
- let data3 = data.name;
2094
- const _errs6 = errors;
2095
- if (errors === _errs6) {
2096
- if (typeof data3 === 'string') {
2097
- if (data3.length < 1) {
2098
- validate19.errors = [
2099
- {
2100
- params: {},
2101
- },
2102
- ];
2103
- return false;
2104
- }
2105
- }
2106
- else {
2107
- validate19.errors = [
2108
- {
2109
- params: {
2110
- type: 'string',
2111
- },
2112
- },
2113
- ];
2114
- return false;
2115
- }
2116
- }
2117
- var valid0 = _errs6 === errors;
2118
- }
2119
- else {
2120
- var valid0 = true;
2121
- }
2122
- if (valid0) {
2123
- if (data.runtime !== undefined) {
2124
- let data4 = data.runtime;
2125
- const _errs8 = errors;
2126
- const _errs10 = errors;
2127
- let valid2 = false;
2128
- const _errs11 = errors;
2129
- if (data4 !== false) {
2130
- const err0 = {
2131
- params: {},
2132
- };
2133
- if (vErrors === null) {
2134
- vErrors = [err0];
2135
- }
2136
- else {
2137
- vErrors.push(err0);
2138
- }
2139
- errors++;
2140
- }
2141
- var _valid0 = _errs11 === errors;
2142
- valid2 = valid2 || _valid0;
2143
- if (!valid2) {
2144
- const _errs12 = errors;
2145
- if (errors === _errs12) {
2146
- if (typeof data4 === 'string') {
2147
- if (data4.length < 1) {
2148
- const err1 = {
2149
- params: {},
2150
- };
2151
- if (vErrors === null) {
2152
- vErrors = [err1];
2153
- }
2154
- else {
2155
- vErrors.push(err1);
2156
- }
2157
- errors++;
2158
- }
2159
- }
2160
- else {
2161
- const err2 = {
2162
- params: {
2163
- type: 'string',
2164
- },
2165
- };
2166
- if (vErrors === null) {
2167
- vErrors = [err2];
2168
- }
2169
- else {
2170
- vErrors.push(err2);
2171
- }
2172
- errors++;
2173
- }
2174
- }
2175
- var _valid0 = _errs12 === errors;
2176
- valid2 = valid2 || _valid0;
2177
- }
2178
- if (!valid2) {
2179
- const err3 = {
2180
- params: {},
2181
- };
2182
- if (vErrors === null) {
2183
- vErrors = [err3];
2184
- }
2185
- else {
2186
- vErrors.push(err3);
2187
- }
2188
- errors++;
2189
- validate19.errors = vErrors;
2190
- return false;
2191
- }
2192
- else {
2193
- errors = _errs10;
2194
- if (vErrors !== null) {
2195
- if (_errs10) {
2196
- vErrors.length = _errs10;
2197
- }
2198
- else {
2199
- vErrors = null;
2200
- }
2201
- }
2202
- }
2203
- var valid0 = _errs8 === errors;
2204
- }
2205
- else {
2206
- var valid0 = true;
2207
- }
2208
- if (valid0) {
2209
- if (data.runtimePlugins !== undefined) {
2210
- let data5 = data.runtimePlugins;
2211
- const _errs14 = errors;
2212
- if (errors === _errs14) {
2213
- if (Array.isArray(data5)) {
2214
- var valid3 = true;
2215
- const len0 = data5.length;
2216
- for (let i0 = 0; i0 < len0; i0++) {
2217
- let data6 = data5[i0];
2218
- const _errs16 = errors;
2219
- if (errors === _errs16) {
2220
- if (typeof data6 === 'string') {
2221
- if (data6.length < 1) {
2222
- validate19.errors = [
2223
- {
2224
- params: {},
2225
- },
2226
- ];
2227
- return false;
2228
- }
2229
- }
2230
- else {
2231
- validate19.errors = [
2232
- {
2233
- params: {
2234
- type: 'string',
2235
- },
2236
- },
2237
- ];
2238
- return false;
2239
- }
2240
- }
2241
- var valid3 = _errs16 === errors;
2242
- if (!valid3) {
2243
- break;
2244
- }
2245
- }
2246
- }
2247
- else {
2248
- validate19.errors = [
2249
- {
2250
- params: {
2251
- type: 'array',
2252
- },
2253
- },
2254
- ];
2255
- return false;
2256
- }
2257
- }
2258
- var valid0 = _errs14 === errors;
2259
- }
2260
- else {
2261
- var valid0 = true;
2262
- }
2263
- if (valid0) {
2264
- if (data.shareScope !== undefined) {
2265
- let data7 = data.shareScope;
2266
- const _errs18 = errors;
2267
- if (errors === _errs18) {
2268
- if (typeof data7 === 'string') {
2269
- if (data7.length < 1) {
2270
- validate19.errors = [
2271
- {
2272
- params: {},
2273
- },
2274
- ];
2275
- return false;
2276
- }
2277
- }
2278
- else {
2279
- validate19.errors = [
2280
- {
2281
- params: {
2282
- type: 'string',
2283
- },
2284
- },
2285
- ];
2286
- return false;
2287
- }
2288
- }
2289
- var valid0 = _errs18 === errors;
2290
- }
2291
- else {
2292
- var valid0 = true;
2293
- }
2294
- }
2295
- }
2296
- }
2297
- }
2298
- }
2299
- }
2300
- }
2301
- }
2302
- }
2303
- else {
2304
- validate19.errors = [
2305
- {
2306
- params: {
2307
- type: 'object',
2308
- },
2309
- },
2310
- ];
2311
- return false;
2312
- }
2313
- }
2314
- validate19.errors = vErrors;
2315
- return errors === 0;
2316
- }
2317
- exports.default = validate19;
2318
- //# sourceMappingURL=ContainerPlugin.check.js.map