@vercel/node 1.15.3-canary.0 → 1.15.4-canary.0
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 +14 -4
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -60844,7 +60844,7 @@ async function analyze(id, code, job) {
|
|
|
60844
60844
|
value: {
|
|
60845
60845
|
[static_eval_1.FUNCTION](specifier) {
|
|
60846
60846
|
deps.add(specifier);
|
|
60847
|
-
const m = staticModules[specifier];
|
|
60847
|
+
const m = staticModules[specifier.startsWith('node:') ? specifier.slice(5) : specifier];
|
|
60848
60848
|
return m.default;
|
|
60849
60849
|
},
|
|
60850
60850
|
resolve(specifier) {
|
|
@@ -60883,7 +60883,7 @@ async function analyze(id, code, job) {
|
|
|
60883
60883
|
if (decl.type === 'ImportDeclaration') {
|
|
60884
60884
|
const source = String(decl.source.value);
|
|
60885
60885
|
deps.add(source);
|
|
60886
|
-
const staticModule = staticModules[source];
|
|
60886
|
+
const staticModule = staticModules[source.startsWith('node:') ? source.slice(5) : source];
|
|
60887
60887
|
if (staticModule) {
|
|
60888
60888
|
for (const impt of decl.specifiers) {
|
|
60889
60889
|
if (impt.type === 'ImportNamespaceSpecifier')
|
|
@@ -61118,9 +61118,17 @@ async function analyze(id, code, job) {
|
|
|
61118
61118
|
node.arguments[0].name === '__dirname' && knownBindings.__dirname.shadowDepth === 0) {
|
|
61119
61119
|
let resolved;
|
|
61120
61120
|
try {
|
|
61121
|
-
|
|
61121
|
+
// use installed version of node-gyp-build since resolving
|
|
61122
|
+
// binaries can differ among versions
|
|
61123
|
+
const nodeGypBuildPath = resolve_from_1.default(dir, 'node-gyp-build');
|
|
61124
|
+
resolved = require(nodeGypBuildPath).path(dir);
|
|
61125
|
+
}
|
|
61126
|
+
catch (e) {
|
|
61127
|
+
try {
|
|
61128
|
+
resolved = node_gyp_build_1.default.path(dir);
|
|
61129
|
+
}
|
|
61130
|
+
catch (e) { }
|
|
61122
61131
|
}
|
|
61123
|
-
catch (e) { }
|
|
61124
61132
|
if (resolved) {
|
|
61125
61133
|
staticChildValue = { value: resolved };
|
|
61126
61134
|
staticChildNode = node;
|
|
@@ -61996,6 +62004,8 @@ async function resolvePackage(name, parent, job, cjsResolve) {
|
|
|
61996
62004
|
let packageParent = parent;
|
|
61997
62005
|
if (nodeBuiltins.has(name))
|
|
61998
62006
|
return 'node:' + name;
|
|
62007
|
+
if (name.startsWith('node:'))
|
|
62008
|
+
return name;
|
|
61999
62009
|
const pkgName = getPkgName(name) || '';
|
|
62000
62010
|
// package own name resolution
|
|
62001
62011
|
let selfResolved;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.4-canary.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@types/node": "*",
|
|
34
|
-
"@vercel/node-bridge": "2.2.2
|
|
34
|
+
"@vercel/node-bridge": "2.2.2",
|
|
35
35
|
"ts-node": "8.9.1",
|
|
36
36
|
"typescript": "4.3.4"
|
|
37
37
|
},
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@types/etag": "1.8.0",
|
|
46
46
|
"@types/jest": "27.4.1",
|
|
47
47
|
"@types/test-listen": "1.1.0",
|
|
48
|
-
"@vercel/build-utils": "3.
|
|
48
|
+
"@vercel/build-utils": "3.1.1-canary.0",
|
|
49
49
|
"@vercel/ncc": "0.24.0",
|
|
50
|
-
"@vercel/nft": "0.
|
|
50
|
+
"@vercel/nft": "0.19.0",
|
|
51
51
|
"content-type": "1.0.4",
|
|
52
52
|
"cookie": "0.4.0",
|
|
53
53
|
"etag": "1.8.1",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"source-map-support": "0.5.12",
|
|
57
57
|
"test-listen": "1.1.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "e829ce47c356a06564551349e771b457ea95ac74"
|
|
60
60
|
}
|