Comparing version 2.2.3 to 3.0.0
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
// there is no global.URL in node 8 | ||
@@ -4,0 +2,0 @@ const URL = require('url').URL; |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
module.exports = require('@koa/cors'); |
@@ -6,4 +6,4 @@ 'use strict'; | ||
* @member Config#cors | ||
* @see https://www.npmjs.com/package/kcors#corsoptions | ||
* @see https://github.com/koajs/cors#corsoptions | ||
*/ | ||
exports.cors = {}; |
{ | ||
"name": "egg-cors", | ||
"version": "2.2.3", | ||
"version": "3.0.0", | ||
"description": "cors plugin for egg", | ||
@@ -25,25 +25,23 @@ "eggPlugin": { | ||
"dependencies": { | ||
"@koa/cors": "^3.0.0" | ||
"@koa/cors": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"autod": "^3.0.1", | ||
"egg": "^2.11.2", | ||
"egg-bin": "^4.9.0", | ||
"egg-ci": "^1.9.2", | ||
"egg-mock": "^3.20.1", | ||
"egg-security": "^1.2.1", | ||
"eslint": "^5.6.1", | ||
"eslint-config-egg": "^7.1.0", | ||
"supertest": "^3.3.0" | ||
"egg": "^3.17.5", | ||
"egg-bin": "^6.5.2", | ||
"egg-mock": "^5.10.9", | ||
"egg-security": "^3.1.0", | ||
"eslint": "^8.55.0", | ||
"eslint-config-egg": "12", | ||
"git-contributor": "^2.1.5" | ||
}, | ||
"engines": { | ||
"node": ">=8.0.0" | ||
"node": ">=14.0.0" | ||
}, | ||
"scripts": { | ||
"test": "npm run lint -- --fix && egg-bin pkgfiles && npm run test-local", | ||
"contributor": "git-contributor", | ||
"test": "npm run lint -- --fix && npm run test-local", | ||
"test-local": "egg-bin test", | ||
"cov": "egg-bin cov", | ||
"lint": "eslint .", | ||
"ci": "egg-bin pkgfiles --check && npm run lint && npm run cov", | ||
"autod": "autod" | ||
"ci": "npm run lint && npm run cov" | ||
}, | ||
@@ -53,6 +51,3 @@ "bug": { | ||
}, | ||
"ci": { | ||
"version": "8, 10, 12" | ||
}, | ||
"author": "dead_horse" | ||
} |
# egg-cors | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![Node.js CI](https://github.com/eggjs/egg-cors/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-cors/actions/workflows/nodejs.yml) | ||
[![Test coverage][codecov-image]][codecov-url] | ||
[![David deps][david-image]][david-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
[![npm download][download-image]][download-url] | ||
@@ -12,10 +10,4 @@ | ||
[npm-url]: https://npmjs.org/package/egg-cors | ||
[travis-image]: https://img.shields.io/travis/eggjs/egg-cors.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/eggjs/egg-cors | ||
[codecov-image]: https://codecov.io/github/eggjs/egg-cors/coverage.svg?branch=master | ||
[codecov-url]: https://codecov.io/github/eggjs/egg-cors?branch=master | ||
[david-image]: https://img.shields.io/david/eggjs/egg-cors.svg?style=flat-square | ||
[david-url]: https://david-dm.org/eggjs/egg-cors | ||
[snyk-image]: https://snyk.io/test/npm/egg-cors/badge.svg?style=flat-square | ||
[snyk-url]: https://snyk.io/test/npm/egg-cors | ||
[download-image]: https://img.shields.io/npm/dm/egg-cors.svg?style=flat-square | ||
@@ -77,1 +69,13 @@ [download-url]: https://npmjs.org/package/egg-cors | ||
[MIT](LICENSE) | ||
<!-- GITCONTRIBUTOR_START --> | ||
## Contributors | ||
|[<img src="https://avatars.githubusercontent.com/u/227713?v=4" width="100px;"/><br/><sub><b>atian25</b></sub>](https://github.com/atian25)<br/>|[<img src="https://avatars.githubusercontent.com/u/985607?v=4" width="100px;"/><br/><sub><b>dead-horse</b></sub>](https://github.com/dead-horse)<br/>|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/3139237?v=4" width="100px;"/><br/><sub><b>brickyang</b></sub>](https://github.com/brickyang)<br/>|[<img src="https://avatars.githubusercontent.com/u/3297859?v=4" width="100px;"/><br/><sub><b>sinchang</b></sub>](https://github.com/sinchang)<br/>|[<img src="https://avatars.githubusercontent.com/u/2842176?v=4" width="100px;"/><br/><sub><b>XadillaX</b></sub>](https://github.com/XadillaX)<br/>| | ||
| :---: | :---: | :---: | :---: | :---: | :---: | | ||
[<img src="https://avatars.githubusercontent.com/u/1148428?v=4" width="100px;"/><br/><sub><b>mattma</b></sub>](https://github.com/mattma)<br/>|[<img src="https://avatars.githubusercontent.com/u/20397245?v=4" width="100px;"/><br/><sub><b>SoraYama</b></sub>](https://github.com/SoraYama)<br/>|[<img src="https://avatars.githubusercontent.com/u/9161488?v=4" width="100px;"/><br/><sub><b>Yelmor</b></sub>](https://github.com/Yelmor)<br/>|[<img src="https://avatars.githubusercontent.com/u/6895141?v=4" width="100px;"/><br/><sub><b>angela-1</b></sub>](https://github.com/angela-1)<br/>|[<img src="https://avatars.githubusercontent.com/u/1763067?v=4" width="100px;"/><br/><sub><b>waitingsong</b></sub>](https://github.com/waitingsong)<br/> | ||
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Mon Dec 11 2023 13:25:00 GMT+0800`. | ||
<!-- GITCONTRIBUTOR_END --> |
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
7
80
7591
7
45
+ Added@koa/cors@5.0.0(transitive)
- Removed@koa/cors@3.4.3(transitive)
Updated@koa/cors@^5.0.0