Socket
Socket
Sign inDemoInstall

nano

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nano - npm Package Compare versions

Comparing version 0.6.2 to 0.6.4

6

nano.js

@@ -83,3 +83,5 @@ /* minimal couch in node

var url = cfg.url + "/" + opts.db
, headers = { "content-type": "application/json" }
, headers = { "content-type": "application/json"
, "accept": "application/json"
}
, req = { method: (opts.method || "GET"), headers: headers }

@@ -108,2 +110,4 @@ , params = opts.params

rh['status-code'] = status_code = h.statusCode;
delete rh.server; // prevent security vunerabilities related to couchdb
delete rh["content-length"]; // prevent problems with trims and stalled responses
try { parsed = JSON.parse(b); } catch (err) { parsed = b; } // did we get json or binary?

@@ -110,0 +114,0 @@ if (status_code >= 200 && status_code < 300) {

2

package.json
{ "name": "nano"
, "description": "minimalistic couchdb driver for node.js"
, "homepage": "http://github.com/dscape/nano"
, "version": "0.6.2"
, "version": "0.6.4"
, "author": "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)"

@@ -6,0 +6,0 @@ , "keywords": ["couchdb", "data", "request", "json", "nosql", "micro", "nano"]

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