Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Oct 27, 2023
1 parent d4a9a4e commit 4610ab3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .mocharc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module.exports = {
recursive: true,
extension: ['.test.mts'],
'node-option': ['loader=ts-node/esm', 'loader=testdouble', 'no-warnings'],
'node-option': ['loader=ts-node/esm', 'no-warnings'],
require: 'mocha.setup.mjs',
reporter: 'mocha-multi',
'reporter-option': [
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@myrotvorets/express-request-logger": "^1.2.0",
"@myrotvorets/facex": "^2.6.1",
"@myrotvorets/oav-installer": "^5.0.0",
"@myrotvorets/opentelemetry-configurator": "^7.0.0",
"@myrotvorets/otel-utils": "^0.0.10",
"@myrotvorets/opentelemetry-configurator": "^7.1.0",
"@myrotvorets/otel-utils": "^1.0.0",
"@opentelemetry/api": "^1.6.0",
"@opentelemetry/core": "^1.17.1",
"@opentelemetry/semantic-conventions": "^1.17.1",
Expand Down
9 changes: 3 additions & 6 deletions src/server.mts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function configureApp(app: Express): Promise<ReturnType<typeof initialize
const base = dirname(fileURLToPath(import.meta.url));

const tempDir = await mkdtemp(join(tmpdir(), 'identigraf-'));
process.once('exit', () => rmSync(tempDir, { force: true, recursive: true, maxRetries: 3 }));
process.once('beforeExit', () => rmSync(tempDir, { force: true, recursive: true, maxRetries: 3 }));

app.use(requestDurationMiddleware, scopedContainerMiddleware, loggerMiddleware);

Expand Down Expand Up @@ -81,9 +81,6 @@ export function createApp(): Express {

export async function run(): Promise<void> {
const app = createApp();
const container = await configureApp(app);
const env = container.resolve('environment');

const server = await createServer(app);
server.listen(env.PORT);
await configureApp(app);
await createServer(app);
}

0 comments on commit 4610ab3

Please sign in to comment.