From 7cd95d302741f70eec47b766cfd7115a0c53bf4d Mon Sep 17 00:00:00 2001 From: Minttu Hurme Date: Fri, 17 Jan 2025 11:08:09 +0200 Subject: [PATCH] Try to fix module-type errors --- package.json | 2 +- src/mongoLog.js | 2 +- src/utils.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 83c1f7ff..8911907f 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "license": "MIT", "version": "4.2.4-alpha.2", - "type": "module", + "typeFOO": "module", "main": "./dist/index.js", "engines": { "node": ">=18" diff --git a/src/mongoLog.js b/src/mongoLog.js index fb11f098..5790ac43 100644 --- a/src/mongoLog.js +++ b/src/mongoLog.js @@ -7,7 +7,7 @@ import {logError} from './utils.js'; import moment from 'moment'; import httpStatus from 'http-status'; import sanitize from 'mongo-sanitize'; -import {LOG_ITEM_TYPE} from './constants'; +import {LOG_ITEM_TYPE} from './constants.js'; /** * Create log operator diff --git a/src/utils.js b/src/utils.js index 8541ebb4..b3d671de 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,6 +1,6 @@ import {createLogger} from '@natlibfi/melinda-backend-commons'; import {Error as ApiError} from '@natlibfi/melinda-commons'; -import {IMPORT_JOB_STATE, OPERATIONS} from './constants'; +import {IMPORT_JOB_STATE, OPERATIONS} from './constants.js'; import httpStatus from 'http-status'; const logger = createLogger();