From c7969672263d08eac7a35f249b6fb8661f75334c Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 6 Nov 2022 01:06:28 -0700 Subject: [PATCH] export `SettingScope` (define it above the exports) --- src/helpers.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/helpers.js b/src/helpers.js index 89690b1..44d9612 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -8,19 +8,20 @@ const hash = require("hash.js"); const Authenticator = require("otplib").authenticator.Authenticator; 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 = { prepareLogins, filterSortLogins, getSetting, ignoreFiles, makeTOTP, -}; - -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", + SettingScope, }; //----------------------------------- Function definitions ----------------------------------//