vercel 37.3.0 → 37.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +19 -26
- package/package.json +9 -9
package/dist/index.js
CHANGED
@@ -96,7 +96,7 @@ var require_dist2 = __commonJS2({
|
|
96
96
|
__export4(src_exports2, {
|
97
97
|
errorToString: () => errorToString13,
|
98
98
|
isErrnoException: () => isErrnoException20,
|
99
|
-
isError: () =>
|
99
|
+
isError: () => isError14,
|
100
100
|
isErrorLike: () => isErrorLike,
|
101
101
|
isObject: () => isObject2,
|
102
102
|
isSpawnError: () => isSpawnError2,
|
@@ -105,22 +105,22 @@ var require_dist2 = __commonJS2({
|
|
105
105
|
module2.exports = __toCommonJS4(src_exports2);
|
106
106
|
var import_node_util = __toESM4(require("util"));
|
107
107
|
var isObject2 = (obj) => typeof obj === "object" && obj !== null;
|
108
|
-
var
|
108
|
+
var isError14 = (error3) => {
|
109
109
|
return import_node_util.default.types.isNativeError(error3);
|
110
110
|
};
|
111
111
|
var isErrnoException20 = (error3) => {
|
112
|
-
return
|
112
|
+
return isError14(error3) && "code" in error3;
|
113
113
|
};
|
114
114
|
var isErrorLike = (error3) => isObject2(error3) && "message" in error3;
|
115
115
|
var errorToString13 = (error3, fallback) => {
|
116
|
-
if (
|
116
|
+
if (isError14(error3) || isErrorLike(error3))
|
117
117
|
return error3.message;
|
118
118
|
if (typeof error3 === "string")
|
119
119
|
return error3;
|
120
120
|
return fallback ?? "An unknown error has ocurred.";
|
121
121
|
};
|
122
122
|
var normalizeError3 = (error3) => {
|
123
|
-
if (
|
123
|
+
if (isError14(error3))
|
124
124
|
return error3;
|
125
125
|
const errorMessage = errorToString13(error3);
|
126
126
|
return isErrorLike(error3) ? Object.assign(new Error(errorMessage), error3) : new Error(errorMessage);
|
@@ -6204,7 +6204,7 @@ var require_error = __commonJS2({
|
|
6204
6204
|
var require_is = __commonJS2({
|
6205
6205
|
"../../node_modules/.pnpm/@sentry+utils@5.5.0/node_modules/@sentry/utils/dist/is.js"(exports2) {
|
6206
6206
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
6207
|
-
function
|
6207
|
+
function isError14(wat) {
|
6208
6208
|
switch (Object.prototype.toString.call(wat)) {
|
6209
6209
|
case "[object Error]":
|
6210
6210
|
return true;
|
@@ -6216,7 +6216,7 @@ var require_is = __commonJS2({
|
|
6216
6216
|
return wat instanceof Error;
|
6217
6217
|
}
|
6218
6218
|
}
|
6219
|
-
exports2.isError =
|
6219
|
+
exports2.isError = isError14;
|
6220
6220
|
function isErrorEvent(wat) {
|
6221
6221
|
return Object.prototype.toString.call(wat) === "[object ErrorEvent]";
|
6222
6222
|
}
|
@@ -32536,7 +32536,7 @@ var require_package = __commonJS2({
|
|
32536
32536
|
"../client/package.json"(exports2, module2) {
|
32537
32537
|
module2.exports = {
|
32538
32538
|
name: "@vercel/client",
|
32539
|
-
version: "13.4.
|
32539
|
+
version: "13.4.4",
|
32540
32540
|
main: "dist/index.js",
|
32541
32541
|
typings: "dist/index.d.ts",
|
32542
32542
|
homepage: "https://vercel.com",
|
@@ -32573,7 +32573,7 @@ var require_package = __commonJS2({
|
|
32573
32573
|
typescript: "4.9.5"
|
32574
32574
|
},
|
32575
32575
|
dependencies: {
|
32576
|
-
"@vercel/build-utils": "8.
|
32576
|
+
"@vercel/build-utils": "8.4.0",
|
32577
32577
|
"@vercel/error-utils": "2.0.2",
|
32578
32578
|
"@vercel/routing-utils": "3.1.0",
|
32579
32579
|
"@zeit/fetch": "5.2.0",
|
@@ -34824,10 +34824,10 @@ var require_util3 = __commonJS2({
|
|
34824
34824
|
return objectToString(d) === "[object Date]";
|
34825
34825
|
}
|
34826
34826
|
exports2.isDate = isDate;
|
34827
|
-
function
|
34827
|
+
function isError14(e2) {
|
34828
34828
|
return objectToString(e2) === "[object Error]" || e2 instanceof Error;
|
34829
34829
|
}
|
34830
|
-
exports2.isError =
|
34830
|
+
exports2.isError = isError14;
|
34831
34831
|
function isFunction(arg2) {
|
34832
34832
|
return typeof arg2 === "function";
|
34833
34833
|
}
|
@@ -84388,7 +84388,8 @@ var require_frameworks = __commonJS2({
|
|
84388
84388
|
detectors: {
|
84389
84389
|
every: [
|
84390
84390
|
{
|
84391
|
-
path: "
|
84391
|
+
path: "requirements.txt",
|
84392
|
+
matchContent: "python-fasthtml"
|
84392
84393
|
}
|
84393
84394
|
]
|
84394
84395
|
},
|
@@ -108157,7 +108158,7 @@ function printBuildLog(log2, print) {
|
|
108157
108158
|
if (!log2.created)
|
108158
108159
|
return;
|
108159
108160
|
const date = new Date(log2.created).toISOString();
|
108160
|
-
for (const line of colorize(sanitize(log2)).split("\n")) {
|
108161
|
+
for (const line of colorize(sanitize(log2), log2).split("\n")) {
|
108161
108162
|
print(`${import_chalk45.default.dim(date)} ${line.replace("[now-builder-debug] ", "")}
|
108162
108163
|
`);
|
108163
108164
|
}
|
@@ -108224,21 +108225,13 @@ function getSourceIcon(source) {
|
|
108224
108225
|
function sanitize(log2) {
|
108225
108226
|
return (log2.text || "").replace(/\n$/, "").replace(/^\n/, "").replace(/\x1b\[1000D/g, "").replace(/\x1b\[0K/g, "").replace(/\x1b\[1A/g, "");
|
108226
108227
|
}
|
108227
|
-
function colorize(text2) {
|
108228
|
-
if (
|
108228
|
+
function colorize(text2, log2) {
|
108229
|
+
if (log2.level === "error") {
|
108229
108230
|
return import_chalk45.default.red(text2);
|
108231
|
+
} else if (log2.level === "warning") {
|
108232
|
+
return import_chalk45.default.yellow(text2);
|
108230
108233
|
}
|
108231
|
-
return
|
108232
|
-
}
|
108233
|
-
function isError7(text2) {
|
108234
|
-
return /^(\s+⨯\s+|\s+at\s+|npm err!)/i.test(text2) || /(^| |\[|eval|internal|range|reference|syntax|type|uri|fetch)err(or)?( |:)/i.test(
|
108235
|
-
text2
|
108236
|
-
) || /(command not found|module not found|failed to compile|cannot open shared object file|err_pnpm_|please contact vercel.com\/help|exit code 1|elifecycle|exited)/i.test(
|
108237
|
-
text2
|
108238
|
-
);
|
108239
|
-
}
|
108240
|
-
function isWarning(text2) {
|
108241
|
-
return /^warn(ing)?(:|!)/i.test(text2) && !text2.includes("deprecationwarning");
|
108234
|
+
return text2;
|
108242
108235
|
}
|
108243
108236
|
var import_chalk45, import_date_fns, import_ms7, import_jsonlines2, import_split2, import_url13, runtimeLogSpinnerMessage, dateTimeFormat, moreSymbol, statusWidth;
|
108244
108237
|
var init_logs = __esm({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "37.
|
3
|
+
"version": "37.4.0",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -21,17 +21,17 @@
|
|
21
21
|
"node": ">= 16"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@vercel/build-utils": "8.
|
24
|
+
"@vercel/build-utils": "8.4.0",
|
25
25
|
"@vercel/fun": "1.1.0",
|
26
26
|
"@vercel/go": "3.1.2",
|
27
27
|
"@vercel/hydrogen": "1.0.4",
|
28
|
-
"@vercel/next": "4.3.
|
29
|
-
"@vercel/node": "3.2.
|
28
|
+
"@vercel/next": "4.3.8",
|
29
|
+
"@vercel/node": "3.2.12",
|
30
30
|
"@vercel/python": "4.3.1",
|
31
31
|
"@vercel/redwood": "2.1.3",
|
32
32
|
"@vercel/remix-builder": "2.2.6",
|
33
33
|
"@vercel/ruby": "2.1.0",
|
34
|
-
"@vercel/static-build": "2.5.
|
34
|
+
"@vercel/static-build": "2.5.22",
|
35
35
|
"chokidar": "3.3.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
@@ -81,11 +81,11 @@
|
|
81
81
|
"@types/yauzl-promise": "2.1.0",
|
82
82
|
"@vercel-internals/constants": "1.0.4",
|
83
83
|
"@vercel-internals/get-package-json": "1.0.0",
|
84
|
-
"@vercel-internals/types": "2.0.
|
85
|
-
"@vercel/client": "13.4.
|
84
|
+
"@vercel-internals/types": "2.0.4",
|
85
|
+
"@vercel/client": "13.4.4",
|
86
86
|
"@vercel/error-utils": "2.0.2",
|
87
|
-
"@vercel/frameworks": "3.
|
88
|
-
"@vercel/fs-detectors": "5.2.
|
87
|
+
"@vercel/frameworks": "3.3.0",
|
88
|
+
"@vercel/fs-detectors": "5.2.10",
|
89
89
|
"@vercel/routing-utils": "3.1.0",
|
90
90
|
"@vitest/expect": "1.4.0",
|
91
91
|
"ajv": "6.12.2",
|