Socket
Socket
Sign inDemoInstall

btrz-api-client

Package Overview
Dependencies
Maintainers
1
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btrz-api-client - npm Package Compare versions

Comparing version 1.37.0 to 1.38.0

15

lib/endpoints/accounts/application-settings.js

@@ -49,6 +49,19 @@ "use strict";

function regenerateKeys(_ref5) {
var jwtToken = _ref5.jwtToken,
token = _ref5.token,
id = _ref5.id;
return client({
url: "/application-settings/" + id,
method: "post",
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider })
});
}
return {
get: get,
update: update,
remove: remove
remove: remove,
regenerateKeys: regenerateKeys
};

@@ -55,0 +68,0 @@ }

2

package.json
{
"name": "btrz-api-client",
"version": "1.37.0",
"version": "1.38.0",
"description": "Api client for Betterez endpoints",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,6 +28,15 @@ const {authorizationHeaders} = require("./../endpoints_helpers");

function regenerateKeys({jwtToken, token, id}) {
return client({
url: `/application-settings/${id}`,
method: "post",
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider})
});
}
return {
get,
update,
remove
remove,
regenerateKeys
};

@@ -34,0 +43,0 @@ }

@@ -39,2 +39,10 @@ const {axiosMock, expectRequest} = require("./../../test-helpers");

});
it("should regenerate the application keys", () => {
const id = "someId";
axiosMock.onPost(`/application-settings/${id}`)
.reply(expectRequest({statusCode: 200, token, jwtToken}));
return api.accounts.applicationSettings.regenerateKeys({token, jwtToken, id});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc