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

@arcjet/headers

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcjet/headers - npm Package Compare versions

Comparing version
1.9.1
to
1.10.0-rc.0
+32
-32
dist/index.d.ts
//#region src/index.d.ts
type HeadersInit = Headers | Array<[string, string]> | Record<string, Array<string> | string | undefined>;
/**
* Arcjet headers.
*
* This exists to prevent the `cookie` header from being set
* and non-string values from being set.
*
* @see
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers).
*/
* Arcjet headers.
*
* This exists to prevent the `cookie` header from being set
* and non-string values from being set.
*
* @see
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers).
*/
declare class ArcjetHeaders extends Headers {
constructor(init?: HeadersInit | undefined);
/**
* Append a header while ignoring `cookie`.
*
* @see
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
*
* @param key
* Header name.
* @param value
* Header value.
* @returns
* Nothing.
*/
* Append a header while ignoring `cookie`.
*
* @see
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
*
* @param key
* Header name.
* @param value
* Header value.
* @returns
* Nothing.
*/
append: (key: string, value: string) => void;
/**
* Set a header while ignoring `cookie`.
*
* @see
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)
*
* @param key
* Header key.
* @param value
* Header value.
* @returns
* Nothing.
*/
* Set a header while ignoring `cookie`.
*
* @see
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)
*
* @param key
* Header key.
* @param value
* Header value.
* @returns
* Nothing.
*/
set: (key: string, value: string) => void;

@@ -42,0 +42,0 @@ }

{
"name": "@arcjet/headers",
"version": "1.9.1",
"version": "1.10.0-rc.0",
"description": "Arcjet extension of the Headers class",

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

"build": "tsdown",
"typecheck": "tsgo --noEmit",
"typecheck": "tsc --noEmit",
"test-api": "node --test -- test/*.test.ts",

@@ -53,5 +53,5 @@ "test-coverage": "node --experimental-test-coverage --test -- test/*.test.ts",

"devDependencies": {
"@types/node": "22.19.21",
"tsdown": "0.22.3",
"typescript": "6.0.3"
"@types/node": "22.20.1",
"tsdown": "0.22.7",
"typescript": "7.0.2"
},

@@ -58,0 +58,0 @@ "engines": {