change-git-url
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -7,2 +7,3 @@ const path = require('path'); | ||
const writeFile = require('./writeFile'); | ||
const isWin = process.platform === 'win32'; | ||
@@ -12,6 +13,6 @@ let defaultDir = ''; | ||
let spinner; | ||
let tempPath = path.join(process.platform === 'win32' ? process.env.TEMP : process.env.HOME, '.change-git-url.json'); // store temp file | ||
let tempPath = path.join(isWin ? process.env.TEMP : process.env.HOME, '.change-git-url.json'); // store temp file | ||
// macOS 、linux default User Folder | ||
if (process.platform !== 'win32') { | ||
if (!isWin) { | ||
defaultDir = process.env.HOME; | ||
@@ -39,3 +40,3 @@ message = `Input a directory path, default is ${defaultDir}`; | ||
if (!path.isAbsolute(dir)) { | ||
dir = path.join(__dirname, dir) | ||
dir = path.join(isWin ? process.cwd() : process.env.PWD, dir); // relative path | ||
} | ||
@@ -42,0 +43,0 @@ |
{ | ||
"name": "change-git-url", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
6245
140
10