@nxtedition/lib 23.9.7 → 23.9.8

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/cache.js +3 -0
  2. package/package.json +1 -1
package/cache.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { LRUCache } from 'lru-cache'
2
2
 
3
+ function noop() {}
4
+
3
5
  export class AsyncCache {
4
6
  #lru
5
7
  #valueSelector
@@ -87,6 +89,7 @@ export class AsyncCache {
87
89
  throw err
88
90
  },
89
91
  )
92
+ promise.catch(noop) // Prevent unhandled rejections
90
93
  this.#dedupe.set(key, promise)
91
94
  }
92
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "23.9.7",
3
+ "version": "23.9.8",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",