vercel 23.1.3-canary.24 → 23.1.3-canary.28
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 +260 -108
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -216884,15 +216884,131 @@ module.exports = new Type('tag:yaml.org,2002:timestamp', {
|
|
216884
216884
|
});
|
216885
216885
|
|
216886
216886
|
|
216887
|
+
/***/ }),
|
216888
|
+
|
216889
|
+
/***/ 7276:
|
216890
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_905327__) {
|
216891
|
+
|
216892
|
+
"use strict";
|
216893
|
+
|
216894
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
216895
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
216896
|
+
};
|
216897
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
216898
|
+
exports.convertRuntimeToPlugin = void 0;
|
216899
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_905327__(5392));
|
216900
|
+
const path_1 = __nested_webpack_require_905327__(5622);
|
216901
|
+
const glob_1 = __importDefault(__nested_webpack_require_905327__(4240));
|
216902
|
+
const normalize_path_1 = __nested_webpack_require_905327__(6261);
|
216903
|
+
const lambda_1 = __nested_webpack_require_905327__(6721);
|
216904
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_905327__(9566));
|
216905
|
+
/**
|
216906
|
+
* Convert legacy Runtime to a Plugin.
|
216907
|
+
* @param buildRuntime - a legacy build() function from a Runtime
|
216908
|
+
* @param ext - the file extension, for example `.py`
|
216909
|
+
*/
|
216910
|
+
function convertRuntimeToPlugin(buildRuntime, ext) {
|
216911
|
+
return async function build({ workPath }) {
|
216912
|
+
const opts = { cwd: workPath };
|
216913
|
+
const files = await glob_1.default('**', opts);
|
216914
|
+
delete files['vercel.json']; // Builders/Runtimes didn't have vercel.json
|
216915
|
+
const entrypoints = await glob_1.default(`api/**/*${ext}`, opts);
|
216916
|
+
const functionsManifest = {};
|
216917
|
+
const functions = await readVercelConfigFunctions(workPath);
|
216918
|
+
const traceDir = path_1.join(workPath, '.output', 'runtime-traced-files');
|
216919
|
+
await fs_extra_1.default.ensureDir(traceDir);
|
216920
|
+
for (const entrypoint of Object.keys(entrypoints)) {
|
216921
|
+
const key = Object.keys(functions).find(src => src === entrypoint || minimatch_1.default(entrypoint, src)) || '';
|
216922
|
+
const config = functions[key] || {};
|
216923
|
+
const { output } = await buildRuntime({
|
216924
|
+
files,
|
216925
|
+
entrypoint,
|
216926
|
+
workPath,
|
216927
|
+
config: {
|
216928
|
+
zeroConfig: true,
|
216929
|
+
includeFiles: config.includeFiles,
|
216930
|
+
excludeFiles: config.excludeFiles,
|
216931
|
+
},
|
216932
|
+
});
|
216933
|
+
functionsManifest[entrypoint] = {
|
216934
|
+
handler: output.handler,
|
216935
|
+
runtime: output.runtime,
|
216936
|
+
memory: config.memory || output.memory,
|
216937
|
+
maxDuration: config.maxDuration || output.maxDuration,
|
216938
|
+
environment: output.environment,
|
216939
|
+
allowQuery: output.allowQuery,
|
216940
|
+
regions: output.regions,
|
216941
|
+
};
|
216942
|
+
// @ts-ignore This symbol is a private API
|
216943
|
+
const lambdaFiles = output[lambda_1.FILES_SYMBOL];
|
216944
|
+
const entry = path_1.join(workPath, '.output', 'server', 'pages', entrypoint);
|
216945
|
+
await fs_extra_1.default.ensureDir(path_1.dirname(entry));
|
216946
|
+
await linkOrCopy(files[entrypoint].fsPath, entry);
|
216947
|
+
const tracedFiles = [];
|
216948
|
+
Object.entries(lambdaFiles).forEach(async ([relPath, file]) => {
|
216949
|
+
const newPath = path_1.join(traceDir, relPath);
|
216950
|
+
tracedFiles.push({ absolutePath: newPath, relativePath: relPath });
|
216951
|
+
if (file.fsPath) {
|
216952
|
+
await linkOrCopy(file.fsPath, newPath);
|
216953
|
+
}
|
216954
|
+
else if (file.type === 'FileBlob') {
|
216955
|
+
const { data, mode } = file;
|
216956
|
+
await fs_extra_1.default.writeFile(newPath, data, { mode });
|
216957
|
+
}
|
216958
|
+
else {
|
216959
|
+
throw new Error(`Unknown file type: ${file.type}`);
|
216960
|
+
}
|
216961
|
+
});
|
216962
|
+
const nft = path_1.join(workPath, '.output', 'server', 'pages', `${entrypoint}.nft.json`);
|
216963
|
+
const json = JSON.stringify({
|
216964
|
+
version: 1,
|
216965
|
+
files: tracedFiles.map(f => ({
|
216966
|
+
input: normalize_path_1.normalizePath(path_1.relative(nft, f.absolutePath)),
|
216967
|
+
output: normalize_path_1.normalizePath(f.relativePath),
|
216968
|
+
})),
|
216969
|
+
});
|
216970
|
+
await fs_extra_1.default.ensureDir(path_1.dirname(nft));
|
216971
|
+
await fs_extra_1.default.writeFile(nft, json);
|
216972
|
+
}
|
216973
|
+
await fs_extra_1.default.writeFile(path_1.join(workPath, '.output', 'functions-manifest.json'), JSON.stringify(functionsManifest));
|
216974
|
+
};
|
216975
|
+
}
|
216976
|
+
exports.convertRuntimeToPlugin = convertRuntimeToPlugin;
|
216977
|
+
async function linkOrCopy(existingPath, newPath) {
|
216978
|
+
try {
|
216979
|
+
await fs_extra_1.default.createLink(existingPath, newPath);
|
216980
|
+
}
|
216981
|
+
catch (err) {
|
216982
|
+
if (err.code !== 'EEXIST') {
|
216983
|
+
await fs_extra_1.default.copyFile(existingPath, newPath);
|
216984
|
+
}
|
216985
|
+
}
|
216986
|
+
}
|
216987
|
+
async function readVercelConfigFunctions(workPath) {
|
216988
|
+
const vercelJsonPath = path_1.join(workPath, 'vercel.json');
|
216989
|
+
try {
|
216990
|
+
const str = await fs_extra_1.default.readFile(vercelJsonPath, 'utf8');
|
216991
|
+
const obj = JSON.parse(str);
|
216992
|
+
return obj.functions || {};
|
216993
|
+
}
|
216994
|
+
catch (err) {
|
216995
|
+
if (err.code === 'ENOENT') {
|
216996
|
+
return {};
|
216997
|
+
}
|
216998
|
+
throw err;
|
216999
|
+
}
|
217000
|
+
}
|
217001
|
+
|
217002
|
+
|
216887
217003
|
/***/ }),
|
216888
217004
|
|
216889
217005
|
/***/ 1868:
|
216890
|
-
/***/ ((__unused_webpack_module, exports,
|
217006
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_910247__) => {
|
216891
217007
|
|
216892
217008
|
"use strict";
|
216893
217009
|
|
216894
217010
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
216895
|
-
const _1 =
|
217011
|
+
const _1 = __nested_webpack_require_910247__(2855);
|
216896
217012
|
function debug(message, ...additional) {
|
216897
217013
|
if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
216898
217014
|
console.log(message, ...additional);
|
@@ -216904,7 +217020,7 @@ exports.default = debug;
|
|
216904
217020
|
/***/ }),
|
216905
217021
|
|
216906
217022
|
/***/ 4246:
|
216907
|
-
/***/ (function(__unused_webpack_module, exports,
|
217023
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_910632__) {
|
216908
217024
|
|
216909
217025
|
"use strict";
|
216910
217026
|
|
@@ -216913,11 +217029,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
216913
217029
|
};
|
216914
217030
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
216915
217031
|
exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
216916
|
-
const minimatch_1 = __importDefault(
|
216917
|
-
const semver_1 =
|
216918
|
-
const path_1 =
|
216919
|
-
const frameworks_1 = __importDefault(
|
216920
|
-
const _1 =
|
217032
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_910632__(9566));
|
217033
|
+
const semver_1 = __nested_webpack_require_910632__(2879);
|
217034
|
+
const path_1 = __nested_webpack_require_910632__(5622);
|
217035
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_910632__(8438));
|
217036
|
+
const _1 = __nested_webpack_require_910632__(2855);
|
216921
217037
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
216922
217038
|
// We need to sort the file paths by alphabet to make
|
216923
217039
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -217923,7 +218039,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
217923
218039
|
/***/ }),
|
217924
218040
|
|
217925
218041
|
/***/ 2397:
|
217926
|
-
/***/ (function(__unused_webpack_module, exports,
|
218042
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_947474__) {
|
217927
218043
|
|
217928
218044
|
"use strict";
|
217929
218045
|
|
@@ -217931,8 +218047,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217931
218047
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
217932
218048
|
};
|
217933
218049
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217934
|
-
const assert_1 = __importDefault(
|
217935
|
-
const into_stream_1 = __importDefault(
|
218050
|
+
const assert_1 = __importDefault(__nested_webpack_require_947474__(2357));
|
218051
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_947474__(6130));
|
217936
218052
|
class FileBlob {
|
217937
218053
|
constructor({ mode = 0o100644, contentType, data }) {
|
217938
218054
|
assert_1.default(typeof mode === 'number');
|
@@ -217964,7 +218080,7 @@ exports.default = FileBlob;
|
|
217964
218080
|
/***/ }),
|
217965
218081
|
|
217966
218082
|
/***/ 9331:
|
217967
|
-
/***/ (function(__unused_webpack_module, exports,
|
218083
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_948926__) {
|
217968
218084
|
|
217969
218085
|
"use strict";
|
217970
218086
|
|
@@ -217972,11 +218088,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217972
218088
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
217973
218089
|
};
|
217974
218090
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217975
|
-
const assert_1 = __importDefault(
|
217976
|
-
const fs_extra_1 = __importDefault(
|
217977
|
-
const multistream_1 = __importDefault(
|
217978
|
-
const path_1 = __importDefault(
|
217979
|
-
const async_sema_1 = __importDefault(
|
218091
|
+
const assert_1 = __importDefault(__nested_webpack_require_948926__(2357));
|
218092
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_948926__(5392));
|
218093
|
+
const multistream_1 = __importDefault(__nested_webpack_require_948926__(8179));
|
218094
|
+
const path_1 = __importDefault(__nested_webpack_require_948926__(5622));
|
218095
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_948926__(5758));
|
217980
218096
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
217981
218097
|
class FileFsRef {
|
217982
218098
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -218042,7 +218158,7 @@ exports.default = FileFsRef;
|
|
218042
218158
|
/***/ }),
|
218043
218159
|
|
218044
218160
|
/***/ 5187:
|
218045
|
-
/***/ (function(__unused_webpack_module, exports,
|
218161
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_951730__) {
|
218046
218162
|
|
218047
218163
|
"use strict";
|
218048
218164
|
|
@@ -218050,11 +218166,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218050
218166
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218051
218167
|
};
|
218052
218168
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218053
|
-
const assert_1 = __importDefault(
|
218054
|
-
const node_fetch_1 = __importDefault(
|
218055
|
-
const multistream_1 = __importDefault(
|
218056
|
-
const async_retry_1 = __importDefault(
|
218057
|
-
const async_sema_1 = __importDefault(
|
218169
|
+
const assert_1 = __importDefault(__nested_webpack_require_951730__(2357));
|
218170
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_951730__(2197));
|
218171
|
+
const multistream_1 = __importDefault(__nested_webpack_require_951730__(8179));
|
218172
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_951730__(3691));
|
218173
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_951730__(5758));
|
218058
218174
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
218059
218175
|
class BailableError extends Error {
|
218060
218176
|
constructor(...args) {
|
@@ -218135,7 +218251,7 @@ exports.default = FileRef;
|
|
218135
218251
|
/***/ }),
|
218136
218252
|
|
218137
218253
|
/***/ 1611:
|
218138
|
-
/***/ (function(__unused_webpack_module, exports,
|
218254
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_955131__) {
|
218139
218255
|
|
218140
218256
|
"use strict";
|
218141
218257
|
|
@@ -218144,10 +218260,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218144
218260
|
};
|
218145
218261
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218146
218262
|
exports.isSymbolicLink = void 0;
|
218147
|
-
const path_1 = __importDefault(
|
218148
|
-
const debug_1 = __importDefault(
|
218149
|
-
const file_fs_ref_1 = __importDefault(
|
218150
|
-
const fs_extra_1 =
|
218263
|
+
const path_1 = __importDefault(__nested_webpack_require_955131__(5622));
|
218264
|
+
const debug_1 = __importDefault(__nested_webpack_require_955131__(1868));
|
218265
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_955131__(9331));
|
218266
|
+
const fs_extra_1 = __nested_webpack_require_955131__(5392);
|
218151
218267
|
const S_IFMT = 61440; /* 0170000 type of file */
|
218152
218268
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
218153
218269
|
function isSymbolicLink(mode) {
|
@@ -218209,14 +218325,14 @@ exports.default = download;
|
|
218209
218325
|
/***/ }),
|
218210
218326
|
|
218211
218327
|
/***/ 3838:
|
218212
|
-
/***/ ((__unused_webpack_module, exports,
|
218328
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_957956__) => {
|
218213
218329
|
|
218214
218330
|
"use strict";
|
218215
218331
|
|
218216
218332
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218217
|
-
const path_1 =
|
218218
|
-
const os_1 =
|
218219
|
-
const fs_extra_1 =
|
218333
|
+
const path_1 = __nested_webpack_require_957956__(5622);
|
218334
|
+
const os_1 = __nested_webpack_require_957956__(2087);
|
218335
|
+
const fs_extra_1 = __nested_webpack_require_957956__(5392);
|
218220
218336
|
async function getWritableDirectory() {
|
218221
218337
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
218222
218338
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -218229,7 +218345,7 @@ exports.default = getWritableDirectory;
|
|
218229
218345
|
/***/ }),
|
218230
218346
|
|
218231
218347
|
/***/ 4240:
|
218232
|
-
/***/ (function(__unused_webpack_module, exports,
|
218348
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_958536__) {
|
218233
218349
|
|
218234
218350
|
"use strict";
|
218235
218351
|
|
@@ -218237,13 +218353,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218237
218353
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218238
218354
|
};
|
218239
218355
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218240
|
-
const path_1 = __importDefault(
|
218241
|
-
const assert_1 = __importDefault(
|
218242
|
-
const glob_1 = __importDefault(
|
218243
|
-
const util_1 =
|
218244
|
-
const fs_extra_1 =
|
218245
|
-
const normalize_path_1 =
|
218246
|
-
const file_fs_ref_1 = __importDefault(
|
218356
|
+
const path_1 = __importDefault(__nested_webpack_require_958536__(5622));
|
218357
|
+
const assert_1 = __importDefault(__nested_webpack_require_958536__(2357));
|
218358
|
+
const glob_1 = __importDefault(__nested_webpack_require_958536__(1104));
|
218359
|
+
const util_1 = __nested_webpack_require_958536__(1669);
|
218360
|
+
const fs_extra_1 = __nested_webpack_require_958536__(5392);
|
218361
|
+
const normalize_path_1 = __nested_webpack_require_958536__(6261);
|
218362
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_958536__(9331));
|
218247
218363
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
218248
218364
|
async function glob(pattern, opts, mountpoint) {
|
218249
218365
|
let options;
|
@@ -218289,7 +218405,7 @@ exports.default = glob;
|
|
218289
218405
|
/***/ }),
|
218290
218406
|
|
218291
218407
|
/***/ 7903:
|
218292
|
-
/***/ (function(__unused_webpack_module, exports,
|
218408
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_960732__) {
|
218293
218409
|
|
218294
218410
|
"use strict";
|
218295
218411
|
|
@@ -218298,9 +218414,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218298
218414
|
};
|
218299
218415
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218300
218416
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
218301
|
-
const semver_1 =
|
218302
|
-
const errors_1 =
|
218303
|
-
const debug_1 = __importDefault(
|
218417
|
+
const semver_1 = __nested_webpack_require_960732__(2879);
|
218418
|
+
const errors_1 = __nested_webpack_require_960732__(3983);
|
218419
|
+
const debug_1 = __importDefault(__nested_webpack_require_960732__(1868));
|
218304
218420
|
const allOptions = [
|
218305
218421
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
218306
218422
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -218394,7 +218510,7 @@ exports.normalizePath = normalizePath;
|
|
218394
218510
|
/***/ }),
|
218395
218511
|
|
218396
218512
|
/***/ 7792:
|
218397
|
-
/***/ (function(__unused_webpack_module, exports,
|
218513
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_964600__) {
|
218398
218514
|
|
218399
218515
|
"use strict";
|
218400
218516
|
|
@@ -218403,9 +218519,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218403
218519
|
};
|
218404
218520
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218405
218521
|
exports.readConfigFile = void 0;
|
218406
|
-
const js_yaml_1 = __importDefault(
|
218407
|
-
const toml_1 = __importDefault(
|
218408
|
-
const fs_extra_1 =
|
218522
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_964600__(6540));
|
218523
|
+
const toml_1 = __importDefault(__nested_webpack_require_964600__(9434));
|
218524
|
+
const fs_extra_1 = __nested_webpack_require_964600__(5392);
|
218409
218525
|
async function readFileOrNull(file) {
|
218410
218526
|
try {
|
218411
218527
|
const data = await fs_extra_1.readFile(file);
|
@@ -218460,7 +218576,7 @@ exports.default = rename;
|
|
218460
218576
|
/***/ }),
|
218461
218577
|
|
218462
218578
|
/***/ 1442:
|
218463
|
-
/***/ (function(__unused_webpack_module, exports,
|
218579
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_966393__) {
|
218464
218580
|
|
218465
218581
|
"use strict";
|
218466
218582
|
|
@@ -218469,14 +218585,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218469
218585
|
};
|
218470
218586
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218471
218587
|
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
218472
|
-
const assert_1 = __importDefault(
|
218473
|
-
const fs_extra_1 = __importDefault(
|
218474
|
-
const path_1 = __importDefault(
|
218475
|
-
const debug_1 = __importDefault(
|
218476
|
-
const cross_spawn_1 = __importDefault(
|
218477
|
-
const util_1 =
|
218478
|
-
const errors_1 =
|
218479
|
-
const node_version_1 =
|
218588
|
+
const assert_1 = __importDefault(__nested_webpack_require_966393__(2357));
|
218589
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_966393__(5392));
|
218590
|
+
const path_1 = __importDefault(__nested_webpack_require_966393__(5622));
|
218591
|
+
const debug_1 = __importDefault(__nested_webpack_require_966393__(1868));
|
218592
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_966393__(7618));
|
218593
|
+
const util_1 = __nested_webpack_require_966393__(1669);
|
218594
|
+
const errors_1 = __nested_webpack_require_966393__(3983);
|
218595
|
+
const node_version_1 = __nested_webpack_require_966393__(7903);
|
218480
218596
|
function spawnAsync(command, args, opts = {}) {
|
218481
218597
|
return new Promise((resolve, reject) => {
|
218482
218598
|
const stderrLogs = [];
|
@@ -218787,7 +218903,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
218787
218903
|
/***/ }),
|
218788
218904
|
|
218789
218905
|
/***/ 2560:
|
218790
|
-
/***/ (function(__unused_webpack_module, exports,
|
218906
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_980383__) {
|
218791
218907
|
|
218792
218908
|
"use strict";
|
218793
218909
|
|
@@ -218795,7 +218911,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218795
218911
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218796
218912
|
};
|
218797
218913
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218798
|
-
const end_of_stream_1 = __importDefault(
|
218914
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_980383__(687));
|
218799
218915
|
function streamToBuffer(stream) {
|
218800
218916
|
return new Promise((resolve, reject) => {
|
218801
218917
|
const buffers = [];
|
@@ -218824,7 +218940,7 @@ exports.default = streamToBuffer;
|
|
218824
218940
|
/***/ }),
|
218825
218941
|
|
218826
218942
|
/***/ 2855:
|
218827
|
-
/***/ (function(__unused_webpack_module, exports,
|
218943
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_981451__) {
|
218828
218944
|
|
218829
218945
|
"use strict";
|
218830
218946
|
|
@@ -218854,29 +218970,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218854
218970
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218855
218971
|
};
|
218856
218972
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218857
|
-
exports.getPlatformEnv = exports.isStaticRuntime = exports.isOfficialRuntime = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.detectFramework = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = exports.streamToBuffer = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.getScriptName = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.download = exports.Prerender = exports.createLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
218858
|
-
const file_blob_1 = __importDefault(
|
218973
|
+
exports.getPlatformEnv = exports.isStaticRuntime = exports.isOfficialRuntime = exports.convertRuntimeToPlugin = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.detectFramework = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = exports.streamToBuffer = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.getScriptName = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.download = exports.Prerender = exports.createLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
218974
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_981451__(2397));
|
218859
218975
|
exports.FileBlob = file_blob_1.default;
|
218860
|
-
const file_fs_ref_1 = __importDefault(
|
218976
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_981451__(9331));
|
218861
218977
|
exports.FileFsRef = file_fs_ref_1.default;
|
218862
|
-
const file_ref_1 = __importDefault(
|
218978
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_981451__(5187));
|
218863
218979
|
exports.FileRef = file_ref_1.default;
|
218864
|
-
const lambda_1 =
|
218980
|
+
const lambda_1 = __nested_webpack_require_981451__(6721);
|
218865
218981
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
218866
218982
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
218867
218983
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
218868
|
-
const prerender_1 =
|
218984
|
+
const prerender_1 = __nested_webpack_require_981451__(2850);
|
218869
218985
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
218870
|
-
const download_1 = __importStar(
|
218986
|
+
const download_1 = __importStar(__nested_webpack_require_981451__(1611));
|
218871
218987
|
exports.download = download_1.default;
|
218872
218988
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
218873
|
-
const get_writable_directory_1 = __importDefault(
|
218989
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_981451__(3838));
|
218874
218990
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
218875
|
-
const glob_1 = __importDefault(
|
218991
|
+
const glob_1 = __importDefault(__nested_webpack_require_981451__(4240));
|
218876
218992
|
exports.glob = glob_1.default;
|
218877
|
-
const rename_1 = __importDefault(
|
218993
|
+
const rename_1 = __importDefault(__nested_webpack_require_981451__(6718));
|
218878
218994
|
exports.rename = rename_1.default;
|
218879
|
-
const run_user_scripts_1 =
|
218995
|
+
const run_user_scripts_1 = __nested_webpack_require_981451__(1442);
|
218880
218996
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
218881
218997
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
218882
218998
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -218893,32 +219009,34 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
218893
219009
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
218894
219010
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
218895
219011
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
218896
|
-
const node_version_1 =
|
219012
|
+
const node_version_1 = __nested_webpack_require_981451__(7903);
|
218897
219013
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
218898
219014
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
218899
|
-
const errors_1 =
|
218900
|
-
const stream_to_buffer_1 = __importDefault(
|
219015
|
+
const errors_1 = __nested_webpack_require_981451__(3983);
|
219016
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_981451__(2560));
|
218901
219017
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
218902
|
-
const should_serve_1 = __importDefault(
|
219018
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_981451__(2564));
|
218903
219019
|
exports.shouldServe = should_serve_1.default;
|
218904
|
-
const debug_1 = __importDefault(
|
219020
|
+
const debug_1 = __importDefault(__nested_webpack_require_981451__(1868));
|
218905
219021
|
exports.debug = debug_1.default;
|
218906
|
-
var detect_builders_1 =
|
219022
|
+
var detect_builders_1 = __nested_webpack_require_981451__(4246);
|
218907
219023
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
218908
219024
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
218909
219025
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
218910
219026
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
218911
|
-
var detect_framework_1 =
|
219027
|
+
var detect_framework_1 = __nested_webpack_require_981451__(5224);
|
218912
219028
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
218913
|
-
var filesystem_1 =
|
219029
|
+
var filesystem_1 = __nested_webpack_require_981451__(461);
|
218914
219030
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
218915
|
-
var read_config_file_1 =
|
219031
|
+
var read_config_file_1 = __nested_webpack_require_981451__(7792);
|
218916
219032
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
218917
|
-
var normalize_path_1 =
|
219033
|
+
var normalize_path_1 = __nested_webpack_require_981451__(6261);
|
218918
219034
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
218919
|
-
|
218920
|
-
|
218921
|
-
__exportStar(
|
219035
|
+
var convert_runtime_to_plugin_1 = __nested_webpack_require_981451__(7276);
|
219036
|
+
Object.defineProperty(exports, "convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.convertRuntimeToPlugin; } }));
|
219037
|
+
__exportStar(__nested_webpack_require_981451__(2416), exports);
|
219038
|
+
__exportStar(__nested_webpack_require_981451__(5748), exports);
|
219039
|
+
__exportStar(__nested_webpack_require_981451__(3983), exports);
|
218922
219040
|
/**
|
218923
219041
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
218924
219042
|
*/
|
@@ -218963,7 +219081,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
218963
219081
|
/***/ }),
|
218964
219082
|
|
218965
219083
|
/***/ 6721:
|
218966
|
-
/***/ (function(__unused_webpack_module, exports,
|
219084
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_991526__) {
|
218967
219085
|
|
218968
219086
|
"use strict";
|
218969
219087
|
|
@@ -218972,13 +219090,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218972
219090
|
};
|
218973
219091
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218974
219092
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = exports.FILES_SYMBOL = void 0;
|
218975
|
-
const assert_1 = __importDefault(
|
218976
|
-
const async_sema_1 = __importDefault(
|
218977
|
-
const yazl_1 =
|
218978
|
-
const minimatch_1 = __importDefault(
|
218979
|
-
const fs_extra_1 =
|
218980
|
-
const download_1 =
|
218981
|
-
const stream_to_buffer_1 = __importDefault(
|
219093
|
+
const assert_1 = __importDefault(__nested_webpack_require_991526__(2357));
|
219094
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_991526__(5758));
|
219095
|
+
const yazl_1 = __nested_webpack_require_991526__(1223);
|
219096
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_991526__(9566));
|
219097
|
+
const fs_extra_1 = __nested_webpack_require_991526__(5392);
|
219098
|
+
const download_1 = __nested_webpack_require_991526__(1611);
|
219099
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_991526__(2560));
|
218982
219100
|
exports.FILES_SYMBOL = Symbol('files');
|
218983
219101
|
class Lambda {
|
218984
219102
|
constructor({ zipBuffer, handler, runtime, maxDuration, memory, environment, allowQuery, regions, }) {
|
@@ -219207,12 +219325,12 @@ exports.buildsSchema = {
|
|
219207
219325
|
/***/ }),
|
219208
219326
|
|
219209
219327
|
/***/ 2564:
|
219210
|
-
/***/ ((__unused_webpack_module, exports,
|
219328
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1000036__) => {
|
219211
219329
|
|
219212
219330
|
"use strict";
|
219213
219331
|
|
219214
219332
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219215
|
-
const path_1 =
|
219333
|
+
const path_1 = __nested_webpack_require_1000036__(5622);
|
219216
219334
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
219217
219335
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
219218
219336
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -219441,7 +219559,7 @@ module.exports = __webpack_require__(78761);
|
|
219441
219559
|
/******/ var __webpack_module_cache__ = {};
|
219442
219560
|
/******/
|
219443
219561
|
/******/ // The require function
|
219444
|
-
/******/ function
|
219562
|
+
/******/ function __nested_webpack_require_1099675__(moduleId) {
|
219445
219563
|
/******/ // Check if module is in cache
|
219446
219564
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
219447
219565
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -219456,7 +219574,7 @@ module.exports = __webpack_require__(78761);
|
|
219456
219574
|
/******/ // Execute the module function
|
219457
219575
|
/******/ var threw = true;
|
219458
219576
|
/******/ try {
|
219459
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
219577
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1099675__);
|
219460
219578
|
/******/ threw = false;
|
219461
219579
|
/******/ } finally {
|
219462
219580
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -219469,11 +219587,11 @@ module.exports = __webpack_require__(78761);
|
|
219469
219587
|
/************************************************************************/
|
219470
219588
|
/******/ /* webpack/runtime/compat */
|
219471
219589
|
/******/
|
219472
|
-
/******/
|
219590
|
+
/******/ __nested_webpack_require_1099675__.ab = __dirname + "/";/************************************************************************/
|
219473
219591
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
219474
219592
|
/******/ // startup
|
219475
219593
|
/******/ // Load entry module and return exports
|
219476
|
-
/******/ return
|
219594
|
+
/******/ return __nested_webpack_require_1099675__(2855);
|
219477
219595
|
/******/ })()
|
219478
219596
|
;
|
219479
219597
|
|
@@ -248359,6 +248477,9 @@ exports.routesSchema = {
|
|
248359
248477
|
maxLength: 32,
|
248360
248478
|
},
|
248361
248479
|
},
|
248480
|
+
caseSensitive: {
|
248481
|
+
type: 'boolean',
|
248482
|
+
},
|
248362
248483
|
important: {
|
248363
248484
|
type: 'boolean',
|
248364
248485
|
},
|
@@ -249496,6 +249617,8 @@ async function main(client) {
|
|
249496
249617
|
}
|
249497
249618
|
project = await project_settings_1.readProjectSettings(path_1.join(cwd, link_1.VERCEL_DIR));
|
249498
249619
|
}
|
249620
|
+
// If `rootDirectory` exists, then `baseDir` will be the repo's root directory.
|
249621
|
+
const baseDir = cwd;
|
249499
249622
|
cwd = project.settings.rootDirectory
|
249500
249623
|
? path_1.join(cwd, project.settings.rootDirectory)
|
249501
249624
|
: cwd;
|
@@ -249641,6 +249764,7 @@ async function main(client) {
|
|
249641
249764
|
'_middleware.js',
|
249642
249765
|
'api/**',
|
249643
249766
|
'.git/**',
|
249767
|
+
'.next/cache/**',
|
249644
249768
|
],
|
249645
249769
|
nodir: true,
|
249646
249770
|
dot: true,
|
@@ -249682,6 +249806,25 @@ async function main(client) {
|
|
249682
249806
|
await fs_extra_1.default.rename(path_1.join(cwd, OUTPUT_DIR, 'static'), path_1.join(cwd, OUTPUT_DIR, tempStatic));
|
249683
249807
|
await fs_extra_1.default.mkdirp(path_1.join(cwd, OUTPUT_DIR, 'static', '_next', 'static'));
|
249684
249808
|
await fs_extra_1.default.rename(path_1.join(cwd, OUTPUT_DIR, tempStatic), path_1.join(cwd, OUTPUT_DIR, 'static', '_next', 'static'));
|
249809
|
+
// Next.js might reference files from the `static` directory in `middleware-manifest.json`.
|
249810
|
+
// Since we move all files from `static` to `static/_next/static`, we'll need to change
|
249811
|
+
// those references as well and update the manifest file.
|
249812
|
+
const middlewareManifest = path_1.join(cwd, OUTPUT_DIR, 'server', 'middleware-manifest.json');
|
249813
|
+
if (fs_extra_1.default.existsSync(middlewareManifest)) {
|
249814
|
+
const manifest = await fs_extra_1.default.readJSON(middlewareManifest);
|
249815
|
+
Object.keys(manifest.middleware).forEach(key => {
|
249816
|
+
const files = manifest.middleware[key].files.map((f) => {
|
249817
|
+
if (f.startsWith('static/')) {
|
249818
|
+
const next = f.replace(/^static\//gm, 'static/_next/static/');
|
249819
|
+
client.output.debug(`Replacing file in \`middleware-manifest.json\`: ${f} => ${next}`);
|
249820
|
+
return next;
|
249821
|
+
}
|
249822
|
+
return f;
|
249823
|
+
});
|
249824
|
+
manifest.middleware[key].files = files;
|
249825
|
+
});
|
249826
|
+
await fs_extra_1.default.writeJSON(middlewareManifest, manifest);
|
249827
|
+
}
|
249685
249828
|
// We want to pick up directories for user-provided static files into `.`output/static`.
|
249686
249829
|
// More specifically, the static directory contents would then be mounted to `output/static/static`,
|
249687
249830
|
// and the public directory contents would be mounted to `output/static`. Old Next.js versions
|
@@ -249750,7 +249893,7 @@ async function main(client) {
|
|
249750
249893
|
fileList.delete(path_1.relative(cwd, f));
|
249751
249894
|
await resolveNftToOutput({
|
249752
249895
|
client,
|
249753
|
-
|
249896
|
+
baseDir,
|
249754
249897
|
outputDir: OUTPUT_DIR,
|
249755
249898
|
nftFileName: f.replace(ext, '.js.nft.json'),
|
249756
249899
|
nft: {
|
@@ -249765,7 +249908,7 @@ async function main(client) {
|
|
249765
249908
|
const json = await fs_extra_1.default.readJson(f);
|
249766
249909
|
await resolveNftToOutput({
|
249767
249910
|
client,
|
249768
|
-
|
249911
|
+
baseDir,
|
249769
249912
|
outputDir: OUTPUT_DIR,
|
249770
249913
|
nftFileName: f,
|
249771
249914
|
nft: json,
|
@@ -249777,10 +249920,14 @@ async function main(client) {
|
|
249777
249920
|
await fs_extra_1.default.writeJSON(requiredServerFilesPath, {
|
249778
249921
|
...requiredServerFilesJson,
|
249779
249922
|
appDir: '.',
|
249780
|
-
files: requiredServerFilesJson.files.map((i) =>
|
249781
|
-
|
249782
|
-
output
|
249783
|
-
|
249923
|
+
files: requiredServerFilesJson.files.map((i) => {
|
249924
|
+
const absolutePath = path_1.join(cwd, i.replace('.next', '.output'));
|
249925
|
+
const output = path_1.relative(baseDir, absolutePath);
|
249926
|
+
return {
|
249927
|
+
input: i.replace('.next', '.output'),
|
249928
|
+
output,
|
249929
|
+
};
|
249930
|
+
}),
|
249784
249931
|
});
|
249785
249932
|
}
|
249786
249933
|
}
|
@@ -249896,7 +250043,7 @@ function hash(buf) {
|
|
249896
250043
|
// subsequently updating the original nft file accordingly. This is done
|
249897
250044
|
// to make the `.output` directory be self-contained, so that it works
|
249898
250045
|
// properly with `vc --prebuilt`.
|
249899
|
-
async function resolveNftToOutput({ client,
|
250046
|
+
async function resolveNftToOutput({ client, baseDir, outputDir, nftFileName, nft, }) {
|
249900
250047
|
client.output.debug(`Processing and resolving ${nftFileName}`);
|
249901
250048
|
await fs_extra_1.default.ensureDir(path_1.join(outputDir, 'inputs'));
|
249902
250049
|
const newFilesList = [];
|
@@ -249909,9 +250056,14 @@ async function resolveNftToOutput({ client, cwd, outputDir, nftFileName, nft, })
|
|
249909
250056
|
const raw = await fs_extra_1.default.readFile(fullInput);
|
249910
250057
|
const newFilePath = path_1.join(outputDir, 'inputs', hash(raw) + ext);
|
249911
250058
|
smartCopy(client, fullInput, newFilePath);
|
250059
|
+
// We have to use `baseDir` instead of `cwd`, because we want to
|
250060
|
+
// mount everything from there (especially `node_modules`).
|
250061
|
+
// This is important for NPM Workspaces where `node_modules` is not
|
250062
|
+
// in the directory of the workspace.
|
250063
|
+
const output = path_1.relative(baseDir, fullInput).replace('.output', '.next');
|
249912
250064
|
newFilesList.push({
|
249913
250065
|
input: path_1.relative(path_1.parse(nftFileName).dir, newFilePath),
|
249914
|
-
output
|
250066
|
+
output,
|
249915
250067
|
});
|
249916
250068
|
}
|
249917
250069
|
else {
|
@@ -270071,7 +270223,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
270071
270223
|
/***/ ((module) => {
|
270072
270224
|
|
270073
270225
|
"use strict";
|
270074
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
270226
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.28\",\"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\",\"test-unit\":\"jest --coverage --verbose\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"ava test/dev/integration.js --serial --fail-fast --verbose\",\"prepublishOnly\":\"yarn build\",\"coverage\":\"codecov\",\"build\":\"node -r ts-eager/register ./scripts/build.ts\",\"build-dev\":\"node -r ts-eager/register ./scripts/build.ts --dev\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"compileEnhancements\":false,\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 12\"},\"dependencies\":{\"@vercel/build-utils\":\"2.12.3-canary.17\",\"@vercel/go\":\"1.2.4-canary.3\",\"@vercel/node\":\"1.12.2-canary.6\",\"@vercel/python\":\"2.0.6-canary.5\",\"@vercel/ruby\":\"1.2.8-canary.4\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.6\",\"vercel-plugin-node\":\"1.12.2-canary.7\"},\"devDependencies\":{\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@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/inquirer\":\"7.3.1\",\"@types/jest\":\"27.0.1\",\"@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\",\"@vercel/frameworks\":\"0.5.1-canary.11\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/nft\":\"0.17.0\",\"@zeit/fun\":\"0.11.2\",\"@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\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"clipboardy\":\"2.1.0\",\"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\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.0.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.1\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.2.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-eager\":\"2.0.2\",\"ts-node\":\"8.3.0\",\"typescript\":\"4.3.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\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"ed1dacd27698f3bb181f32b516af6953655b37e9\"}");
|
270075
270227
|
|
270076
270228
|
/***/ }),
|
270077
270229
|
|
@@ -270087,7 +270239,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
270087
270239
|
/***/ ((module) => {
|
270088
270240
|
|
270089
270241
|
"use strict";
|
270090
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.
|
270242
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.18\",\"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\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@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\":\"2.12.3-canary.17\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"recursive-readdir\":\"2.2.2\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"ed1dacd27698f3bb181f32b516af6953655b37e9\"}");
|
270091
270243
|
|
270092
270244
|
/***/ }),
|
270093
270245
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "23.1.3-canary.
|
3
|
+
"version": "23.1.3-canary.28",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -43,11 +43,11 @@
|
|
43
43
|
"node": ">= 12"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@vercel/build-utils": "2.12.3-canary.
|
46
|
+
"@vercel/build-utils": "2.12.3-canary.17",
|
47
47
|
"@vercel/go": "1.2.4-canary.3",
|
48
48
|
"@vercel/node": "1.12.2-canary.6",
|
49
|
-
"@vercel/python": "2.0.6-canary.
|
50
|
-
"@vercel/ruby": "1.2.8-canary.
|
49
|
+
"@vercel/python": "2.0.6-canary.5",
|
50
|
+
"@vercel/ruby": "1.2.8-canary.4",
|
51
51
|
"update-notifier": "4.1.0",
|
52
52
|
"vercel-plugin-middleware": "0.0.0-canary.6",
|
53
53
|
"vercel-plugin-node": "1.12.2-canary.7"
|
@@ -90,7 +90,7 @@
|
|
90
90
|
"@types/update-notifier": "5.1.0",
|
91
91
|
"@types/which": "1.3.2",
|
92
92
|
"@types/write-json-file": "2.2.1",
|
93
|
-
"@vercel/frameworks": "0.5.1-canary.
|
93
|
+
"@vercel/frameworks": "0.5.1-canary.11",
|
94
94
|
"@vercel/ncc": "0.24.0",
|
95
95
|
"@vercel/nft": "0.17.0",
|
96
96
|
"@zeit/fun": "0.11.2",
|
@@ -184,5 +184,5 @@
|
|
184
184
|
"<rootDir>/test/**/*.test.ts"
|
185
185
|
]
|
186
186
|
},
|
187
|
-
"gitHead": "
|
187
|
+
"gitHead": "ed1dacd27698f3bb181f32b516af6953655b37e9"
|
188
188
|
}
|