@vercel/static-build 2.8.33 → 2.8.34
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/index.js +8 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -12202,7 +12202,6 @@ var require_frameworks = __commonJS({
|
|
|
12202
12202
|
tagline: "Multiple services deployed as serverless functions within your project.",
|
|
12203
12203
|
description: "Multiple services deployed as serverless functions within your project.",
|
|
12204
12204
|
website: "https://vercel.com",
|
|
12205
|
-
detectors: {},
|
|
12206
12205
|
settings: {
|
|
12207
12206
|
installCommand: {
|
|
12208
12207
|
placeholder: "None"
|
|
@@ -19916,7 +19915,15 @@ var require_resolve = __commonJS({
|
|
|
19916
19915
|
var import_utils = require_utils4();
|
|
19917
19916
|
var import_frameworks2 = __toESM2(require_frameworks());
|
|
19918
19917
|
var frameworksBySlug = new Map(import_frameworks2.default.map((f) => [f.slug, f]));
|
|
19918
|
+
var SERVICE_NAME_REGEX = /^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$/;
|
|
19919
19919
|
function validateServiceConfig(name, config) {
|
|
19920
|
+
if (!SERVICE_NAME_REGEX.test(name)) {
|
|
19921
|
+
return {
|
|
19922
|
+
code: "INVALID_SERVICE_NAME",
|
|
19923
|
+
message: `Service name "${name}" is invalid. Names must start with a letter, end with an alphanumeric character, and contain only alphanumeric characters, hyphens, and underscores.`,
|
|
19924
|
+
serviceName: name
|
|
19925
|
+
};
|
|
19926
|
+
}
|
|
19920
19927
|
if (!config || typeof config !== "object") {
|
|
19921
19928
|
return {
|
|
19922
19929
|
code: "INVALID_SERVICE_CONFIG",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.34",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"ts-morph": "12.0.0",
|
|
17
17
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
|
|
18
|
-
"@vercel/gatsby-plugin-vercel-builder": "2.0.
|
|
18
|
+
"@vercel/gatsby-plugin-vercel-builder": "2.0.132",
|
|
19
19
|
"@vercel/static-config": "3.1.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"rc9": "1.2.0",
|
|
39
39
|
"semver": "7.5.2",
|
|
40
40
|
"tree-kill": "1.2.2",
|
|
41
|
-
"@vercel/build-utils": "13.3.
|
|
41
|
+
"@vercel/build-utils": "13.3.3",
|
|
42
42
|
"@vercel/error-utils": "2.0.3",
|
|
43
|
-
"@vercel/fs-detectors": "5.8.
|
|
43
|
+
"@vercel/fs-detectors": "5.8.3",
|
|
44
44
|
"@vercel/routing-utils": "5.3.2",
|
|
45
|
-
"@vercel/frameworks": "3.17.
|
|
45
|
+
"@vercel/frameworks": "3.17.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "node ../../utils/build-builder.mjs",
|