@patchstack/connect 0.5.7 → 0.5.9

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.
@@ -3014,6 +3014,7 @@ var DEFAULT_BASE_URL2 = "https://api.patchstack.com/monitor/pulse";
3014
3014
  var DEFAULT_CACHE_TTL2 = 3e5;
3015
3015
  var BUILD_VERDICT_HEADER = "X-Patchstack-Build-Match";
3016
3016
  var BUILD_IDENTITY_HEADER = "X-Patchstack-Build-ID";
3017
+ var PER_RULE_DRY_RUN_HEADER = "X-Patchstack-Per-Rule-Dry-Run";
3017
3018
  var JITTER_FRACTION2 = 0.1;
3018
3019
  var PulseRuleClient = class {
3019
3020
  #siteUuid;
@@ -3058,6 +3059,9 @@ var PulseRuleClient = class {
3058
3059
  if (this.#buildId !== null && typeof auth.Authorization === "string") {
3059
3060
  headers["X-Patchstack-Build"] = this.#buildId;
3060
3061
  }
3062
+ if (typeof auth.Authorization === "string") {
3063
+ headers[PER_RULE_DRY_RUN_HEADER] = "1";
3064
+ }
3061
3065
  if (this.#etag) headers["If-None-Match"] = this.#etag;
3062
3066
  const response = await fetch(url, { method: "GET", headers, signal: AbortSignal.timeout(this.#timeoutMs) });
3063
3067
  if (response.status === 304) {