Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

h3

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

h3 - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

48

dist/index.d.ts

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

3

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc