@envoy/envoy-integrations-sdk 2.0.1-beta.2 → 2.0.1-beta.3

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/lib/EnvoyAPI.js +3 -0
  2. package/package.json +1 -1
package/lib/EnvoyAPI.js CHANGED
@@ -406,11 +406,13 @@ class EnvoyAPI {
406
406
  * @returns {Promise<{}>}
407
407
  */
408
408
  async setPluginInstallConfig(installId, config = {}) {
409
+ console.log(`pulling config for ${installId}`);
409
410
  const body = await this.request({
410
411
  method: 'PUT',
411
412
  url: `/api/v2/plugin-services/installs/${installId}/config`,
412
413
  body: config,
413
414
  }).catch((error) => {
415
+ console.log(`encountered error for ${installId}`);
414
416
  return EnvoyAPI.safeRequestsError(error);
415
417
  });
416
418
 
@@ -545,6 +547,7 @@ class EnvoyAPI {
545
547
  }
546
548
 
547
549
  static safeRequestsError(error) {
550
+ console.log(`constructing error`);
548
551
  const safeError = {
549
552
  code: error.code ?? error.statusCode,
550
553
  message: error.message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envoy/envoy-integrations-sdk",
3
- "version": "2.0.1-beta.2",
3
+ "version": "2.0.1-beta.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {