Socket
Socket
Sign inDemoInstall

btrz-api-client

Package Overview
Dependencies
4
Maintainers
1
Versions
243
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.39.0 to 1.40.0

16

lib/endpoints/accounts/application-settings.js

@@ -61,2 +61,15 @@ "use strict";

function create(_ref6) {
var jwtToken = _ref6.jwtToken,
token = _ref6.token,
application = _ref6.application;
return client({
url: "/application-settings",
method: "post",
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider }),
data: { application: application }
});
}
return {

@@ -66,3 +79,4 @@ get: get,

remove: remove,
regenerateKeys: regenerateKeys
regenerateKeys: regenerateKeys,
create: create
};

@@ -69,0 +83,0 @@ }

2

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

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

@@ -36,2 +36,11 @@ const {authorizationHeaders} = require("./../endpoints_helpers");

function create({jwtToken, token, application}) {
return client({
url: "/application-settings",
method: "post",
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider}),
data: {application}
});
}
return {

@@ -41,3 +50,4 @@ get,

remove,
regenerateKeys
regenerateKeys,
create
};

@@ -44,0 +54,0 @@ }

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

});
it("should create an application", () => {
const application = {
name: "A"
};
axiosMock.onPost("/application-settings")
.reply(expectRequest({statusCode: 200, token, jwtToken}));
return api.accounts.applicationSettings.create({token, jwtToken, application});
});
});
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc