Socket
Socket
Sign inDemoInstall

itty-router

Package Overview
Dependencies
0
Maintainers
2
Versions
264
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.0-next.3 to 4.3.0-next.4

7

cors.d.ts

@@ -0,1 +1,2 @@

import { IRequest } from 'IttyRouter';
export type CorsOptions = {

@@ -9,2 +10,8 @@ credentials?: true;

};
export type Preflight = (request: IRequest) => Response | void;
export type Corsify = (response: Response, request?: IRequest) => Response;
export type CorsPair = {
preflight: Preflight;
corsify: Corsify;
};
export declare const cors: (options?: CorsOptions) => {

@@ -11,0 +18,0 @@ corsify: (response: Response, request?: Request) => Response;

2

package.json
{
"name": "itty-router",
"version": "4.3.0-next.3",
"version": "4.3.0-next.4",
"description": "A tiny, zero-dependency router, designed to make beautiful APIs in any environment.",

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc