corsair 0.1.30 → 0.1.31

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 (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35801,7 +35801,11 @@ async function checkAuthStatus(pluginId, authType, integrationKeyMgr, accountKey
35801
35801
  if (OPTIONAL_FIELDS.has(field)) continue;
35802
35802
  const getter = integrationKeyMgr[`get_${field}`];
35803
35803
  if (!getter) continue;
35804
- const value = await getter();
35804
+ let value = null;
35805
+ try {
35806
+ value = await getter();
35807
+ } catch {
35808
+ }
35805
35809
  if (!value) missingIntegration.push(field);
35806
35810
  }
35807
35811
  for (const key of Object.keys(accountKeyMgr)) {
@@ -35810,7 +35814,11 @@ async function checkAuthStatus(pluginId, authType, integrationKeyMgr, accountKey
35810
35814
  if (OPTIONAL_FIELDS.has(field)) continue;
35811
35815
  const getter = accountKeyMgr[`get_${field}`];
35812
35816
  if (!getter) continue;
35813
- const value = await getter();
35817
+ let value = null;
35818
+ try {
35819
+ value = await getter();
35820
+ } catch {
35821
+ }
35814
35822
  if (!value) missingAccount.push(field);
35815
35823
  }
35816
35824
  const isReady = missingIntegration.length === 0 && missingAccount.length === 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corsair",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",