cacache 17.1.4 → 18.0.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.
package/README.md CHANGED
@@ -53,7 +53,6 @@ just as easily be used on its own.
53
53
  const cacache = require('cacache')
54
54
  const fs = require('fs')
55
55
 
56
- const tarball = '/path/to/mytar.tgz'
57
56
  const cachePath = '/tmp/my-toy-cache'
58
57
  const key = 'my-unique-key-1234'
59
58
 
@@ -67,6 +67,7 @@ class CacacheWriteStream extends Flush {
67
67
  this.cache,
68
68
  this.opts
69
69
  )
70
+ this.handleContentP.catch(error => this.emit('error', error))
70
71
  }
71
72
  return this.inputStream.write(chunk, encoding, cb)
72
73
  }
@@ -1,8 +1,8 @@
1
1
  'use strict'
2
2
 
3
- const LRU = require('lru-cache')
3
+ const { LRUCache } = require('lru-cache')
4
4
 
5
- const MEMOIZED = new LRU({
5
+ const MEMOIZED = new LRUCache({
6
6
  max: 500,
7
7
  maxSize: 50 * 1024 * 1024, // 50MB
8
8
  ttl: 3 * 60 * 1000, // 3 minutes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cacache",
3
- "version": "17.1.4",
3
+ "version": "18.0.1",
4
4
  "cache-version": {
5
5
  "content": "2",
6
6
  "index": "5"
@@ -48,9 +48,9 @@
48
48
  "@npmcli/fs": "^3.1.0",
49
49
  "fs-minipass": "^3.0.0",
50
50
  "glob": "^10.2.2",
51
- "lru-cache": "^7.7.1",
51
+ "lru-cache": "^10.0.1",
52
52
  "minipass": "^7.0.3",
53
- "minipass-collect": "^1.0.2",
53
+ "minipass-collect": "^2.0.1",
54
54
  "minipass-flush": "^1.0.5",
55
55
  "minipass-pipeline": "^1.2.4",
56
56
  "p-map": "^4.0.0",
@@ -60,16 +60,16 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@npmcli/eslint-config": "^4.0.0",
63
- "@npmcli/template-oss": "4.18.0",
63
+ "@npmcli/template-oss": "4.19.0",
64
64
  "tap": "^16.0.0"
65
65
  },
66
66
  "engines": {
67
- "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
67
+ "node": "^16.14.0 || >=18.0.0"
68
68
  },
69
69
  "templateOSS": {
70
70
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
71
71
  "windowsCI": false,
72
- "version": "4.18.0",
72
+ "version": "4.19.0",
73
73
  "publish": "true"
74
74
  },
75
75
  "author": "GitHub Inc.",