migrate to "export default"
also, set no-use-before-define in linter
This commit is contained in:
+10
-10
@@ -2,22 +2,13 @@ import assert from 'node:assert';
|
||||
import BoxError from './boxerror.js';
|
||||
import constants from './constants.js';
|
||||
import crypto from 'node:crypto';
|
||||
import * as database from './database.js';
|
||||
import database from './database.js';
|
||||
import Docker from 'dockerode';
|
||||
import eventlog from './eventlog.js';
|
||||
import paths from './paths.js';
|
||||
import safe from 'safetydance';
|
||||
import tld from 'tldjs';
|
||||
|
||||
export {
|
||||
removePrivateFields,
|
||||
|
||||
list,
|
||||
add,
|
||||
get,
|
||||
del,
|
||||
update,
|
||||
};
|
||||
|
||||
const REGISTRY_FIELDS = [ 'id', 'provider', 'serverAddress', 'username', 'email', 'password' ].join(',');
|
||||
|
||||
@@ -119,3 +110,12 @@ async function del(registry, auditSource) {
|
||||
await eventlog.add(eventlog.ACTION_REGISTRY_DEL, auditSource, { registry: removePrivateFields(registry) });
|
||||
}
|
||||
|
||||
export default {
|
||||
removePrivateFields,
|
||||
|
||||
list,
|
||||
add,
|
||||
get,
|
||||
del,
|
||||
update,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user