@vercel/node 2.5.3 → 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.
@@ -195,7 +195,7 @@ async function compileUserCode(entrypointPath, entrypointLabel) {
195
195
  catch (error) {
196
196
  // We can't easily show a meaningful stack trace from ncc -> edge-runtime.
197
197
  // So, stick with just the message for now.
198
- console.error(`Failed to instantiate edge runtime.`);
198
+ console.error(`Failed to compile user code for edge runtime.`);
199
199
  logError(error);
200
200
  return undefined;
201
201
  }
package/dist/index.js CHANGED
@@ -305535,10 +305535,10 @@ function getRegExpFromMatchers(matcherOrMatchers) {
305535
305535
  exports.getRegExpFromMatchers = getRegExpFromMatchers;
305536
305536
  function getRegExpFromMatcher(matcher) {
305537
305537
  if (typeof matcher !== 'string') {
305538
- throw new Error('`matcher` must be a path matcher or an array of path matchers');
305538
+ throw new Error("Middleware's `config.matcher` must be a path matcher (string) or an array of path matchers (string[])");
305539
305539
  }
305540
305540
  if (!matcher.startsWith('/')) {
305541
- throw new Error('`matcher`: path matcher must start with /');
305541
+ throw new Error(`Middleware's \`config.matcher\` values must start with "/". Received: ${matcher}`);
305542
305542
  }
305543
305543
  const re = path_to_regexp_1.pathToRegexp(matcher);
305544
305544
  return re.source;
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.3",
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",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@edge-runtime/vm": "1.1.0-beta.23",
34
34
  "@types/node": "*",
35
- "@vercel/build-utils": "5.0.8",
35
+ "@vercel/build-utils": "5.1.0",
36
36
  "@vercel/node-bridge": "3.0.0",
37
37
  "@vercel/static-config": "2.0.1",
38
38
  "edge-runtime": "1.1.0-beta.23",
@@ -62,5 +62,5 @@
62
62
  "source-map-support": "0.5.12",
63
63
  "test-listen": "1.1.0"
64
64
  },
65
- "gitHead": "543ffdfe5ccfb59c9c455fc50df3bb8ed1eaf567"
65
+ "gitHead": "7db6436797d0b4131113f0b8dccc3b66bc9b1981"
66
66
  }