@riavzon/bot-detector 1.0.14 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.mjs CHANGED
@@ -907,10 +907,10 @@ async function configuration(config) {
907
907
  if (!globalBatchQueue) {
908
908
  globalBatchQueue = new BatchQueue();
909
909
  process.on("SIGTERM", () => {
910
- globalBatchQueue?.shutdown();
910
+ globalBatchQueue?.shutdown().then(() => process.exit(0));
911
911
  });
912
912
  process.on("SIGINT", () => {
913
- globalBatchQueue?.shutdown();
913
+ globalBatchQueue?.shutdown().then(() => process.exit(0));
914
914
  });
915
915
  }
916
916
  };