@vercel/static-build 2.9.14 → 2.9.16
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 -23
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -22354,12 +22354,12 @@ var require_utils4 = __commonJS({
|
|
|
22354
22354
|
var utils_exports = {};
|
|
22355
22355
|
__export2(utils_exports, {
|
|
22356
22356
|
INTERNAL_QUEUES_PREFIX: () => INTERNAL_QUEUES_PREFIX,
|
|
22357
|
-
INTERNAL_SERVICE_PREFIX: () =>
|
|
22357
|
+
INTERNAL_SERVICE_PREFIX: () => import_build_utils5.INTERNAL_SERVICE_PREFIX,
|
|
22358
22358
|
filterFrameworksByRuntime: () => filterFrameworksByRuntime,
|
|
22359
22359
|
getBuilderForRuntime: () => getBuilderForRuntime,
|
|
22360
|
-
getInternalServiceCronPath: () =>
|
|
22361
|
-
getInternalServiceCronPathPrefix: () =>
|
|
22362
|
-
getInternalServiceFunctionPath: () =>
|
|
22360
|
+
getInternalServiceCronPath: () => import_build_utils5.getInternalServiceCronPath,
|
|
22361
|
+
getInternalServiceCronPathPrefix: () => import_build_utils5.getInternalServiceCronPathPrefix,
|
|
22362
|
+
getInternalServiceFunctionPath: () => import_build_utils5.getInternalServiceFunctionPath,
|
|
22363
22363
|
getInternalServiceWorkerPath: () => getInternalServiceWorkerPath2,
|
|
22364
22364
|
getInternalServiceWorkerPathPrefix: () => getInternalServiceWorkerPathPrefix2,
|
|
22365
22365
|
hasFile: () => hasFile,
|
|
@@ -22372,6 +22372,7 @@ var require_utils4 = __commonJS({
|
|
|
22372
22372
|
});
|
|
22373
22373
|
module2.exports = __toCommonJS2(utils_exports);
|
|
22374
22374
|
var import_framework_helpers = require("@vercel/build-utils/dist/framework-helpers");
|
|
22375
|
+
var import_build_utils5 = require("@vercel/build-utils");
|
|
22375
22376
|
var import_types = require_types3();
|
|
22376
22377
|
async function hasFile(fs5, filePath) {
|
|
22377
22378
|
try {
|
|
@@ -22380,29 +22381,18 @@ var require_utils4 = __commonJS({
|
|
|
22380
22381
|
return false;
|
|
22381
22382
|
}
|
|
22382
22383
|
}
|
|
22383
|
-
var INTERNAL_SERVICE_PREFIX2 = "/_svc";
|
|
22384
22384
|
var INTERNAL_QUEUES_PREFIX = "/_svc/_queues";
|
|
22385
|
-
function getInternalServiceFunctionPath2(serviceName) {
|
|
22386
|
-
return `${INTERNAL_SERVICE_PREFIX2}/${serviceName}/index`;
|
|
22387
|
-
}
|
|
22388
22385
|
function normalizeInternalServiceEntrypoint(entrypoint) {
|
|
22389
22386
|
const normalized = entrypoint.replace(/\\/g, "/").replace(/^\/+/, "").replace(/\.[^/.]+$/, "");
|
|
22390
22387
|
return normalized || "index";
|
|
22391
22388
|
}
|
|
22392
22389
|
function getInternalServiceWorkerPathPrefix2(serviceName) {
|
|
22393
|
-
return `${
|
|
22394
|
-
}
|
|
22395
|
-
function getInternalServiceCronPathPrefix2(serviceName) {
|
|
22396
|
-
return `${INTERNAL_SERVICE_PREFIX2}/${serviceName}/crons`;
|
|
22390
|
+
return `${import_build_utils5.INTERNAL_SERVICE_PREFIX}/${serviceName}/workers`;
|
|
22397
22391
|
}
|
|
22398
22392
|
function getInternalServiceWorkerPath2(serviceName, entrypoint, handler = "worker") {
|
|
22399
22393
|
const normalizedEntrypoint = normalizeInternalServiceEntrypoint(entrypoint);
|
|
22400
22394
|
return `${getInternalServiceWorkerPathPrefix2(serviceName)}/${normalizedEntrypoint}/${handler}`;
|
|
22401
22395
|
}
|
|
22402
|
-
function getInternalServiceCronPath2(serviceName, entrypoint, handler = "cron") {
|
|
22403
|
-
const normalizedEntrypoint = normalizeInternalServiceEntrypoint(entrypoint);
|
|
22404
|
-
return `${getInternalServiceCronPathPrefix2(serviceName)}/${normalizedEntrypoint}/${handler}`;
|
|
22405
|
-
}
|
|
22406
22396
|
function getBuilderForRuntime(runtime) {
|
|
22407
22397
|
const builder = import_types.RUNTIME_BUILDERS[runtime];
|
|
22408
22398
|
if (!builder) {
|
|
@@ -24257,15 +24247,10 @@ var require_detect_services = __commonJS({
|
|
|
24257
24247
|
}
|
|
24258
24248
|
const cronServices = services.filter((s) => s.type === "cron");
|
|
24259
24249
|
for (const service of cronServices) {
|
|
24260
|
-
const
|
|
24261
|
-
const cronPath = (0, import_utils.getInternalServiceCronPath)(
|
|
24262
|
-
service.name,
|
|
24263
|
-
cronEntrypoint,
|
|
24264
|
-
service.handlerFunction || "cron"
|
|
24265
|
-
);
|
|
24250
|
+
const cronPrefix = (0, import_utils.getInternalServiceCronPathPrefix)(service.name);
|
|
24266
24251
|
const functionPath = (0, import_utils.getInternalServiceFunctionPath)(service.name);
|
|
24267
24252
|
crons.push({
|
|
24268
|
-
src: `^${escapeRegex(
|
|
24253
|
+
src: `^${escapeRegex(cronPrefix)}/.*$`,
|
|
24269
24254
|
dest: functionPath,
|
|
24270
24255
|
check: true
|
|
24271
24256
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.16",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"ts-morph": "12.0.0",
|
|
17
17
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
|
|
18
|
-
"@vercel/
|
|
19
|
-
"@vercel/
|
|
18
|
+
"@vercel/gatsby-plugin-vercel-builder": "2.1.16",
|
|
19
|
+
"@vercel/static-config": "3.2.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/aws-lambda": "8.10.64",
|
|
@@ -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.
|
|
41
|
+
"@vercel/build-utils": "13.17.1",
|
|
42
|
+
"@vercel/error-utils": "2.0.3",
|
|
43
|
+
"@vercel/fs-detectors": "5.18.1",
|
|
42
44
|
"@vercel/frameworks": "3.24.1",
|
|
43
|
-
"@vercel/
|
|
44
|
-
"@vercel/routing-utils": "6.1.1",
|
|
45
|
-
"@vercel/error-utils": "2.0.3"
|
|
45
|
+
"@vercel/routing-utils": "6.1.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "node ../../utils/build-builder.mjs",
|