@vercel/fs-detectors 5.1.6 → 5.2.1
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.
package/dist/detect-builders.js
CHANGED
|
@@ -426,10 +426,10 @@ function validateFunctions({ functions = {} }) {
|
|
|
426
426
|
message: "Functions must have a duration between 1 and 900."
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
|
-
if (func.memory !== void 0 && (func.memory < 128 || func.memory >
|
|
429
|
+
if (func.memory !== void 0 && (func.memory < 128 || func.memory > 3009)) {
|
|
430
430
|
return {
|
|
431
431
|
code: "invalid_function_memory",
|
|
432
|
-
message: "Functions must have a memory value between 128 and
|
|
432
|
+
message: "Functions must have a memory value between 128 and 3009"
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
435
|
if (path.startsWith("/")) {
|
package/dist/detect-framework.js
CHANGED
|
@@ -120,7 +120,9 @@ function removeSupersededFramework(matches2, slug) {
|
|
|
120
120
|
const framework = matches2[index];
|
|
121
121
|
if (framework) {
|
|
122
122
|
if (framework.supersedes) {
|
|
123
|
-
|
|
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
|
-
|
|
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
|
|
3
|
+
"version": "5.2.1",
|
|
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": "
|
|
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.
|
|
33
|
+
"@vercel/build-utils": "7.7.1",
|
|
34
34
|
"jest-junit": "16.0.0",
|
|
35
35
|
"typescript": "4.9.5"
|
|
36
36
|
},
|