Update PouchDB to include MangoQueries
This commit is contained in:
parent
65166a9f53
commit
e5f8335bf4
@ -15,14 +15,15 @@
|
|||||||
"domvm": "~3.2.0",
|
"domvm": "~3.2.0",
|
||||||
"exif-parser": "~0.1.9",
|
"exif-parser": "~0.1.9",
|
||||||
"pica": "~2.0.8",
|
"pica": "~2.0.8",
|
||||||
"pouchdb-adapter-http": "~6.1.2",
|
"pouchdb-adapter-http": "~6.3.4",
|
||||||
"pouchdb-adapter-idb": "~6.1.2",
|
"pouchdb-adapter-idb": "~6.3.4",
|
||||||
"pouchdb-adapter-websql": "~6.1.2",
|
"pouchdb-adapter-websql": "~6.3.4",
|
||||||
"pouchdb-binary-utils": "~6.1.2",
|
"pouchdb-binary-utils": "~6.3.4",
|
||||||
"pouchdb-core": "~6.1.2",
|
"pouchdb-core": "~6.3.4",
|
||||||
"pouchdb-replication": "~6.1.2",
|
"pouchdb-replication": "~6.3.4",
|
||||||
"router": "2.0.0",
|
"router": "2.0.0",
|
||||||
"webpack": "^2.3.3"
|
"webpack": "~3.8.1",
|
||||||
|
"webpack-dev-server": "~2.9.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"webpack-dev-server": "~2.4.2"
|
"webpack-dev-server": "~2.4.2"
|
||||||
|
|||||||
@ -1,8 +1,14 @@
|
|||||||
const PouchDB = require('pouchdb-core')
|
import core from 'pouchdb-core';
|
||||||
.plugin(require('pouchdb-adapter-websql'))
|
import idb from 'pouchdb-adapter-idb';
|
||||||
.plugin(require('pouchdb-adapter-idb'))
|
import http from 'pouchdb-adapter-http';
|
||||||
.plugin(require('pouchdb-adapter-http'))
|
import replication from 'pouchdb-replication';
|
||||||
.plugin(require('pouchdb-replication'));
|
import find from 'pouchdb-find';
|
||||||
|
|
||||||
|
const PouchDB = core
|
||||||
|
.plugin(idb)
|
||||||
|
.plugin(http)
|
||||||
|
.plugin(replication)
|
||||||
|
.plugin(find);
|
||||||
|
|
||||||
export function generateAttachmentUrl(dbName, docId, attachmentKey) {
|
export function generateAttachmentUrl(dbName, docId, attachmentKey) {
|
||||||
return `/_doc_attachments/${dbName}/${docId}/${attachmentKey}`;
|
return `/_doc_attachments/${dbName}/${docId}/${attachmentKey}`;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user