@vercel/node 2.5.1 → 2.5.4

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/utils.js CHANGED
@@ -15,10 +15,10 @@ function getRegExpFromMatchers(matcherOrMatchers) {
15
15
  exports.getRegExpFromMatchers = getRegExpFromMatchers;
16
16
  function getRegExpFromMatcher(matcher) {
17
17
  if (typeof matcher !== 'string') {
18
- throw new Error('`matcher` must be a path matcher or an array of path matchers');
18
+ throw new Error("Middleware's `config.matcher` must be a path matcher (string) or an array of path matchers (string[])");
19
19
  }
20
20
  if (!matcher.startsWith('/')) {
21
- throw new Error('`matcher`: path matcher must start with /');
21
+ throw new Error(`Middleware's \`config.matcher\` values must start with "/". Received: ${matcher}`);
22
22
  }
23
23
  const re = path_to_regexp_1.pathToRegexp(matcher);
24
24
  return re.source;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "2.5.1",
3
+ "version": "2.5.4",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -30,11 +30,12 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
+ "@edge-runtime/vm": "1.1.0-beta.23",
33
34
  "@types/node": "*",
34
- "@vercel/build-utils": "5.0.6",
35
+ "@vercel/build-utils": "5.1.0",
35
36
  "@vercel/node-bridge": "3.0.0",
36
37
  "@vercel/static-config": "2.0.1",
37
- "edge-runtime": "1.0.1",
38
+ "edge-runtime": "1.1.0-beta.23",
38
39
  "esbuild": "0.14.47",
39
40
  "exit-hook": "2.2.1",
40
41
  "node-fetch": "2.6.7",
@@ -52,7 +53,7 @@
52
53
  "@types/jest": "27.4.1",
53
54
  "@types/node-fetch": "^2.6.1",
54
55
  "@types/test-listen": "1.1.0",
55
- "@vercel/ncc": "0.34.0",
56
+ "@vercel/ncc": "0.24.0",
56
57
  "@vercel/nft": "0.21.0",
57
58
  "content-type": "1.0.4",
58
59
  "cookie": "0.4.0",
@@ -61,5 +62,5 @@
61
62
  "source-map-support": "0.5.12",
62
63
  "test-listen": "1.1.0"
63
64
  },
64
- "gitHead": "90c18959498cfa852bc56adffcdd16a8bbcbcce6"
65
+ "gitHead": "7db6436797d0b4131113f0b8dccc3b66bc9b1981"
65
66
  }