yaml-crypt
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -25,6 +25,6 @@ #!/usr/bin/env node | ||
function main() { | ||
async function main() { | ||
let cfg; | ||
try { | ||
cfg = loadConfig(); | ||
cfg = await loadConfig(); | ||
} catch (e) { | ||
@@ -46,6 +46,6 @@ console.warn("could not read config file, using default!"); | ||
if (e instanceof ExitError) { | ||
process.exit(e.status); | ||
process.exitCode = e.status; | ||
} else if (e instanceof UsageError || e instanceof UnknownError) { | ||
console.error(`${module.exports.name}: error: ${e.message}`); | ||
process.exit(5); | ||
process.exitCode = 5; | ||
} else if (e instanceof ConfigurationError) { | ||
@@ -55,3 +55,3 @@ console.error( | ||
); | ||
process.exit(6); | ||
process.exitCode = 6; | ||
} else { | ||
@@ -651,3 +651,6 @@ throw e; | ||
if (require.main === module) { | ||
main(); | ||
main().catch(e => { | ||
process.exitCode = 1; | ||
console.error(e); | ||
}); | ||
} |
{ | ||
"name": "yaml-crypt", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Encrypt and decrypt YAML documents", | ||
@@ -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
69458
1939