@arcjet/analyze
Advanced tools
+10
-5
@@ -62,3 +62,4 @@ import { initializeWasm } from "@arcjet/analyze-wasm"; | ||
| const { log } = context; | ||
| const analyze = await initializeWasm(createCoreImports()); | ||
| const coreImports = createCoreImports(); | ||
| const analyze = await initializeWasm(coreImports); | ||
| if (typeof analyze !== "undefined") return analyze.generateFingerprint(JSON.stringify(request), context.characteristics); | ||
@@ -82,3 +83,4 @@ log.debug("WebAssembly is not supported in this runtime"); | ||
| const { log } = context; | ||
| const analyze = await initializeWasm(createCoreImports()); | ||
| const coreImports = createCoreImports(); | ||
| const analyze = await initializeWasm(coreImports); | ||
| if (typeof analyze !== "undefined") return analyze.isValidEmail(value, options); | ||
@@ -105,3 +107,4 @@ log.debug("WebAssembly is not supported in this runtime"); | ||
| const { log } = context; | ||
| const analyze = await initializeWasm(createCoreImports()); | ||
| const coreImports = createCoreImports(); | ||
| const analyze = await initializeWasm(coreImports); | ||
| if (typeof analyze !== "undefined") return analyze.detectBot(JSON.stringify(request), options); | ||
@@ -136,3 +139,4 @@ log.debug("WebAssembly is not supported in this runtime"); | ||
| const { log } = context; | ||
| const analyze = await initializeWasm(createCoreImports(detect)); | ||
| const coreImports = createCoreImports(detect); | ||
| const analyze = await initializeWasm(coreImports); | ||
| if (typeof analyze !== "undefined") { | ||
@@ -164,3 +168,4 @@ const skipCustomDetect = typeof detect !== "function"; | ||
| async function matchFilters(context, request, localFields, expressions, allowIfMatch) { | ||
| const analyze = await initializeWasm(createCoreImports()); | ||
| const coreImports = createCoreImports(); | ||
| const analyze = await initializeWasm(coreImports); | ||
| if (typeof analyze !== "undefined") return analyze.matchFilters(JSON.stringify(request), localFields, expressions, allowIfMatch); | ||
@@ -167,0 +172,0 @@ context.log.debug("WebAssembly is not supported in this runtime"); |
+4
-4
| { | ||
| "name": "@arcjet/analyze", | ||
| "version": "1.10.0", | ||
| "version": "1.11.0", | ||
| "description": "Arcjet local analysis engine", | ||
@@ -53,4 +53,4 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@arcjet/analyze-wasm": "1.10.0", | ||
| "@arcjet/protocol": "1.10.0" | ||
| "@arcjet/analyze-wasm": "1.11.0", | ||
| "@arcjet/protocol": "1.11.0" | ||
| }, | ||
@@ -60,3 +60,3 @@ "devDependencies": { | ||
| "@types/node": "22.20.1", | ||
| "tsdown": "0.22.7", | ||
| "tsdown": "0.22.14", | ||
| "typescript": "7.0.2" | ||
@@ -63,0 +63,0 @@ }, |
24956
0.69%302
1.68%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated
Updated