@jeffusion/bungee-core 6.19.1 → 6.19.2

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.
@@ -12549,6 +12549,13 @@ scope.onmessage = (event) => {
12549
12549
  scope.close();
12550
12550
  return;
12551
12551
  }
12552
+ if (request.method === "probe") {
12553
+ if (request.args.length !== 0)
12554
+ throw new ConfigRepositoryError("invalid_command", "storage probe request is invalid");
12555
+ repository.getRuntimeEpoch();
12556
+ scope.postMessage({ id, ok: true, result: null });
12557
+ return;
12558
+ }
12552
12559
  if (typeof request.method !== "string" || !methods.has(request.method)) {
12553
12560
  throw new ConfigRepositoryError("invalid_command", "storage method is not permitted");
12554
12561
  }