Skip to content

Commit 3ded96d

Browse files
committed
chore: update
1 parent 733efb1 commit 3ded96d

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/index.ts

+2-12
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export async function fetchAndExtractPackage(options: { name: string, dist?: str
5151

5252
// Get the package tarball URL
5353
const tgzPath = await Promise.any([
54-
// downloadWithHttp(name, tempDir, tempFile, retry, logger),
55-
// downloadWithNpmHttp(name, tempDir, tempFile, retry, logger),
54+
downloadWithHttp(name, tempDir, tempFile, retry, logger),
55+
downloadWithNpmHttp(name, tempDir, tempFile, retry, logger),
5656
downloadWitchPack(name, tempDir, retry, logger),
5757
])
5858

@@ -143,16 +143,6 @@ export async function downloadWithNpmHttp(name: string, tempDir: string, tempFil
143143
else {
144144
resolve(result)
145145
}
146-
147-
// exec(`npm view ${name} dist.tarball`, (error, stdout) => {
148-
// if (error) {
149-
// logger.error(error)
150-
// reject(error)
151-
// }
152-
// else {
153-
// resolve(stdout.trim())
154-
// }
155-
// })
156146
})
157147
}, retry)
158148

0 commit comments

Comments
 (0)