@vercel/node 5.6.10 → 5.6.12

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.
@@ -904,7 +904,7 @@ function getBodyParser(body, contentType) {
904
904
  try {
905
905
  const str = body.toString();
906
906
  return str ? JSON.parse(str) : {};
907
- } catch (error) {
907
+ } catch (_error) {
908
908
  throw new ApiError(400, "Invalid JSON");
909
909
  }
910
910
  }
@@ -61,7 +61,6 @@ async function parseRequestEvent(event) {
61
61
  }
62
62
 
63
63
  // This will be invoked by logic using this template
64
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
65
64
  function registerFetchListener(module, options, dependencies) {
66
65
  let handler;
67
66
 
package/dist/index.js CHANGED
@@ -70050,7 +70050,7 @@ function register(opts = {}) {
70050
70050
  compiler = require_.resolve(options.compiler || "typescript", {
70051
70051
  paths: [options.project || cwd]
70052
70052
  });
70053
- } catch (e) {
70053
+ } catch (_e) {
70054
70054
  compiler = "typescript";
70055
70055
  }
70056
70056
  const ts = require_(compiler);
@@ -70417,7 +70417,7 @@ function validateConfiguredRuntime(runtime, entrypoint) {
70417
70417
 
70418
70418
  // src/build.ts
70419
70419
  var require_2 = (0, import_module2.createRequire)(__filename);
70420
- var libPathRegEx = /^node_modules|[\/\\]node_modules[\/\\]/;
70420
+ var libPathRegEx = /^node_modules|[/\\]node_modules[/\\]/;
70421
70421
  async function downloadInstallAndBundle({
70422
70422
  files,
70423
70423
  entrypoint,
@@ -71242,7 +71242,7 @@ var startDevServer = async (opts) => {
71242
71242
  if (runtime === "bun") {
71243
71243
  try {
71244
71244
  process.kill(pid, "SIGTERM");
71245
- } catch (err) {
71245
+ } catch (_err) {
71246
71246
  await treeKill(pid);
71247
71247
  }
71248
71248
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "5.6.10",
3
+ "version": "5.6.12",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -32,9 +32,9 @@
32
32
  "tsx": "4.21.0",
33
33
  "typescript": "npm:typescript@5.9.3",
34
34
  "undici": "5.28.4",
35
+ "@vercel/build-utils": "13.7.0",
35
36
  "@vercel/static-config": "3.1.2",
36
- "@vercel/error-utils": "2.0.3",
37
- "@vercel/build-utils": "13.6.2"
37
+ "@vercel/error-utils": "2.0.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@babel/core": "7.24.4",