@vercel/node 2.4.1 → 2.4.2

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.
@@ -168,7 +168,7 @@ async function compileUserCode(entrypoint) {
168
168
 
169
169
  let edgeHandler = module.exports.default;
170
170
  if (!edgeHandler) {
171
- throw new Error('No default export was found. Add a default export to handle requests.');
171
+ throw new Error('No default export was found. Add a default export to handle requests. Learn more: https://vercel.link/creating-edge-middleware');
172
172
  }
173
173
 
174
174
  let response = await edgeHandler(event.request, event);
@@ -261,7 +261,7 @@ function parseRuntime(entrypoint, entryPointPath) {
261
261
  const staticConfig = static_config_1.getConfig(project, entryPointPath);
262
262
  const runtime = staticConfig?.runtime;
263
263
  if (runtime && !validRuntimes.includes(runtime)) {
264
- throw new Error(`Invalid function runtime "${runtime}" for "${entrypoint}". Valid runtimes are: ${JSON.stringify(validRuntimes)}`);
264
+ throw new Error(`Invalid function runtime "${runtime}" for "${entrypoint}". Valid runtimes are: ${JSON.stringify(validRuntimes)}. Learn more: https://vercel.link/creating-edge-functions`);
265
265
  }
266
266
  return runtime;
267
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -61,5 +61,5 @@
61
61
  "source-map-support": "0.5.12",
62
62
  "test-listen": "1.1.0"
63
63
  },
64
- "gitHead": "0a2af4fb94d71a7a23ffc72fb68748be1177f345"
64
+ "gitHead": "fb4f4773253a6307e385ea582a94b1aa85781dc9"
65
65
  }