secure-env-ts
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -67,4 +67,6 @@ #! /usr/bin/env node | ||
const nano = (0, command_exists_1.sync)('nano') ? 'nano' : null; | ||
const atom = (0, command_exists_1.sync)('atom') ? 'atom' : null; | ||
const sublime = (0, command_exists_1.sync)('subl') ? 'subl' : null; | ||
const vim = (0, command_exists_1.sync)('vim') ? 'vim' : null; | ||
const usersEditor = process.env.EDITOR || nano || code || vim || 'vi'; | ||
const usersEditor = process.env.EDITOR || nano || code || sublime || atom || vim || 'vi'; | ||
const childProcess = (0, child_process_1.spawn)(usersEditor, [file], { | ||
@@ -118,3 +120,3 @@ stdio: 'inherit', | ||
}; | ||
if (!code) { | ||
if (usersEditor !== 'code') { | ||
childProcess.on('exit', diffAndSave); | ||
@@ -121,0 +123,0 @@ } |
{ | ||
"name": "secure-env-ts", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Use ENVs securely with encryption", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30606
433