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

koa2-nginx

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa2-nginx - npm Package Compare versions

Comparing version 2.0.0-beta.2 to 2.0.0

.eslintrc.js

12

index.js
const compose = require('koa-compose');
const { setupProxyFeature, setupMiddlewares } = require('./lib/utils');
const { setupProxyFeature, setupMiddlewares } = require('./lib');
module.exports = options => {
return async function(ctx, next) {
const newOptions = setupProxyFeature(options);
const middles = setupMiddlewares(newOptions);
const newOptions = setupProxyFeature(options)
const middles = setupMiddlewares(newOptions)
return compose(middles)
};
return compose(middles);
};
{
"name": "koa2-nginx",
"version": "2.0.0-beta.2",
"version": "2.0.0",
"description": "This is an http-proxy koa proxy middleware that can be used after bodyparse",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha test/*.js",
"coverage": "nyc --reporter=text --reporter=lcov npm run test",
"lint": "eslint lib index.js -c .eslintrc.js --ext js"
},

@@ -12,3 +14,4 @@ "keywords": [

"http-proxy",
"middleware"
"middleware",
"webpack-dev-server"
],

@@ -18,8 +21,29 @@ "author": "my9074 <313231068@qq.com>",

"dependencies": {
"http-proxy": "^1.18.0",
"path-to-regexp": "^6.0.0"
"http-proxy-middleware": "^0.20.0",
"koa-compose": "^4.1.0",
"koa2-connect": "^1.0.2"
},
"devDependencies": {
"prettier": "1.19.1"
"cz-conventional-changelog": "^3.0.2",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.7.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"expect.js": "^0.3.1",
"mocha": "^6.2.2",
"nyc": "^14.1.1",
"prettier": "^1.19.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"engines": {
"node": ">=8.0.0"
}
}
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