vercel 27.3.6 → 27.3.7
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 +19 -14
- package/package.json +15 -15
package/dist/index.js
CHANGED
@@ -202081,7 +202081,7 @@ const download_1 = __nested_webpack_require_890074__(1611);
|
|
202081
202081
|
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_890074__(2560));
|
202082
202082
|
class Lambda {
|
202083
202083
|
constructor(opts) {
|
202084
|
-
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, } = opts;
|
202084
|
+
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, } = opts;
|
202085
202085
|
if ('files' in opts) {
|
202086
202086
|
assert_1.default(typeof opts.files === 'object', '"files" must be an object');
|
202087
202087
|
}
|
@@ -202104,6 +202104,9 @@ class Lambda {
|
|
202104
202104
|
if (supportsMultiPayloads !== undefined) {
|
202105
202105
|
assert_1.default(typeof supportsMultiPayloads === 'boolean', '"supportsMultiPayloads" is not a boolean');
|
202106
202106
|
}
|
202107
|
+
if (supportsWrapper !== undefined) {
|
202108
|
+
assert_1.default(typeof supportsWrapper === 'boolean', '"supportsWrapper" is not a boolean');
|
202109
|
+
}
|
202107
202110
|
if (regions !== undefined) {
|
202108
202111
|
assert_1.default(Array.isArray(regions), '"regions" is not an Array');
|
202109
202112
|
assert_1.default(regions.every(r => typeof r === 'string'), '"regions" is not a string Array');
|
@@ -202119,6 +202122,7 @@ class Lambda {
|
|
202119
202122
|
this.regions = regions;
|
202120
202123
|
this.zipBuffer = 'zipBuffer' in opts ? opts.zipBuffer : undefined;
|
202121
202124
|
this.supportsMultiPayloads = supportsMultiPayloads;
|
202125
|
+
this.supportsWrapper = supportsWrapper;
|
202122
202126
|
}
|
202123
202127
|
async createZip() {
|
202124
202128
|
let { zipBuffer } = this;
|
@@ -202200,13 +202204,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
202200
202204
|
/***/ }),
|
202201
202205
|
|
202202
202206
|
/***/ 7049:
|
202203
|
-
/***/ ((__unused_webpack_module, exports,
|
202207
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_895757__) => {
|
202204
202208
|
|
202205
202209
|
"use strict";
|
202206
202210
|
|
202207
202211
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202208
202212
|
exports.NodejsLambda = void 0;
|
202209
|
-
const lambda_1 =
|
202213
|
+
const lambda_1 = __nested_webpack_require_895757__(6721);
|
202210
202214
|
class NodejsLambda extends lambda_1.Lambda {
|
202211
202215
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
202212
202216
|
super(opts);
|
@@ -202343,13 +202347,13 @@ exports.buildsSchema = {
|
|
202343
202347
|
/***/ }),
|
202344
202348
|
|
202345
202349
|
/***/ 2564:
|
202346
|
-
/***/ ((__unused_webpack_module, exports,
|
202350
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_900102__) => {
|
202347
202351
|
|
202348
202352
|
"use strict";
|
202349
202353
|
|
202350
202354
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202351
202355
|
exports.shouldServe = void 0;
|
202352
|
-
const path_1 =
|
202356
|
+
const path_1 = __nested_webpack_require_900102__(5622);
|
202353
202357
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
202354
202358
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
202355
202359
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -202594,7 +202598,7 @@ module.exports = __webpack_require__(78761);
|
|
202594
202598
|
/******/ var __webpack_module_cache__ = {};
|
202595
202599
|
/******/
|
202596
202600
|
/******/ // The require function
|
202597
|
-
/******/ function
|
202601
|
+
/******/ function __nested_webpack_require_1277467__(moduleId) {
|
202598
202602
|
/******/ // Check if module is in cache
|
202599
202603
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
202600
202604
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -202609,7 +202613,7 @@ module.exports = __webpack_require__(78761);
|
|
202609
202613
|
/******/ // Execute the module function
|
202610
202614
|
/******/ var threw = true;
|
202611
202615
|
/******/ try {
|
202612
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
202616
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1277467__);
|
202613
202617
|
/******/ threw = false;
|
202614
202618
|
/******/ } finally {
|
202615
202619
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -202622,11 +202626,11 @@ module.exports = __webpack_require__(78761);
|
|
202622
202626
|
/************************************************************************/
|
202623
202627
|
/******/ /* webpack/runtime/compat */
|
202624
202628
|
/******/
|
202625
|
-
/******/
|
202629
|
+
/******/ __nested_webpack_require_1277467__.ab = __dirname + "/";/************************************************************************/
|
202626
202630
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
202627
202631
|
/******/ // startup
|
202628
202632
|
/******/ // Load entry module and return exports
|
202629
|
-
/******/ return
|
202633
|
+
/******/ return __nested_webpack_require_1277467__(2855);
|
202630
202634
|
/******/ })()
|
202631
202635
|
;
|
202632
202636
|
|
@@ -215150,7 +215154,8 @@ async function run({ output, contextName, currentTeam, client }) {
|
|
215150
215154
|
|
215151
215155
|
if (theSecret) {
|
215152
215156
|
const yes =
|
215153
|
-
argv.yes ||
|
215157
|
+
argv.yes ||
|
215158
|
+
(await readConfirmation(client, output, theSecret, contextName));
|
215154
215159
|
if (!yes) {
|
215155
215160
|
output.print(`Aborted. Secret not deleted.\n`);
|
215156
215161
|
return 0;
|
@@ -215277,7 +215282,7 @@ async function run({ output, contextName, currentTeam, client }) {
|
|
215277
215282
|
return 2;
|
215278
215283
|
}
|
215279
215284
|
|
215280
|
-
async function readConfirmation(output, secret, contextName) {
|
215285
|
+
async function readConfirmation(client, output, secret, contextName) {
|
215281
215286
|
const time = source_default().gray(`${(0,ms_default())(new Date() - new Date(secret.created))} ago`);
|
215282
215287
|
const tbl = (0,text_table_default())([[source_default().bold(secret.name), time]], {
|
215283
215288
|
align: ['r', 'l'],
|
@@ -215291,7 +215296,7 @@ async function readConfirmation(output, secret, contextName) {
|
|
215291
215296
|
);
|
215292
215297
|
output.print(` ${tbl}\n`);
|
215293
215298
|
|
215294
|
-
return (0,input_confirm.default)(`${source_default().bold.red('Are you sure?')}`, false);
|
215299
|
+
return (0,input_confirm.default)(client, `${source_default().bold.red('Are you sure?')}`, false);
|
215295
215300
|
}
|
215296
215301
|
|
215297
215302
|
|
@@ -261030,7 +261035,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
261030
261035
|
/***/ ((module) => {
|
261031
261036
|
|
261032
261037
|
"use strict";
|
261033
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.
|
261038
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.7\",\"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 --runInBand --bail --forceExit\",\"test-unit\":\"yarn test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"yarn 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\":\"5.2.0\",\"@vercel/go\":\"2.0.15\",\"@vercel/hydrogen\":\"0.0.12\",\"@vercel/next\":\"3.1.15\",\"@vercel/node\":\"2.5.6\",\"@vercel/python\":\"3.1.7\",\"@vercel/redwood\":\"1.0.16\",\"@vercel/remix\":\"1.0.17\",\"@vercel/ruby\":\"1.3.23\",\"@vercel/static-build\":\"1.0.16\",\"update-notifier\":\"5.1.0\"},\"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/ansi-escapes\":\"3.0.0\",\"@types/ansi-regex\":\"4.0.0\",\"@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\":\"11.11.0\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/progress\":\"2.0.3\",\"@types/psl\":\"1.1.0\",\"@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.1.10\",\"@vercel/frameworks\":\"1.1.3\",\"@vercel/fs-detectors\":\"2.0.5\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"3.0.0\",\"ansi-regex\":\"3.0.0\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"boxen\":\"4.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\",\"credit-card\":\"3.0.1\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-prompt\":\"0.3.2\",\"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\",\"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\",\"jsonlines\":\"0.1.1\",\"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\",\"progress\":\"2.0.3\",\"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\":\"5.2.0\",\"stripe\":\"5.1.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.7.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"which\":\"2.0.2\",\"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\"]}}");
|
261034
261039
|
|
261035
261040
|
/***/ }),
|
261036
261041
|
|
@@ -261046,7 +261051,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
261046
261051
|
/***/ ((module) => {
|
261047
261052
|
|
261048
261053
|
"use strict";
|
261049
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.
|
261054
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.10\",\"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-integration-once\":\"yarn 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\":\"yarn test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"12.0.4\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"5.2.0\",\"@vercel/routing-utils\":\"2.0.2\",\"@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\"}}");
|
261050
261055
|
|
261051
261056
|
/***/ }),
|
261052
261057
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "27.3.
|
3
|
+
"version": "27.3.7",
|
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": "5.
|
45
|
-
"@vercel/go": "2.0.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.1.
|
48
|
-
"@vercel/node": "2.5.
|
49
|
-
"@vercel/python": "3.1.
|
50
|
-
"@vercel/redwood": "1.0.
|
51
|
-
"@vercel/remix": "1.0.
|
52
|
-
"@vercel/ruby": "1.3.
|
53
|
-
"@vercel/static-build": "1.0.
|
44
|
+
"@vercel/build-utils": "5.2.0",
|
45
|
+
"@vercel/go": "2.0.15",
|
46
|
+
"@vercel/hydrogen": "0.0.12",
|
47
|
+
"@vercel/next": "3.1.15",
|
48
|
+
"@vercel/node": "2.5.6",
|
49
|
+
"@vercel/python": "3.1.7",
|
50
|
+
"@vercel/redwood": "1.0.16",
|
51
|
+
"@vercel/remix": "1.0.17",
|
52
|
+
"@vercel/ruby": "1.3.23",
|
53
|
+
"@vercel/static-build": "1.0.16",
|
54
54
|
"update-notifier": "5.1.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
@@ -96,9 +96,9 @@
|
|
96
96
|
"@types/which": "1.3.2",
|
97
97
|
"@types/write-json-file": "2.2.1",
|
98
98
|
"@types/yauzl-promise": "2.1.0",
|
99
|
-
"@vercel/client": "12.1.
|
100
|
-
"@vercel/frameworks": "1.1.
|
101
|
-
"@vercel/fs-detectors": "2.0.
|
99
|
+
"@vercel/client": "12.1.10",
|
100
|
+
"@vercel/frameworks": "1.1.3",
|
101
|
+
"@vercel/fs-detectors": "2.0.5",
|
102
102
|
"@vercel/fun": "1.0.4",
|
103
103
|
"@vercel/ncc": "0.24.0",
|
104
104
|
"@zeit/source-map-support": "0.6.2",
|
@@ -196,5 +196,5 @@
|
|
196
196
|
"<rootDir>/test/**/*.test.ts"
|
197
197
|
]
|
198
198
|
},
|
199
|
-
"gitHead": "
|
199
|
+
"gitHead": "32afd67d29d46f67027091ab9695d8ff330355b5"
|
200
200
|
}
|