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
+4 -4
View File
@@ -1,9 +1,5 @@
import assert from 'node:assert';
export {
ipFromInt,
intFromIp
};
// this code is used in migrations - 20201120212726-apps-add-containerIp.js
function intFromIp(address) {
@@ -33,3 +29,7 @@ function ipFromInt(input) {
return output.join('.');
}
export default {
ipFromInt,
intFromIp
};