agoge-pouchdb-plugins
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -156,6 +156,6 @@ var CryptoJS = require('crypto-js'); | ||
exports.save = async function(doc, options, callback) { | ||
exports.save = async function(doc) { | ||
var parts = doc._id.split('-'); | ||
doc.type = parts[0]; | ||
doc.id = Number(parts[1]); | ||
doc.id = Number(parts[1]) || parts[1]; | ||
doc.modified = new Date(); | ||
@@ -162,0 +162,0 @@ |
{ | ||
"name": "agoge-pouchdb-plugins", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"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
5075