@b9g/cache 0.2.0 → 0.2.1

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 +6 -1
  2. package/src/memory.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b9g/cache",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Universal Cache API for ServiceWorker applications. Provides standard CacheStorage and Cache interfaces across all JavaScript runtimes.",
5
5
  "keywords": [
6
6
  "cache",
@@ -11,6 +11,11 @@
11
11
  "universal",
12
12
  "shovel"
13
13
  ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/bikeshaving/shovel.git",
17
+ "directory": "packages/cache"
18
+ },
14
19
  "dependencies": {},
15
20
  "devDependencies": {
16
21
  "@b9g/libuild": "^0.1.18"
package/src/memory.js CHANGED
@@ -169,7 +169,8 @@ var MemoryCache = class extends Cache {
169
169
  const toRemove = this.#storage.size - this.#options.maxEntries;
170
170
  let removed = 0;
171
171
  for (const key of this.#storage.keys()) {
172
- if (removed >= toRemove) break;
172
+ if (removed >= toRemove)
173
+ break;
173
174
  this.#storage.delete(key);
174
175
  removed++;
175
176
  }