@envoy/envoy-integrations-sdk 1.4.1 → 1.4.2

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 +7 -8
  2. package/package.json +1 -1
package/lib/EnvoyAPI.js CHANGED
@@ -387,15 +387,14 @@ class EnvoyAPI {
387
387
  * @returns {Promise<{}>}
388
388
  */
389
389
  async getPluginInstallConfig(installId) {
390
- return new Promise((resolve, reject) => {
391
- this.request({
392
- method: 'GET',
393
- url: `/api/v2/plugin-services/installs/${installId}/config`,
394
- }).then(body => resolve(EnvoyAPI.getDataFromBody(body)))
395
- .catch((error) => {
396
- EnvoyAPI.safeRequestsError(error).catch((err) => reject(err));
397
- });
390
+ const body = await this.request({
391
+ method: 'GET',
392
+ url: `/api/v2/plugin-services/installs/${installId}/config`,
393
+ }).catch((error) => {
394
+ return EnvoyAPI.safeRequestsError(error);
398
395
  });
396
+
397
+ return EnvoyAPI.getDataFromBody(body);
399
398
  }
400
399
 
401
400
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envoy/envoy-integrations-sdk",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {