memcache-client-memoizer
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -22,5 +22,8 @@ const isFunction = require('lodash.isfunction') | ||
return fn(...args) | ||
.then((result) => client.set(key, result, setOptions).then(() => Promise.resolve(result))) | ||
.then((result) => { | ||
client.set(key, result, setOptions) | ||
return Promise.resolve(result) | ||
}) | ||
}) | ||
} | ||
} |
{ | ||
"name": "memcache-client-memoizer", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Memoizes promise-returning functions via memcache-client", | ||
@@ -24,10 +24,10 @@ "main": "index.js", | ||
"dependencies": { | ||
"lodash.isfunction": "^3.0.9" | ||
"lodash.isfunction": "3.0.9" | ||
}, | ||
"devDependencies": { | ||
"jest": "^22.3.0", | ||
"memcache-client": "^0.10.0", | ||
"snazzy": "^7.0.0", | ||
"standard": "^10.0.3", | ||
"uuid": "^3.2.1" | ||
"jest": "22.3.0", | ||
"memcache-client": "0.10.0", | ||
"snazzy": "7.0.0", | ||
"standard": "10.0.3", | ||
"uuid": "3.2.1" | ||
}, | ||
@@ -34,0 +34,0 @@ "standard": { |
@@ -32,3 +32,3 @@ ## memcache-client-memoizer | ||
### Note: | ||
Rejected promises and callbacks called with an `err` argument are not memoized, since that's a pretty bad idea :) | ||
Rejected promises are not memoized - since that's probably not what you want :) | ||
@@ -35,0 +35,0 @@ ### Example: |
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
23
120594
Updatedlodash.isfunction@3.0.9