Socket
Socket
Sign inDemoInstall

@hapi/hapi

Package Overview
Dependencies
Maintainers
7
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/hapi - npm Package Compare versions

Comparing version 21.3.6 to 21.3.7

lib/types/server/encoders.d.ts

17

lib/types/route.d.ts

@@ -6,3 +6,3 @@

import { MergeType, ReqRef, ReqRefDefaults, MergeRefs, AuthMode } from './request';
import { RouteRequestExtType, RouteExtObject, Server } from './server';
import { ContentDecoders, ContentEncoders, RouteRequestExtType, RouteExtObject, Server } from './server';
import { Lifecycle, Json, HTTP_METHODS_PARTIAL } from './utils';

@@ -213,7 +213,2 @@

/**
* [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-routeoptionspayloadcompression)
*/
export type PayloadCompressionDecoderSettings = object;
/**
* Determines how the request payload is processed.

@@ -242,3 +237,3 @@ * [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-routeoptionspayload)

*/
compression?: Record<string, PayloadCompressionDecoderSettings> | undefined;
compression?: { [P in keyof ContentDecoders]?: Parameters<ContentDecoders[P]>[0] } | undefined;

@@ -649,8 +644,2 @@ /**

/**
* For context [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-routeoptionscompression)
* For context [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-serverencoderencoding-encoder)
*/
export type RouteCompressionEncoderSettings = object;
export interface CommonRouteProperties<Refs extends ReqRef = ReqRefDefaults> {

@@ -690,3 +679,3 @@ /**

*/
compression?: Record<string, RouteCompressionEncoderSettings> | undefined;
compression?: { [P in keyof ContentEncoders]?: Parameters<ContentEncoders[P]>[0] } | undefined;

@@ -693,0 +682,0 @@ /**

export * from './auth';
export * from './cache';
export * from './encoders';
export * from './events';

@@ -4,0 +5,0 @@ export * from './ext';

import * as http from 'http';
import * as zlib from 'zlib';
import { Stream } from 'stream';

@@ -28,4 +28,2 @@ import { Root } from 'joi';

import {
PayloadCompressionDecoderSettings,
RouteCompressionEncoderSettings,
RulesOptions,

@@ -38,2 +36,3 @@ RulesProcessor,

import { ServerCache } from './cache';
import { ContentDecoders, ContentEncoders } from './encoders';
import { ServerEventsApplication, ServerEvents } from './events';

@@ -296,3 +295,4 @@ import {

*/
decoder(encoding: string, decoder: ((options: PayloadCompressionDecoderSettings) => zlib.Gunzip)): void;
decoder<T extends keyof ContentDecoders>(encoding: T, decoder: ContentDecoders[T]): void;
decoder(encoding: string, decoder: ((options?: object) => Stream)): void;

@@ -346,3 +346,4 @@ /**

*/
encoder(encoding: string, encoder: ((options: RouteCompressionEncoderSettings) => zlib.Gzip)): void;
encoder<T extends keyof ContentEncoders>(encoding: T, encoder: ContentEncoders[T]): void;
encoder(encoding: string, encoder: ((options?: object) => Stream)): void;

@@ -349,0 +350,0 @@ /**

@@ -5,3 +5,3 @@ {

"homepage": "https://hapi.dev",
"version": "21.3.6",
"version": "21.3.7",
"repository": "git://github.com/hapijs/hapi",

@@ -8,0 +8,0 @@ "main": "lib/index.js",

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