lucid-package 0.0.45 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-package",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -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 named');
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');