http-proxy-middleware
Advanced tools
Comparing version 0.20.0-beta.2 to 0.20.0
# Changelog | ||
## next | ||
## [v0.20.0](https://github.com/chimurai/http-proxy-middleware/releases/tag/v0.20.0) | ||
- fix(ws): concurrent websocket requests do not get upgraded ([#335](https://github.com/chimurai/http-proxy-middleware/issues/335)) | ||
- chore: drop node 6 (BREAKING CHANGE) | ||
@@ -6,0 +7,0 @@ - chore: update to micromatch@4 ([BREAKING CHANGE](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md#400---2019-03-20)) |
@@ -38,6 +38,8 @@ "use strict"; | ||
this.catchUpgradeRequest = server => { | ||
server.on('upgrade', this.handleUpgrade); | ||
// prevent duplicate upgrade handling; | ||
// in case external upgrade is also configured | ||
this.wsInternalSubscribed = true; | ||
if (!this.wsInternalSubscribed) { | ||
server.on('upgrade', this.handleUpgrade); | ||
// prevent duplicate upgrade handling; | ||
// in case external upgrade is also configured | ||
this.wsInternalSubscribed = true; | ||
} | ||
}; | ||
@@ -44,0 +46,0 @@ this.handleUpgrade = (req, socket, head) => { |
{ | ||
"name": "http-proxy-middleware", | ||
"version": "0.20.0-beta.2", | ||
"version": "0.20.0", | ||
"description": "The one-liner node.js proxy middleware for connect, express and browser-sync", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"clean": "rm -rf coverage", | ||
"clean": "rm -rf dist && rm -rf coverage", | ||
"lint": "yarn lint:prettier && yarn lint:tslint", | ||
@@ -24,3 +24,3 @@ "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"", | ||
"postcoveralls": "yarn clean", | ||
"prepublish": "yarn build" | ||
"prepare": "yarn clean && yarn build" | ||
}, | ||
@@ -53,24 +53,24 @@ "repository": { | ||
"devDependencies": { | ||
"@commitlint/cli": "^7.2.1", | ||
"@commitlint/config-conventional": "^7.1.2", | ||
"@types/express": "^4.16.1", | ||
"@commitlint/cli": "^8.0.0", | ||
"@commitlint/config-conventional": "^8.0.0", | ||
"@types/express": "^4.17.0", | ||
"@types/http-proxy": "^1.17.0", | ||
"@types/is-glob": "^4.0.0", | ||
"@types/jest": "^24.0.11", | ||
"@types/lodash": "^4.14.123", | ||
"@types/jest": "^24.0.15", | ||
"@types/lodash": "^4.14.136", | ||
"@types/micromatch": "^3.1.0", | ||
"@types/node": "^12.0.4", | ||
"browser-sync": "^2.26.3", | ||
"@types/node": "^12.6.2", | ||
"browser-sync": "^2.26.7", | ||
"connect": "^3.6.6", | ||
"coveralls": "^3.0.3", | ||
"coveralls": "^3.0.5", | ||
"express": "^4.16.4", | ||
"husky": "^2.3.0", | ||
"husky": "^3.0.0", | ||
"jest": "^24.5.0", | ||
"open": "^6.3.0", | ||
"prettier": "^1.15.2", | ||
"open": "^6.4.0", | ||
"prettier": "^1.18.2", | ||
"ts-jest": "^24.0.0", | ||
"tslint": "^5.14.0", | ||
"tslint": "^5.18.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.4.1", | ||
"ws": "^7.0.0" | ||
"typescript": "^3.5.3", | ||
"ws": "^7.1.0" | ||
}, | ||
@@ -80,3 +80,3 @@ "dependencies": { | ||
"is-glob": "^4.0.1", | ||
"lodash": "^4.17.11", | ||
"lodash": "^4.17.14", | ||
"micromatch": "^4.0.2" | ||
@@ -83,0 +83,0 @@ }, |
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
51251
633
Updatedlodash@^4.17.14