agoge-pouchdb-plugins
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -160,3 +160,3 @@ var CryptoJS = require('crypto-js'); | ||
doc.id = Number(parts[1]); | ||
doc.modified = new Date(); | ||
doc.modified = new Date(); | ||
@@ -174,3 +174,10 @@ var currentVersionJson = JSON.stringify(doc, null, 4); | ||
doc._attachments = doc._attachments || {}; | ||
try { | ||
var old = await db.get(doc._id); | ||
} catch (err) { | ||
var old = { _attachments: {} }; | ||
} | ||
doc._attachments = old._attachments; | ||
@@ -177,0 +184,0 @@ var an = 'revisions/' + docRevNo + '.json'; |
{ | ||
"name": "agoge-pouchdb-plugins", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "My personal plugin functions to pouchdb-couchdb", | ||
@@ -5,0 +5,0 @@ "main": "agoge-pouchdb-plugins.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5083
160