From d7576b8d48160cfc4aac8a7cdbcb58defee2edd6 Mon Sep 17 00:00:00 2001 From: Lluis Date: Tue, 2 Apr 2024 10:32:19 +0200 Subject: [PATCH] update package-lock.json and add console log --- index.js | 1 + package-lock.json | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/index.js b/index.js index bff84fd..475f219 100644 --- a/index.js +++ b/index.js @@ -82,6 +82,7 @@ async function updateClients() { const updatedIds = [...new Set([...ipsForClient])]; + console.log(`Client ${client.name} has IPs: ${originalClientIps} and updated IPs: ${updatedIds}`) if (!arraysEqual(originalClientIps, updatedIds)) { client.ids = updatedIds.concat(client.ids.filter(id => !isIp(id))); const updateObj = { diff --git a/package-lock.json b/package-lock.json index 2c5d5c5..80237b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "AGPL-3.0-or-later", "dependencies": { "dotenv": "^16.3.2", + "ip": "^2.0.1", "ip-wrapper": "^1.1.1" } }, @@ -24,6 +25,11 @@ "url": "https://github.com/motdotla/dotenv?sponsor=1" } }, + "node_modules/ip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz", + "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==" + }, "node_modules/ip-wrapper": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ip-wrapper/-/ip-wrapper-1.1.1.tgz",