Skip to content

Commit f54f48b

Browse files
committed
Fix getManifestData warnings when out of sync
1 parent 391614a commit f54f48b

File tree

3 files changed

+49
-49
lines changed

3 files changed

+49
-49
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"@socketregistry/packageurl-js": "1.0.8",
113113
"@socketsecurity/config": "3.0.1",
114114
"@socketsecurity/registry": "1.0.265",
115-
"@socketsecurity/sdk": "1.4.71",
115+
"@socketsecurity/sdk": "1.4.73",
116116
"@types/blessed": "0.1.25",
117117
"@types/cmd-shim": "5.0.2",
118118
"@types/js-yaml": "4.0.9",
@@ -149,7 +149,7 @@
149149
"ignore": "7.0.5",
150150
"js-yaml": "npm:@zkochan/[email protected]",
151151
"knip": "5.62.0",
152-
"lint-staged": "16.1.4",
152+
"lint-staged": "16.1.5",
153153
"magic-string": "0.30.17",
154154
"meow": "13.2.0",
155155
"micromatch": "4.0.8",

src/commands/fix/agent-fix.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'node:path'
33

44
import semver from 'semver'
55

6-
import { getManifestData } from '@socketsecurity/registry'
6+
import { getManifestData, type EcosystemString } from '@socketsecurity/registry'
77
import { arrayUnique } from '@socketsecurity/registry/lib/arrays'
88
import { debugDir, debugFn, isDebug } from '@socketsecurity/registry/lib/debug'
99
import { logger } from '@socketsecurity/registry/lib/logger'
@@ -241,7 +241,7 @@ export async function agentFix(
241241
logger.indent()
242242
spinner?.indent()
243243

244-
if (getManifestData(partialPurlObj.type, name)) {
244+
if (getManifestData(partialPurlObj.type as EcosystemString, name)) {
245245
debugFn('notice', `found: Socket Optimize variant for ${name}`)
246246
}
247247
// eslint-disable-next-line no-await-in-loop

0 commit comments

Comments
 (0)