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

cartodb

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cartodb - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

12

lib/sql.js

@@ -87,9 +87,13 @@ 'use strict';

qs: params
}, processResponse);
}, function(err, res, body) {
processResponse(err, res, body, params.format);
});
} else {
request.post({url: this.sql_api_url, form: params
}, processResponse);
}, function(err, res, body) {
processResponse(err, res, body, params.format);
});
}
function processResponse(err, res, body) {
function processResponse(err, res, body, format) {
if(!err && res.statusCode === 200) {

@@ -99,3 +103,3 @@ debug('Successful response from the server');

var promiseWillEmit = (options.format === 'json') ? JSON.parse(body) : body;
var promiseWillEmit = (format === 'json') ? JSON.parse(body) : body;
promise.emit('done', promiseWillEmit);

@@ -102,0 +106,0 @@ if(cb) cb(body);

@@ -5,3 +5,3 @@ {

"private": false,
"version": "0.5.0",
"version": "0.5.1",
"main": "index",

@@ -8,0 +8,0 @@ "url": "https://github.com/CartoDB/cartodb-nodejs",

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