Comparing version 3.1.0 to 3.1.1
@@ -1,3 +0,2 @@ | ||
import kcors from '@koa/cors' | ||
import EventEmitter from 'events' | ||
const EventEmitter = require('events') | ||
@@ -33,2 +32,3 @@ class Cors extends EventEmitter { | ||
this.emit('verbose', 'middleware.cors.config', corsOptions) | ||
const kcors = require('@koa/cors') | ||
return kcors(corsOptions) | ||
@@ -38,2 +38,2 @@ } | ||
export default Cors | ||
module.exports = Cors |
{ | ||
"name": "lws-cors", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Support for setting Cross-Origin Resource Sharing (CORS) headers to lws", | ||
@@ -13,6 +13,4 @@ "repository": "https://github.com/lwsjs/cors.git", | ||
], | ||
"exports": "./index.js", | ||
"type": "module", | ||
"engines": { | ||
"node": ">=12.17" | ||
"node": ">=10" | ||
}, | ||
@@ -23,8 +21,8 @@ "scripts": { | ||
"dependencies": { | ||
"@koa/cors": "^3.1.0" | ||
"@koa/cors": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"lws": "^4.1.1", | ||
"node-fetch": "^3.2.0", | ||
"test-runner": "^0.10.1" | ||
"lws": "^2.0.8", | ||
"node-fetch": "^2.6.0", | ||
"test-runner": "^0.8.13" | ||
}, | ||
@@ -31,0 +29,0 @@ "files": [ |
@@ -1,6 +0,5 @@ | ||
[![view on npm](https://badgen.net/npm/v/lws-cors)](https://www.npmjs.org/package/lws-cors) | ||
[![npm module downloads](https://badgen.net/npm/dt/lws-cors)](https://www.npmjs.org/package/lws-cors) | ||
[![Gihub repo dependents](https://badgen.net/github/dependents-repo/lwsjs/cors)](https://github.com/lwsjs/cors/network/dependents?dependent_type=REPOSITORY) | ||
[![Gihub package dependents](https://badgen.net/github/dependents-pkg/lwsjs/cors)](https://github.com/lwsjs/cors/network/dependents?dependent_type=PACKAGE) | ||
[![Node.js CI](https://github.com/lwsjs/cors/actions/workflows/node.js.yml/badge.svg)](https://github.com/lwsjs/cors/actions/workflows/node.js.yml) | ||
[![view on npm](https://img.shields.io/npm/v/lws-cors.svg)](https://www.npmjs.org/package/lws-cors) | ||
[![npm module downloads](https://img.shields.io/npm/dt/lws-cors.svg)](https://www.npmjs.org/package/lws-cors) | ||
[![Build Status](https://travis-ci.org/lwsjs/cors.svg?branch=master)](https://travis-ci.org/lwsjs/cors) | ||
[![Dependency Status](https://badgen.net/david/dep/lwsjs/cors)](https://david-dm.org/lwsjs/cors) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard) | ||
@@ -23,2 +22,2 @@ | ||
© 2016-22 Lloyd Brookes \<75pound@gmail.com\>. | ||
© 2016-20 Lloyd Brookes \<75pound@gmail.com\>. |
Sorry, the diff of this file is not supported yet
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
4024
23
No
Updated@koa/cors@^3.0.0