From 54cec6076289afa1619457a57a4a2c384ab285ab Mon Sep 17 00:00:00 2001 From: John Marrero Date: Tue, 23 Jan 2024 11:37:16 -0800 Subject: [PATCH] Remove unusable plugin install endpoint --- lib/EnvoyAPI.js | 18 ------------------ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/lib/EnvoyAPI.js b/lib/EnvoyAPI.js index 3600faf..6a8ab9e 100644 --- a/lib/EnvoyAPI.js +++ b/lib/EnvoyAPI.js @@ -362,24 +362,6 @@ class EnvoyAPI { return EnvoyAPI.getDataFromBody(body); } - /** - * Fetches a plugin install. - * - * @param {number} installId - * @returns {Promise<{}>} - */ - async getPluginInstall(installId) { - return new Promise((resolve, reject) => { - this.request({ - method: 'GET', - url: `/api/v2/plugin-services/installs/${installId}`, - }).then(body => resolve(EnvoyAPI.getDataFromBody(body))) - .catch((error) => { - EnvoyAPI.safeRequestsError(error).catch((err) => reject(err)); - }); - }); - } - /** * Gets the plugin install's config. * diff --git a/package-lock.json b/package-lock.json index 44a8ce8..e7a2251 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@envoy/envoy-integrations-sdk", - "version": "1.4.2", + "version": "1.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@envoy/envoy-integrations-sdk", - "version": "1.4.2", + "version": "1.5.0", "license": "ISC", "dependencies": { "axios": "^1.4.0", diff --git a/package.json b/package.json index 843086b..6cfbd4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@envoy/envoy-integrations-sdk", - "version": "1.4.2", + "version": "1.5.0", "description": "", "main": "index.js", "scripts": {