@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.
- package/dist/{chunk-PKHQ5VPQ.mjs → chunk-2CNR4XKA.mjs} +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/vercel.js +2 -2
- package/dist/vercel.mjs +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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-
|
|
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
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-
|
|
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