@keyvhq/memoize 2.1.15 → 2.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +3 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@keyvhq/memoize",
3
3
  "description": "Memoize any function using Keyv as storage backend.",
4
4
  "homepage": "https://keyvhq.js.org",
5
- "version": "2.1.15",
5
+ "version": "2.1.16",
6
6
  "types": "./src/index.d.ts",
7
7
  "main": "src/index.js",
8
8
  "author": {
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "e516b441109f4a5ff5c6b96f0d1ecceddffdf3a4"
52
+ "gitHead": "c24a2c751c11c30794f3f743dc4bc6bd4433c41f"
53
53
  }
package/src/index.js CHANGED
@@ -97,6 +97,9 @@ function memoize (
97
97
  pending[key] = undefined
98
98
  throw error
99
99
  }
100
+ }).catch(error => {
101
+ pending[key] = undefined
102
+ throw error
100
103
  })
101
104
 
102
105
  return pending[key]