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

cors-ts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cors-ts - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

dist/index.d.ts

@@ -26,3 +26,3 @@ /// <reference types="node" />

declare type CorsNextFunc = (err?: any) => any;
export default function cors<T extends CorsRequest = CorsRequest, Res extends CorsRes = CorsRes, Next extends CorsNextFunc = CorsNextFunc>(options?: CorsOptions | CorsOptionsDelegate<T> | undefined): (req: T, res: Res, next: Next) => void;
export {};
declare function cors<T extends CorsRequest = CorsRequest, Res extends CorsRes = CorsRes, Next extends CorsNextFunc = CorsNextFunc>(options?: CorsOptions | CorsOptionsDelegate<T> | undefined): (req: T, res: Res, next: Next) => void;
export default cors;

@@ -1,5 +0,8 @@

export default function cors(options = {}) {
const assign = require('object-assign');
const vary = require('vary');
const defaults = {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function cors(options) {
if (options === void 0) { options = {}; }
var assign = require('object-assign');
var vary = require('vary');
var defaults = {
origin: '*',

@@ -218,1 +221,2 @@ methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',

}
exports.default = cors;
{
"name": "cors-ts",
"version": "1.0.0",
"version": "1.0.1",
"description": "Cors package with type definitions",

@@ -5,0 +5,0 @@ "main": "dist/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