Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
packageIsInstallable(pkgResponse.body.id, pkg, {
engineStrict: ctx.engineStrict,
lockfileDir: ctx.lockfileDir,
nodeVersion: ctx.nodeVersion,
optional: wantedDependency.optional,
pnpmVersion: ctx.pnpmVersion,
})
)
if (currentIsInstallable !== true || !parentIsInstallable) {
ctx.skipped.add(pkgResponse.body.id)
}
const installable = parentIsInstallable && currentIsInstallable !== false
const isNew = !ctx.resolvedPackagesByPackageId[pkgResponse.body.id]
if (isNew) {
progressLogger.debug({
packageId: pkgResponse.body.id,
requester: ctx.lockfileDir,
status: 'resolved',
})
if (pkgResponse.files) {
pkgResponse.files()
.then((fetchResult: PackageFilesResponse) => {
progressLogger.debug({
packageId: pkgResponse.body.id,
requester: ctx.lockfileDir,
status: fetchResult.fromStore
? 'found_in_store' : 'fetched',
})
})
.catch(() => {
// Ignore
.then((fetchResult: PackageFilesResponse) => {
progressLogger.debug({
packageId: pkgResponse.body.id,
requester: ctx.lockfileDir,
status: fetchResult.fromStore
? 'found_in_store' : 'fetched',
})
})
.catch(() => {