We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ac2eaa commit bdaac96Copy full SHA for bdaac96
workspaces/arborist/lib/arborist/index.js
@@ -53,7 +53,7 @@ class PackumentCache extends LRUCache {
53
super({
54
maxSize,
55
maxEntrySize: maxSize * maxEntryFactor,
56
- sizeCalculation (p) {
+ sizeCalculation: (p) => {
57
// I saw some requests without a content length once but can't reproduce anymore
58
// lru cache will error if sizeCalculation isnt a positive number
59
if (p[sizeKey]) {
@@ -67,7 +67,7 @@ class PackumentCache extends LRUCache {
67
// Some very wrong random guess at global average packument size
68
return 1_000_000
69
},
70
- dispose (v, k) {
+ dispose: (v, k) => {
71
this.#disposed.add(k)
72
this.#log('dispose', k)
73
0 commit comments