Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: envoy/envoy-integrations-sdk-nodejs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.4.0
Choose a base ref
...
head repository: envoy/envoy-integrations-sdk-nodejs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.4.1
Choose a head ref
  • 4 commits
  • 3 files changed
  • 2 contributors

Commits on Jan 23, 2024

  1. SQ-4167: add plugin install fetcher

    johnmarrero committed Jan 23, 2024
    Copy the full SHA
    bb27b74 View commit details
  2. Merge pull request #49 from envoy/SQ-4167-add-plugin-install-endpoint

    SQ-4167: add plugin install fetcher
    johnmarrero authored Jan 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f15245c View commit details
  3. SQ-4167: bump version

    johnmarrero committed Jan 23, 2024
    Copy the full SHA
    9620c68 View commit details
  4. Merge pull request #50 from envoy/SQ-4167-bump-version

    SQ-4167: bump version
    johnmarrero authored Jan 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    dea5dd5 View commit details
Showing with 21 additions and 3 deletions.
  1. +18 −0 lib/EnvoyAPI.js
  2. +2 −2 package-lock.json
  3. +1 −1 package.json
18 changes: 18 additions & 0 deletions lib/EnvoyAPI.js
Original file line number Diff line number Diff line change
@@ -362,6 +362,24 @@ 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.
*
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envoy/envoy-integrations-sdk",
"version": "1.4.0",
"version": "1.4.1",
"description": "",
"main": "index.js",
"scripts": {