lucid-package 0.0.46 → 0.0.47
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/package.json +1 -1
- package/src/packagemanifest.js +4 -1
package/package.json
CHANGED
package/src/packagemanifest.js
CHANGED
|
@@ -23,7 +23,7 @@ function validateManifestOrThrow(manifest) {
|
|
|
23
23
|
}
|
|
24
24
|
function validateUniqueNames(kindOfThings, things) {
|
|
25
25
|
if (new Set(things.map((one) => one['name'])).size !== things.length) {
|
|
26
|
-
throw new Error(kindOfThings + ' must have unique
|
|
26
|
+
throw new Error(kindOfThings + ' must have unique names');
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
if (manifest['settings']) {
|
|
@@ -160,6 +160,9 @@ function validateManifestOrThrow(manifest) {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
+
if ((0, lucid_extension_sdk_1.isTypedArray)(lucid_extension_sdk_1.isObject)(manifest['mergeProviders']) && (0, lucid_extension_sdk_1.isTypedArray)(lucid_extension_sdk_1.isObject)(manifest['oauthProviders'])) {
|
|
164
|
+
validateUniqueNames('mergeProviders & oauthProviders', manifest['mergeProviders'].concat(manifest['oauthProviders']));
|
|
165
|
+
}
|
|
163
166
|
if (manifest['dataConnectors']) {
|
|
164
167
|
if (!(0, lucid_extension_sdk_1.isTypedArray)(lucid_extension_sdk_1.isObject)(manifest['dataConnectors'])) {
|
|
165
168
|
throw new Error('manifest.json: "dataConnectors" must be an array of objects');
|