From 3ad10050743fa4fc11332205b3bd335b5a630243 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <adhisimon@gmail.com>
Date: Wed, 19 Jun 2024 18:58:08 +0700
Subject: [PATCH] Move systemd-notify to optional dep and remove which from dep

---
 package-lock.json | 48 ++++++------------------------------------------
 package.json      |  9 ++++-----
 2 files changed, 10 insertions(+), 47 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 8fb005a..e39f662 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -37,18 +37,17 @@
         "tektrans-logger": "^1.2.5",
         "uniqid": "^4.1.1",
         "url-join": "^4.0.1",
-        "uuid": "^9.0.0",
-        "which": "^4.0.0"
+        "uuid": "^9.0.0"
       },
       "devDependencies": {
         "auto-changelog": "^2.4.0",
         "eslint": "^8.6.0",
         "eslint-config-airbnb-base": "^15.0.0",
-        "eslint-plugin-import": "^2.25.4",
-        "systemd-notify": "^1.0.0"
+        "eslint-plugin-import": "^2.25.4"
       },
       "optionalDependencies": {
-        "sd-notify": "^2.8.0"
+        "sd-notify": "^2.8.0",
+        "systemd-notify": "^1.0.0"
       }
     },
     "node_modules/@cloudcmd/copy-file": {
@@ -2116,14 +2115,6 @@
         "url": "https://github.com/sponsors/ljharb"
       }
     },
-    "node_modules/isexe": {
-      "version": "3.1.1",
-      "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz",
-      "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==",
-      "engines": {
-        "node": ">=16"
-      }
-    },
     "node_modules/isstream": {
       "version": "0.1.2",
       "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
@@ -3290,7 +3281,7 @@
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/systemd-notify/-/systemd-notify-1.0.0.tgz",
       "integrity": "sha512-KP/Qn747dzdOgc7BEk3qd3EZWauwJ+aupqo3Upz134r4WZQJhU+qyJFnGMsMzj/NQf7XfPFq/LQogpqZuZmNXA==",
-      "dev": true
+      "optional": true
     },
     "node_modules/tektrans-logger": {
       "version": "1.2.5",
@@ -3552,20 +3543,6 @@
         "webidl-conversions": "^3.0.0"
       }
     },
-    "node_modules/which": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz",
-      "integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==",
-      "dependencies": {
-        "isexe": "^3.1.1"
-      },
-      "bin": {
-        "node-which": "bin/which.js"
-      },
-      "engines": {
-        "node": "^16.13.0 || >=18.0.0"
-      }
-    },
     "node_modules/which-boxed-primitive": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",
@@ -5236,11 +5213,6 @@
         "call-bind": "^1.0.2"
       }
     },
-    "isexe": {
-      "version": "3.1.1",
-      "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz",
-      "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ=="
-    },
     "isstream": {
       "version": "0.1.2",
       "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
@@ -6102,7 +6074,7 @@
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/systemd-notify/-/systemd-notify-1.0.0.tgz",
       "integrity": "sha512-KP/Qn747dzdOgc7BEk3qd3EZWauwJ+aupqo3Upz134r4WZQJhU+qyJFnGMsMzj/NQf7XfPFq/LQogpqZuZmNXA==",
-      "dev": true
+      "optional": true
     },
     "tektrans-logger": {
       "version": "1.2.5",
@@ -6312,14 +6284,6 @@
         "webidl-conversions": "^3.0.0"
       }
     },
-    "which": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz",
-      "integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==",
-      "requires": {
-        "isexe": "^3.1.1"
-      }
-    },
     "which-boxed-primitive": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",
diff --git a/package.json b/package.json
index 46e1008..afe3042 100644
--- a/package.json
+++ b/package.json
@@ -48,17 +48,16 @@
     "tektrans-logger": "^1.2.5",
     "uniqid": "^4.1.1",
     "url-join": "^4.0.1",
-    "uuid": "^9.0.0",
-    "which": "^4.0.0"
+    "uuid": "^9.0.0"
   },
   "devDependencies": {
     "auto-changelog": "^2.4.0",
     "eslint": "^8.6.0",
     "eslint-config-airbnb-base": "^15.0.0",
-    "eslint-plugin-import": "^2.25.4",
-    "systemd-notify": "^1.0.0"
+    "eslint-plugin-import": "^2.25.4"
   },
   "optionalDependencies": {
-    "sd-notify": "^2.8.0"
+    "sd-notify": "^2.8.0",
+    "systemd-notify": "^1.0.0"
   }
 }
-- 
1.9.0