couchbase-driver
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -326,3 +326,4 @@ 'use strict'; | ||
} | ||
return _this2.remove(key, { cas: doc2.cas }, rfn); | ||
var ropts = doc2 ? { cas: doc2.cas } : {}; | ||
return _this2.remove(key, ropts, rfn); | ||
}); | ||
@@ -329,0 +330,0 @@ } |
@@ -17,2 +17,3 @@ # couchbase-driver | ||
* `remove` also handles *key not found* errors more gracefully. | ||
* `getAndLock` also handles *key not found* errors more gracefully. | ||
* adds `atomic` function that tries to do perform `getAndLock` + `transform` + specified database operation utilizing `CAS` | ||
@@ -19,0 +20,0 @@ in one step until success or maximum retries have occurred. |
{ | ||
"name": "couchbase-driver", | ||
"description": "An improved version of the official Couchbase driver", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"homepage": "https://github.com/bojand/couchbase-driver", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -17,2 +17,3 @@ # couchbase-driver | ||
* `remove` also handles *key not found* errors more gracefully. | ||
* `getAndLock` also handles *key not found* errors more gracefully. | ||
* adds `atomic` function that tries to do perform `getAndLock` + `transform` + specified database operation utilizing `CAS` | ||
@@ -19,0 +20,0 @@ in one step until success or maximum retries have occurred. |
36045
407
309