Skip to content

Commit 23b2a65

Browse files
committed
chore: update deps
1 parent 84896a3 commit 23b2a65

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"eslint": "^9.13.0",
6060
"json5": "^2.2.3",
6161
"latest-version": "^9.0.0",
62-
"lazy-js-utils": "^0.1.19",
62+
"lazy-js-utils": "^0.1.23",
6363
"lint-staged": "^13.3.0",
6464
"picocolors": "^1.1.1",
6565
"prettier": "^2.8.8",

pnpm-lock.yaml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

+4-4
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

@@ -117,7 +117,7 @@ async function retryAsync<T>(fn: () => Promise<T>, retries: number): Promise<T>
117117
export async function downloadWitchPack(name: string, tempDir: string, retry: number, logger: any) {
118118
await retryAsync(() => {
119119
return new Promise((resolve, reject) => {
120-
const { result, status } = jsShell(`npm pack ${name} --pack-destination ${tempDir}`, 'pipe')
120+
const { result, status } = jsShell(`npm pack ${name} --pack-destination ${tempDir}`, 'ignore')
121121
if (status !== 0) {
122122
logger.error(result)
123123
reject(result)
@@ -135,7 +135,7 @@ export async function downloadWitchPack(name: string, tempDir: string, retry: nu
135135
export async function downloadWithNpmHttp(name: string, tempDir: string, tempFile: string, retry: number, logger: any) {
136136
const tarballUrl = await retryAsync(async () => {
137137
return new Promise((resolve, reject) => {
138-
const { result, status } = jsShell(`npm view ${name} dist.tarball`, 'pipe')
138+
const { result, status } = jsShell(`npm view ${name} dist.tarball`, 'ignore')
139139
if (status !== 0) {
140140
logger.error(result)
141141
reject(result)

0 commit comments

Comments
 (0)