@vercel/node 2.8.17 → 2.9.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/index.js +7 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -300794,6 +300794,7 @@ exports.BaseFunctionConfigSchema = {
|
|
300794
300794
|
type: 'object',
|
300795
300795
|
properties: {
|
300796
300796
|
runtime: { type: 'string' },
|
300797
|
+
cron: { type: 'string' },
|
300797
300798
|
memory: { type: 'number' },
|
300798
300799
|
maxDuration: { type: 'number' },
|
300799
300800
|
regions: {
|
@@ -301236,8 +301237,12 @@ const build = async ({ files, entrypoint, workPath, repoRootPath, config = {}, m
|
|
301236
301237
|
if (!ALLOWED_RUNTIMES.includes(staticConfig.runtime)) {
|
301237
301238
|
throw new Error(`Unsupported "runtime" property in \`config\`: ${JSON.stringify(staticConfig.runtime)} (must be one of: ${JSON.stringify(ALLOWED_RUNTIMES)})`);
|
301238
301239
|
}
|
301240
|
+
if (staticConfig.runtime === 'nodejs') {
|
301241
|
+
console.log(`Detected unused static config runtime "nodejs" in "${entrypointPath}"`);
|
301242
|
+
}
|
301239
301243
|
isEdgeFunction = utils_1.isEdgeRuntime(staticConfig.runtime);
|
301240
301244
|
}
|
301245
|
+
const cron = staticConfig?.cron;
|
301241
301246
|
build_utils_1.debug('Tracing input files...');
|
301242
301247
|
const traceTime = Date.now();
|
301243
301248
|
const { preparedFiles, shouldAddSourcemapSupport } = await compile(workPath, baseDir, entrypointPath, config, nodeVersion, isEdgeFunction);
|
@@ -301271,6 +301276,7 @@ const build = async ({ files, entrypoint, workPath, repoRootPath, config = {}, m
|
|
301271
301276
|
// TODO: remove - these two properties should not be required
|
301272
301277
|
name: outputPath,
|
301273
301278
|
deploymentTarget: 'v8-worker',
|
301279
|
+
cron,
|
301274
301280
|
});
|
301275
301281
|
}
|
301276
301282
|
else {
|
@@ -301285,6 +301291,7 @@ const build = async ({ files, entrypoint, workPath, repoRootPath, config = {}, m
|
|
301285
301291
|
shouldAddSourcemapSupport,
|
301286
301292
|
awsLambdaHandler,
|
301287
301293
|
experimentalResponseStreaming,
|
301294
|
+
cron,
|
301288
301295
|
});
|
301289
301296
|
}
|
301290
301297
|
return { routes, output };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/node",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.9.1",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
@@ -31,9 +31,9 @@
|
|
31
31
|
"dependencies": {
|
32
32
|
"@edge-runtime/vm": "2.0.0",
|
33
33
|
"@types/node": "14.18.33",
|
34
|
-
"@vercel/build-utils": "6.0
|
34
|
+
"@vercel/build-utils": "6.2.0",
|
35
35
|
"@vercel/node-bridge": "3.1.10",
|
36
|
-
"@vercel/static-config": "2.0.
|
36
|
+
"@vercel/static-config": "2.0.12",
|
37
37
|
"edge-runtime": "2.0.0",
|
38
38
|
"esbuild": "0.14.47",
|
39
39
|
"exit-hook": "2.2.1",
|
@@ -64,5 +64,5 @@
|
|
64
64
|
"test-listen": "1.1.0",
|
65
65
|
"ts-morph": "12.0.0"
|
66
66
|
},
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "a585969dd3b77a4ed36d6a2ca11b34f9050489f1"
|
68
68
|
}
|