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 6.4.2 to 6.4.3

tests/fixtures/document/create_index.json

10

lib/nano.js

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

function createIndex(indexDef, callback) {
return relax({
db: dbName,
path: '_index',
method: 'POST',
body: indexDef
}, callback);
}
// db level exports

@@ -810,2 +819,3 @@ docScope = {

find: find,
createIndex: createIndex,
viewWithList: viewWithList,

@@ -812,0 +822,0 @@ server: serverScope,

6

package.json

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

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

@@ -21,4 +21,4 @@ "keywords": [

"dependencies": {
"request": "^2.76.0",
"cloudant-follow": "^0.13.0",
"request": "~2.83.0",
"cloudant-follow": "~0.16.1",
"errs": "^0.3.2",

@@ -25,0 +25,0 @@ "underscore": "^1.8.3",

@@ -36,5 +36,5 @@ [![Build Status](https://travis-ci.org/apache/couchdb-nano.svg?branch=master)](https://travis-ci.org/apache/couchdb-nano)![Coverage](https://img.shields.io/badge/coverage-100%-ff69b4.svg)[![dependencies Status](https://david-dm.org/apache/couchdb-nano/status.svg)](https://david-dm.org/apache/couchdb-nano)[![NPM](http://img.shields.io/npm/v/nano.svg?style=flat-square)](https://www.npmjs.com/package/nano)

- [nano.db.replicate(source, target, [opts], [callback])](#nanodbreplicatesource-target-opts-callback)
- [nano.db.replication.enable(source, target, [opts], [callback])](#nanodbreplicatorenablesource-target-opts-callback)
- [nano.db.replication.query(id, [opts], [callback])](#nanodbreplicatorquery-id-opts-callback)
- [nano.db.replication.disable(id, [opts], [callback])](#nanodbreplicatordisable-id-opts-callback)
- [nano.db.replication.enable(source, target, [opts], [callback])](#nanodbreplicationenablesource-target-opts-callback)
- [nano.db.replication.query(id, [opts], [callback])](#nanodbreplicationenablesource-target-opts-callback)
- [nano.db.replication.disable(id, [opts], [callback])](#nanodbreplicationdisableid-opts-callback)
- [nano.db.changes(name, [params], [callback])](#nanodbchangesname-params-callback)

@@ -57,3 +57,4 @@ - [nano.db.follow(name, [params], [callback])](#nanodbfollowname-params-callback)

- [db.fetch(docnames, [params], [callback])](#dbfetchdocnames-params-callback)
- [db.fetchRevs(docnames, [params], [callback])](#dbfetchRevsdocnames-params-callback)
- [db.fetchRevs(docnames, [params], [callback])](#dbfetchrevsdocnames-params-callback)
- [db.createIndex(indexDef, [callback])](#dbcreateindexindexdef-callback)
- [Multipart functions](#multipart-functions)

@@ -382,3 +383,3 @@ - [db.multipart.insert(doc, attachments, [params], [callback])](#dbmultipartinsertdoc-attachments-params-callback)

if (!err) {
console.log('got database info'', body);
console.log('got database info', body);
}

@@ -621,2 +622,17 @@ });

### db.createIndex(indexDef, [callback])
Create index on database fields, as specified in
[CouchDB doc](http://docs.couchdb.org/en/latest/api/database/find.html#db-index).
```js
var indexDef = {
index: { fields: ['foo'] },
name: 'fooindex'
};
alice.createIndex(indexDef, function(err, result) {
console.log(result);
});
```
## Multipart functions

@@ -623,0 +639,0 @@

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