Skip to content

Commit 99e4921

Browse files
jdaltonclaude
andcommitted
Update @socketsecurity/lib to v5.10.0 and adapt to new API
- Updated downloadSocketBtmRelease to new signature (tool as first parameter) - Extract tool from config object and pass separately πŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 35cdc73 commit 99e4921

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

β€Žpackages/cli/scripts/download-assets.mjsβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ async function downloadAsset(config) {
119119
// Download the asset.
120120
let assetPath
121121
try {
122-
assetPath = await downloadSocketBtmRelease(download)
122+
// Extract tool name from download config.
123+
const { tool, ...downloadOptions } = download
124+
assetPath = await downloadSocketBtmRelease(tool, downloadOptions)
123125
logger.info(`Downloaded to ${assetPath}`)
124126
} catch (e) {
125127
// Some assets are optional (models).

β€Žpnpm-lock.yamlβ€Ž

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

β€Žpnpm-workspace.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ catalog:
3535
'@socketregistry/packageurl-js': 1.3.5
3636
'@socketregistry/yocto-spinner': 1.0.25
3737
'@socketsecurity/config': 3.0.1
38-
'@socketsecurity/lib': 5.9.1
38+
'@socketsecurity/lib': 5.10.0
3939
'@socketsecurity/registry': 2.0.2
4040
'@socketsecurity/sdk': 3.4.1
4141
'@types/adm-zip': 0.5.7

0 commit comments

Comments
Β (0)