diff --git a/dist/index.js b/dist/index.js index 8c3e48fd..3fd3dcb6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -17,7 +17,7 @@ class SDK { }; const __config = _.omitBy(_.merge({}, defaultConfig, config), _.isUndefined); if (!__config.secretId || !__config.secretKey) - throw Error(error_1.ERR_MISSING_SECRET); + return console.warn(error_1.ERR_MISSING_SECRET); this.config = __config; const capi = new Capi({ SecretId: __config.secretId, diff --git a/src/index.ts b/src/index.ts index 4bc99409..f9cf1abc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ class SDK { } const __config = _.omitBy(_.merge({}, defaultConfig, config), _.isUndefined) if (!__config.secretId || !__config.secretKey) - throw Error(ERR_MISSING_SECRET) + return console.warn(ERR_MISSING_SECRET) this.config = __config const capi = new Capi({