@webdecoy/node 0.21.0 → 0.21.1

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.
@@ -709,7 +709,7 @@ async function Nt(e, t, r, n = fetch) {
709
709
  let a = new AbortController(), i = setTimeout(() => a.abort(), 3e3);
710
710
  try {
711
711
  let s = await n(e.replace(/\/+$/, "") + "/api/v1/clearance", { method: "POST", headers: { "content-type": "application/json", "user-agent": "WebDecoy-OutageProbe/1" }, body: JSON.stringify({ aid: t, fp: "wd-outage-probe", scope: "", ua: "WebDecoy-OutageProbe/1" }), signal: a.signal });
712
- s.status < 300 && (o = typeof (await s.json())?.granted == "boolean");
712
+ s.status === 429 ? o = true : s.status < 300 && (o = typeof (await s.json())?.granted == "boolean");
713
713
  } finally {
714
714
  clearTimeout(i);
715
715
  }
@@ -1290,7 +1290,7 @@ function kr(e = fetch) {
1290
1290
  function Qe(e, t, r, n = fetch) {
1291
1291
  return Ze(e, t, r, kr(n));
1292
1292
  }
1293
- var ne = "vercel-895bda3b1f84";
1293
+ var ne = "vercel-cdf7f282c461";
1294
1294
  var et = "https://in.webdecoy.com";
1295
1295
  function tt(e) {
1296
1296
  let t = new Headers(e.headers);
package/dist/index.js CHANGED
@@ -4490,7 +4490,7 @@ async function Nt(e, t, r, n = fetch) {
4490
4490
  let a = new AbortController(), i = setTimeout(() => a.abort(), 3e3);
4491
4491
  try {
4492
4492
  let s = await n(e.replace(/\/+$/, "") + "/api/v1/clearance", { method: "POST", headers: { "content-type": "application/json", "user-agent": "WebDecoy-OutageProbe/1" }, body: JSON.stringify({ aid: t, fp: "wd-outage-probe", scope: "", ua: "WebDecoy-OutageProbe/1" }), signal: a.signal });
4493
- s.status < 300 && (o = typeof (await s.json())?.granted == "boolean");
4493
+ s.status === 429 ? o = true : s.status < 300 && (o = typeof (await s.json())?.granted == "boolean");
4494
4494
  } finally {
4495
4495
  clearTimeout(i);
4496
4496
  }
@@ -5071,7 +5071,7 @@ function kr(e = fetch) {
5071
5071
  function Qe(e, t, r, n = fetch) {
5072
5072
  return Ze(e, t, r, kr(n));
5073
5073
  }
5074
- var ne = "vercel-895bda3b1f84";
5074
+ var ne = "vercel-cdf7f282c461";
5075
5075
  var et = "https://in.webdecoy.com";
5076
5076
  function tt(e) {
5077
5077
  let t = new Headers(e.headers);
package/dist/index.mjs CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  normalizeIp,
63
63
  resolveClientIp,
64
64
  resolveGateEnv
65
- } from "./chunk-PKHQ5VPQ.mjs";
65
+ } from "./chunk-2CNR4XKA.mjs";
66
66
 
67
67
  // src/client-signals.ts
68
68
  var MemoryClientSignalStore = class {
package/dist/vercel.js CHANGED
@@ -590,7 +590,7 @@ async function Nt(e, t, r, n = fetch) {
590
590
  let a = new AbortController(), i = setTimeout(() => a.abort(), 3e3);
591
591
  try {
592
592
  let s = await n(e.replace(/\/+$/, "") + "/api/v1/clearance", { method: "POST", headers: { "content-type": "application/json", "user-agent": "WebDecoy-OutageProbe/1" }, body: JSON.stringify({ aid: t, fp: "wd-outage-probe", scope: "", ua: "WebDecoy-OutageProbe/1" }), signal: a.signal });
593
- s.status < 300 && (o = typeof (await s.json())?.granted == "boolean");
593
+ s.status === 429 ? o = true : s.status < 300 && (o = typeof (await s.json())?.granted == "boolean");
594
594
  } finally {
595
595
  clearTimeout(i);
596
596
  }
@@ -1171,7 +1171,7 @@ function kr(e = fetch) {
1171
1171
  function Qe(e, t, r, n = fetch) {
1172
1172
  return Ze(e, t, r, kr(n));
1173
1173
  }
1174
- var ne = "vercel-895bda3b1f84";
1174
+ var ne = "vercel-cdf7f282c461";
1175
1175
  var et = "https://in.webdecoy.com";
1176
1176
  function tt(e) {
1177
1177
  let t = new Headers(e.headers);
package/dist/vercel.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createClearanceGate
3
- } from "./chunk-PKHQ5VPQ.mjs";
3
+ } from "./chunk-2CNR4XKA.mjs";
4
4
 
5
5
  // src/vercel.ts
6
6
  function toMiddlewareResponse(outcome) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webdecoy/node",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Web Decoy SDK for Node.js - Bot detection with TLS fingerprinting",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",