New:Socket for Asana Is Now Available.Learn more
Get Started

@arcjet/analyze

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcjet/analyze - npm Package Compare versions

Comparing version
1.10.0
to
1.11.0
+10
-5
dist/index.js

@@ -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");

{
"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 @@ },