couchbase-promises
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -5,2 +5,7 @@ # Change Log | ||
### 3.0.1 | ||
* __Bug Fix__ | ||
+ The native `couchbase` Mock library uses `options` provided to mutation methods in a very strange way. It adds a `haskey` property to the provided `options` argument, which is then used for get operations. This causes a problem if you reuse the options object. This change clones the `options` object so that your unit tests work as expected. | ||
### 3.0.0 | ||
@@ -7,0 +12,0 @@ |
@@ -41,3 +41,3 @@ 'use strict'; | ||
const getOptions = function(entry, options) { | ||
if (!entry.hasOwnProperty('options')) return options; | ||
if (!entry.hasOwnProperty('options')) return Object.assign({}, options); | ||
if (typeof entry.options === 'undefined') return undefined; | ||
@@ -44,0 +44,0 @@ if (isPojo(entry.options)) return entry.options; |
@@ -5,3 +5,3 @@ { | ||
"description": "An A+ Promises wrapper for the Couchbase SDK with added support for batch mutation operations.", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
@@ -8,0 +8,0 @@ "dependencies": { |
100658