Socket
Socket
Sign inDemoInstall

nano

Package Overview
Dependencies
Maintainers
3
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 5.12.0 to 5.12.2

LICENSE

2

nano.js

@@ -1015,3 +1015,3 @@ /* minimal couch in node

follows: true,
length: Buffer.byteLength(att.data),
length: Buffer.isBuffer(att.data) ? att.data.length : Buffer.byteLength(att.data),
content_type: att.content_type

@@ -1018,0 +1018,0 @@ };

@@ -7,3 +7,3 @@ {

"repository": "git://github.com/dscape/nano",
"version": "5.12.0",
"version": "5.12.2",
"author": "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)",

@@ -10,0 +10,0 @@ "contributors": [

@@ -39,2 +39,8 @@ [

}
, { "method" : "put"
, "path" : "/multipart_insert/otherdoc"
, "body" : "*"
, "status" : 201
, "response" : "{\"ok\": true, \"id\": \"foobar\", \"rev\": \"1-921bd51\" }"
}
, { "method" : "delete"

@@ -41,0 +47,0 @@ , "path" : "/multipart_insert"

@@ -63,2 +63,15 @@ var specify = require('specify')

specify("multipart_insert:test_with_attachment_via_buffer", timeout, function (assert) {
var att = {
name: 'att',
data: new Buffer('foo'),
content_type: 'text/plain'
};
db.multipart.insert({"foo": "bar"}, [att], "otherdoc", function (error, foo) {
assert.equal(error, undefined, "Should have stored foo and attachment");
assert.equal(foo.ok, true, "Response should be ok");
assert.ok(foo.rev, "Response should have rev");
});
});
specify("multipart_insert:teardown", timeout, function (assert) {

@@ -65,0 +78,0 @@ nano.db.destroy("multipart_insert", function (err) {

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