New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svb-client

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svb-client - npm Package Compare versions

Comparing version 2.4.4 to 2.4.5

14

client.js

@@ -95,7 +95,7 @@ //

patch: function(path, postdata, callback) {
this.post(path, postdata, callback, 'PATCH');
patch: function(path, postdata, callback, addQuery) {
this.post(path, postdata, callback, 'PATCH', addQuery);
},
post: function(path, postdata, callback, overrideMethod) {
post: function(path, postdata, callback, overrideMethod, addQuery) {
if (typeof postdata === 'string') {

@@ -107,2 +107,5 @@ postdata = JSON.parse(postdata);

}
if (!addQuery) {
addQuery = '';
}
if (!postdata.data && Object.keys(postdata).length > 0) {

@@ -113,3 +116,6 @@ // send data inside of a data wrapper

let stringedpost = JSON.stringify(postdata);
let headers = this._getHeaders(overrideMethod, path, "", stringedpost);
let headers = this._getHeaders(overrideMethod, path, addQuery, stringedpost);
if (addQuery.length) {
path += '?' + addQuery;
}

@@ -116,0 +122,0 @@ request({

{
"name": "svb-client",
"version": "2.4.4",
"version": "2.4.5",
"description": "NodeJS request client for SVB API",

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

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