From ed8023154b39fd0251cca4ac18752637a6fd7105 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 6 Oct 2025 00:01:51 +0300 Subject: [PATCH] feat: add module type to package.json for ES module support --- package-lock.json | 8 ++++---- package.json | 1 + src/frontend/public/env.js | 4 +--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index df1e18c..cf28f07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitip", - "version": "1.0.3", + "version": "1.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bitip", - "version": "1.0.3", + "version": "1.0.4", "license": "MIT", "workspaces": [ "src/backend", @@ -6652,7 +6652,7 @@ }, "src/backend": { "name": "bitip-backend", - "version": "1.0.3", + "version": "1.0.4", "dependencies": { "@maxmind/geoip2-node": "^6.1.0", "compression": "^1.7.4", @@ -7141,7 +7141,7 @@ }, "src/frontend": { "name": "bitip-frontend", - "version": "1.0.3", + "version": "1.0.4", "dependencies": { "@flare/utiliyo": "^1.2.2", "axios": "^1.12.2", diff --git a/package.json b/package.json index 7dfff32..566bf3d 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "bitip", "version": "1.0.4", "description": "Bitip - GeoIP Lookup Service with REST API and Web Interface", + "type": "module", "main": "dist/backend/index.js", "scripts": { "dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"", diff --git a/src/frontend/public/env.js b/src/frontend/public/env.js index 3c6d70f..1547e27 100644 --- a/src/frontend/public/env.js +++ b/src/frontend/public/env.js @@ -2,7 +2,5 @@ // DO NOT EDIT - This file is automatically generated // eslint-disable-next-line no-undef window.env = { - "BASE_PATH": "/", - "FRONTEND_API_KEY": "frontend-dev-key", - "DEBOUNCE_MS": 2000 + BASE_PATH: '/', };