@webdecoy/node 0.25.0 → 0.25.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.
- package/dist/{chunk-ABIJ7NMX.mjs → chunk-AUHVIVMA.mjs} +6 -0
- package/dist/{chunk-6EZSYRYE.mjs → chunk-G5WMRJSQ.mjs} +109 -107
- package/dist/{detect-and-gate-DhKYwcQ1.d.mts → detect-and-gate-B1HMK-Sd.d.mts} +1 -1
- package/dist/{detect-and-gate-CEpuKXTE.d.ts → detect-and-gate-B4KDPdyP.d.ts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +114 -106
- package/dist/index.mjs +2 -2
- package/dist/{sdk-D8Cn_xRm.d.mts → sdk-UlKzxL3L.d.mts} +1 -1
- package/dist/{sdk-D8Cn_xRm.d.ts → sdk-UlKzxL3L.d.ts} +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +6 -0
- package/dist/testing.mjs +1 -1
- package/dist/vercel.d.mts +2 -2
- package/dist/vercel.d.ts +2 -2
- package/dist/vercel.js +114 -106
- package/dist/vercel.mjs +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveGateEnv,
|
|
12
12
|
ruleBlockResponse,
|
|
13
13
|
shouldSkipPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-G5WMRJSQ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
ATTACK_SIGNATURE_IDS,
|
|
17
17
|
AgentVerifier,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
tripwire,
|
|
69
69
|
upstashRateLimitStore,
|
|
70
70
|
webBotAuth
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-AUHVIVMA.mjs";
|
|
72
72
|
|
|
73
73
|
// src/client-signals.ts
|
|
74
74
|
var MemoryClientSignalStore = class {
|
|
@@ -310,7 +310,7 @@ declare function readEdgeVerdict(headers: Record<string, string> | undefined): E
|
|
|
310
310
|
* agents share User-Agent substrings, so sorting this array changes how real
|
|
311
311
|
* traffic is classified.
|
|
312
312
|
*
|
|
313
|
-
*
|
|
313
|
+
* 251 agents across 15 categories.
|
|
314
314
|
*/
|
|
315
315
|
/**
|
|
316
316
|
* Classification categories, mirroring `agents.Category` in Go.
|
|
@@ -310,7 +310,7 @@ declare function readEdgeVerdict(headers: Record<string, string> | undefined): E
|
|
|
310
310
|
* agents share User-Agent substrings, so sorting this array changes how real
|
|
311
311
|
* traffic is classified.
|
|
312
312
|
*
|
|
313
|
-
*
|
|
313
|
+
* 251 agents across 15 categories.
|
|
314
314
|
*/
|
|
315
315
|
/**
|
|
316
316
|
* Classification categories, mirroring `agents.Category` in Go.
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a5 as WebDecoyConfig, Q as RequestMetadata, W as WebDecoy, P as ProtectResult, V as RuleState } from './sdk-
|
|
1
|
+
import { a5 as WebDecoyConfig, Q as RequestMetadata, W as WebDecoy, P as ProtectResult, V as RuleState } from './sdk-UlKzxL3L.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Testing utilities, for the application's test suite rather than ours.
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a5 as WebDecoyConfig, Q as RequestMetadata, W as WebDecoy, P as ProtectResult, V as RuleState } from './sdk-
|
|
1
|
+
import { a5 as WebDecoyConfig, Q as RequestMetadata, W as WebDecoy, P as ProtectResult, V as RuleState } from './sdk-UlKzxL3L.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Testing utilities, for the application's test suite rather than ours.
|
package/dist/testing.js
CHANGED
|
@@ -358,6 +358,7 @@ function toWireDetectionRequest(request2) {
|
|
|
358
358
|
|
|
359
359
|
// src/bots/registry.generated.ts
|
|
360
360
|
var BOT_REGISTRY = [
|
|
361
|
+
{ id: "hunyuan", name: "Hunyuan", category: "training_crawler", organization: "Unknown", baseScore: 70, respectsRobots: false, uaPatterns: ["hunyuan/"] },
|
|
361
362
|
{ id: "speridlabsresearchcrawler", name: "SperidLabsResearchCrawler", category: "training_crawler", organization: "Speridlabs", baseScore: 75, respectsRobots: false, uaPatterns: ["speridlabsresearchcrawler"] },
|
|
362
363
|
{ id: "abliterantbot", name: "AbliterantBot", category: "training_crawler", organization: "Abliterant", baseScore: 75, respectsRobots: false, uaPatterns: ["abliterantbot"] },
|
|
363
364
|
{ id: "tokenfoundrybot", name: "TokenFoundryBot", category: "training_crawler", organization: "Unknown", baseScore: 75, respectsRobots: false, uaPatterns: ["tokenfoundrybot"] },
|
|
@@ -428,6 +429,8 @@ var BOT_REGISTRY = [
|
|
|
428
429
|
{ id: "manus-user", name: "Manus-User", category: "ai_agent", organization: "Manus", baseScore: 70, respectsRobots: false, uaPatterns: ["manus-user"] },
|
|
429
430
|
{ id: "multion", name: "MultiOn", category: "ai_agent", organization: "MultiOn", baseScore: 70, respectsRobots: false, uaPatterns: ["multion"] },
|
|
430
431
|
{ id: "opencode-user", name: "OpenCode-User", category: "ai_agent", organization: "OpenCode", baseScore: 75, respectsRobots: false, uaPatterns: ["opencode-user"] },
|
|
432
|
+
{ id: "360spider", name: "360Spider", category: "search_crawler", organization: "Qihoo 360", baseScore: 40, respectsRobots: true, uaPatterns: ["360spider"] },
|
|
433
|
+
{ id: "cgmsearchbot", name: "CGMSearchBot", category: "search_crawler", organization: "CGMIMM", baseScore: 40, respectsRobots: true, uaPatterns: ["cgmsearchbot"] },
|
|
431
434
|
{ id: "iboubot", name: "IbouBot", category: "search_crawler", organization: "Ibou", baseScore: 30, respectsRobots: true, uaPatterns: ["iboubot", "ibou-search"] },
|
|
432
435
|
{ id: "googlebot", name: "Googlebot", category: "search_crawler", organization: "Google", baseScore: 30, respectsRobots: true, uaPatterns: ["googlebot"] },
|
|
433
436
|
{ id: "google-inspectiontool", name: "Google-InspectionTool", category: "search_crawler", organization: "Google", baseScore: 30, respectsRobots: true, uaPatterns: ["google-inspectiontool"] },
|
|
@@ -575,6 +578,9 @@ var BOT_REGISTRY = [
|
|
|
575
578
|
{ id: "miniflux", name: "Miniflux", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["miniflux"] },
|
|
576
579
|
{ id: "freshrss", name: "FreshRSS", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["freshrss"] },
|
|
577
580
|
{ id: "commafeed", name: "CommaFeed", category: "feed_reader", organization: "Open Source", baseScore: 25, respectsRobots: true, uaPatterns: ["commafeed"] },
|
|
581
|
+
{ id: "spiderling", name: "SpiderLing", category: "commercial_scraper", organization: "Lexical Computing", baseScore: 55, respectsRobots: true, uaPatterns: ["spiderling", "sketchengine"] },
|
|
582
|
+
{ id: "netapi", name: "NetAPI Bot", category: "commercial_scraper", organization: "NetAPI", baseScore: 50, respectsRobots: true, uaPatterns: ["netapi/"] },
|
|
583
|
+
{ id: "anticlonebot", name: "AntiCloneBot", category: "commercial_scraper", organization: "AntiClone", baseScore: 45, respectsRobots: true, uaPatterns: ["anticlonebot"] },
|
|
578
584
|
{ id: "terncrawler", name: "TernCrawler", category: "commercial_scraper", organization: "Unknown", baseScore: 60, respectsRobots: false, uaPatterns: ["terncrawler"] },
|
|
579
585
|
{ id: "diffbot", name: "Diffbot", category: "commercial_scraper", organization: "Diffbot", baseScore: 70, respectsRobots: true, uaPatterns: ["diffbot"] },
|
|
580
586
|
{ id: "import-io", name: "Import.io", category: "commercial_scraper", organization: "Import.io", baseScore: 65, respectsRobots: true, uaPatterns: ["import.io"] },
|
package/dist/testing.mjs
CHANGED
package/dist/vercel.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ClearanceGateOptions, C as ClearanceContext, D as DetectAndGateOptions, d as GateOutcome } from './detect-and-gate-
|
|
2
|
-
import './sdk-
|
|
1
|
+
import { a as ClearanceGateOptions, C as ClearanceContext, D as DetectAndGateOptions, d as GateOutcome } from './detect-and-gate-B1HMK-Sd.mjs';
|
|
2
|
+
import './sdk-UlKzxL3L.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* WebDecoy for Vercel Routing Middleware, any framework.
|
package/dist/vercel.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ClearanceGateOptions, C as ClearanceContext, D as DetectAndGateOptions, d as GateOutcome } from './detect-and-gate-
|
|
2
|
-
import './sdk-
|
|
1
|
+
import { a as ClearanceGateOptions, C as ClearanceContext, D as DetectAndGateOptions, d as GateOutcome } from './detect-and-gate-B4KDPdyP.js';
|
|
2
|
+
import './sdk-UlKzxL3L.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* WebDecoy for Vercel Routing Middleware, any framework.
|