Comparing version 3.4.3 to 4.0.0
4.0.0 / 2022-10-08 | ||
================== | ||
**fixes** | ||
* [[`7358ab3`](http://github.com/koajs/cors/commit/7358ab381af6413013938f49c56ac79a7453d35c)] - fix: Calling all options even if origin header is not present (#87) (Cleber Rossi <<cleberjoserossi@gmail.com>>) | ||
**others** | ||
* [[`d19090f`](http://github.com/koajs/cors/commit/d19090fc8591059895fa9c606967d3a67fd3c5b8)] - refactor: [BREAKING] drop node 8, 10, 12 support (#88) (fengmk2 <<fengmk2@gmail.com>>) | ||
3.4.3 / 2022-10-08 | ||
@@ -3,0 +12,0 @@ ================== |
@@ -61,4 +61,2 @@ 'use strict'; | ||
if (!requestOrigin) return await next(); | ||
let origin; | ||
@@ -65,0 +63,0 @@ if (typeof options.origin === 'function') { |
{ | ||
"name": "@koa/cors", | ||
"version": "3.4.3", | ||
"version": "4.0.0", | ||
"description": "Cross-Origin Resource Sharing(CORS) for koa", | ||
@@ -20,9 +20,9 @@ "main": "index.js", | ||
"devDependencies": { | ||
"egg-ci": "^1.19.1", | ||
"eslint": "^5.15.1", | ||
"eslint-config-egg": "^7.1.0", | ||
"egg-ci": "^2.1.0", | ||
"eslint": "^8.25.0", | ||
"eslint-config-egg": "^12.0.0", | ||
"git-contributor": "^1.0.10", | ||
"istanbul": "*", | ||
"koa": "^2.5.1", | ||
"mocha": "3", | ||
"mocha": "^3.5.3", | ||
"supertest": "^3.1.0" | ||
@@ -47,10 +47,7 @@ }, | ||
"engines": { | ||
"node": ">= 8.0.0" | ||
"node": ">= 14.0.0" | ||
}, | ||
"ci": { | ||
"version": "8, 10, 12, 14, 16, 18", | ||
"type": "github", | ||
"os": { | ||
"github": "linux" | ||
} | ||
"version": "14, 16, 18", | ||
"os": "linux" | ||
}, | ||
@@ -57,0 +54,0 @@ "author": "fengmk2 <fengmk2@gmail.com> (http://github.com/fengmk2)", |
@@ -70,7 +70,7 @@ @koa/cors | ||
| :---: | :---: | :---: | :---: | :---: | :---: | | ||
|[<img src="https://avatars.githubusercontent.com/u/178720?v=4" width="100px;"/><br/><sub><b>erikfried</b></sub>](https://github.com/erikfried)<br/>|[<img src="https://avatars.githubusercontent.com/u/1217939?v=4" width="100px;"/><br/><sub><b>j-waaang</b></sub>](https://github.com/j-waaang)<br/>|[<img src="https://avatars.githubusercontent.com/u/4184677?v=4" width="100px;"/><br/><sub><b>ltomes</b></sub>](https://github.com/ltomes)<br/>|[<img src="https://avatars.githubusercontent.com/u/372420?v=4" width="100px;"/><br/><sub><b>lfreneda</b></sub>](https://github.com/lfreneda)<br/>|[<img src="https://avatars.githubusercontent.com/u/170299?v=4" width="100px;"/><br/><sub><b>matthewmueller</b></sub>](https://github.com/matthewmueller)<br/>|[<img src="https://avatars.githubusercontent.com/u/6006498?v=4" width="100px;"/><br/><sub><b>PlasmaPower</b></sub>](https://github.com/PlasmaPower)<br/>| | ||
[<img src="https://avatars.githubusercontent.com/u/14932834?v=4" width="100px;"/><br/><sub><b>swain</b></sub>](https://github.com/swain)<br/>|[<img src="https://avatars.githubusercontent.com/u/49938086?v=4" width="100px;"/><br/><sub><b>TyrealHu</b></sub>](https://github.com/TyrealHu)<br/>|[<img src="https://avatars.githubusercontent.com/u/8369011?v=4" width="100px;"/><br/><sub><b>xg-wang</b></sub>](https://github.com/xg-wang)<br/>|[<img src="https://avatars.githubusercontent.com/u/12003270?v=4" width="100px;"/><br/><sub><b>lishengzxc</b></sub>](https://github.com/lishengzxc)<br/>|[<img src="https://avatars.githubusercontent.com/u/514097?v=4" width="100px;"/><br/><sub><b>mcohen75</b></sub>](https://github.com/mcohen75)<br/> | ||
|[<img src="https://avatars.githubusercontent.com/u/6992588?v=4" width="100px;"/><br/><sub><b>CleberRossi</b></sub>](https://github.com/CleberRossi)<br/>|[<img src="https://avatars.githubusercontent.com/u/178720?v=4" width="100px;"/><br/><sub><b>erikfried</b></sub>](https://github.com/erikfried)<br/>|[<img src="https://avatars.githubusercontent.com/u/1217939?v=4" width="100px;"/><br/><sub><b>j-waaang</b></sub>](https://github.com/j-waaang)<br/>|[<img src="https://avatars.githubusercontent.com/u/4184677?v=4" width="100px;"/><br/><sub><b>ltomes</b></sub>](https://github.com/ltomes)<br/>|[<img src="https://avatars.githubusercontent.com/u/372420?v=4" width="100px;"/><br/><sub><b>lfreneda</b></sub>](https://github.com/lfreneda)<br/>|[<img src="https://avatars.githubusercontent.com/u/170299?v=4" width="100px;"/><br/><sub><b>matthewmueller</b></sub>](https://github.com/matthewmueller)<br/>| | ||
[<img src="https://avatars.githubusercontent.com/u/6006498?v=4" width="100px;"/><br/><sub><b>PlasmaPower</b></sub>](https://github.com/PlasmaPower)<br/>|[<img src="https://avatars.githubusercontent.com/u/14932834?v=4" width="100px;"/><br/><sub><b>swain</b></sub>](https://github.com/swain)<br/>|[<img src="https://avatars.githubusercontent.com/u/49938086?v=4" width="100px;"/><br/><sub><b>TyrealHu</b></sub>](https://github.com/TyrealHu)<br/>|[<img src="https://avatars.githubusercontent.com/u/8369011?v=4" width="100px;"/><br/><sub><b>xg-wang</b></sub>](https://github.com/xg-wang)<br/>|[<img src="https://avatars.githubusercontent.com/u/12003270?v=4" width="100px;"/><br/><sub><b>lishengzxc</b></sub>](https://github.com/lishengzxc)<br/>|[<img src="https://avatars.githubusercontent.com/u/514097?v=4" width="100px;"/><br/><sub><b>mcohen75</b></sub>](https://github.com/mcohen75)<br/> | ||
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Fri Aug 19 2022 23:48:53 GMT+0800`. | ||
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Oct 08 2022 21:35:10 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
18379
136