@vercel/node 3.2.1 → 3.2.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.
Files changed (2) hide show
  1. package/dist/index.js +53 -45
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -15565,9 +15565,9 @@ var require_ms = __commonJS({
15565
15565
  }
15566
15566
  });
15567
15567
 
15568
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js
15568
+ // ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js
15569
15569
  var require_common = __commonJS({
15570
- "../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js"(exports, module2) {
15570
+ "../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js"(exports, module2) {
15571
15571
  function setup(env) {
15572
15572
  createDebug.debug = createDebug;
15573
15573
  createDebug.default = createDebug;
@@ -15728,9 +15728,9 @@ var require_common = __commonJS({
15728
15728
  }
15729
15729
  });
15730
15730
 
15731
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js
15731
+ // ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js
15732
15732
  var require_browser = __commonJS({
15733
- "../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js"(exports, module2) {
15733
+ "../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js"(exports, module2) {
15734
15734
  exports.formatArgs = formatArgs;
15735
15735
  exports.save = save;
15736
15736
  exports.load = load;
@@ -16012,9 +16012,9 @@ var require_supports_color = __commonJS({
16012
16012
  }
16013
16013
  });
16014
16014
 
16015
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js
16015
+ // ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js
16016
16016
  var require_node = __commonJS({
16017
- "../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js"(exports, module2) {
16017
+ "../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js"(exports, module2) {
16018
16018
  var tty = require("tty");
16019
16019
  var util = require("util");
16020
16020
  exports.init = init;
@@ -16154,7 +16154,7 @@ var require_node = __commonJS({
16154
16154
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
16155
16155
  }
16156
16156
  function log(...args) {
16157
- return process.stderr.write(util.format(...args) + "\n");
16157
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
16158
16158
  }
16159
16159
  function save(namespaces) {
16160
16160
  if (namespaces) {
@@ -16186,9 +16186,9 @@ var require_node = __commonJS({
16186
16186
  }
16187
16187
  });
16188
16188
 
16189
- // ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js
16189
+ // ../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/index.js
16190
16190
  var require_src = __commonJS({
16191
- "../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js"(exports, module2) {
16191
+ "../../node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/index.js"(exports, module2) {
16192
16192
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
16193
16193
  module2.exports = require_browser();
16194
16194
  } else {
@@ -26079,50 +26079,58 @@ var require_js_tokens = __commonJS({
26079
26079
  }
26080
26080
  });
26081
26081
 
26082
- // ../../node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js
26082
+ // ../../node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js
26083
26083
  var require_picocolors = __commonJS({
26084
- "../../node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js"(exports, module2) {
26085
- var tty = require("tty");
26086
- var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
26084
+ "../../node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js"(exports, module2) {
26085
+ var argv = process.argv || [];
26086
+ var env = process.env;
26087
+ var isColorSupported = !("NO_COLOR" in env || argv.includes("--no-color")) && ("FORCE_COLOR" in env || argv.includes("--color") || process.platform === "win32" || require != null && require("tty").isatty(1) && env.TERM !== "dumb" || "CI" in env);
26087
26088
  var formatter = (open, close, replace = open) => (input) => {
26088
26089
  let string = "" + input;
26089
26090
  let index = string.indexOf(close, open.length);
26090
26091
  return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
26091
26092
  };
26092
26093
  var replaceClose = (string, close, replace, index) => {
26093
- let start = string.substring(0, index) + replace;
26094
- let end = string.substring(index + close.length);
26095
- let nextIndex = end.indexOf(close);
26096
- return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
26094
+ let result = "";
26095
+ let cursor = 0;
26096
+ do {
26097
+ result += string.substring(cursor, index) + replace;
26098
+ cursor = index + close.length;
26099
+ index = string.indexOf(close, cursor);
26100
+ } while (~index);
26101
+ return result + string.substring(cursor);
26102
+ };
26103
+ var createColors = (enabled = isColorSupported) => {
26104
+ let init = enabled ? formatter : () => String;
26105
+ return {
26106
+ isColorSupported: enabled,
26107
+ reset: init("\x1B[0m", "\x1B[0m"),
26108
+ bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
26109
+ dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
26110
+ italic: init("\x1B[3m", "\x1B[23m"),
26111
+ underline: init("\x1B[4m", "\x1B[24m"),
26112
+ inverse: init("\x1B[7m", "\x1B[27m"),
26113
+ hidden: init("\x1B[8m", "\x1B[28m"),
26114
+ strikethrough: init("\x1B[9m", "\x1B[29m"),
26115
+ black: init("\x1B[30m", "\x1B[39m"),
26116
+ red: init("\x1B[31m", "\x1B[39m"),
26117
+ green: init("\x1B[32m", "\x1B[39m"),
26118
+ yellow: init("\x1B[33m", "\x1B[39m"),
26119
+ blue: init("\x1B[34m", "\x1B[39m"),
26120
+ magenta: init("\x1B[35m", "\x1B[39m"),
26121
+ cyan: init("\x1B[36m", "\x1B[39m"),
26122
+ white: init("\x1B[37m", "\x1B[39m"),
26123
+ gray: init("\x1B[90m", "\x1B[39m"),
26124
+ bgBlack: init("\x1B[40m", "\x1B[49m"),
26125
+ bgRed: init("\x1B[41m", "\x1B[49m"),
26126
+ bgGreen: init("\x1B[42m", "\x1B[49m"),
26127
+ bgYellow: init("\x1B[43m", "\x1B[49m"),
26128
+ bgBlue: init("\x1B[44m", "\x1B[49m"),
26129
+ bgMagenta: init("\x1B[45m", "\x1B[49m"),
26130
+ bgCyan: init("\x1B[46m", "\x1B[49m"),
26131
+ bgWhite: init("\x1B[47m", "\x1B[49m")
26132
+ };
26097
26133
  };
26098
- var createColors = (enabled = isColorSupported) => ({
26099
- isColorSupported: enabled,
26100
- reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
26101
- bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
26102
- dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
26103
- italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
26104
- underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
26105
- inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
26106
- hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
26107
- strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
26108
- black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
26109
- red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
26110
- green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
26111
- yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
26112
- blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
26113
- magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
26114
- cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
26115
- white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
26116
- gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
26117
- bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
26118
- bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
26119
- bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
26120
- bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
26121
- bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
26122
- bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
26123
- bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
26124
- bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
26125
- });
26126
26134
  module2.exports = createColors();
26127
26135
  module2.exports.createColors = createColors;
26128
26136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -17,7 +17,7 @@
17
17
  "@edge-runtime/primitives": "4.1.0",
18
18
  "@edge-runtime/vm": "3.2.0",
19
19
  "@types/node": "16.18.11",
20
- "@vercel/build-utils": "8.3.0",
20
+ "@vercel/build-utils": "8.3.2",
21
21
  "@vercel/error-utils": "2.0.2",
22
22
  "@vercel/nft": "0.27.2",
23
23
  "@vercel/static-config": "3.0.0",
@@ -55,7 +55,7 @@
55
55
  "tree-kill": "1.2.2",
56
56
  "vite": "5.1.6",
57
57
  "vitest": "1.3.1",
58
- "@vercel/functions": "1.0.2"
58
+ "@vercel/functions": "1.4.0"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "node build.mjs",