migrate to "export default"
also, set no-use-before-define in linter
This commit is contained in:
+10
-9
@@ -7,15 +7,6 @@ import BoxError from '../boxerror.js';
|
||||
// New backends can start from here
|
||||
// -------------------------------------------
|
||||
|
||||
export {
|
||||
removePrivateFields,
|
||||
injectPrivateFields,
|
||||
upsert,
|
||||
get,
|
||||
del,
|
||||
wait,
|
||||
verifyDomainConfig
|
||||
};
|
||||
|
||||
function removePrivateFields(domainObject) {
|
||||
// in-place removal of tokens and api keys
|
||||
@@ -77,3 +68,13 @@ async function verifyDomainConfig(domainObject) {
|
||||
|
||||
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'verifyDomainConfig is not implemented');
|
||||
}
|
||||
|
||||
export default {
|
||||
removePrivateFields,
|
||||
injectPrivateFields,
|
||||
upsert,
|
||||
get,
|
||||
del,
|
||||
wait,
|
||||
verifyDomainConfig
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user