Socket
Socket
Sign inDemoInstall

change-git-url

Package Overview
Dependencies
22
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.5 to 1.1.6

7

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc