Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backandsdk

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backandsdk - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

0

anotherVersion/auth.js

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ ////////////////////////////////////////////////////////////////////////////////////////////////////

48

backand.js

@@ -174,20 +174,42 @@ /*

};
BackandSdk.prototype.delete = function (uri, json) {
var backand = this;
var deferred = q.defer();
request(
{
method: 'DELETE',
url: backand.serverUrl + uri,
json: json,
headers: backand.getHeader()
},
function (error, response, data) {
data = backand.handleResponse(deferred, error, response, data)
if (!data) {
return false;
}
}
);
return deferred.promise;
};
BackandSdk.prototype.formatErrorMessage = function(response, error) {
var str = "";
if(response){
if(response.statusCode){
str += 'Status code: "' + response.statusCode + " ";
}
if(response.statusCode){
str += 'Status code: "' + response.statusCode + " ";
}
if(typeof response.body === 'object'){
str += JSON.stringify(response.body);
}else {
str += response.body;
}
str += " ";
if(typeof response.body === 'object'){
str += JSON.stringify(response.body);
}else {
str += response.body;
if(response.request && response.request.href) {
str += ' requestUrl: ' + response.request.href;
}
}
str += " ";
if(response.request && response.request.href) {
str += ' requestUrl: ' + response.request.href;
}
if(error) {

@@ -194,0 +216,0 @@ str += error;

@@ -0,0 +0,0 @@ /**

{
"name": "backandsdk",
"version": "0.1.6",
"version": "0.1.7",
"description": "Backand sdk for node.js",

@@ -5,0 +5,0 @@ "author": "Ygal Bellaiche",

@@ -0,0 +0,0 @@ # Node.Js sdk for [Backand](www.backand.com)

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

Sorry, the diff of this file is not supported yet

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