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

@@ -1,16 +1,6 @@
import assert from 'node:assert';
import * as database from './database.js';
import database from './database.js';
export {
get,
set,
unset,
getByAppId,
getByName,
unsetByAppId,
getAppIdByValue,
};
async function set(appId, addonId, env) {
assert.strictEqual(typeof appId, 'string');
@@ -77,3 +67,14 @@ async function getByName(appId, addonId, namePattern) {
if (results.length === 0) return null;
return results[0].value;
}
export default {
get,
set,
unset,
getByAppId,
getByName,
unsetByAppId,
getAppIdByValue,
};