🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@arcjet/protocol

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcjet/protocol - npm Package Compare versions

Comparing version
1.1.0-rc
to
1.1.0
+18
-2
index.d.ts

@@ -1314,5 +1314,21 @@ import type { Cache } from "@arcjet/cache";

/**
* Objects that Arcjet core puts in the cache.
*
* Local results from `rule.protect` calls and remote results from
* `client.decide` are stored when they have a non-zero `ttl` and are a `DENY`.
*/
export interface ArcjetCacheEntry {
/**
* Conclusion.
*/
conclusion: ArcjetConclusion;
/**
* Reason.
*/
reason: ArcjetReason;
}
/**
* Arcjet context.
*/
export type ArcjetContext<T = unknown> = {
export type ArcjetContext = {
/**

@@ -1345,3 +1361,3 @@ * Arbitrary indexing into context is currently allowed but not typed.

*/
cache: Cache<T>;
cache: Cache<ArcjetCacheEntry>;
/**

@@ -1348,0 +1364,0 @@ * Function to use to read a request.

+5
-5
{
"name": "@arcjet/protocol",
"version": "1.1.0-rc",
"version": "1.1.0",
"description": "The TypeScript & JavaScript interface into the Arcjet protocol",

@@ -52,3 +52,3 @@ "keywords": [

"dependencies": {
"@arcjet/cache": "1.1.0-rc",
"@arcjet/cache": "1.1.0",
"@bufbuild/protobuf": "2.11.0",

@@ -59,6 +59,6 @@ "@connectrpc/connect": "2.1.1",

"devDependencies": {
"@arcjet/eslint-config": "1.1.0-rc",
"@arcjet/rollup-config": "1.1.0-rc",
"@arcjet/eslint-config": "1.1.0",
"@arcjet/rollup-config": "1.1.0",
"@rollup/wasm-node": "4.57.0",
"@types/node": "25.0.10",
"@types/node": "25.1.0",
"eslint": "9.39.2",

@@ -65,0 +65,0 @@ "typescript": "5.9.3"