export SettingScope (define it above the exports)

This commit is contained in:
2022-11-06 01:06:28 -07:00
parent 73a405c008
commit c796967226

View File

@@ -8,19 +8,20 @@ const hash = require("hash.js");
const Authenticator = require("otplib").authenticator.Authenticator; const Authenticator = require("otplib").authenticator.Authenticator;
const BrowserpassURL = require("@browserpass/url"); const BrowserpassURL = require("@browserpass/url");
const SettingScope = {
// query a setting first from the login, then the store, then globally
Login: "login",
// query a setting first from the store, then globally
Store: "store",
};
module.exports = { module.exports = {
prepareLogins, prepareLogins,
filterSortLogins, filterSortLogins,
getSetting, getSetting,
ignoreFiles, ignoreFiles,
makeTOTP, makeTOTP,
}; SettingScope,
const SettingScope = {
// query a setting first from the login, then the store, then globally
Login: "login",
// query a setting first from the store, then globally
Store: "store",
}; };
//----------------------------------- Function definitions ----------------------------------// //----------------------------------- Function definitions ----------------------------------//