Comparing version 2.2.1 to 2.2.2
2.2.2 / 2018-07-11 | ||
================== | ||
**others** | ||
* [[`019ec40`](http://github.com/koajs/cors/commit/019ec403be573177e8ed6ad3ef4077b82b5ea934)] - travis: test node@10 and drop test node@4 (#51) (fengmk2 <<fengmk2@gmail.com>>) | ||
* [[`6e22833`](http://github.com/koajs/cors/commit/6e22833ce125ca334b68980372065867eda892b0)] - doc: update outdated options doc (Xingan Wang <<wangxgwxg@gmail.com>>) | ||
* [[`c982530`](http://github.com/koajs/cors/commit/c9825308ce1c76810468bdf5a404b838206fba22)] - travis: test node@8 (jongleberry <<me@jongleberry.com>>) | ||
* [[`b4f65b3`](http://github.com/koajs/cors/commit/b4f65b39b558b870521e6613aee58898e88196f9)] - npm: remove tag (jongleberry <<me@jongleberry.com>>) | ||
* [[`878ae9b`](http://github.com/koajs/cors/commit/878ae9b0c99fb6da8d3840e502d4968a65089e28)] - package: rename to @koa/cors (jongleberry <<me@jongleberry.com>>) | ||
2.2.1 / 2017-02-12 | ||
@@ -3,0 +13,0 @@ ================== |
{ | ||
"name": "@koa/cors", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Cross-Origin Resource Sharing(CORS) for koa", | ||
@@ -14,4 +14,3 @@ "main": "index.js", | ||
"lint": "eslint index.js test", | ||
"autod": "autod -w --prefix '~'", | ||
"contributors": "contributors -f plain -o AUTHORS" | ||
"autod": "autod -w --prefix '^'" | ||
}, | ||
@@ -21,9 +20,8 @@ "dependencies": {}, | ||
"autod": "*", | ||
"contributors": "*", | ||
"eslint": "^2.3.0", | ||
"eslint-config-egg": "^2.0.0", | ||
"istanbul": "*", | ||
"koa": "next", | ||
"mocha": "*", | ||
"supertest": "1", | ||
"eslint-config-egg": "^2.0.0", | ||
"eslint": "^2.3.0" | ||
"koa": "^2.5.1", | ||
"mocha": "3", | ||
"supertest": "^3.1.0" | ||
}, | ||
@@ -36,4 +34,3 @@ "homepage": "https://github.com/koajs/cors", | ||
"bugs": { | ||
"url": "https://github.com/koajs/cors/issues", | ||
"email": "m@fengmk2.com" | ||
"url": "https://github.com/koajs/cors/issues" | ||
}, | ||
@@ -49,6 +46,6 @@ "keywords": [ | ||
"engines": { | ||
"node": ">= 4.3.1" | ||
"node": ">= 6.0.0" | ||
}, | ||
"author": "fengmk2 <m@fengmk2.com> (http://fengmk2.com)", | ||
"author": "fengmk2 <fengmk2@gmail.com> (http://fengmk2.com)", | ||
"license": "MIT" | ||
} |
@@ -33,3 +33,3 @@ @koa/cors | ||
- origin: * | ||
- origin: request Origin header | ||
- allowMethods: GET,HEAD,PUT,POST,DELETE,PATCH | ||
@@ -52,3 +52,3 @@ | ||
* @param {Object} [options] | ||
* - {String|Function(ctx)} origin `Access-Control-Allow-Origin`, default is '*' | ||
* - {String|Function(ctx)} origin `Access-Control-Allow-Origin`, default is request Origin header | ||
* - {String|Array} allowMethods `Access-Control-Allow-Methods`, default is 'GET,HEAD,PUT,POST,DELETE,PATCH' | ||
@@ -60,3 +60,3 @@ * - {String|Array} exposeHeaders `Access-Control-Expose-Headers` | ||
* - {Boolean} keepHeadersOnError Add set headers to `err.header` if an error is thrown | ||
* @return {Function} | ||
* @return {Function} cors middleware | ||
* @api public | ||
@@ -63,0 +63,0 @@ */ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
9791
7
1