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.36.0 to 1.37.0

15

lib/endpoints/accounts/application-settings.js

@@ -37,5 +37,18 @@ "use strict";

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

@@ -42,0 +55,0 @@ }

2

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

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

@@ -20,5 +20,14 @@ const {authorizationHeaders} = require("./../endpoints_helpers");

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

@@ -25,0 +34,0 @@ }

@@ -21,3 +21,3 @@ const {axiosMock, expectRequest} = require("./../../test-helpers");

it("should update existing promo", () => {
it("should update an existing application setting", () => {
const application = {

@@ -32,2 +32,10 @@ name: "A"

});
it("should remove an application setting", () => {
const id = "someId";
axiosMock.onDelete(`/application-settings/${id}`)
.reply(expectRequest({statusCode: 200, token, jwtToken}));
return api.accounts.applicationSettings.remove({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