@astrojs/upgrade 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +3 -4
package/dist/index.js CHANGED
@@ -234,7 +234,7 @@ async function shell(command, flags, opts = {}) {
234
234
  const done2 = new Promise((resolve) => child.on("close", resolve));
235
235
  [stdout2, stderr] = await Promise.all([text(child.stdout), text(child.stderr)]);
236
236
  await done2;
237
- } catch (e) {
237
+ } catch {
238
238
  throw { stdout: stdout2, stderr, exitCode: 1 };
239
239
  }
240
240
  const { exitCode } = child;
@@ -257,7 +257,7 @@ async function getRegistry() {
257
257
  const { stdout: stdout2 } = await shell(packageManager, ["config", "get", "registry"]);
258
258
  _registry = stdout2?.trim()?.replace(/\/$/, "") || fallback;
259
259
  if (!new URL(_registry).host) _registry = fallback;
260
- } catch (e) {
260
+ } catch {
261
261
  _registry = fallback;
262
262
  }
263
263
  return _registry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/upgrade",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -24,13 +24,12 @@
24
24
  "//b": "DEPENDENCIES IS FOR UNBUNDLED PACKAGES",
25
25
  "dependencies": {
26
26
  "@astrojs/cli-kit": "^0.4.1",
27
- "semver": "^7.6.2",
28
- "preferred-pm": "^3.1.3",
27
+ "semver": "^7.6.3",
28
+ "preferred-pm": "^4.0.0",
29
29
  "terminal-link": "^3.0.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/semver": "^7.5.8",
33
- "@types/preferred-pm": "^3.0.0",
34
33
  "arg": "^5.0.2",
35
34
  "strip-ansi": "^7.1.0",
36
35
  "astro-scripts": "0.0.14"