http-keeper
Advanced tools
Comparing version 1.1.0 to 1.2.0
14
index.js
@@ -40,5 +40,3 @@ | ||
if (options.push) { | ||
return Q.allSettled(self._fallbacks.map(function (c) { | ||
return c.put(options.key, options.value) | ||
})) | ||
return self.push(options) | ||
} | ||
@@ -58,2 +56,12 @@ }) | ||
Keeper.prototype.push = function (options) { | ||
var self = this | ||
return this._normalizeOptions(options) | ||
.then(function (options) { | ||
return Q.allSettled(self._fallbacks.map(function (c) { | ||
return c.put(options.key, options.value) | ||
})) | ||
}) | ||
} | ||
Keeper.prototype._fetch = function (key) { | ||
@@ -60,0 +68,0 @@ var self = this |
@@ -28,3 +28,3 @@ { | ||
}, | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"dependencies": { | ||
@@ -31,0 +31,0 @@ "bitkeeper-client-js": "tradle/bitkeeper-client-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
7152
231