Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@koa/cors

Package Overview
Dependencies
Maintainers
9
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koa/cors - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

10

History.md
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 @@ ==================

23

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc