vercel 27.3.3 → 27.3.4
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 +111 -83
- package/package.json +14 -14
package/dist/index.js
CHANGED
@@ -201066,6 +201066,20 @@ async function download(files, basePath, meta) {
|
|
201066
201066
|
if (Array.isArray(filesChanged) && !filesChanged.includes(name)) {
|
201067
201067
|
return;
|
201068
201068
|
}
|
201069
|
+
// Some builders resolve symlinks and return both
|
201070
|
+
// a file, node_modules/<symlink>/package.json, and
|
201071
|
+
// node_modules/<symlink>, a symlink.
|
201072
|
+
// Removing the file matches how the yazl lambda zip
|
201073
|
+
// behaves so we can use download() with `vercel build`.
|
201074
|
+
const parts = name.split('/');
|
201075
|
+
for (let i = 1; i < parts.length; i++) {
|
201076
|
+
const dir = parts.slice(0, i).join('/');
|
201077
|
+
const parent = files[dir];
|
201078
|
+
if (parent && isSymbolicLink(parent.mode)) {
|
201079
|
+
console.warn(`Warning: file "${name}" is within a symlinked directory "${dir}" and will be ignored`);
|
201080
|
+
return;
|
201081
|
+
}
|
201082
|
+
}
|
201069
201083
|
const file = files[name];
|
201070
201084
|
const fsPath = path_1.default.join(basePath, name);
|
201071
201085
|
files2[name] = await downloadFile(file, fsPath);
|
@@ -201080,14 +201094,14 @@ exports.default = download;
|
|
201080
201094
|
/***/ }),
|
201081
201095
|
|
201082
201096
|
/***/ 3838:
|
201083
|
-
/***/ ((__unused_webpack_module, exports,
|
201097
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_849378__) => {
|
201084
201098
|
|
201085
201099
|
"use strict";
|
201086
201100
|
|
201087
201101
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201088
|
-
const path_1 =
|
201089
|
-
const os_1 =
|
201090
|
-
const fs_extra_1 =
|
201102
|
+
const path_1 = __nested_webpack_require_849378__(5622);
|
201103
|
+
const os_1 = __nested_webpack_require_849378__(2087);
|
201104
|
+
const fs_extra_1 = __nested_webpack_require_849378__(5392);
|
201091
201105
|
async function getWritableDirectory() {
|
201092
201106
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
201093
201107
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -201100,7 +201114,7 @@ exports.default = getWritableDirectory;
|
|
201100
201114
|
/***/ }),
|
201101
201115
|
|
201102
201116
|
/***/ 4240:
|
201103
|
-
/***/ (function(__unused_webpack_module, exports,
|
201117
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_849958__) {
|
201104
201118
|
|
201105
201119
|
"use strict";
|
201106
201120
|
|
@@ -201108,13 +201122,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201108
201122
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
201109
201123
|
};
|
201110
201124
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201111
|
-
const path_1 = __importDefault(
|
201112
|
-
const assert_1 = __importDefault(
|
201113
|
-
const glob_1 = __importDefault(
|
201114
|
-
const util_1 =
|
201115
|
-
const fs_extra_1 =
|
201116
|
-
const normalize_path_1 =
|
201117
|
-
const file_fs_ref_1 = __importDefault(
|
201125
|
+
const path_1 = __importDefault(__nested_webpack_require_849958__(5622));
|
201126
|
+
const assert_1 = __importDefault(__nested_webpack_require_849958__(2357));
|
201127
|
+
const glob_1 = __importDefault(__nested_webpack_require_849958__(1104));
|
201128
|
+
const util_1 = __nested_webpack_require_849958__(1669);
|
201129
|
+
const fs_extra_1 = __nested_webpack_require_849958__(5392);
|
201130
|
+
const normalize_path_1 = __nested_webpack_require_849958__(6261);
|
201131
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_849958__(9331));
|
201118
201132
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
201119
201133
|
async function glob(pattern, opts, mountpoint) {
|
201120
201134
|
let options;
|
@@ -201160,7 +201174,7 @@ exports.default = glob;
|
|
201160
201174
|
/***/ }),
|
201161
201175
|
|
201162
201176
|
/***/ 7903:
|
201163
|
-
/***/ (function(__unused_webpack_module, exports,
|
201177
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_852154__) {
|
201164
201178
|
|
201165
201179
|
"use strict";
|
201166
201180
|
|
@@ -201169,9 +201183,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201169
201183
|
};
|
201170
201184
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201171
201185
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
201172
|
-
const semver_1 =
|
201173
|
-
const errors_1 =
|
201174
|
-
const debug_1 = __importDefault(
|
201186
|
+
const semver_1 = __nested_webpack_require_852154__(2879);
|
201187
|
+
const errors_1 = __nested_webpack_require_852154__(3983);
|
201188
|
+
const debug_1 = __importDefault(__nested_webpack_require_852154__(1868));
|
201175
201189
|
const allOptions = [
|
201176
201190
|
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
201177
201191
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
@@ -201270,7 +201284,7 @@ exports.normalizePath = normalizePath;
|
|
201270
201284
|
/***/ }),
|
201271
201285
|
|
201272
201286
|
/***/ 7792:
|
201273
|
-
/***/ (function(__unused_webpack_module, exports,
|
201287
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_856008__) {
|
201274
201288
|
|
201275
201289
|
"use strict";
|
201276
201290
|
|
@@ -201279,9 +201293,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201279
201293
|
};
|
201280
201294
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201281
201295
|
exports.readConfigFile = void 0;
|
201282
|
-
const js_yaml_1 = __importDefault(
|
201283
|
-
const toml_1 = __importDefault(
|
201284
|
-
const fs_extra_1 =
|
201296
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_856008__(6540));
|
201297
|
+
const toml_1 = __importDefault(__nested_webpack_require_856008__(9434));
|
201298
|
+
const fs_extra_1 = __nested_webpack_require_856008__(5392);
|
201285
201299
|
async function readFileOrNull(file) {
|
201286
201300
|
try {
|
201287
201301
|
const data = await fs_extra_1.readFile(file);
|
@@ -201336,7 +201350,7 @@ exports.default = rename;
|
|
201336
201350
|
/***/ }),
|
201337
201351
|
|
201338
201352
|
/***/ 1442:
|
201339
|
-
/***/ (function(__unused_webpack_module, exports,
|
201353
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_857801__) {
|
201340
201354
|
|
201341
201355
|
"use strict";
|
201342
201356
|
|
@@ -201345,17 +201359,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201345
201359
|
};
|
201346
201360
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201347
201361
|
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runCustomInstallCommand = exports.getEnvForPackageManager = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
201348
|
-
const assert_1 = __importDefault(
|
201349
|
-
const fs_extra_1 = __importDefault(
|
201350
|
-
const path_1 = __importDefault(
|
201351
|
-
const async_sema_1 = __importDefault(
|
201352
|
-
const cross_spawn_1 = __importDefault(
|
201353
|
-
const semver_1 =
|
201354
|
-
const util_1 =
|
201355
|
-
const debug_1 = __importDefault(
|
201356
|
-
const errors_1 =
|
201357
|
-
const node_version_1 =
|
201358
|
-
const read_config_file_1 =
|
201362
|
+
const assert_1 = __importDefault(__nested_webpack_require_857801__(2357));
|
201363
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_857801__(5392));
|
201364
|
+
const path_1 = __importDefault(__nested_webpack_require_857801__(5622));
|
201365
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_857801__(5758));
|
201366
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_857801__(7618));
|
201367
|
+
const semver_1 = __nested_webpack_require_857801__(2879);
|
201368
|
+
const util_1 = __nested_webpack_require_857801__(1669);
|
201369
|
+
const debug_1 = __importDefault(__nested_webpack_require_857801__(1868));
|
201370
|
+
const errors_1 = __nested_webpack_require_857801__(3983);
|
201371
|
+
const node_version_1 = __nested_webpack_require_857801__(7903);
|
201372
|
+
const read_config_file_1 = __nested_webpack_require_857801__(7792);
|
201359
201373
|
// Only allow one `runNpmInstall()` invocation to run concurrently
|
201360
201374
|
const runNpmInstallSema = new async_sema_1.default(1);
|
201361
201375
|
function spawnAsync(command, args, opts = {}) {
|
@@ -201807,7 +201821,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
201807
201821
|
/***/ }),
|
201808
201822
|
|
201809
201823
|
/***/ 2560:
|
201810
|
-
/***/ (function(__unused_webpack_module, exports,
|
201824
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_876908__) {
|
201811
201825
|
|
201812
201826
|
"use strict";
|
201813
201827
|
|
@@ -201815,7 +201829,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201815
201829
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
201816
201830
|
};
|
201817
201831
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201818
|
-
const end_of_stream_1 = __importDefault(
|
201832
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_876908__(687));
|
201819
201833
|
function streamToBuffer(stream) {
|
201820
201834
|
return new Promise((resolve, reject) => {
|
201821
201835
|
const buffers = [];
|
@@ -201844,7 +201858,7 @@ exports.default = streamToBuffer;
|
|
201844
201858
|
/***/ }),
|
201845
201859
|
|
201846
201860
|
/***/ 1148:
|
201847
|
-
/***/ (function(__unused_webpack_module, exports,
|
201861
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_877976__) {
|
201848
201862
|
|
201849
201863
|
"use strict";
|
201850
201864
|
|
@@ -201852,9 +201866,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201852
201866
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
201853
201867
|
};
|
201854
201868
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201855
|
-
const path_1 = __importDefault(
|
201856
|
-
const fs_extra_1 = __importDefault(
|
201857
|
-
const ignore_1 = __importDefault(
|
201869
|
+
const path_1 = __importDefault(__nested_webpack_require_877976__(5622));
|
201870
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_877976__(5392));
|
201871
|
+
const ignore_1 = __importDefault(__nested_webpack_require_877976__(3556));
|
201858
201872
|
function isCodedError(error) {
|
201859
201873
|
return (error !== null &&
|
201860
201874
|
error !== undefined &&
|
@@ -201911,13 +201925,13 @@ exports.default = default_1;
|
|
201911
201925
|
/***/ }),
|
201912
201926
|
|
201913
201927
|
/***/ 4678:
|
201914
|
-
/***/ ((__unused_webpack_module, exports,
|
201928
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_880350__) => {
|
201915
201929
|
|
201916
201930
|
"use strict";
|
201917
201931
|
|
201918
201932
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201919
201933
|
exports.getPlatformEnv = void 0;
|
201920
|
-
const errors_1 =
|
201934
|
+
const errors_1 = __nested_webpack_require_880350__(3983);
|
201921
201935
|
/**
|
201922
201936
|
* Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
|
201923
201937
|
* Throws an error if *both* env vars are defined.
|
@@ -201945,7 +201959,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
201945
201959
|
/***/ }),
|
201946
201960
|
|
201947
201961
|
/***/ 2855:
|
201948
|
-
/***/ (function(__unused_webpack_module, exports,
|
201962
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_881387__) {
|
201949
201963
|
|
201950
201964
|
"use strict";
|
201951
201965
|
|
@@ -201976,30 +201990,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
201976
201990
|
};
|
201977
201991
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
201978
201992
|
exports.normalizePath = exports.readConfigFile = exports.EdgeFunction = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.streamToBuffer = exports.getPlatformEnv = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.getEnvForPackageManager = exports.runCustomInstallCommand = 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.NodejsLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
201979
|
-
const file_blob_1 = __importDefault(
|
201993
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_881387__(2397));
|
201980
201994
|
exports.FileBlob = file_blob_1.default;
|
201981
|
-
const file_fs_ref_1 = __importDefault(
|
201995
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_881387__(9331));
|
201982
201996
|
exports.FileFsRef = file_fs_ref_1.default;
|
201983
|
-
const file_ref_1 = __importDefault(
|
201997
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_881387__(5187));
|
201984
201998
|
exports.FileRef = file_ref_1.default;
|
201985
|
-
const lambda_1 =
|
201999
|
+
const lambda_1 = __nested_webpack_require_881387__(6721);
|
201986
202000
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
201987
202001
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
201988
202002
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
201989
|
-
const nodejs_lambda_1 =
|
202003
|
+
const nodejs_lambda_1 = __nested_webpack_require_881387__(7049);
|
201990
202004
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
201991
|
-
const prerender_1 =
|
202005
|
+
const prerender_1 = __nested_webpack_require_881387__(2850);
|
201992
202006
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
201993
|
-
const download_1 = __importStar(
|
202007
|
+
const download_1 = __importStar(__nested_webpack_require_881387__(1611));
|
201994
202008
|
exports.download = download_1.default;
|
201995
202009
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
201996
|
-
const get_writable_directory_1 = __importDefault(
|
202010
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_881387__(3838));
|
201997
202011
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
201998
|
-
const glob_1 = __importDefault(
|
202012
|
+
const glob_1 = __importDefault(__nested_webpack_require_881387__(4240));
|
201999
202013
|
exports.glob = glob_1.default;
|
202000
|
-
const rename_1 = __importDefault(
|
202014
|
+
const rename_1 = __importDefault(__nested_webpack_require_881387__(6718));
|
202001
202015
|
exports.rename = rename_1.default;
|
202002
|
-
const run_user_scripts_1 =
|
202016
|
+
const run_user_scripts_1 = __nested_webpack_require_881387__(1442);
|
202003
202017
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
202004
202018
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
202005
202019
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -202018,33 +202032,33 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
202018
202032
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
202019
202033
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
202020
202034
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
202021
|
-
const node_version_1 =
|
202035
|
+
const node_version_1 = __nested_webpack_require_881387__(7903);
|
202022
202036
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
202023
202037
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
202024
|
-
const stream_to_buffer_1 = __importDefault(
|
202038
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_881387__(2560));
|
202025
202039
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
202026
|
-
const debug_1 = __importDefault(
|
202040
|
+
const debug_1 = __importDefault(__nested_webpack_require_881387__(1868));
|
202027
202041
|
exports.debug = debug_1.default;
|
202028
|
-
const get_ignore_filter_1 = __importDefault(
|
202042
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_881387__(1148));
|
202029
202043
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
202030
|
-
const get_platform_env_1 =
|
202044
|
+
const get_platform_env_1 = __nested_webpack_require_881387__(4678);
|
202031
202045
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
202032
|
-
var edge_function_1 =
|
202046
|
+
var edge_function_1 = __nested_webpack_require_881387__(8038);
|
202033
202047
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
202034
|
-
var read_config_file_1 =
|
202048
|
+
var read_config_file_1 = __nested_webpack_require_881387__(7792);
|
202035
202049
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
202036
|
-
var normalize_path_1 =
|
202050
|
+
var normalize_path_1 = __nested_webpack_require_881387__(6261);
|
202037
202051
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
202038
|
-
__exportStar(
|
202039
|
-
__exportStar(
|
202040
|
-
__exportStar(
|
202041
|
-
__exportStar(
|
202052
|
+
__exportStar(__nested_webpack_require_881387__(2564), exports);
|
202053
|
+
__exportStar(__nested_webpack_require_881387__(2416), exports);
|
202054
|
+
__exportStar(__nested_webpack_require_881387__(5748), exports);
|
202055
|
+
__exportStar(__nested_webpack_require_881387__(3983), exports);
|
202042
202056
|
|
202043
202057
|
|
202044
202058
|
/***/ }),
|
202045
202059
|
|
202046
202060
|
/***/ 6721:
|
202047
|
-
/***/ (function(__unused_webpack_module, exports,
|
202061
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_889632__) {
|
202048
202062
|
|
202049
202063
|
"use strict";
|
202050
202064
|
|
@@ -202053,13 +202067,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
202053
202067
|
};
|
202054
202068
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202055
202069
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
202056
|
-
const assert_1 = __importDefault(
|
202057
|
-
const async_sema_1 = __importDefault(
|
202058
|
-
const yazl_1 =
|
202059
|
-
const minimatch_1 = __importDefault(
|
202060
|
-
const fs_extra_1 =
|
202061
|
-
const download_1 =
|
202062
|
-
const stream_to_buffer_1 = __importDefault(
|
202070
|
+
const assert_1 = __importDefault(__nested_webpack_require_889632__(2357));
|
202071
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_889632__(5758));
|
202072
|
+
const yazl_1 = __nested_webpack_require_889632__(1223);
|
202073
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_889632__(9566));
|
202074
|
+
const fs_extra_1 = __nested_webpack_require_889632__(5392);
|
202075
|
+
const download_1 = __nested_webpack_require_889632__(1611);
|
202076
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_889632__(2560));
|
202063
202077
|
class Lambda {
|
202064
202078
|
constructor(opts) {
|
202065
202079
|
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, } = opts;
|
@@ -202181,13 +202195,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
202181
202195
|
/***/ }),
|
202182
202196
|
|
202183
202197
|
/***/ 7049:
|
202184
|
-
/***/ ((__unused_webpack_module, exports,
|
202198
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_895089__) => {
|
202185
202199
|
|
202186
202200
|
"use strict";
|
202187
202201
|
|
202188
202202
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202189
202203
|
exports.NodejsLambda = void 0;
|
202190
|
-
const lambda_1 =
|
202204
|
+
const lambda_1 = __nested_webpack_require_895089__(6721);
|
202191
202205
|
class NodejsLambda extends lambda_1.Lambda {
|
202192
202206
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
202193
202207
|
super(opts);
|
@@ -202324,13 +202338,13 @@ exports.buildsSchema = {
|
|
202324
202338
|
/***/ }),
|
202325
202339
|
|
202326
202340
|
/***/ 2564:
|
202327
|
-
/***/ ((__unused_webpack_module, exports,
|
202341
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_899434__) => {
|
202328
202342
|
|
202329
202343
|
"use strict";
|
202330
202344
|
|
202331
202345
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202332
202346
|
exports.shouldServe = void 0;
|
202333
|
-
const path_1 =
|
202347
|
+
const path_1 = __nested_webpack_require_899434__(5622);
|
202334
202348
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
202335
202349
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
202336
202350
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -202575,7 +202589,7 @@ module.exports = __webpack_require__(78761);
|
|
202575
202589
|
/******/ var __webpack_module_cache__ = {};
|
202576
202590
|
/******/
|
202577
202591
|
/******/ // The require function
|
202578
|
-
/******/ function
|
202592
|
+
/******/ function __nested_webpack_require_1276799__(moduleId) {
|
202579
202593
|
/******/ // Check if module is in cache
|
202580
202594
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
202581
202595
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -202590,7 +202604,7 @@ module.exports = __webpack_require__(78761);
|
|
202590
202604
|
/******/ // Execute the module function
|
202591
202605
|
/******/ var threw = true;
|
202592
202606
|
/******/ try {
|
202593
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
202607
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1276799__);
|
202594
202608
|
/******/ threw = false;
|
202595
202609
|
/******/ } finally {
|
202596
202610
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -202603,11 +202617,11 @@ module.exports = __webpack_require__(78761);
|
|
202603
202617
|
/************************************************************************/
|
202604
202618
|
/******/ /* webpack/runtime/compat */
|
202605
202619
|
/******/
|
202606
|
-
/******/
|
202620
|
+
/******/ __nested_webpack_require_1276799__.ab = __dirname + "/";/************************************************************************/
|
202607
202621
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
202608
202622
|
/******/ // startup
|
202609
202623
|
/******/ // Load entry module and return exports
|
202610
|
-
/******/ return
|
202624
|
+
/******/ return __nested_webpack_require_1276799__(2855);
|
202611
202625
|
/******/ })()
|
202612
202626
|
;
|
202613
202627
|
|
@@ -227212,7 +227226,7 @@ exports.detectOutputDirectory = detectOutputDirectory;
|
|
227212
227226
|
async function detectBuilders(files, pkg, options = {}) {
|
227213
227227
|
const errors = [];
|
227214
227228
|
const warnings = [];
|
227215
|
-
|
227229
|
+
let apiBuilders = [];
|
227216
227230
|
let frontendBuilder = null;
|
227217
227231
|
const functionError = validateFunctions(options);
|
227218
227232
|
if (functionError) {
|
@@ -227367,6 +227381,20 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
227367
227381
|
limitedRoutes: null,
|
227368
227382
|
};
|
227369
227383
|
}
|
227384
|
+
// Exclude the middleware builder for Next.js apps since @vercel/next
|
227385
|
+
// will build middlewares.
|
227386
|
+
//
|
227387
|
+
// While maybeGetApiBuilder() excludes the middleware builder, however,
|
227388
|
+
// we need to check if it's a Next.js app here again for the case where
|
227389
|
+
// `projectSettings.framework == null`.
|
227390
|
+
if (framework === null &&
|
227391
|
+
frontendBuilder?.use === '@vercel/next' &&
|
227392
|
+
apiBuilders.length > 0) {
|
227393
|
+
apiBuilders = apiBuilders.filter(builder => {
|
227394
|
+
const isMiddlewareBuilder = builder.use === '@vercel/node' && builder.config?.middleware;
|
227395
|
+
return !isMiddlewareBuilder;
|
227396
|
+
});
|
227397
|
+
}
|
227370
227398
|
const builders = [];
|
227371
227399
|
if (apiBuilders.length) {
|
227372
227400
|
builders.push(...apiBuilders);
|
@@ -261100,7 +261128,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
261100
261128
|
/***/ ((module) => {
|
261101
261129
|
|
261102
261130
|
"use strict";
|
261103
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.
|
261131
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.3.4\",\"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/\",\"prepublishOnly\":\"yarn build\",\"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.0.8\",\"@vercel/go\":\"2.0.12\",\"@vercel/hydrogen\":\"0.0.9\",\"@vercel/next\":\"3.1.12\",\"@vercel/node\":\"2.5.3\",\"@vercel/python\":\"3.1.4\",\"@vercel/redwood\":\"1.0.13\",\"@vercel/remix\":\"1.0.14\",\"@vercel/ruby\":\"1.3.20\",\"@vercel/static-build\":\"1.0.13\",\"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.7\",\"@vercel/frameworks\":\"1.1.1\",\"@vercel/fs-detectors\":\"2.0.3\",\"@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\"]},\"gitHead\":\"543ffdfe5ccfb59c9c455fc50df3bb8ed1eaf567\"}");
|
261104
261132
|
|
261105
261133
|
/***/ }),
|
261106
261134
|
|
@@ -261116,7 +261144,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
261116
261144
|
/***/ ((module) => {
|
261117
261145
|
|
261118
261146
|
"use strict";
|
261119
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.
|
261147
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.1.7\",\"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.0.8\",\"@vercel/routing-utils\":\"2.0.0\",\"@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\"},\"gitHead\":\"543ffdfe5ccfb59c9c455fc50df3bb8ed1eaf567\"}");
|
261120
261148
|
|
261121
261149
|
/***/ }),
|
261122
261150
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "27.3.
|
3
|
+
"version": "27.3.4",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -42,16 +42,16 @@
|
|
42
42
|
"node": ">= 14"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@vercel/build-utils": "5.0.
|
46
|
-
"@vercel/go": "2.0.
|
47
|
-
"@vercel/hydrogen": "0.0.
|
48
|
-
"@vercel/next": "3.1.
|
49
|
-
"@vercel/node": "2.5.
|
50
|
-
"@vercel/python": "3.1.
|
51
|
-
"@vercel/redwood": "1.0.
|
52
|
-
"@vercel/remix": "1.0.
|
53
|
-
"@vercel/ruby": "1.3.
|
54
|
-
"@vercel/static-build": "1.0.
|
45
|
+
"@vercel/build-utils": "5.0.8",
|
46
|
+
"@vercel/go": "2.0.12",
|
47
|
+
"@vercel/hydrogen": "0.0.9",
|
48
|
+
"@vercel/next": "3.1.12",
|
49
|
+
"@vercel/node": "2.5.3",
|
50
|
+
"@vercel/python": "3.1.4",
|
51
|
+
"@vercel/redwood": "1.0.13",
|
52
|
+
"@vercel/remix": "1.0.14",
|
53
|
+
"@vercel/ruby": "1.3.20",
|
54
|
+
"@vercel/static-build": "1.0.13",
|
55
55
|
"update-notifier": "5.1.0"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
@@ -97,9 +97,9 @@
|
|
97
97
|
"@types/which": "1.3.2",
|
98
98
|
"@types/write-json-file": "2.2.1",
|
99
99
|
"@types/yauzl-promise": "2.1.0",
|
100
|
-
"@vercel/client": "12.1.
|
100
|
+
"@vercel/client": "12.1.7",
|
101
101
|
"@vercel/frameworks": "1.1.1",
|
102
|
-
"@vercel/fs-detectors": "2.0.
|
102
|
+
"@vercel/fs-detectors": "2.0.3",
|
103
103
|
"@vercel/fun": "1.0.4",
|
104
104
|
"@vercel/ncc": "0.24.0",
|
105
105
|
"@zeit/source-map-support": "0.6.2",
|
@@ -197,5 +197,5 @@
|
|
197
197
|
"<rootDir>/test/**/*.test.ts"
|
198
198
|
]
|
199
199
|
},
|
200
|
-
"gitHead": "
|
200
|
+
"gitHead": "543ffdfe5ccfb59c9c455fc50df3bb8ed1eaf567"
|
201
201
|
}
|