migrate to "export default"

also, set no-use-before-define in linter
This commit is contained in:
Girish Ramakrishnan
2026-02-14 15:43:24 +01:00
parent ddb46646fa
commit 36aa641cb9
231 changed files with 2846 additions and 2728 deletions

View File

@@ -4,17 +4,13 @@ import constants from './constants.js';
import debugModule from 'debug';
import eventlog from './eventlog.js';
import oidcClients from './oidcclients.js';
import * as oidcServer from './oidcserver.js';
import * as settings from './settings.js';
import * as tokens from './tokens.js';
import * as users from './users.js';
import oidcServer from './oidcserver.js';
import settings from './settings.js';
import tokens from './tokens.js';
import users from './users.js';
const debug = debugModule('box:user-directory');
export {
getProfileConfig,
setProfileConfig
};
async function getProfileConfig() {
const value = await settings.getJson(settings.PROFILE_CONFIG_KEY);
@@ -48,3 +44,8 @@ async function setProfileConfig(profileConfig, options, auditSource) {
}
}
}
export default {
getProfileConfig,
setProfileConfig
};