Skip to content

Commit 20b3629

Browse files
committed
chore: update @socketsecurity/registry to 1.5.0
1 parent c79b0c9 commit 20b3629

8 files changed

Lines changed: 84 additions & 939 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"@types/js-yaml": "4.0.9",
137137
"@types/micromatch": "4.0.9",
138138
"@types/mock-fs": "4.13.4",
139-
"@types/node": "24.6.2",
139+
"@types/node": "^20.0.0",
140140
"@types/npm-package-arg": "6.1.4",
141141
"@types/npmcli__arborist": "6.3.1",
142142
"@types/npmcli__config": "6.0.3",

pnpm-lock.yaml

Lines changed: 32 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/cache-strategies.mts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -167,18 +167,16 @@ export async function warmCaches(
167167
): Promise<void> {
168168
debugCache('set', 'warming', { count: paths.length })
169169

170-
const warmPromises = paths
171-
.filter(shouldWarmCache)
172-
.map(async path => {
173-
try {
174-
await sdk.getApi(path, { responseType: 'json' })
175-
debugCache('set', `warmed:${path}`)
176-
} catch (error) {
177-
debugCache('miss', `warm-failed:${path}`, {
178-
error: error instanceof Error ? error.message : 'Unknown',
179-
})
180-
}
181-
})
170+
const warmPromises = paths.filter(shouldWarmCache).map(async path => {
171+
try {
172+
await sdk.getApi(path, { responseType: 'json' })
173+
debugCache('set', `warmed:${path}`)
174+
} catch (error) {
175+
debugCache('miss', `warm-failed:${path}`, {
176+
error: error instanceof Error ? error.message : 'Unknown',
177+
})
178+
}
179+
})
182180

183181
await Promise.all(warmPromises)
184182
}

0 commit comments

Comments
 (0)