vercel 28.4.2 → 28.4.3
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 +290 -274
- package/package.json +13 -13
package/dist/index.js
CHANGED
@@ -189488,7 +189488,7 @@ function getPrettyError(obj) {
|
|
189488
189488
|
message += `${ajvMessage}.`;
|
189489
189489
|
}
|
189490
189490
|
return new NowBuildError({
|
189491
|
-
code: '
|
189491
|
+
code: 'INVALID_VERCEL_CONFIG',
|
189492
189492
|
message: message,
|
189493
189493
|
link: prop ? `${docsUrl}#project/${prop.toLowerCase()}` : docsUrl,
|
189494
189494
|
action: 'View Documentation',
|
@@ -189496,7 +189496,7 @@ function getPrettyError(obj) {
|
|
189496
189496
|
}
|
189497
189497
|
catch (e) {
|
189498
189498
|
return new NowBuildError({
|
189499
|
-
code: '
|
189499
|
+
code: 'INVALID_VERCEL_CONFIG',
|
189500
189500
|
message: `Failed to validate configuration.`,
|
189501
189501
|
link: docsUrl,
|
189502
189502
|
action: 'View Documentation',
|
@@ -189544,7 +189544,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
189544
189544
|
/***/ }),
|
189545
189545
|
|
189546
189546
|
/***/ 2397:
|
189547
|
-
/***/ (function(__unused_webpack_module, exports,
|
189547
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_839010__) {
|
189548
189548
|
|
189549
189549
|
"use strict";
|
189550
189550
|
|
@@ -189552,8 +189552,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
189552
189552
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
189553
189553
|
};
|
189554
189554
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
189555
|
-
const assert_1 = __importDefault(
|
189556
|
-
const into_stream_1 = __importDefault(
|
189555
|
+
const assert_1 = __importDefault(__nested_webpack_require_839010__(2357));
|
189556
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_839010__(6130));
|
189557
189557
|
class FileBlob {
|
189558
189558
|
constructor({ mode = 0o100644, contentType, data }) {
|
189559
189559
|
assert_1.default(typeof mode === 'number');
|
@@ -189588,7 +189588,7 @@ exports.default = FileBlob;
|
|
189588
189588
|
/***/ }),
|
189589
189589
|
|
189590
189590
|
/***/ 9331:
|
189591
|
-
/***/ (function(__unused_webpack_module, exports,
|
189591
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_840528__) {
|
189592
189592
|
|
189593
189593
|
"use strict";
|
189594
189594
|
|
@@ -189596,11 +189596,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
189596
189596
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
189597
189597
|
};
|
189598
189598
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
189599
|
-
const assert_1 = __importDefault(
|
189600
|
-
const fs_extra_1 = __importDefault(
|
189601
|
-
const multistream_1 = __importDefault(
|
189602
|
-
const path_1 = __importDefault(
|
189603
|
-
const async_sema_1 = __importDefault(
|
189599
|
+
const assert_1 = __importDefault(__nested_webpack_require_840528__(2357));
|
189600
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_840528__(5392));
|
189601
|
+
const multistream_1 = __importDefault(__nested_webpack_require_840528__(8179));
|
189602
|
+
const path_1 = __importDefault(__nested_webpack_require_840528__(5622));
|
189603
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_840528__(5758));
|
189604
189604
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
189605
189605
|
class FileFsRef {
|
189606
189606
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -189666,7 +189666,7 @@ exports.default = FileFsRef;
|
|
189666
189666
|
/***/ }),
|
189667
189667
|
|
189668
189668
|
/***/ 5187:
|
189669
|
-
/***/ (function(__unused_webpack_module, exports,
|
189669
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_843332__) {
|
189670
189670
|
|
189671
189671
|
"use strict";
|
189672
189672
|
|
@@ -189674,11 +189674,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
189674
189674
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
189675
189675
|
};
|
189676
189676
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
189677
|
-
const assert_1 = __importDefault(
|
189678
|
-
const node_fetch_1 = __importDefault(
|
189679
|
-
const multistream_1 = __importDefault(
|
189680
|
-
const async_retry_1 = __importDefault(
|
189681
|
-
const async_sema_1 = __importDefault(
|
189677
|
+
const assert_1 = __importDefault(__nested_webpack_require_843332__(2357));
|
189678
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_843332__(2197));
|
189679
|
+
const multistream_1 = __importDefault(__nested_webpack_require_843332__(8179));
|
189680
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_843332__(3691));
|
189681
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_843332__(5758));
|
189682
189682
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
189683
189683
|
class BailableError extends Error {
|
189684
189684
|
constructor(...args) {
|
@@ -189759,7 +189759,7 @@ exports.default = FileRef;
|
|
189759
189759
|
/***/ }),
|
189760
189760
|
|
189761
189761
|
/***/ 1611:
|
189762
|
-
/***/ (function(__unused_webpack_module, exports,
|
189762
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_846733__) {
|
189763
189763
|
|
189764
189764
|
"use strict";
|
189765
189765
|
|
@@ -189768,11 +189768,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
189768
189768
|
};
|
189769
189769
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
189770
189770
|
exports.downloadFile = exports.isSymbolicLink = void 0;
|
189771
|
-
const path_1 = __importDefault(
|
189772
|
-
const debug_1 = __importDefault(
|
189773
|
-
const file_fs_ref_1 = __importDefault(
|
189774
|
-
const fs_extra_1 =
|
189775
|
-
const stream_to_buffer_1 = __importDefault(
|
189771
|
+
const path_1 = __importDefault(__nested_webpack_require_846733__(5622));
|
189772
|
+
const debug_1 = __importDefault(__nested_webpack_require_846733__(1868));
|
189773
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_846733__(9331));
|
189774
|
+
const fs_extra_1 = __nested_webpack_require_846733__(5392);
|
189775
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_846733__(2560));
|
189776
189776
|
const S_IFMT = 61440; /* 0170000 type of file */
|
189777
189777
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
189778
189778
|
function isSymbolicLink(mode) {
|
@@ -189863,14 +189863,14 @@ exports.default = download;
|
|
189863
189863
|
/***/ }),
|
189864
189864
|
|
189865
189865
|
/***/ 3838:
|
189866
|
-
/***/ ((__unused_webpack_module, exports,
|
189866
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_851168__) => {
|
189867
189867
|
|
189868
189868
|
"use strict";
|
189869
189869
|
|
189870
189870
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
189871
|
-
const path_1 =
|
189872
|
-
const os_1 =
|
189873
|
-
const fs_extra_1 =
|
189871
|
+
const path_1 = __nested_webpack_require_851168__(5622);
|
189872
|
+
const os_1 = __nested_webpack_require_851168__(2087);
|
189873
|
+
const fs_extra_1 = __nested_webpack_require_851168__(5392);
|
189874
189874
|
async function getWritableDirectory() {
|
189875
189875
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
189876
189876
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -189883,7 +189883,7 @@ exports.default = getWritableDirectory;
|
|
189883
189883
|
/***/ }),
|
189884
189884
|
|
189885
189885
|
/***/ 4240:
|
189886
|
-
/***/ (function(__unused_webpack_module, exports,
|
189886
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_851748__) {
|
189887
189887
|
|
189888
189888
|
"use strict";
|
189889
189889
|
|
@@ -189891,13 +189891,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
189891
189891
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
189892
189892
|
};
|
189893
189893
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
189894
|
-
const path_1 = __importDefault(
|
189895
|
-
const assert_1 = __importDefault(
|
189896
|
-
const glob_1 = __importDefault(
|
189897
|
-
const util_1 =
|
189898
|
-
const fs_extra_1 =
|
189899
|
-
const normalize_path_1 =
|
189900
|
-
const file_fs_ref_1 = __importDefault(
|
189894
|
+
const path_1 = __importDefault(__nested_webpack_require_851748__(5622));
|
189895
|
+
const assert_1 = __importDefault(__nested_webpack_require_851748__(2357));
|
189896
|
+
const glob_1 = __importDefault(__nested_webpack_require_851748__(1104));
|
189897
|
+
const util_1 = __nested_webpack_require_851748__(1669);
|
189898
|
+
const fs_extra_1 = __nested_webpack_require_851748__(5392);
|
189899
|
+
const normalize_path_1 = __nested_webpack_require_851748__(6261);
|
189900
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_851748__(9331));
|
189901
189901
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
189902
189902
|
async function glob(pattern, opts, mountpoint) {
|
189903
189903
|
let options;
|
@@ -189944,7 +189944,7 @@ exports.default = glob;
|
|
189944
189944
|
/***/ }),
|
189945
189945
|
|
189946
189946
|
/***/ 7903:
|
189947
|
-
/***/ (function(__unused_webpack_module, exports,
|
189947
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_853969__) {
|
189948
189948
|
|
189949
189949
|
"use strict";
|
189950
189950
|
|
@@ -189953,9 +189953,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
189953
189953
|
};
|
189954
189954
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
189955
189955
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
189956
|
-
const semver_1 =
|
189957
|
-
const errors_1 =
|
189958
|
-
const debug_1 = __importDefault(
|
189956
|
+
const semver_1 = __nested_webpack_require_853969__(2879);
|
189957
|
+
const errors_1 = __nested_webpack_require_853969__(3983);
|
189958
|
+
const debug_1 = __importDefault(__nested_webpack_require_853969__(1868));
|
189959
189959
|
const allOptions = [
|
189960
189960
|
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
189961
189961
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
@@ -189963,7 +189963,7 @@ const allOptions = [
|
|
189963
189963
|
major: 12,
|
189964
189964
|
range: '12.x',
|
189965
189965
|
runtime: 'nodejs12.x',
|
189966
|
-
discontinueDate: new Date('2022-10-
|
189966
|
+
discontinueDate: new Date('2022-10-03'),
|
189967
189967
|
},
|
189968
189968
|
{
|
189969
189969
|
major: 10,
|
@@ -190054,7 +190054,7 @@ exports.normalizePath = normalizePath;
|
|
190054
190054
|
/***/ }),
|
190055
190055
|
|
190056
190056
|
/***/ 7792:
|
190057
|
-
/***/ (function(__unused_webpack_module, exports,
|
190057
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_857823__) {
|
190058
190058
|
|
190059
190059
|
"use strict";
|
190060
190060
|
|
@@ -190063,9 +190063,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
190063
190063
|
};
|
190064
190064
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
190065
190065
|
exports.readConfigFile = void 0;
|
190066
|
-
const js_yaml_1 = __importDefault(
|
190067
|
-
const toml_1 = __importDefault(
|
190068
|
-
const fs_extra_1 =
|
190066
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_857823__(6540));
|
190067
|
+
const toml_1 = __importDefault(__nested_webpack_require_857823__(9434));
|
190068
|
+
const fs_extra_1 = __nested_webpack_require_857823__(5392);
|
190069
190069
|
async function readFileOrNull(file) {
|
190070
190070
|
try {
|
190071
190071
|
const data = await fs_extra_1.readFile(file);
|
@@ -190120,7 +190120,7 @@ exports.default = rename;
|
|
190120
190120
|
/***/ }),
|
190121
190121
|
|
190122
190122
|
/***/ 1442:
|
190123
|
-
/***/ (function(__unused_webpack_module, exports,
|
190123
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_859616__) {
|
190124
190124
|
|
190125
190125
|
"use strict";
|
190126
190126
|
|
@@ -190129,18 +190129,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
190129
190129
|
};
|
190130
190130
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
190131
190131
|
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;
|
190132
|
-
const assert_1 = __importDefault(
|
190133
|
-
const fs_extra_1 = __importDefault(
|
190134
|
-
const path_1 = __importDefault(
|
190135
|
-
const async_sema_1 = __importDefault(
|
190136
|
-
const cross_spawn_1 = __importDefault(
|
190137
|
-
const semver_1 =
|
190138
|
-
const util_1 =
|
190139
|
-
const debug_1 = __importDefault(
|
190140
|
-
const errors_1 =
|
190141
|
-
const node_version_1 =
|
190142
|
-
const read_config_file_1 =
|
190143
|
-
const clone_env_1 =
|
190132
|
+
const assert_1 = __importDefault(__nested_webpack_require_859616__(2357));
|
190133
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_859616__(5392));
|
190134
|
+
const path_1 = __importDefault(__nested_webpack_require_859616__(5622));
|
190135
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_859616__(5758));
|
190136
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_859616__(7618));
|
190137
|
+
const semver_1 = __nested_webpack_require_859616__(2879);
|
190138
|
+
const util_1 = __nested_webpack_require_859616__(1669);
|
190139
|
+
const debug_1 = __importDefault(__nested_webpack_require_859616__(1868));
|
190140
|
+
const errors_1 = __nested_webpack_require_859616__(3983);
|
190141
|
+
const node_version_1 = __nested_webpack_require_859616__(7903);
|
190142
|
+
const read_config_file_1 = __nested_webpack_require_859616__(7792);
|
190143
|
+
const clone_env_1 = __nested_webpack_require_859616__(6548);
|
190144
190144
|
// Only allow one `runNpmInstall()` invocation to run concurrently
|
190145
190145
|
const runNpmInstallSema = new async_sema_1.default(1);
|
190146
190146
|
function spawnAsync(command, args, opts = {}) {
|
@@ -190612,7 +190612,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
190612
190612
|
/***/ }),
|
190613
190613
|
|
190614
190614
|
/***/ 2560:
|
190615
|
-
/***/ (function(__unused_webpack_module, exports,
|
190615
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_879972__) {
|
190616
190616
|
|
190617
190617
|
"use strict";
|
190618
190618
|
|
@@ -190620,7 +190620,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
190620
190620
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
190621
190621
|
};
|
190622
190622
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
190623
|
-
const end_of_stream_1 = __importDefault(
|
190623
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_879972__(687));
|
190624
190624
|
function streamToBuffer(stream) {
|
190625
190625
|
return new Promise((resolve, reject) => {
|
190626
190626
|
const buffers = [];
|
@@ -190649,7 +190649,7 @@ exports.default = streamToBuffer;
|
|
190649
190649
|
/***/ }),
|
190650
190650
|
|
190651
190651
|
/***/ 1148:
|
190652
|
-
/***/ (function(__unused_webpack_module, exports,
|
190652
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_881040__) {
|
190653
190653
|
|
190654
190654
|
"use strict";
|
190655
190655
|
|
@@ -190657,9 +190657,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
190657
190657
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
190658
190658
|
};
|
190659
190659
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
190660
|
-
const path_1 = __importDefault(
|
190661
|
-
const fs_extra_1 = __importDefault(
|
190662
|
-
const ignore_1 = __importDefault(
|
190660
|
+
const path_1 = __importDefault(__nested_webpack_require_881040__(5622));
|
190661
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_881040__(5392));
|
190662
|
+
const ignore_1 = __importDefault(__nested_webpack_require_881040__(3556));
|
190663
190663
|
function isCodedError(error) {
|
190664
190664
|
return (error !== null &&
|
190665
190665
|
error !== undefined &&
|
@@ -190716,13 +190716,13 @@ exports.default = default_1;
|
|
190716
190716
|
/***/ }),
|
190717
190717
|
|
190718
190718
|
/***/ 4678:
|
190719
|
-
/***/ ((__unused_webpack_module, exports,
|
190719
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_883414__) => {
|
190720
190720
|
|
190721
190721
|
"use strict";
|
190722
190722
|
|
190723
190723
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
190724
190724
|
exports.getPlatformEnv = void 0;
|
190725
|
-
const errors_1 =
|
190725
|
+
const errors_1 = __nested_webpack_require_883414__(3983);
|
190726
190726
|
/**
|
190727
190727
|
* Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
|
190728
190728
|
* Throws an error if *both* env vars are defined.
|
@@ -190786,7 +190786,7 @@ exports.getPrefixedEnvVars = getPrefixedEnvVars;
|
|
190786
190786
|
/***/ }),
|
190787
190787
|
|
190788
190788
|
/***/ 2855:
|
190789
|
-
/***/ (function(__unused_webpack_module, exports,
|
190789
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_885673__) {
|
190790
190790
|
|
190791
190791
|
"use strict";
|
190792
190792
|
|
@@ -190817,31 +190817,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
190817
190817
|
};
|
190818
190818
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
190819
190819
|
exports.normalizePath = exports.readConfigFile = exports.EdgeFunction = exports.cloneEnv = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.streamToBuffer = exports.getPrefixedEnvVars = 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.downloadFile = exports.download = exports.Prerender = exports.createLambda = exports.NodejsLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
190820
|
-
const file_blob_1 = __importDefault(
|
190820
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_885673__(2397));
|
190821
190821
|
exports.FileBlob = file_blob_1.default;
|
190822
|
-
const file_fs_ref_1 = __importDefault(
|
190822
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_885673__(9331));
|
190823
190823
|
exports.FileFsRef = file_fs_ref_1.default;
|
190824
|
-
const file_ref_1 = __importDefault(
|
190824
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_885673__(5187));
|
190825
190825
|
exports.FileRef = file_ref_1.default;
|
190826
|
-
const lambda_1 =
|
190826
|
+
const lambda_1 = __nested_webpack_require_885673__(6721);
|
190827
190827
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
190828
190828
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
190829
190829
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
190830
|
-
const nodejs_lambda_1 =
|
190830
|
+
const nodejs_lambda_1 = __nested_webpack_require_885673__(7049);
|
190831
190831
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
190832
|
-
const prerender_1 =
|
190832
|
+
const prerender_1 = __nested_webpack_require_885673__(2850);
|
190833
190833
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
190834
|
-
const download_1 = __importStar(
|
190834
|
+
const download_1 = __importStar(__nested_webpack_require_885673__(1611));
|
190835
190835
|
exports.download = download_1.default;
|
190836
190836
|
Object.defineProperty(exports, "downloadFile", ({ enumerable: true, get: function () { return download_1.downloadFile; } }));
|
190837
190837
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
190838
|
-
const get_writable_directory_1 = __importDefault(
|
190838
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_885673__(3838));
|
190839
190839
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
190840
|
-
const glob_1 = __importDefault(
|
190840
|
+
const glob_1 = __importDefault(__nested_webpack_require_885673__(4240));
|
190841
190841
|
exports.glob = glob_1.default;
|
190842
|
-
const rename_1 = __importDefault(
|
190842
|
+
const rename_1 = __importDefault(__nested_webpack_require_885673__(6718));
|
190843
190843
|
exports.rename = rename_1.default;
|
190844
|
-
const run_user_scripts_1 =
|
190844
|
+
const run_user_scripts_1 = __nested_webpack_require_885673__(1442);
|
190845
190845
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
190846
190846
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
190847
190847
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -190860,37 +190860,37 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
190860
190860
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
190861
190861
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
190862
190862
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
190863
|
-
const node_version_1 =
|
190863
|
+
const node_version_1 = __nested_webpack_require_885673__(7903);
|
190864
190864
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
190865
190865
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
190866
|
-
const stream_to_buffer_1 = __importDefault(
|
190866
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_885673__(2560));
|
190867
190867
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
190868
|
-
const debug_1 = __importDefault(
|
190868
|
+
const debug_1 = __importDefault(__nested_webpack_require_885673__(1868));
|
190869
190869
|
exports.debug = debug_1.default;
|
190870
|
-
const get_ignore_filter_1 = __importDefault(
|
190870
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_885673__(1148));
|
190871
190871
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
190872
|
-
const get_platform_env_1 =
|
190872
|
+
const get_platform_env_1 = __nested_webpack_require_885673__(4678);
|
190873
190873
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
190874
|
-
const get_prefixed_env_vars_1 =
|
190874
|
+
const get_prefixed_env_vars_1 = __nested_webpack_require_885673__(6838);
|
190875
190875
|
Object.defineProperty(exports, "getPrefixedEnvVars", ({ enumerable: true, get: function () { return get_prefixed_env_vars_1.getPrefixedEnvVars; } }));
|
190876
|
-
const clone_env_1 =
|
190876
|
+
const clone_env_1 = __nested_webpack_require_885673__(6548);
|
190877
190877
|
Object.defineProperty(exports, "cloneEnv", ({ enumerable: true, get: function () { return clone_env_1.cloneEnv; } }));
|
190878
|
-
var edge_function_1 =
|
190878
|
+
var edge_function_1 = __nested_webpack_require_885673__(8038);
|
190879
190879
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
190880
|
-
var read_config_file_1 =
|
190880
|
+
var read_config_file_1 = __nested_webpack_require_885673__(7792);
|
190881
190881
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
190882
|
-
var normalize_path_1 =
|
190882
|
+
var normalize_path_1 = __nested_webpack_require_885673__(6261);
|
190883
190883
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
190884
|
-
__exportStar(
|
190885
|
-
__exportStar(
|
190886
|
-
__exportStar(
|
190887
|
-
__exportStar(
|
190884
|
+
__exportStar(__nested_webpack_require_885673__(2564), exports);
|
190885
|
+
__exportStar(__nested_webpack_require_885673__(2416), exports);
|
190886
|
+
__exportStar(__nested_webpack_require_885673__(5748), exports);
|
190887
|
+
__exportStar(__nested_webpack_require_885673__(3983), exports);
|
190888
190888
|
|
190889
190889
|
|
190890
190890
|
/***/ }),
|
190891
190891
|
|
190892
190892
|
/***/ 6721:
|
190893
|
-
/***/ (function(__unused_webpack_module, exports,
|
190893
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_894491__) {
|
190894
190894
|
|
190895
190895
|
"use strict";
|
190896
190896
|
|
@@ -190899,13 +190899,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
190899
190899
|
};
|
190900
190900
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
190901
190901
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
190902
|
-
const assert_1 = __importDefault(
|
190903
|
-
const async_sema_1 = __importDefault(
|
190904
|
-
const yazl_1 =
|
190905
|
-
const minimatch_1 = __importDefault(
|
190906
|
-
const fs_extra_1 =
|
190907
|
-
const download_1 =
|
190908
|
-
const stream_to_buffer_1 = __importDefault(
|
190902
|
+
const assert_1 = __importDefault(__nested_webpack_require_894491__(2357));
|
190903
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_894491__(5758));
|
190904
|
+
const yazl_1 = __nested_webpack_require_894491__(1223);
|
190905
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_894491__(9566));
|
190906
|
+
const fs_extra_1 = __nested_webpack_require_894491__(5392);
|
190907
|
+
const download_1 = __nested_webpack_require_894491__(1611);
|
190908
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_894491__(2560));
|
190909
190909
|
class Lambda {
|
190910
190910
|
constructor(opts) {
|
190911
190911
|
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, } = opts;
|
@@ -191031,13 +191031,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
191031
191031
|
/***/ }),
|
191032
191032
|
|
191033
191033
|
/***/ 7049:
|
191034
|
-
/***/ ((__unused_webpack_module, exports,
|
191034
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_900174__) => {
|
191035
191035
|
|
191036
191036
|
"use strict";
|
191037
191037
|
|
191038
191038
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
191039
191039
|
exports.NodejsLambda = void 0;
|
191040
|
-
const lambda_1 =
|
191040
|
+
const lambda_1 = __nested_webpack_require_900174__(6721);
|
191041
191041
|
class NodejsLambda extends lambda_1.Lambda {
|
191042
191042
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
191043
191043
|
super(opts);
|
@@ -191174,13 +191174,13 @@ exports.buildsSchema = {
|
|
191174
191174
|
/***/ }),
|
191175
191175
|
|
191176
191176
|
/***/ 2564:
|
191177
|
-
/***/ ((__unused_webpack_module, exports,
|
191177
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_904519__) => {
|
191178
191178
|
|
191179
191179
|
"use strict";
|
191180
191180
|
|
191181
191181
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
191182
191182
|
exports.shouldServe = void 0;
|
191183
|
-
const path_1 =
|
191183
|
+
const path_1 = __nested_webpack_require_904519__(5622);
|
191184
191184
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
191185
191185
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
191186
191186
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -191425,7 +191425,7 @@ module.exports = __webpack_require__(78761);
|
|
191425
191425
|
/******/ var __webpack_module_cache__ = {};
|
191426
191426
|
/******/
|
191427
191427
|
/******/ // The require function
|
191428
|
-
/******/ function
|
191428
|
+
/******/ function __nested_webpack_require_1281884__(moduleId) {
|
191429
191429
|
/******/ // Check if module is in cache
|
191430
191430
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
191431
191431
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -191440,7 +191440,7 @@ module.exports = __webpack_require__(78761);
|
|
191440
191440
|
/******/ // Execute the module function
|
191441
191441
|
/******/ var threw = true;
|
191442
191442
|
/******/ try {
|
191443
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
191443
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1281884__);
|
191444
191444
|
/******/ threw = false;
|
191445
191445
|
/******/ } finally {
|
191446
191446
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -191453,11 +191453,11 @@ module.exports = __webpack_require__(78761);
|
|
191453
191453
|
/************************************************************************/
|
191454
191454
|
/******/ /* webpack/runtime/compat */
|
191455
191455
|
/******/
|
191456
|
-
/******/
|
191456
|
+
/******/ __nested_webpack_require_1281884__.ab = __dirname + "/";/************************************************************************/
|
191457
191457
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
191458
191458
|
/******/ // startup
|
191459
191459
|
/******/ // Load entry module and return exports
|
191460
|
-
/******/ return
|
191460
|
+
/******/ return __nested_webpack_require_1281884__(2855);
|
191461
191461
|
/******/ })()
|
191462
191462
|
;
|
191463
191463
|
|
@@ -226785,7 +226785,6 @@ const open_1 = __importDefault(__webpack_require__(28884));
|
|
226785
226785
|
const boxen_1 = __importDefault(__webpack_require__(30396));
|
226786
226786
|
const execa_1 = __importDefault(__webpack_require__(94237));
|
226787
226787
|
const pluralize_1 = __importDefault(__webpack_require__(31974));
|
226788
|
-
const inquirer_1 = __importDefault(__webpack_require__(64016));
|
226789
226788
|
const path_1 = __webpack_require__(85622);
|
226790
226789
|
const chalk_1 = __importDefault(__webpack_require__(961));
|
226791
226790
|
const url_1 = __webpack_require__(78835);
|
@@ -226890,7 +226889,7 @@ async function main(client) {
|
|
226890
226889
|
const badDeployment = await getDeployment(client, bad).catch(err => err);
|
226891
226890
|
if (badDeployment) {
|
226892
226891
|
if (badDeployment instanceof Error) {
|
226893
|
-
badDeployment.message += ` "${bad}"`;
|
226892
|
+
badDeployment.message += ` when requesting bad deployment "${(0, normalize_url_1.normalizeURL)(bad)}"`;
|
226894
226893
|
output.prettyError(badDeployment);
|
226895
226894
|
return 1;
|
226896
226895
|
}
|
@@ -226904,7 +226903,7 @@ async function main(client) {
|
|
226904
226903
|
const goodDeployment = await getDeployment(client, good).catch(err => err);
|
226905
226904
|
if (goodDeployment) {
|
226906
226905
|
if (goodDeployment instanceof Error) {
|
226907
|
-
goodDeployment.message += ` "${good}"`;
|
226906
|
+
goodDeployment.message += ` when requesting good deployment "${(0, normalize_url_1.normalizeURL)(good)}"`;
|
226908
226907
|
output.prettyError(goodDeployment);
|
226909
226908
|
return 1;
|
226910
226909
|
}
|
@@ -226949,7 +226948,8 @@ async function main(client) {
|
|
226949
226948
|
// If we have the "good" deployment in this chunk, then we're done
|
226950
226949
|
for (let i = 0; i < newDeployments.length; i++) {
|
226951
226950
|
if (newDeployments[i].url === good) {
|
226952
|
-
|
226951
|
+
// grab all deployments up until the good one
|
226952
|
+
newDeployments = newDeployments.slice(0, i);
|
226953
226953
|
next = undefined;
|
226954
226954
|
break;
|
226955
226955
|
}
|
@@ -227021,7 +227021,7 @@ async function main(client) {
|
|
227021
227021
|
if (openEnabled) {
|
227022
227022
|
await (0, open_1.default)(testUrl);
|
227023
227023
|
}
|
227024
|
-
const answer = await
|
227024
|
+
const answer = await client.prompt({
|
227025
227025
|
type: 'expand',
|
227026
227026
|
name: 'action',
|
227027
227027
|
message: 'Select an action:',
|
@@ -227140,6 +227140,7 @@ const build_utils_1 = __webpack_require__(3131);
|
|
227140
227140
|
const fs_detectors_1 = __webpack_require__(20302);
|
227141
227141
|
const minimatch_1 = __importDefault(__webpack_require__(99566));
|
227142
227142
|
const routing_utils_1 = __webpack_require__(72948);
|
227143
|
+
const client_1 = __webpack_require__(20192);
|
227143
227144
|
const pull_1 = __importDefault(__webpack_require__(6277));
|
227144
227145
|
const get_files_1 = __webpack_require__(23174);
|
227145
227146
|
const get_args_1 = __importDefault(__webpack_require__(87612));
|
@@ -227158,6 +227159,7 @@ const import_builders_1 = __webpack_require__(57049);
|
|
227158
227159
|
const corepack_1 = __webpack_require__(51806);
|
227159
227160
|
const sort_builders_1 = __webpack_require__(40233);
|
227160
227161
|
const error_1 = __webpack_require__(54094);
|
227162
|
+
const validate_config_1 = __webpack_require__(14864);
|
227161
227163
|
const help = () => {
|
227162
227164
|
return console.log(`
|
227163
227165
|
${chalk_1.default.bold(`${cli.logo} ${cli.name} build`)}
|
@@ -227277,7 +227279,8 @@ async function main(client) {
|
|
227277
227279
|
// Some build processes use these env vars to platform detect Vercel
|
227278
227280
|
process.env.VERCEL = '1';
|
227279
227281
|
process.env.NOW_BUILDER = '1';
|
227280
|
-
|
227282
|
+
await doBuild(client, project, buildsJson, cwd, outputDir);
|
227283
|
+
return 0;
|
227281
227284
|
}
|
227282
227285
|
catch (err) {
|
227283
227286
|
output.prettyError(err);
|
@@ -227307,33 +227310,46 @@ exports.default = main;
|
|
227307
227310
|
async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
227308
227311
|
const { output } = client;
|
227309
227312
|
const workPath = (0, path_1.join)(cwd, project.settings.rootDirectory || '.');
|
227310
|
-
|
227311
|
-
const [pkg, vercelConfig] = await Promise.all([
|
227313
|
+
const [pkg, vercelConfig, nowConfig] = await Promise.all([
|
227312
227314
|
(0, read_json_file_1.default)((0, path_1.join)(workPath, 'package.json')),
|
227313
|
-
(0, read_json_file_1.default)((0, path_1.join)(workPath, 'vercel.json'))
|
227315
|
+
(0, read_json_file_1.default)((0, path_1.join)(workPath, 'vercel.json')),
|
227316
|
+
(0, read_json_file_1.default)((0, path_1.join)(workPath, 'now.json')),
|
227314
227317
|
]);
|
227315
227318
|
if (pkg instanceof errors_ts_1.CantParseJSONFile)
|
227316
227319
|
throw pkg;
|
227317
227320
|
if (vercelConfig instanceof errors_ts_1.CantParseJSONFile)
|
227318
227321
|
throw vercelConfig;
|
227322
|
+
if (nowConfig instanceof errors_ts_1.CantParseJSONFile)
|
227323
|
+
throw nowConfig;
|
227324
|
+
if (vercelConfig) {
|
227325
|
+
vercelConfig[client_1.fileNameSymbol] = 'vercel.json';
|
227326
|
+
}
|
227327
|
+
else if (nowConfig) {
|
227328
|
+
nowConfig[client_1.fileNameSymbol] = 'now.json';
|
227329
|
+
}
|
227330
|
+
const localConfig = vercelConfig || nowConfig || {};
|
227331
|
+
const validateError = (0, validate_config_1.validateConfig)(localConfig);
|
227332
|
+
if (validateError) {
|
227333
|
+
throw validateError;
|
227334
|
+
}
|
227319
227335
|
const projectSettings = {
|
227320
227336
|
...project.settings,
|
227321
|
-
...(0, project_settings_1.pickOverrides)(
|
227337
|
+
...(0, project_settings_1.pickOverrides)(localConfig),
|
227322
227338
|
};
|
227323
227339
|
// Get a list of source files
|
227324
227340
|
const files = (await (0, get_files_1.staticFiles)(workPath, client)).map(f => (0, build_utils_1.normalizePath)((0, path_1.relative)(workPath, f)));
|
227325
|
-
const routesResult = (0, routing_utils_1.getTransformedRoutes)(
|
227341
|
+
const routesResult = (0, routing_utils_1.getTransformedRoutes)(localConfig);
|
227326
227342
|
if (routesResult.error) {
|
227327
227343
|
throw routesResult.error;
|
227328
227344
|
}
|
227329
|
-
if (
|
227345
|
+
if (localConfig.builds && localConfig.functions) {
|
227330
227346
|
throw new build_utils_1.NowBuildError({
|
227331
227347
|
code: 'bad_request',
|
227332
227348
|
message: 'The `functions` property cannot be used in conjunction with the `builds` property. Please remove one of them.',
|
227333
227349
|
link: 'https://vercel.link/functions-and-builds',
|
227334
227350
|
});
|
227335
227351
|
}
|
227336
|
-
let builds =
|
227352
|
+
let builds = localConfig.builds || [];
|
227337
227353
|
let zeroConfigRoutes = [];
|
227338
227354
|
let isZeroConfig = false;
|
227339
227355
|
if (builds.length > 0) {
|
@@ -227345,7 +227361,7 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
227345
227361
|
isZeroConfig = true;
|
227346
227362
|
// Detect the Vercel Builders that will need to be invoked
|
227347
227363
|
const detectedBuilders = await (0, fs_detectors_1.detectBuilders)(files, pkg, {
|
227348
|
-
...
|
227364
|
+
...localConfig,
|
227349
227365
|
projectSettings,
|
227350
227366
|
ignoreBuildScript: true,
|
227351
227367
|
featHandleMiss: true,
|
@@ -227406,11 +227422,9 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
227406
227422
|
];
|
227407
227423
|
}));
|
227408
227424
|
buildsJson.builds = Array.from(buildsJsonBuilds.values());
|
227409
|
-
|
227410
|
-
const writeBuildsJsonPromise = fs_extra_1.default.writeJSON(buildsJsonPath, buildsJson, {
|
227425
|
+
await fs_extra_1.default.writeJSON((0, path_1.join)(outputDir, 'builds.json'), buildsJson, {
|
227411
227426
|
spaces: 2,
|
227412
227427
|
});
|
227413
|
-
ops.push(writeBuildsJsonPromise);
|
227414
227428
|
// The `meta` config property is re-used for each Builder
|
227415
227429
|
// invocation so that Builders can share state between
|
227416
227430
|
// subsequent entrypoint builds.
|
@@ -227460,23 +227474,17 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
227460
227474
|
// all builds have completed
|
227461
227475
|
buildResults.set(build, buildResult);
|
227462
227476
|
// Start flushing the file outputs to the filesystem asynchronously
|
227463
|
-
ops.push((0, write_build_result_1.writeBuildResult)(outputDir, buildResult, build, builder, builderPkg,
|
227477
|
+
ops.push((0, write_build_result_1.writeBuildResult)(outputDir, buildResult, build, builder, builderPkg, localConfig).then(override => {
|
227464
227478
|
if (override)
|
227465
227479
|
overrides.push(override);
|
227466
227480
|
}, err => err));
|
227467
227481
|
}
|
227468
227482
|
catch (err) {
|
227469
|
-
output.prettyError(err);
|
227470
|
-
const writeConfigJsonPromise = fs_extra_1.default.writeJSON((0, path_1.join)(outputDir, 'config.json'), { version: 3 }, { spaces: 2 });
|
227471
|
-
await Promise.all([writeBuildsJsonPromise, writeConfigJsonPromise]);
|
227472
227483
|
const buildJsonBuild = buildsJsonBuilds.get(build);
|
227473
227484
|
if (buildJsonBuild) {
|
227474
227485
|
buildJsonBuild.error = (0, error_1.toEnumerableError)(err);
|
227475
|
-
await fs_extra_1.default.writeJSON(buildsJsonPath, buildsJson, {
|
227476
|
-
spaces: 2,
|
227477
|
-
});
|
227478
227486
|
}
|
227479
|
-
|
227487
|
+
throw err;
|
227480
227488
|
}
|
227481
227489
|
}
|
227482
227490
|
if (corepackShimDir) {
|
@@ -227530,82 +227538,7 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
227530
227538
|
userRoutes: routesResult.routes,
|
227531
227539
|
builds: builderRoutes,
|
227532
227540
|
});
|
227533
|
-
const
|
227534
|
-
if (images) {
|
227535
|
-
if (typeof images !== 'object') {
|
227536
|
-
throw new Error(`vercel.json "images" should be an object received ${typeof images}.`);
|
227537
|
-
}
|
227538
|
-
if (!Array.isArray(images.domains)) {
|
227539
|
-
throw new Error(`vercel.json "images.domains" should be an Array received ${typeof images.domains}.`);
|
227540
|
-
}
|
227541
|
-
if (images.domains.length > 50) {
|
227542
|
-
throw new Error(`vercel.json "images.domains" exceeds length of 50 received length (${images.domains.length}).`);
|
227543
|
-
}
|
227544
|
-
const invalidImageDomains = images.domains.filter((d) => typeof d !== 'string');
|
227545
|
-
if (invalidImageDomains.length > 0) {
|
227546
|
-
throw new Error(`vercel.json "images.domains" should be an Array of strings received invalid values (${invalidImageDomains.join(', ')}).`);
|
227547
|
-
}
|
227548
|
-
if (images.remotePatterns) {
|
227549
|
-
if (!Array.isArray(images.remotePatterns)) {
|
227550
|
-
throw new Error(`vercel.json "images.remotePatterns" should be an Array received ${typeof images.remotePatterns}.`);
|
227551
|
-
}
|
227552
|
-
if (images.remotePatterns.length > 50) {
|
227553
|
-
throw new Error(`vercel.json "images.remotePatterns" exceeds length of 50, received length (${images.remotePatterns.length}).`);
|
227554
|
-
}
|
227555
|
-
const validProps = new Set(['protocol', 'hostname', 'pathname', 'port']);
|
227556
|
-
const requiredProps = ['hostname'];
|
227557
|
-
const invalidPatterns = images.remotePatterns.filter((d) => !d ||
|
227558
|
-
typeof d !== 'object' ||
|
227559
|
-
Object.entries(d).some(([k, v]) => !validProps.has(k) || typeof v !== 'string') ||
|
227560
|
-
requiredProps.some(k => !(k in d)));
|
227561
|
-
if (invalidPatterns.length > 0) {
|
227562
|
-
throw new Error(`vercel.json "images.remotePatterns" received invalid values:\n${invalidPatterns
|
227563
|
-
.map(item => JSON.stringify(item))
|
227564
|
-
.join('\n')}\n\nremotePatterns value must follow format { protocol: 'https', hostname: 'example.com', port: '', pathname: '/imgs/**' }.`);
|
227565
|
-
}
|
227566
|
-
}
|
227567
|
-
if (!Array.isArray(images.sizes)) {
|
227568
|
-
throw new Error(`vercel.json "images.sizes" should be an Array received ${typeof images.sizes}.`);
|
227569
|
-
}
|
227570
|
-
if (images.sizes.length < 1 || images.sizes.length > 50) {
|
227571
|
-
throw new Error(`vercel.json "images.sizes" should be an Array of length between 1 to 50 received length (${images.sizes.length}).`);
|
227572
|
-
}
|
227573
|
-
const invalidImageSizes = images.sizes.filter((d) => {
|
227574
|
-
return typeof d !== 'number' || d < 1 || d > 10000;
|
227575
|
-
});
|
227576
|
-
if (invalidImageSizes.length > 0) {
|
227577
|
-
throw new Error(`vercel.json "images.sizes" should be an Array of numbers that are between 1 and 10000, received invalid values (${invalidImageSizes.join(', ')}).`);
|
227578
|
-
}
|
227579
|
-
if (images.minimumCacheTTL) {
|
227580
|
-
if (!Number.isInteger(images.minimumCacheTTL) ||
|
227581
|
-
images.minimumCacheTTL < 0) {
|
227582
|
-
throw new Error(`vercel.json "images.minimumCacheTTL" should be an integer 0 or more received (${images.minimumCacheTTL}).`);
|
227583
|
-
}
|
227584
|
-
}
|
227585
|
-
if (images.formats) {
|
227586
|
-
if (!Array.isArray(images.formats)) {
|
227587
|
-
throw new Error(`vercel.json "images.formats" should be an Array received ${typeof images.formats}.`);
|
227588
|
-
}
|
227589
|
-
if (images.formats.length < 1 || images.formats.length > 2) {
|
227590
|
-
throw new Error(`vercel.json "images.formats" must be length 1 or 2, received length (${images.formats.length}).`);
|
227591
|
-
}
|
227592
|
-
const invalid = images.formats.filter(f => {
|
227593
|
-
return f !== 'image/avif' && f !== 'image/webp';
|
227594
|
-
});
|
227595
|
-
if (invalid.length > 0) {
|
227596
|
-
throw new Error(`vercel.json "images.formats" should be an Array of mime type strings, received invalid values (${invalid.join(', ')}).`);
|
227597
|
-
}
|
227598
|
-
}
|
227599
|
-
if (typeof images.dangerouslyAllowSVG !== 'undefined' &&
|
227600
|
-
typeof images.dangerouslyAllowSVG !== 'boolean') {
|
227601
|
-
throw new Error(`vercel.json "images.dangerouslyAllowSVG" should be a boolean received (${images.dangerouslyAllowSVG}).`);
|
227602
|
-
}
|
227603
|
-
if (typeof images.contentSecurityPolicy !== 'undefined' &&
|
227604
|
-
typeof images.contentSecurityPolicy !== 'string') {
|
227605
|
-
throw new Error(`vercel.json "images.contentSecurityPolicy" should be a string received ${images.contentSecurityPolicy}`);
|
227606
|
-
}
|
227607
|
-
}
|
227608
|
-
const mergedImages = mergeImages(images, buildResults.values());
|
227541
|
+
const mergedImages = mergeImages(localConfig.images, buildResults.values());
|
227609
227542
|
const mergedWildcard = mergeWildcard(buildResults.values());
|
227610
227543
|
const mergedOverrides = overrides.length > 0 ? Object.assign({}, ...overrides) : undefined;
|
227611
227544
|
// Write out the final `config.json` file based on the
|
@@ -227621,7 +227554,6 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
227621
227554
|
await fs_extra_1.default.writeJSON((0, path_1.join)(outputDir, 'config.json'), config, { spaces: 2 });
|
227622
227555
|
const relOutputDir = (0, path_1.relative)(cwd, outputDir);
|
227623
227556
|
output.print(`${(0, emoji_1.prependEmoji)(`Build Completed in ${chalk_1.default.bold(relOutputDir.startsWith('..') ? outputDir : relOutputDir)} ${chalk_1.default.gray(buildStamp())}`, (0, emoji_1.emoji)('success'))}\n`);
|
227624
|
-
return 0;
|
227625
227557
|
}
|
227626
227558
|
function expandBuild(files, build) {
|
227627
227559
|
if (!build.use) {
|
@@ -236722,6 +236654,7 @@ const reauthenticate_1 = __importDefault(__webpack_require__(51025));
|
|
236722
236654
|
const files_1 = __webpack_require__(79919);
|
236723
236655
|
const promise_1 = __webpack_require__(21526);
|
236724
236656
|
const errors_ts_1 = __webpack_require__(60156);
|
236657
|
+
const is_error_1 = __webpack_require__(11026);
|
236725
236658
|
const isSAMLError = (v) => {
|
236726
236659
|
return v && v.saml;
|
236727
236660
|
};
|
@@ -236741,7 +236674,7 @@ class Client extends events_1.EventEmitter {
|
|
236741
236674
|
else {
|
236742
236675
|
this.output.error(`Failed to re-authenticate for ${(0, chalk_1.bold)(error.scope)} scope`);
|
236743
236676
|
}
|
236744
|
-
|
236677
|
+
throw error;
|
236745
236678
|
}
|
236746
236679
|
this.authConfig.token = result.token;
|
236747
236680
|
(0, files_1.writeToAuthConfigFile)(this.authConfig);
|
@@ -236819,10 +236752,16 @@ class Client extends events_1.EventEmitter {
|
|
236819
236752
|
if (!res.ok) {
|
236820
236753
|
const error = await (0, response_error_1.default)(res);
|
236821
236754
|
if (isSAMLError(error)) {
|
236822
|
-
|
236823
|
-
|
236824
|
-
|
236825
|
-
|
236755
|
+
try {
|
236756
|
+
// A SAML error means the token is expired, or is not
|
236757
|
+
// designated for the requested team, so the user needs
|
236758
|
+
// to re-authenticate
|
236759
|
+
await this.reauthenticate(error);
|
236760
|
+
}
|
236761
|
+
catch (reauthError) {
|
236762
|
+
// there's no sense in retrying
|
236763
|
+
return bail((0, is_error_1.normalizeError)(reauthError));
|
236764
|
+
}
|
236826
236765
|
}
|
236827
236766
|
else if (res.status >= 400 && res.status < 500) {
|
236828
236767
|
// Any other 4xx should bail without retrying
|
@@ -238782,7 +238721,7 @@ const errors_ts_1 = __webpack_require__(60156);
|
|
238782
238721
|
const pkg_1 = __importDefault(__webpack_require__(80984));
|
238783
238722
|
const link_2 = __webpack_require__(67630);
|
238784
238723
|
const get_files_1 = __webpack_require__(23174);
|
238785
|
-
const
|
238724
|
+
const validate_config_1 = __webpack_require__(14864);
|
238786
238725
|
const router_1 = __webpack_require__(84369);
|
238787
238726
|
const mime_type_1 = __importDefault(__webpack_require__(12165));
|
238788
238727
|
const builder_1 = __webpack_require__(37655);
|
@@ -239842,7 +239781,7 @@ class DevServer {
|
|
239842
239781
|
await this.exit(1);
|
239843
239782
|
return;
|
239844
239783
|
}
|
239845
|
-
const error = (0,
|
239784
|
+
const error = (0, validate_config_1.validateConfig)(config);
|
239846
239785
|
if (error) {
|
239847
239786
|
this.output.prettyError(error);
|
239848
239787
|
await this.exit(1);
|
@@ -240817,62 +240756,6 @@ function redirect(it) {
|
|
240817
240756
|
exports.default = redirect;
|
240818
240757
|
|
240819
240758
|
|
240820
|
-
/***/ }),
|
240821
|
-
|
240822
|
-
/***/ 53204:
|
240823
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
240824
|
-
|
240825
|
-
"use strict";
|
240826
|
-
|
240827
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
240828
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
240829
|
-
};
|
240830
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
240831
|
-
exports.validateConfig = void 0;
|
240832
|
-
const ajv_1 = __importDefault(__webpack_require__(11313));
|
240833
|
-
const routing_utils_1 = __webpack_require__(72948);
|
240834
|
-
const build_utils_1 = __webpack_require__(3131);
|
240835
|
-
const client_1 = __webpack_require__(20192);
|
240836
|
-
const vercelConfigSchema = {
|
240837
|
-
type: 'object',
|
240838
|
-
// These are not all possibilities because `vc dev`
|
240839
|
-
// doesn't need to know about `regions`, `public`, etc.
|
240840
|
-
additionalProperties: true,
|
240841
|
-
properties: {
|
240842
|
-
builds: build_utils_1.buildsSchema,
|
240843
|
-
routes: routing_utils_1.routesSchema,
|
240844
|
-
cleanUrls: routing_utils_1.cleanUrlsSchema,
|
240845
|
-
headers: routing_utils_1.headersSchema,
|
240846
|
-
redirects: routing_utils_1.redirectsSchema,
|
240847
|
-
rewrites: routing_utils_1.rewritesSchema,
|
240848
|
-
trailingSlash: routing_utils_1.trailingSlashSchema,
|
240849
|
-
functions: build_utils_1.functionsSchema,
|
240850
|
-
},
|
240851
|
-
};
|
240852
|
-
const ajv = new ajv_1.default();
|
240853
|
-
const validate = ajv.compile(vercelConfigSchema);
|
240854
|
-
function validateConfig(config) {
|
240855
|
-
if (!validate(config)) {
|
240856
|
-
if (validate.errors && validate.errors[0]) {
|
240857
|
-
const error = validate.errors[0];
|
240858
|
-
const fileName = config[client_1.fileNameSymbol] || 'vercel.json';
|
240859
|
-
const niceError = (0, build_utils_1.getPrettyError)(error);
|
240860
|
-
niceError.message = `Invalid ${fileName} - ${niceError.message}`;
|
240861
|
-
return niceError;
|
240862
|
-
}
|
240863
|
-
}
|
240864
|
-
if (config.functions && config.builds) {
|
240865
|
-
return new build_utils_1.NowBuildError({
|
240866
|
-
code: 'FUNCTIONS_AND_BUILDS',
|
240867
|
-
message: 'The `functions` property cannot be used in conjunction with the `builds` property. Please remove one of them.',
|
240868
|
-
link: 'https://vercel.link/functions-and-builds',
|
240869
|
-
});
|
240870
|
-
}
|
240871
|
-
return null;
|
240872
|
-
}
|
240873
|
-
exports.validateConfig = validateConfig;
|
240874
|
-
|
240875
|
-
|
240876
240759
|
/***/ }),
|
240877
240760
|
|
240878
240761
|
/***/ 28730:
|
@@ -248932,6 +248815,139 @@ const normalizeURL = (u) => {
|
|
248932
248815
|
exports.normalizeURL = normalizeURL;
|
248933
248816
|
|
248934
248817
|
|
248818
|
+
/***/ }),
|
248819
|
+
|
248820
|
+
/***/ 14864:
|
248821
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
248822
|
+
|
248823
|
+
"use strict";
|
248824
|
+
|
248825
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
248826
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
248827
|
+
};
|
248828
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
248829
|
+
exports.validateConfig = void 0;
|
248830
|
+
const ajv_1 = __importDefault(__webpack_require__(11313));
|
248831
|
+
const routing_utils_1 = __webpack_require__(72948);
|
248832
|
+
const build_utils_1 = __webpack_require__(3131);
|
248833
|
+
const client_1 = __webpack_require__(20192);
|
248834
|
+
const imagesSchema = {
|
248835
|
+
type: 'object',
|
248836
|
+
additionalProperties: false,
|
248837
|
+
required: ['sizes'],
|
248838
|
+
properties: {
|
248839
|
+
contentSecurityPolicy: {
|
248840
|
+
type: 'string',
|
248841
|
+
minLength: 1,
|
248842
|
+
maxLength: 256,
|
248843
|
+
},
|
248844
|
+
dangerouslyAllowSVG: {
|
248845
|
+
type: 'boolean',
|
248846
|
+
},
|
248847
|
+
domains: {
|
248848
|
+
type: 'array',
|
248849
|
+
minItems: 0,
|
248850
|
+
maxItems: 50,
|
248851
|
+
items: {
|
248852
|
+
type: 'string',
|
248853
|
+
minLength: 1,
|
248854
|
+
maxLength: 256,
|
248855
|
+
},
|
248856
|
+
},
|
248857
|
+
formats: {
|
248858
|
+
type: 'array',
|
248859
|
+
minItems: 1,
|
248860
|
+
maxItems: 4,
|
248861
|
+
items: {
|
248862
|
+
enum: ['image/avif', 'image/webp', 'image/jpeg', 'image/png'],
|
248863
|
+
},
|
248864
|
+
},
|
248865
|
+
minimumCacheTTL: {
|
248866
|
+
type: 'integer',
|
248867
|
+
minimum: 1,
|
248868
|
+
maximum: 315360000,
|
248869
|
+
},
|
248870
|
+
remotePatterns: {
|
248871
|
+
type: 'array',
|
248872
|
+
minItems: 0,
|
248873
|
+
maxItems: 50,
|
248874
|
+
items: {
|
248875
|
+
type: 'object',
|
248876
|
+
additionalProperties: false,
|
248877
|
+
required: ['hostname'],
|
248878
|
+
properties: {
|
248879
|
+
protocol: {
|
248880
|
+
enum: ['http', 'https'],
|
248881
|
+
},
|
248882
|
+
hostname: {
|
248883
|
+
type: 'string',
|
248884
|
+
minLength: 1,
|
248885
|
+
maxLength: 256,
|
248886
|
+
},
|
248887
|
+
port: {
|
248888
|
+
type: 'string',
|
248889
|
+
minLength: 1,
|
248890
|
+
maxLength: 5,
|
248891
|
+
},
|
248892
|
+
pathname: {
|
248893
|
+
type: 'string',
|
248894
|
+
minLength: 1,
|
248895
|
+
maxLength: 256,
|
248896
|
+
},
|
248897
|
+
},
|
248898
|
+
},
|
248899
|
+
},
|
248900
|
+
sizes: {
|
248901
|
+
type: 'array',
|
248902
|
+
minItems: 1,
|
248903
|
+
maxItems: 50,
|
248904
|
+
items: {
|
248905
|
+
type: 'number',
|
248906
|
+
},
|
248907
|
+
},
|
248908
|
+
},
|
248909
|
+
};
|
248910
|
+
const vercelConfigSchema = {
|
248911
|
+
type: 'object',
|
248912
|
+
// These are not all possibilities because `vc dev`
|
248913
|
+
// doesn't need to know about `regions`, `public`, etc.
|
248914
|
+
additionalProperties: true,
|
248915
|
+
properties: {
|
248916
|
+
builds: build_utils_1.buildsSchema,
|
248917
|
+
routes: routing_utils_1.routesSchema,
|
248918
|
+
cleanUrls: routing_utils_1.cleanUrlsSchema,
|
248919
|
+
headers: routing_utils_1.headersSchema,
|
248920
|
+
redirects: routing_utils_1.redirectsSchema,
|
248921
|
+
rewrites: routing_utils_1.rewritesSchema,
|
248922
|
+
trailingSlash: routing_utils_1.trailingSlashSchema,
|
248923
|
+
functions: build_utils_1.functionsSchema,
|
248924
|
+
images: imagesSchema,
|
248925
|
+
},
|
248926
|
+
};
|
248927
|
+
const ajv = new ajv_1.default();
|
248928
|
+
const validate = ajv.compile(vercelConfigSchema);
|
248929
|
+
function validateConfig(config) {
|
248930
|
+
if (!validate(config)) {
|
248931
|
+
if (validate.errors && validate.errors[0]) {
|
248932
|
+
const error = validate.errors[0];
|
248933
|
+
const fileName = config[client_1.fileNameSymbol] || 'vercel.json';
|
248934
|
+
const niceError = (0, build_utils_1.getPrettyError)(error);
|
248935
|
+
niceError.message = `Invalid ${fileName} - ${niceError.message}`;
|
248936
|
+
return niceError;
|
248937
|
+
}
|
248938
|
+
}
|
248939
|
+
if (config.functions && config.builds) {
|
248940
|
+
return new build_utils_1.NowBuildError({
|
248941
|
+
code: 'FUNCTIONS_AND_BUILDS',
|
248942
|
+
message: 'The `functions` property cannot be used in conjunction with the `builds` property. Please remove one of them.',
|
248943
|
+
link: 'https://vercel.link/functions-and-builds',
|
248944
|
+
});
|
248945
|
+
}
|
248946
|
+
return null;
|
248947
|
+
}
|
248948
|
+
exports.validateConfig = validateConfig;
|
248949
|
+
|
248950
|
+
|
248935
248951
|
/***/ }),
|
248936
248952
|
|
248937
248953
|
/***/ 54579:
|
@@ -249348,7 +249364,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
249348
249364
|
/***/ ((module) => {
|
249349
249365
|
|
249350
249366
|
"use strict";
|
249351
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.
|
249367
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.3\",\"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.5.1\",\"@vercel/go\":\"2.2.9\",\"@vercel/hydrogen\":\"0.0.22\",\"@vercel/next\":\"3.1.30\",\"@vercel/node\":\"2.5.19\",\"@vercel/python\":\"3.1.18\",\"@vercel/redwood\":\"1.0.27\",\"@vercel/remix\":\"1.0.28\",\"@vercel/ruby\":\"1.3.35\",\"@vercel/static-build\":\"1.0.27\",\"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/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.2.8\",\"@vercel/frameworks\":\"1.1.6\",\"@vercel/fs-detectors\":\"3.4.0\",\"@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\",\"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\",\"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\"]}}");
|
249352
249368
|
|
249353
249369
|
/***/ }),
|
249354
249370
|
|
@@ -249356,7 +249372,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.2\",\"prefe
|
|
249356
249372
|
/***/ ((module) => {
|
249357
249373
|
|
249358
249374
|
"use strict";
|
249359
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.
|
249375
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.8\",\"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\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"5.5.1\",\"@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\",\"tar-fs\":\"1.16.3\"}}");
|
249360
249376
|
|
249361
249377
|
/***/ }),
|
249362
249378
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.4.
|
3
|
+
"version": "28.4.3",
|
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.5.
|
45
|
-
"@vercel/go": "2.2.
|
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.5.1",
|
45
|
+
"@vercel/go": "2.2.9",
|
46
|
+
"@vercel/hydrogen": "0.0.22",
|
47
|
+
"@vercel/next": "3.1.30",
|
48
|
+
"@vercel/node": "2.5.19",
|
49
|
+
"@vercel/python": "3.1.18",
|
50
|
+
"@vercel/redwood": "1.0.27",
|
51
|
+
"@vercel/remix": "1.0.28",
|
52
|
+
"@vercel/ruby": "1.3.35",
|
53
|
+
"@vercel/static-build": "1.0.27",
|
54
54
|
"update-notifier": "5.1.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
@@ -95,7 +95,7 @@
|
|
95
95
|
"@types/which": "1.3.2",
|
96
96
|
"@types/write-json-file": "2.2.1",
|
97
97
|
"@types/yauzl-promise": "2.1.0",
|
98
|
-
"@vercel/client": "12.2.
|
98
|
+
"@vercel/client": "12.2.8",
|
99
99
|
"@vercel/frameworks": "1.1.6",
|
100
100
|
"@vercel/fs-detectors": "3.4.0",
|
101
101
|
"@vercel/fun": "1.0.4",
|
@@ -193,5 +193,5 @@
|
|
193
193
|
"<rootDir>/test/**/*.test.ts"
|
194
194
|
]
|
195
195
|
},
|
196
|
-
"gitHead": "
|
196
|
+
"gitHead": "bf5cfa9a41f8c1f9e2a3d3fc30735708ca72ad09"
|
197
197
|
}
|