@astrojs/upgrade 0.4.0-beta.0 → 0.4.0

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 +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -493,7 +493,7 @@ function filterPackages(ctx) {
493
493
  const devDependencies = [];
494
494
  for (const packageInfo of ctx.packages) {
495
495
  const { currentVersion, targetVersion, isDevDependency } = packageInfo;
496
- if (currentVersion.replace(/^\D+/, "") === targetVersion) {
496
+ if (currentVersion.replace(/^\D+/, "") === targetVersion.replace(/^\D+/, "")) {
497
497
  current.push(packageInfo);
498
498
  } else {
499
499
  const arr = isDevDependency ? devDependencies : dependencies;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/upgrade",
3
- "version": "0.4.0-beta.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",