@arcjet/protocol
Advanced tools
+18
-2
@@ -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" |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
203285
0.18%5902
0.27%0
-100%+ Added
- Removed
Updated