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": "kcors", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Cross-Origin Resource Sharing(CORS) for koa", | ||
@@ -14,16 +14,13 @@ "main": "index.js", | ||
"lint": "eslint index.js test", | ||
"autod": "autod -w --prefix '~'", | ||
"contributors": "contributors -f plain -o AUTHORS" | ||
"autod": "autod -w --prefix '^'" | ||
}, | ||
"dependencies": { | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"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 +33,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" | ||
}, | ||
@@ -44,3 +40,3 @@ "keywords": [ | ||
"Cross-Origin Resource Sharing", | ||
"kcors", | ||
"@koa/cors", | ||
"koa", | ||
@@ -50,9 +46,6 @@ "koajs" | ||
"engines": { | ||
"node": ">= 4.3.1" | ||
"node": ">= 6.0.0" | ||
}, | ||
"publishConfig": { | ||
"tag": "next" | ||
}, | ||
"author": "fengmk2 <m@fengmk2.com> (http://fengmk2.com)", | ||
"author": "fengmk2 <fengmk2@gmail.com> (http://fengmk2.com)", | ||
"license": "MIT" | ||
} |
@@ -1,2 +0,2 @@ | ||
kcors | ||
@koa/cors | ||
======= | ||
@@ -10,4 +10,4 @@ | ||
[npm-image]: https://img.shields.io/npm/v/kcors.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/kcors | ||
[npm-image]: https://img.shields.io/npm/v/@koa/cors.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/@koa/cors | ||
[travis-image]: https://img.shields.io/travis/koajs/cors.svg?style=flat-square | ||
@@ -19,4 +19,4 @@ [travis-url]: https://travis-ci.org/koajs/cors | ||
[david-url]: https://david-dm.org/koajs/cors | ||
[download-image]: https://img.shields.io/npm/dm/kcors.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/kcors | ||
[download-image]: https://img.shields.io/npm/dm/@koa/cors.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/@koa/cors | ||
@@ -28,3 +28,3 @@ [Cross-Origin Resource Sharing(CORS)](https://developer.mozilla.org/en/docs/Web/HTTP/Access_control_CORS) for koa | ||
```bash | ||
$ npm install kcors@2 --save | ||
$ npm install @koa/cors@2 --save | ||
``` | ||
@@ -36,3 +36,3 @@ | ||
- origin: * | ||
- origin: request Origin header | ||
- allowMethods: GET,HEAD,PUT,POST,DELETE,PATCH | ||
@@ -42,3 +42,3 @@ | ||
const Koa = require('koa'); | ||
const cors = require('kcors'); | ||
const cors = require('@koa/cors'); | ||
@@ -56,3 +56,3 @@ const app = new Koa(); | ||
* @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' | ||
@@ -64,3 +64,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 | ||
@@ -67,0 +67,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
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
9787
7