@vercel/fs-detectors 5.1.5 → 5.2.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.
@@ -120,7 +120,9 @@ function removeSupersededFramework(matches2, slug) {
120
120
  const framework = matches2[index];
121
121
  if (framework) {
122
122
  if (framework.supersedes) {
123
- removeSupersededFramework(matches2, framework.supersedes);
123
+ for (const slug2 of framework.supersedes) {
124
+ removeSupersededFramework(matches2, slug2);
125
+ }
124
126
  }
125
127
  matches2.splice(index, 1);
126
128
  }
@@ -128,7 +130,9 @@ function removeSupersededFramework(matches2, slug) {
128
130
  function removeSupersededFrameworks(matches2) {
129
131
  for (const match of matches2.slice()) {
130
132
  if (match?.supersedes) {
131
- removeSupersededFramework(matches2, match.supersedes);
133
+ for (const slug of match.supersedes) {
134
+ removeSupersededFramework(matches2, slug);
135
+ }
132
136
  }
133
137
  }
134
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "5.1.5",
3
+ "version": "5.2.0",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
17
  "@vercel/error-utils": "2.0.2",
18
- "@vercel/frameworks": "2.0.5",
18
+ "@vercel/frameworks": "3.0.0",
19
19
  "@vercel/routing-utils": "3.1.0",
20
20
  "glob": "8.0.3",
21
21
  "js-yaml": "4.1.0",
@@ -30,7 +30,7 @@
30
30
  "@types/minimatch": "3.0.5",
31
31
  "@types/node": "14.18.33",
32
32
  "@types/semver": "7.3.10",
33
- "@vercel/build-utils": "7.3.0",
33
+ "@vercel/build-utils": "7.7.0",
34
34
  "jest-junit": "16.0.0",
35
35
  "typescript": "4.9.5"
36
36
  },