remove more stuff
diff --git a/packages/node_modules/pouchdb-replication/src/getDocs.js b/packages/node_modules/pouchdb-replication/src/getDocs.js
index 806dbd3..63ec674 100644
--- a/packages/node_modules/pouchdb-replication/src/getDocs.js
+++ b/packages/node_modules/pouchdb-replication/src/getDocs.js
@@ -97,21 +97,25 @@
ok = false;
}
- if (!remoteDoc || !remoteDoc._attachments) {
+ if (process.env.POUCHDB_LITE) {
return remoteDoc;
- }
+ } else {
+ if (!remoteDoc || !remoteDoc._attachments) {
+ return remoteDoc;
+ }
- return getDocAttachmentsFromTargetOrSource(target, src, remoteDoc).then(function (attachments) {
- var filenames = Object.keys(remoteDoc._attachments);
- attachments.forEach(function (attachment, i) {
- var att = remoteDoc._attachments[filenames[i]];
- delete att.stub;
- delete att.length;
- att.data = attachment;
+ return getDocAttachmentsFromTargetOrSource(target, src, remoteDoc).then(function (attachments) {
+ var filenames = Object.keys(remoteDoc._attachments);
+ attachments.forEach(function (attachment, i) {
+ var att = remoteDoc._attachments[filenames[i]];
+ delete att.stub;
+ delete att.length;
+ att.data = attachment;
+ });
+
+ return remoteDoc;
});
-
- return remoteDoc;
- });
+ }
}));
}))