vercel 28.15.6 → 28.16.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.
- package/dist/index.js +35 -4
- package/package.json +14 -14
package/dist/index.js
CHANGED
@@ -191401,6 +191401,7 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
191401
191401
|
builds: builderRoutes,
|
191402
191402
|
});
|
191403
191403
|
const mergedImages = mergeImages(localConfig.images, buildResults.values());
|
191404
|
+
const mergedCrons = mergeCrons(localConfig.crons, buildResults.values());
|
191404
191405
|
const mergedWildcard = mergeWildcard(buildResults.values());
|
191405
191406
|
const mergedOverrides = overrides.length > 0 ? Object.assign({}, ...overrides) : undefined;
|
191406
191407
|
const framework = await getFramework(cwd, buildResults);
|
@@ -191413,6 +191414,7 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
191413
191414
|
wildcard: mergedWildcard,
|
191414
191415
|
overrides: mergedOverrides,
|
191415
191416
|
framework,
|
191417
|
+
crons: mergedCrons,
|
191416
191418
|
};
|
191417
191419
|
await fs_extra_1.default.writeJSON((0, path_1.join)(outputDir, 'config.json'), config, { spaces: 2 });
|
191418
191420
|
const relOutputDir = (0, path_1.relative)(cwd, outputDir);
|
@@ -191491,6 +191493,14 @@ function mergeImages(images, buildResults) {
|
|
191491
191493
|
}
|
191492
191494
|
return images;
|
191493
191495
|
}
|
191496
|
+
function mergeCrons(crons, buildResults) {
|
191497
|
+
for (const result of buildResults) {
|
191498
|
+
if ('crons' in result && result.crons) {
|
191499
|
+
crons = Object.assign({}, crons, result.crons);
|
191500
|
+
}
|
191501
|
+
}
|
191502
|
+
return crons;
|
191503
|
+
}
|
191494
191504
|
function mergeWildcard(buildResults) {
|
191495
191505
|
let wildcard = undefined;
|
191496
191506
|
for (const result of buildResults) {
|
@@ -199998,13 +200008,11 @@ async function writeLambda(outputDir, lambda, path, functionConfiguration, lambd
|
|
199998
200008
|
else {
|
199999
200009
|
throw new Error('Malformed `Lambda` - no "files" present');
|
200000
200010
|
}
|
200001
|
-
const cron = functionConfiguration?.cron ?? lambda.cron;
|
200002
200011
|
const memory = functionConfiguration?.memory ?? lambda.memory;
|
200003
200012
|
const maxDuration = functionConfiguration?.maxDuration ?? lambda.maxDuration;
|
200004
200013
|
const config = {
|
200005
200014
|
...lambda,
|
200006
200015
|
handler: (0, build_utils_1.normalizePath)(lambda.handler),
|
200007
|
-
cron,
|
200008
200016
|
memory,
|
200009
200017
|
maxDuration,
|
200010
200018
|
type: undefined,
|
@@ -213473,6 +213481,28 @@ const imagesSchema = {
|
|
213473
213481
|
},
|
213474
213482
|
},
|
213475
213483
|
};
|
213484
|
+
const cronsSchema = {
|
213485
|
+
type: 'array',
|
213486
|
+
minItems: 0,
|
213487
|
+
items: {
|
213488
|
+
type: 'object',
|
213489
|
+
additionalProperties: false,
|
213490
|
+
required: ['path', 'schedule'],
|
213491
|
+
properties: {
|
213492
|
+
path: {
|
213493
|
+
type: 'string',
|
213494
|
+
minLength: 1,
|
213495
|
+
maxLength: 512,
|
213496
|
+
pattern: '^/.*',
|
213497
|
+
},
|
213498
|
+
schedule: {
|
213499
|
+
type: 'string',
|
213500
|
+
minLength: 9,
|
213501
|
+
maxLength: 256,
|
213502
|
+
},
|
213503
|
+
},
|
213504
|
+
},
|
213505
|
+
};
|
213476
213506
|
const vercelConfigSchema = {
|
213477
213507
|
type: 'object',
|
213478
213508
|
// These are not all possibilities because `vc dev`
|
@@ -213488,6 +213518,7 @@ const vercelConfigSchema = {
|
|
213488
213518
|
trailingSlash: routing_utils_1.trailingSlashSchema,
|
213489
213519
|
functions: build_utils_1.functionsSchema,
|
213490
213520
|
images: imagesSchema,
|
213521
|
+
crons: cronsSchema,
|
213491
213522
|
},
|
213492
213523
|
};
|
213493
213524
|
const ajv = new ajv_1.default();
|
@@ -213986,7 +214017,7 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
|
|
213986
214017
|
/***/ ((module) => {
|
213987
214018
|
|
213988
214019
|
"use strict";
|
213989
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.
|
214020
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.16.0\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest --env node --verbose --bail\",\"test-unit\":\"pnpm test test/unit/\",\"test-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-dev\":\"pnpm test test/dev/\",\"coverage\":\"codecov\",\"build\":\"ts-node ./scripts/build.ts\",\"dev\":\"ts-node ./src/index.ts\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"6.3.0\",\"@vercel/go\":\"2.3.7\",\"@vercel/hydrogen\":\"0.0.53\",\"@vercel/next\":\"3.4.7\",\"@vercel/node\":\"2.9.6\",\"@vercel/python\":\"3.1.49\",\"@vercel/redwood\":\"1.1.5\",\"@vercel/remix\":\"1.3.3\",\"@vercel/ruby\":\"1.3.65\",\"@vercel/static-build\":\"1.3.9\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@swc/core\":\"1.2.218\",\"@tootallnate/once\":\"1.1.2\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/ini\":\"1.3.31\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.4.1\",\"@types/jest-expect-message\":\"1.0.3\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/psl\":\"1.1.0\",\"@types/qs\":\"6.9.7\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@types/yauzl-promise\":\"2.1.0\",\"@vercel/client\":\"12.4.0\",\"@vercel/error-utils\":\"1.0.8\",\"@vercel/frameworks\":\"1.3.1\",\"@vercel/fs-detectors\":\"3.7.14\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/routing-utils\":\"2.1.9\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"4.3.2\",\"ansi-regex\":\"5.0.1\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"find-up\":\"4.1.0\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"git-last-commit\":\"1.0.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"ini\":\"3.0.0\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.1.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jest-matcher-utils\":\"29.3.1\",\"json5\":\"2.2.1\",\"jsonlines\":\"0.1.1\",\"line-async-iterator\":\"3.0.0\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"6.0.1\",\"stripe\":\"5.1.0\",\"supports-hyperlinks\":\"2.2.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-node\":\"10.9.1\",\"typescript\":\"4.9.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\",\"yauzl-promise\":\"2.1.3\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]}}");
|
213990
214021
|
|
213991
214022
|
/***/ }),
|
213992
214023
|
|
@@ -213994,7 +214025,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.15.6\",\"pref
|
|
213994
214025
|
/***/ ((module) => {
|
213995
214026
|
|
213996
214027
|
"use strict";
|
213997
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.
|
214028
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.4.0\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-e2e\":\"pnpm test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test\":\"jest --env node --verbose --runInBand --bail\",\"test-unit\":\"pnpm test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.5\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"6.3.0\",\"@vercel/routing-utils\":\"2.1.9\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\",\"tar-fs\":\"1.16.3\"}}");
|
213998
214029
|
|
213999
214030
|
/***/ }),
|
214000
214031
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.
|
3
|
+
"version": "28.16.0",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -41,16 +41,16 @@
|
|
41
41
|
"node": ">= 14"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
-
"@vercel/build-utils": "6.
|
45
|
-
"@vercel/go": "2.3.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.4.
|
48
|
-
"@vercel/node": "2.9.
|
49
|
-
"@vercel/python": "3.1.
|
50
|
-
"@vercel/redwood": "1.1.
|
51
|
-
"@vercel/remix": "1.3.
|
52
|
-
"@vercel/ruby": "1.3.
|
53
|
-
"@vercel/static-build": "1.3.
|
44
|
+
"@vercel/build-utils": "6.3.0",
|
45
|
+
"@vercel/go": "2.3.7",
|
46
|
+
"@vercel/hydrogen": "0.0.53",
|
47
|
+
"@vercel/next": "3.4.7",
|
48
|
+
"@vercel/node": "2.9.6",
|
49
|
+
"@vercel/python": "3.1.49",
|
50
|
+
"@vercel/redwood": "1.1.5",
|
51
|
+
"@vercel/remix": "1.3.3",
|
52
|
+
"@vercel/ruby": "1.3.65",
|
53
|
+
"@vercel/static-build": "1.3.9"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"@alex_neo/jest-expect-message": "1.0.5",
|
@@ -93,10 +93,10 @@
|
|
93
93
|
"@types/which": "1.3.2",
|
94
94
|
"@types/write-json-file": "2.2.1",
|
95
95
|
"@types/yauzl-promise": "2.1.0",
|
96
|
-
"@vercel/client": "12.
|
96
|
+
"@vercel/client": "12.4.0",
|
97
97
|
"@vercel/error-utils": "1.0.8",
|
98
98
|
"@vercel/frameworks": "1.3.1",
|
99
|
-
"@vercel/fs-detectors": "3.7.
|
99
|
+
"@vercel/fs-detectors": "3.7.14",
|
100
100
|
"@vercel/fun": "1.0.4",
|
101
101
|
"@vercel/ncc": "0.24.0",
|
102
102
|
"@vercel/routing-utils": "2.1.9",
|
@@ -195,5 +195,5 @@
|
|
195
195
|
"<rootDir>/test/**/*.test.ts"
|
196
196
|
]
|
197
197
|
},
|
198
|
-
"gitHead": "
|
198
|
+
"gitHead": "3d98d1cdea151b7125deb082c2c8469c865027d0"
|
199
199
|
}
|