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
+9 -8
View File
@@ -3,25 +3,20 @@ import assert from 'node:assert';
import BoxError from './boxerror.js';
import constants from './constants.js';
import debugModule from 'debug';
import * as docker from './docker.js';
import docker from './docker.js';
import fs from 'node:fs';
import net from 'node:net';
import * as network from './network.js';
import network from './network.js';
import os from 'node:os';
import { Readable } from 'node:stream';
import safe from 'safetydance';
import shellModule from './shell.js';
import superagent from '@cloudron/superagent';
import * as _ from './underscore.js';
import _ from './underscore.js';
const debug = debugModule('box:metrics');
const shell = shellModule('metrics');
export {
get,
getStream,
sendToGraphite
};
function translateContainerStatsSync(stats) {
assert.strictEqual(typeof stats, 'object');
@@ -500,3 +495,9 @@ async function getStream(options) {
return metricsStream;
}
export default {
get,
getStream,
sendToGraphite
};