Update PouchDB to include MangoQueries

This commit is contained in:
Timothy Farrell 2017-10-19 16:51:14 -05:00
parent 62ffed8095
commit 89efb0c65f
2 changed files with 19 additions and 12 deletions

View File

@ -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"

View File

@ -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}`;