From 9d680a9670a9b66ffaedf19a89193c077580d96e Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 2 Jul 2024 18:38:46 +0200 Subject: [PATCH] feat: update deps --- package.json | 4 ++-- pnpm-lock.yaml | 50 ++++++++++++++++++++---------------------- src/utils/packument.ts | 8 +++---- 3 files changed, 30 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index c43b662..9eafd1e 100644 --- a/package.json +++ b/package.json @@ -60,15 +60,15 @@ "eslint": "^9.6.0", "esno": "^4.7.0", "fast-glob": "^3.3.2", - "fast-npm-meta": "^0.1.0", + "fast-npm-meta": "^0.1.1", "npm-package-arg": "^11.0.2", "picocolors": "^1.0.1", "prompts": "^2.4.2", "rimraf": "^5.0.7", "semver": "^7.6.2", - "ufo": "^1.5.3", "taze": "workspace:*", "typescript": "^5.5.3", + "ufo": "^1.5.3", "unbuild": "^2.0.0", "vitest": "^1.6.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d0f1c9d..e6ee0e5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,30 +14,9 @@ importers: '@jsdevtools/ez-spawn': specifier: ^3.0.4 version: 3.0.4 - cli-progress: - specifier: ^3.12.0 - version: 3.12.0 - deepmerge: - specifier: ^4.3.1 - version: 4.3.1 - detect-indent: - specifier: ^7.0.1 - version: 7.0.1 - fast-npm-meta: - specifier: ^0.1.0 - version: 0.1.0 ofetch: specifier: ^1.3.4 version: 1.3.4 - picocolors: - specifier: ^1.0.1 - version: 1.0.1 - prompts: - specifier: ^2.4.2 - version: 2.4.2 - ufo: - specifier: ^1.5.3 - version: 1.5.3 unconfig: specifier: ^0.4.5 version: 0.4.5 @@ -78,12 +57,21 @@ importers: bumpp: specifier: ^9.4.1 version: 9.4.1 + cli-progress: + specifier: ^3.12.0 + version: 3.12.0 cross-env: specifier: ^7.0.3 version: 7.0.3 debug: specifier: ^4.3.5 version: 4.3.5 + deepmerge: + specifier: ^4.3.1 + version: 4.3.1 + detect-indent: + specifier: ^7.0.1 + version: 7.0.1 eslint: specifier: ^9.6.0 version: 9.6.0 @@ -93,9 +81,18 @@ importers: fast-glob: specifier: ^3.3.2 version: 3.3.2 + fast-npm-meta: + specifier: ^0.1.1 + version: 0.1.1 npm-package-arg: specifier: ^11.0.2 version: 11.0.2 + picocolors: + specifier: ^1.0.1 + version: 1.0.1 + prompts: + specifier: ^2.4.2 + version: 2.4.2 rimraf: specifier: ^5.0.7 version: 5.0.7 @@ -108,6 +105,9 @@ importers: typescript: specifier: ^5.5.3 version: 5.5.3 + ufo: + specifier: ^1.5.3 + version: 1.5.3 unbuild: specifier: ^2.0.0 version: 2.0.0(typescript@5.5.3) @@ -1726,8 +1726,8 @@ packages: fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fast-npm-meta@0.1.0: - resolution: {integrity: sha512-hIrz3MwPrfE73UZlp4tmGvZJm+zmkJJZHNUGfojOU3w4rOsqPyVc53hmfyc5ZTl78lQ2cTckRPMbYFMS1eS88A==} + fast-npm-meta@0.1.1: + resolution: {integrity: sha512-uS9DjGncI/9XZ6HJFrci0WzSi++N8Jskbb2uB7+9SQlrgA3VaLhXhV9Gl5HwIGESHkayYYZFGnVNhJwRDKCWIA==} fastq@1.15.0: resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} @@ -4717,9 +4717,7 @@ snapshots: fast-levenshtein@2.0.6: {} - fast-npm-meta@0.1.0: - dependencies: - ofetch: 1.3.4 + fast-npm-meta@0.1.1: {} fastq@1.15.0: dependencies: diff --git a/src/utils/packument.ts b/src/utils/packument.ts index 6e3bbb5..c7d8fbc 100644 --- a/src/utils/packument.ts +++ b/src/utils/packument.ts @@ -1,6 +1,6 @@ import process from 'node:process' import { joinURL } from 'ufo' -import { $fetch } from 'ofetch' +import { $fetch, fetch } from 'ofetch' import { getVersions, pickRegistry } from 'fast-npm-meta' import type { PackageData } from '../types' @@ -37,10 +37,10 @@ export async function fetchPackage(spec: string, npmConfigs: Record