Skip to content

Commit

Permalink
Fix some typos: snake_case -> camelCase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pik-9 committed Jul 12, 2020
1 parent f5dfff8 commit 79a7231
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "schluessel",
"version": "1.0.0",
"version": "1.0.1",
"description": "Rails like credentials store for database passwords, API keys, etc. encrypted in your repository.",
"type": "commonjs",
"main": "index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/cred.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const loadKeyFromFile = () => {
}

const buffer = fs.readFileSync(files.keyFile);
if (!errors.test_base64.test(buffer.toString('ascii'))) {
if (!errors.testBase64.test(buffer.toString('ascii'))) {
throw new errors.InvalidFormat(files.keyFile);
}

Expand All @@ -35,7 +35,7 @@ const loadKeyFromEnv = () => {
if (typeof keyStr === 'undefined') {
return undefined;
}
if (!errors.test_base64.test(keyStr)) {
if (!errors.testBase64.test(keyStr)) {
throw new errors.InvalidFormat(`NODE_MASTER_KEY = ${keyStr}`);
}

Expand Down Expand Up @@ -77,7 +77,7 @@ const loadVault = () => {
}

const buffer = fs.readFileSync(files.vaultFile);
if (!errors.test_base64.test(buffer.toString('ascii'))) {
if (!errors.testBase64.test(buffer.toString('ascii'))) {
throw new errors.InvalidFormat(files.vaultFile);
}

Expand Down
2 changes: 1 addition & 1 deletion src/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ module.exports = {
WrongKey,
WrongKeysize,
InvalidFormat,
test_base64: /^[0-9a-zA-Z/+=]+[\s]?$/,
testBase64: /^[0-9a-zA-Z/+=]+[\s]?$/,
};
2 changes: 1 addition & 1 deletion src/error/keyfile_not_found_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ const files = require('../files.js');
module.exports = class KeyfileNotFound extends Error {
constructor() {
super('The key file could not be found.');
this.keyfile_path = files.key_file;
this.keyfilePath = files.keyFile;
}
};
2 changes: 1 addition & 1 deletion src/error/vaultfile_not_found_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ const files = require('../files.js');
module.exports = class VaultfileNotFound extends Error {
constructor() {
super('The vault file could not be found.');
this.vaultfile_path = files.vault_file;
this.vaultfilePath = files.vaultFile;
}
};

0 comments on commit 79a7231

Please sign in to comment.