yaml-crypt
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -30,3 +30,3 @@ const { homedir } = require("os"); | ||
try { | ||
content = readFileSync(join(h, filename)); | ||
content = readFileSync(join(h, ".yaml-crypt", filename)); | ||
break; | ||
@@ -33,0 +33,0 @@ } catch (e) { |
{ | ||
"name": "yaml-crypt", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Encrypt and decrypt YAML documents", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -30,3 +30,7 @@ const fs = require("fs"); | ||
const home = tmp.dirSync(); | ||
fs.writeFileSync(`${home.name}/config.yml`, "keys:\n - key: 123"); | ||
fs.mkdirSync(`${home.name}/.yaml-crypt`); | ||
fs.writeFileSync( | ||
`${home.name}/.yaml-crypt/config.yml`, | ||
"keys:\n - key: 123" | ||
); | ||
const config = loadConfig({ home: home.name }); | ||
@@ -39,3 +43,4 @@ expect(config).to.not.be.null; | ||
const home = tmp.dirSync(); | ||
fs.mkdirSync(`${home.name}/config.yaml`); | ||
fs.mkdirSync(`${home.name}/.yaml-crypt`); | ||
fs.mkdirSync(`${home.name}/.yaml-crypt/config.yaml`); | ||
expect(() => loadConfig({ home: home.name })).to.throw(/illegal operation/); | ||
@@ -42,0 +47,0 @@ }); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
68289
1896
1