@mxpicture/build-api 0.2.19 → 0.2.21

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.
@@ -81,11 +81,13 @@ export class UpdatePackages {
81
81
  // Group by package name to identify duplicates
82
82
  const packageVersions = new Map();
83
83
  for (const dir of versionDirs) {
84
- const match = dir.match(/@mxpicture\+([^@]+)@(.+)/);
84
+ const match = dir.match(/\/(@?[a-z-+]+)@(.+)$/);
85
85
  if (!match)
86
86
  continue;
87
87
  const [, pkgName, version] = match;
88
- const key = `@mxpicture/${pkgName.replace(/\+/g, "/")}`;
88
+ if (!micromatch.isMatch(pkgName, this.patternWoSlash))
89
+ continue;
90
+ const key = pkgName.replace(/\+/g, "/");
89
91
  if (!packageVersions.has(key))
90
92
  packageVersions.set(key, []);
91
93
  packageVersions.get(key).push(version.split("_")[0]); // Remove peer dep suffixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxpicture/build-api",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "Build utilities API",
5
5
  "type": "module",
6
6
  "author": "MXPicture",