Comparing version 1.0.0 to 1.0.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11111
248