@vercel/node 2.5.2 → 2.5.5
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/dev-server.js +3 -2
- package/dist/index.js +2 -2
- package/dist/utils.js +2 -2
- package/package.json +7 -7
package/dist/dev-server.js
CHANGED
@@ -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
|
198
|
+
console.error(`Failed to compile user code for edge runtime.`);
|
199
199
|
logError(error);
|
200
200
|
return undefined;
|
201
201
|
}
|
@@ -218,7 +218,8 @@ async function createEdgeRuntime(params) {
|
|
218
218
|
process: {
|
219
219
|
env: process.env,
|
220
220
|
},
|
221
|
-
|
221
|
+
wasmBindings,
|
222
|
+
});
|
222
223
|
return context;
|
223
224
|
},
|
224
225
|
});
|
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('
|
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('
|
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
|
+
"version": "2.5.5",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
@@ -13,8 +13,7 @@
|
|
13
13
|
"build": "node build",
|
14
14
|
"test": "jest --env node --verbose --bail --runInBand",
|
15
15
|
"test-unit": "yarn test test/prepare-cache.test.ts test/utils.test.ts",
|
16
|
-
"test-integration-once": "yarn test test/integration-*.test.js"
|
17
|
-
"prepublishOnly": "node build"
|
16
|
+
"test-integration-once": "yarn test test/integration-*.test.js"
|
18
17
|
},
|
19
18
|
"files": [
|
20
19
|
"dist"
|
@@ -30,11 +29,12 @@
|
|
30
29
|
}
|
31
30
|
},
|
32
31
|
"dependencies": {
|
32
|
+
"@edge-runtime/vm": "1.1.0-beta.23",
|
33
33
|
"@types/node": "*",
|
34
|
-
"@vercel/build-utils": "5.
|
34
|
+
"@vercel/build-utils": "5.1.1",
|
35
35
|
"@vercel/node-bridge": "3.0.0",
|
36
|
-
"@vercel/static-config": "2.0.
|
37
|
-
"edge-runtime": "1.0.
|
36
|
+
"@vercel/static-config": "2.0.2",
|
37
|
+
"edge-runtime": "1.1.0-beta.23",
|
38
38
|
"esbuild": "0.14.47",
|
39
39
|
"exit-hook": "2.2.1",
|
40
40
|
"node-fetch": "2.6.7",
|
@@ -61,5 +61,5 @@
|
|
61
61
|
"source-map-support": "0.5.12",
|
62
62
|
"test-listen": "1.1.0"
|
63
63
|
},
|
64
|
-
"gitHead": "
|
64
|
+
"gitHead": "5eb8b16cbdf6215618b4b8125673941757fa1a8e"
|
65
65
|
}
|