@vercel/node 5.5.16 → 5.5.18
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/dev-server.mjs +4 -2
- package/dist/index.js +44 -32
- package/package.json +6 -6
package/dist/dev-server.mjs
CHANGED
|
@@ -419,7 +419,8 @@ function createEdgeWasmPlugin() {
|
|
|
419
419
|
const wasmFile = data.path.replace(/\?module$/, "");
|
|
420
420
|
const resolvedPath = await b.resolve(wasmFile, {
|
|
421
421
|
importer: data.importer,
|
|
422
|
-
resolveDir: data.resolveDir
|
|
422
|
+
resolveDir: data.resolveDir,
|
|
423
|
+
kind: data.kind
|
|
423
424
|
});
|
|
424
425
|
if (!resolvedPath.path) {
|
|
425
426
|
return {
|
|
@@ -445,7 +446,8 @@ function createEdgeWasmPlugin() {
|
|
|
445
446
|
return { plugin, wasmAssets };
|
|
446
447
|
}
|
|
447
448
|
function sha1(data) {
|
|
448
|
-
|
|
449
|
+
const input = typeof data === "string" ? data : new Uint8Array(data);
|
|
450
|
+
return createHash("sha1").update(input).digest("hex");
|
|
449
451
|
}
|
|
450
452
|
|
|
451
453
|
// src/edge-functions/edge-node-compat-plugin.mts
|
package/dist/index.js
CHANGED
|
@@ -32137,9 +32137,9 @@ var require_ms = __commonJS({
|
|
|
32137
32137
|
}
|
|
32138
32138
|
});
|
|
32139
32139
|
|
|
32140
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
32140
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js
|
|
32141
32141
|
var require_common = __commonJS({
|
|
32142
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
32142
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
32143
32143
|
function setup(env) {
|
|
32144
32144
|
createDebug.debug = createDebug;
|
|
32145
32145
|
createDebug.default = createDebug;
|
|
@@ -32314,9 +32314,9 @@ var require_common = __commonJS({
|
|
|
32314
32314
|
}
|
|
32315
32315
|
});
|
|
32316
32316
|
|
|
32317
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
32317
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js
|
|
32318
32318
|
var require_browser = __commonJS({
|
|
32319
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
32319
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
32320
32320
|
exports.formatArgs = formatArgs;
|
|
32321
32321
|
exports.save = save;
|
|
32322
32322
|
exports.load = load;
|
|
@@ -32497,27 +32497,29 @@ var require_has_flag = __commonJS({
|
|
|
32497
32497
|
}
|
|
32498
32498
|
});
|
|
32499
32499
|
|
|
32500
|
-
// ../../node_modules/.pnpm/supports-color@
|
|
32500
|
+
// ../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
|
|
32501
32501
|
var require_supports_color = __commonJS({
|
|
32502
|
-
"../../node_modules/.pnpm/supports-color@
|
|
32502
|
+
"../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
|
|
32503
32503
|
"use strict";
|
|
32504
32504
|
var os = require("os");
|
|
32505
32505
|
var tty = require("tty");
|
|
32506
32506
|
var hasFlag = require_has_flag();
|
|
32507
32507
|
var { env } = process;
|
|
32508
|
-
var
|
|
32508
|
+
var flagForceColor;
|
|
32509
32509
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
32510
|
-
|
|
32510
|
+
flagForceColor = 0;
|
|
32511
32511
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
32512
|
-
|
|
32512
|
+
flagForceColor = 1;
|
|
32513
32513
|
}
|
|
32514
|
-
|
|
32515
|
-
if (
|
|
32516
|
-
|
|
32517
|
-
|
|
32518
|
-
|
|
32519
|
-
|
|
32520
|
-
|
|
32514
|
+
function envForceColor() {
|
|
32515
|
+
if ("FORCE_COLOR" in env) {
|
|
32516
|
+
if (env.FORCE_COLOR === "true") {
|
|
32517
|
+
return 1;
|
|
32518
|
+
}
|
|
32519
|
+
if (env.FORCE_COLOR === "false") {
|
|
32520
|
+
return 0;
|
|
32521
|
+
}
|
|
32522
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
32521
32523
|
}
|
|
32522
32524
|
}
|
|
32523
32525
|
function translateLevel(level) {
|
|
@@ -32531,15 +32533,22 @@ var require_supports_color = __commonJS({
|
|
|
32531
32533
|
has16m: level >= 3
|
|
32532
32534
|
};
|
|
32533
32535
|
}
|
|
32534
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
32536
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
32537
|
+
const noFlagForceColor = envForceColor();
|
|
32538
|
+
if (noFlagForceColor !== void 0) {
|
|
32539
|
+
flagForceColor = noFlagForceColor;
|
|
32540
|
+
}
|
|
32541
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
32535
32542
|
if (forceColor === 0) {
|
|
32536
32543
|
return 0;
|
|
32537
32544
|
}
|
|
32538
|
-
if (
|
|
32539
|
-
|
|
32540
|
-
|
|
32541
|
-
|
|
32542
|
-
|
|
32545
|
+
if (sniffFlags) {
|
|
32546
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
32547
|
+
return 3;
|
|
32548
|
+
}
|
|
32549
|
+
if (hasFlag("color=256")) {
|
|
32550
|
+
return 2;
|
|
32551
|
+
}
|
|
32543
32552
|
}
|
|
32544
32553
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
32545
32554
|
return 0;
|
|
@@ -32556,7 +32565,7 @@ var require_supports_color = __commonJS({
|
|
|
32556
32565
|
return 1;
|
|
32557
32566
|
}
|
|
32558
32567
|
if ("CI" in env) {
|
|
32559
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
32568
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
32560
32569
|
return 1;
|
|
32561
32570
|
}
|
|
32562
32571
|
return min;
|
|
@@ -32568,7 +32577,7 @@ var require_supports_color = __commonJS({
|
|
|
32568
32577
|
return 3;
|
|
32569
32578
|
}
|
|
32570
32579
|
if ("TERM_PROGRAM" in env) {
|
|
32571
|
-
const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
32580
|
+
const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
32572
32581
|
switch (env.TERM_PROGRAM) {
|
|
32573
32582
|
case "iTerm.app":
|
|
32574
32583
|
return version2 >= 3 ? 3 : 2;
|
|
@@ -32587,21 +32596,24 @@ var require_supports_color = __commonJS({
|
|
|
32587
32596
|
}
|
|
32588
32597
|
return min;
|
|
32589
32598
|
}
|
|
32590
|
-
function getSupportLevel(stream) {
|
|
32591
|
-
const level = supportsColor(stream,
|
|
32599
|
+
function getSupportLevel(stream, options = {}) {
|
|
32600
|
+
const level = supportsColor(stream, {
|
|
32601
|
+
streamIsTTY: stream && stream.isTTY,
|
|
32602
|
+
...options
|
|
32603
|
+
});
|
|
32592
32604
|
return translateLevel(level);
|
|
32593
32605
|
}
|
|
32594
32606
|
module2.exports = {
|
|
32595
32607
|
supportsColor: getSupportLevel,
|
|
32596
|
-
stdout:
|
|
32597
|
-
stderr:
|
|
32608
|
+
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
32609
|
+
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
32598
32610
|
};
|
|
32599
32611
|
}
|
|
32600
32612
|
});
|
|
32601
32613
|
|
|
32602
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
32614
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js
|
|
32603
32615
|
var require_node = __commonJS({
|
|
32604
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
32616
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module2) {
|
|
32605
32617
|
var tty = require("tty");
|
|
32606
32618
|
var util = require("util");
|
|
32607
32619
|
exports.init = init;
|
|
@@ -32773,9 +32785,9 @@ var require_node = __commonJS({
|
|
|
32773
32785
|
}
|
|
32774
32786
|
});
|
|
32775
32787
|
|
|
32776
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
|
32788
|
+
// ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js
|
|
32777
32789
|
var require_src = __commonJS({
|
|
32778
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
32790
|
+
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module2) {
|
|
32779
32791
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
32780
32792
|
module2.exports = require_browser();
|
|
32781
32793
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.18",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"cjs-module-lexer": "1.2.3",
|
|
23
23
|
"edge-runtime": "2.5.9",
|
|
24
24
|
"es-module-lexer": "1.4.1",
|
|
25
|
-
"esbuild": "0.
|
|
25
|
+
"esbuild": "0.27.0",
|
|
26
26
|
"etag": "1.8.1",
|
|
27
27
|
"mime-types": "2.1.35",
|
|
28
28
|
"node-fetch": "2.6.9",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"typescript": "4.9.5",
|
|
34
34
|
"typescript5": "npm:typescript@5.9.3",
|
|
35
35
|
"undici": "5.28.4",
|
|
36
|
-
"@vercel/build-utils": "13.2.
|
|
37
|
-
"@vercel/
|
|
38
|
-
"@vercel/
|
|
36
|
+
"@vercel/build-utils": "13.2.6",
|
|
37
|
+
"@vercel/error-utils": "2.0.3",
|
|
38
|
+
"@vercel/static-config": "3.1.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "7.24.4",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"tree-kill": "1.2.2",
|
|
61
61
|
"vite": "^5.1.6",
|
|
62
62
|
"vitest": "^2.0.1",
|
|
63
|
-
"@vercel/functions": "3.3.
|
|
63
|
+
"@vercel/functions": "3.3.5"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "node build.mjs",
|