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

nano

Package Overview
Dependencies
Maintainers
7
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 9.0.4 to 9.0.5

lib/multipart.js

14

lib/nano.js

@@ -30,2 +30,3 @@ // Licensed under the Apache License, Version 2.0 (the 'License'); you may not

const ChangesReader = require('./changesreader.js')
const MultiPartFactory = require('./multipart.js')

@@ -286,3 +287,7 @@ function isEmpty (val) {

if (opts.multipart) {
req.multipart = opts.multipart
// generate the multipart/related body, header and boundary to
// upload multiple binary attachments in one request
const mp = new MultiPartFactory(opts.multipart)
opts.contentType = mp.header
req.body = mp.data
}

@@ -896,8 +901,9 @@

}
multipart.push({ body: att.data })
multipart.push(att)
})
multipart.unshift({
'content-type': 'application/json',
body: JSON.stringify(doc)
content_type: 'application/json',
data: JSON.stringify(doc),
name: 'document'
})

@@ -904,0 +910,0 @@

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

"repository": "http://github.com/apache/couchdb-nano",
"version": "9.0.4",
"version": "9.0.5",
"author": "Apache CouchDB <dev@couchdb.apache.org> (http://couchdb.apache.org)",

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

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