@node-core/utils 5.0.1 → 5.0.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.
@@ -146,6 +146,9 @@ async function readDeps(nodeDir, depName) {
|
|
146
146
|
let deps;
|
147
147
|
eval(depsDeclaration); // eslint-disable-line no-eval
|
148
148
|
const dep = deps[depName];
|
149
|
+
if (!dep) {
|
150
|
+
throw new Error(`V8 dep "${depName}" not found in DEPS file`);
|
151
|
+
}
|
149
152
|
if (typeof dep === 'object') {
|
150
153
|
return dep.url.split('@');
|
151
154
|
}
|
package/lib/utils.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { platform } from 'node:os';
|
1
2
|
import which from 'which';
|
2
3
|
|
3
4
|
import { forceRunAsync } from './run.js';
|
@@ -62,5 +63,6 @@ export async function getEditor(options = {}) {
|
|
62
63
|
}
|
63
64
|
}
|
64
65
|
|
65
|
-
return process.env.VISUAL || process.env.EDITOR ||
|
66
|
+
return process.env.VISUAL || process.env.EDITOR ||
|
67
|
+
(platform() === 'win32' ? 'notepad.exe' : 'vi');
|
66
68
|
};
|