@vercel/node 2.9.9 → 2.9.10

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 +10 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -301346,9 +301346,19 @@ const build = async ({ files, entrypoint, workPath, repoRootPath, config = {}, m
301346
301346
  }
301347
301347
  // Middleware is a catch-all for all paths unless a `matcher` property is defined
301348
301348
  const src = utils_1.getRegExpFromMatchers(staticConfig?.matcher);
301349
+ const middlewareRawSrc = [];
301350
+ if (staticConfig?.matcher) {
301351
+ if (Array.isArray(staticConfig.matcher)) {
301352
+ middlewareRawSrc.push(...staticConfig.matcher);
301353
+ }
301354
+ else {
301355
+ middlewareRawSrc.push(staticConfig.matcher);
301356
+ }
301357
+ }
301349
301358
  routes = [
301350
301359
  {
301351
301360
  src,
301361
+ middlewareRawSrc,
301352
301362
  middlewarePath: outputPath,
301353
301363
  continue: true,
301354
301364
  override: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "2.9.9",
3
+ "version": "2.9.10",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -32,7 +32,7 @@
32
32
  "@edge-runtime/vm": "2.0.0",
33
33
  "@types/node": "14.18.33",
34
34
  "@vercel/build-utils": "6.3.2",
35
- "@vercel/node-bridge": "3.1.13",
35
+ "@vercel/node-bridge": "3.1.14",
36
36
  "@vercel/static-config": "2.0.13",
37
37
  "edge-runtime": "2.0.0",
38
38
  "esbuild": "0.14.47",
@@ -64,5 +64,5 @@
64
64
  "test-listen": "1.1.0",
65
65
  "ts-morph": "12.0.0"
66
66
  },
67
- "gitHead": "e0f8bc98202146eda0f2b85efac74b803654e786"
67
+ "gitHead": "803a9363f93c3f2be0f0ea2bce3ba64eefa78e04"
68
68
  }