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
+5 -4
View File
@@ -1,12 +1,9 @@
import assert from 'node:assert';
import BoxError from '../boxerror.js';
import * as community from '../community.js';
import community from '../community.js';
import { HttpSuccess } from '@cloudron/connect-lastmile';
import safe from 'safetydance';
export {
getAppVersion
};
async function getAppVersion(req, res, next) {
assert.strictEqual(typeof req.query.url, 'string');
@@ -17,3 +14,7 @@ async function getAppVersion(req, res, next) {
next(new HttpSuccess(200, result)); // { manifest, publishState, creationDate, ts }
}
export default {
getAppVersion
};