Compare commits

...

2 Commits

Author SHA1 Message Date
Manta Anantachai S
32b864b6ab
Merge 241a772d55 into b39b52d121 2023-12-28 16:45:05 +00:00
Anantachai Saothong (Manta)
241a772d55 Code review 2023-12-28 23:44:54 +07:00
3 changed files with 3 additions and 3 deletions

View File

@ -83348,7 +83348,7 @@ function getNodeVersionFromFile(versionFilePath) {
try {
const manifest = JSON.parse(contents);
// Presume package.json file.
if (typeof manifest === 'object' && manifest !== null) {
if (typeof manifest === 'object' && !!manifest) {
// Support Volta.
// See https://docs.volta.sh/guide/understanding#managing-your-project
if ((_a = manifest.volta) === null || _a === void 0 ? void 0 : _a.node) {

2
dist/setup/index.js vendored
View File

@ -93795,7 +93795,7 @@ function getNodeVersionFromFile(versionFilePath) {
try {
const manifest = JSON.parse(contents);
// Presume package.json file.
if (typeof manifest === 'object' && manifest !== null) {
if (typeof manifest === 'object' && !!manifest) {
// Support Volta.
// See https://docs.volta.sh/guide/understanding#managing-your-project
if ((_a = manifest.volta) === null || _a === void 0 ? void 0 : _a.node) {

View File

@ -18,7 +18,7 @@ export function getNodeVersionFromFile(versionFilePath: string): string | null {
const manifest = JSON.parse(contents);
// Presume package.json file.
if (typeof manifest === 'object' && manifest !== null) {
if (typeof manifest === 'object' && !!manifest) {
// Support Volta.
// See https://docs.volta.sh/guide/understanding#managing-your-project
if (manifest.volta?.node) {