Skip to content

Commit

Permalink
PouchDB-Validation now lets _local docs pass through. Thanks calvinme…
Browse files Browse the repository at this point in the history
…tcalf!
  • Loading branch information
marten-de-vries committed Aug 12, 2014
1 parent 2dbd1df commit 16e75ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function doValidation(db, newDoc, options, callback) {
//CouchDB does the checking for itself. Validate succesful.
return Promise.resolve();
}
if (String(newDoc._id).indexOf("_design/") === 0) {
if (String(newDoc._id).indexOf("_design/") === 0 || String(newDoc._id).indexOf("_local") === 0) {
//a design document -> always validates succesful.
return Promise.resolve();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pouchdb-validation",
"version": "1.1.5",
"version": "1.1.6",
"main": "index.js",
"description": "A PouchDB plug-in that allows you to re-use your CouchDB validate_doc_update functions on the client side.",
"repository": {
Expand Down

0 comments on commit 16e75ea

Please sign in to comment.