@vercel/node 2.8.13 → 2.8.15
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/index.js +3633 -2557
- package/dist/typescript.js +3 -4
- package/package.json +3 -3
package/dist/typescript.js
CHANGED
@@ -94,12 +94,11 @@ function register(opts = {}) {
|
|
94
94
|
].map(Number);
|
95
95
|
// Require the TypeScript compiler and configuration.
|
96
96
|
const cwd = options.basePath || process.cwd();
|
97
|
-
const nowNodeBase = path_1.resolve(__dirname, '..', '..', '..');
|
98
97
|
let compiler;
|
99
98
|
const require_ = eval('require');
|
100
99
|
try {
|
101
100
|
compiler = require_.resolve(options.compiler || 'typescript', {
|
102
|
-
paths: [options.project || cwd
|
101
|
+
paths: [options.project || cwd],
|
103
102
|
});
|
104
103
|
}
|
105
104
|
catch (e) {
|
@@ -107,8 +106,8 @@ function register(opts = {}) {
|
|
107
106
|
}
|
108
107
|
//eslint-disable-next-line @typescript-eslint/no-var-requires
|
109
108
|
const ts = require_(compiler);
|
110
|
-
if (compiler
|
111
|
-
console.log(`Using built-in TypeScript ${ts.version} since "typescript" missing from "devDependencies"`);
|
109
|
+
if (compiler === 'typescript') {
|
110
|
+
console.log(`Using built-in TypeScript ${ts.version} since "typescript" is missing from "devDependencies"`);
|
112
111
|
}
|
113
112
|
else {
|
114
113
|
console.log(`Using TypeScript ${ts.version} (local user-provided)`);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/node",
|
3
|
-
"version": "2.8.
|
3
|
+
"version": "2.8.15",
|
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": "5.9.0",
|
35
|
-
"@vercel/node-bridge": "3.1.
|
35
|
+
"@vercel/node-bridge": "3.1.10",
|
36
36
|
"@vercel/static-config": "2.0.11",
|
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": "
|
67
|
+
"gitHead": "92f5b6e0c9be947a68b617d282fc39144f530813"
|
68
68
|
}
|