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

common-types

Package Overview
Dependencies
Maintainers
1
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-types - npm Package Compare versions

Comparing version 1.21.2 to 1.21.3

8

dist/cjs/http.d.ts

@@ -0,1 +1,3 @@

import { scalar } from "./aliases";
import { IDictionary } from "./basics";
/**

@@ -6,3 +8,3 @@ * Identifies the most common properties included

*/
export declare type IHttpRequestHeaders<T extends Record<string, unknown> = Record<string, unknown>> = T & {
export declare type IHttpRequestHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = T & {
/**

@@ -57,3 +59,3 @@ * The `Accept` _request_ HTTP header advertises which content types, expressed as

*/
export declare type IHttpResponseHeaders<T extends Record<string, unknown> = Record<string, unknown>> = T & {
export declare type IHttpResponseHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = T & {
/**

@@ -169,3 +171,3 @@ * The `Allow` header lists the set of methods supported by a resource.

};
export declare type IHttpHeaders<T extends Record<string, unknown> = Record<string, unknown>> = IHttpRequestHeaders<T> | IHttpResponseHeaders<T>;
export declare type IHttpHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = IHttpRequestHeaders<T> | IHttpResponseHeaders<T>;
export declare enum HttpStatusCodes {

@@ -172,0 +174,0 @@ /**

@@ -0,1 +1,3 @@

import { scalar } from "./aliases";
import { IDictionary } from "./basics";
/**

@@ -6,3 +8,3 @@ * Identifies the most common properties included

*/
export declare type IHttpRequestHeaders<T extends Record<string, unknown> = Record<string, unknown>> = T & {
export declare type IHttpRequestHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = T & {
/**

@@ -57,3 +59,3 @@ * The `Accept` _request_ HTTP header advertises which content types, expressed as

*/
export declare type IHttpResponseHeaders<T extends Record<string, unknown> = Record<string, unknown>> = T & {
export declare type IHttpResponseHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = T & {
/**

@@ -169,3 +171,3 @@ * The `Allow` header lists the set of methods supported by a resource.

};
export declare type IHttpHeaders<T extends Record<string, unknown> = Record<string, unknown>> = IHttpRequestHeaders<T> | IHttpResponseHeaders<T>;
export declare type IHttpHeaders<T extends IDictionary<scalar> = IDictionary<scalar>> = IHttpRequestHeaders<T> | IHttpResponseHeaders<T>;
export declare enum HttpStatusCodes {

@@ -172,0 +174,0 @@ /**

{
"name": "common-types",
"version": "1.21.2",
"version": "1.21.3",
"description": "Common types not included in Typescript",

@@ -5,0 +5,0 @@ "repository": "https://github.com/lifegadget/common-types",

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