@vercel/node 3.1.5 → 3.1.7
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 +2 -2
- package/package.json +10 -5
package/dist/index.js
CHANGED
@@ -70228,7 +70228,7 @@ async function compile2(workPath, baseDir, entrypointPath, config, meta, nodeVer
|
|
70228
70228
|
);
|
70229
70229
|
const babelCompileEnabled = !isEdgeFunction || process.env.VERCEL_EDGE_NO_BABEL !== "1";
|
70230
70230
|
if (babelCompileEnabled && esmPaths.length) {
|
70231
|
-
const babelCompile = (init_babel(),
|
70231
|
+
const babelCompile = (await Promise.resolve().then(() => (init_babel(), babel_exports))).compile;
|
70232
70232
|
for (const path of esmPaths) {
|
70233
70233
|
const pathDir = (0, import_path4.join)(workPath, (0, import_path4.dirname)(path));
|
70234
70234
|
if (!pkgCache.has(pathDir)) {
|
@@ -70255,7 +70255,7 @@ async function compile2(workPath, baseDir, entrypointPath, config, meta, nodeVer
|
|
70255
70255
|
);
|
70256
70256
|
}
|
70257
70257
|
console.log(`Compiling "${filename}" from ESM to CommonJS...`);
|
70258
|
-
const { code, map } = babelCompile(filename, source);
|
70258
|
+
const { code, map } = babelCompile(filename, String(source));
|
70259
70259
|
shouldAddSourcemapSupport = true;
|
70260
70260
|
preparedFiles[path] = new import_build_utils4.FileBlob({
|
70261
70261
|
data: `${code}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/node",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.7",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
@@ -17,9 +17,9 @@
|
|
17
17
|
"@edge-runtime/primitives": "4.1.0",
|
18
18
|
"@edge-runtime/vm": "3.2.0",
|
19
19
|
"@types/node": "16.18.11",
|
20
|
-
"@vercel/build-utils": "8.2.
|
20
|
+
"@vercel/build-utils": "8.2.2",
|
21
21
|
"@vercel/error-utils": "2.0.2",
|
22
|
-
"@vercel/nft": "0.27.
|
22
|
+
"@vercel/nft": "0.27.2",
|
23
23
|
"@vercel/static-config": "3.0.0",
|
24
24
|
"async-listen": "3.0.0",
|
25
25
|
"cjs-module-lexer": "1.2.3",
|
@@ -43,21 +43,26 @@
|
|
43
43
|
"@types/cookie": "0.3.3",
|
44
44
|
"@types/etag": "1.8.0",
|
45
45
|
"@types/jest": "29.5.0",
|
46
|
+
"@vitest/expect": "1.4.0",
|
46
47
|
"content-type": "1.0.5",
|
47
48
|
"cookie": "0.4.0",
|
48
49
|
"cross-env": "7.0.3",
|
49
50
|
"execa": "3.2.0",
|
50
51
|
"fs-extra": "11.1.0",
|
52
|
+
"glob": "10.3.16",
|
51
53
|
"jest-junit": "16.0.0",
|
52
54
|
"source-map-support": "0.5.12",
|
53
55
|
"tree-kill": "1.2.2",
|
56
|
+
"vite": "5.1.6",
|
57
|
+
"vitest": "1.3.1",
|
54
58
|
"@vercel/functions": "1.0.2"
|
55
59
|
},
|
56
60
|
"scripts": {
|
57
61
|
"build": "node build.mjs",
|
58
62
|
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --env node --verbose --bail --runInBand",
|
59
|
-
"test-unit": "pnpm test test/unit",
|
60
63
|
"test-e2e": "pnpm test test/integration",
|
61
|
-
"type-check": "tsc --noEmit"
|
64
|
+
"type-check": "tsc --noEmit",
|
65
|
+
"vitest-run": "vitest",
|
66
|
+
"vitest-unit": "glob --absolute 'test/unit/**/*.test.ts' 'test/unit/**/*.test.mts'"
|
62
67
|
}
|
63
68
|
}
|