Comparing version 1.2.0 to 1.2.1
@@ -1,2 +0,1 @@ | ||
import { SealOptions } from 'iron-webcrypto'; | ||
import { CookieSerializeOptions } from 'cookie-es'; | ||
@@ -7,2 +6,49 @@ import { IncomingMessage, ServerResponse, OutgoingMessage } from 'node:http'; | ||
/** | ||
* seal() method options. | ||
*/ | ||
interface SealOptionsSub { | ||
/** | ||
* The length of the salt (random buffer used to ensure that two identical objects will generate a different encrypted result). Defaults to 256. | ||
*/ | ||
saltBits: number; | ||
/** | ||
* The algorithm used. Defaults to 'aes-256-cbc' for encryption and 'sha256' for integrity. | ||
*/ | ||
algorithm: "aes-128-ctr" | "aes-256-cbc" | "sha256"; | ||
/** | ||
* The number of iterations used to derive a key from the password. Defaults to 1. | ||
*/ | ||
iterations: number; | ||
/** | ||
* Minimum password size. Defaults to 32. | ||
*/ | ||
minPasswordlength: number; | ||
} | ||
/** | ||
* Options for customizing the key derivation algorithm used to generate encryption and integrity verification keys as well as the algorithms and salt sizes used. | ||
*/ | ||
interface SealOptions { | ||
/** | ||
* Encryption step options. | ||
*/ | ||
encryption: SealOptionsSub; | ||
/** | ||
* Integrity step options. | ||
*/ | ||
integrity: SealOptionsSub; | ||
/** | ||
* Sealed object lifetime in milliseconds where 0 means forever. Defaults to 0. | ||
*/ | ||
ttl: number; | ||
/** | ||
* Number of seconds of permitted clock skew for incoming expirations. Defaults to 60 seconds. | ||
*/ | ||
timestampSkewSec: number; | ||
/** | ||
* Local clock time offset, expressed in number of milliseconds (positive or negative). Defaults to 0. | ||
*/ | ||
localtimeOffsetMsec: number; | ||
} | ||
type SessionDataT = Record<string, string | number | boolean>; | ||
@@ -9,0 +55,0 @@ type SessionData<T extends SessionDataT = SessionDataT> = T; |
{ | ||
"name": "h3", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Tiny JavaScript Server", | ||
@@ -25,3 +25,2 @@ "repository": "unjs/h3", | ||
"destr": "^1.2.2", | ||
"iron-webcrypto": "^0.2.7", | ||
"radix3": "^1.0.0", | ||
@@ -28,0 +27,0 @@ "ufo": "^1.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152985
5
4690
- Removediron-webcrypto@^0.2.7
- Removedbase64-js@1.5.1(transitive)
- Removedbuffer@6.0.3(transitive)
- Removedieee754@1.2.1(transitive)
- Removediron-webcrypto@0.2.8(transitive)