Browse Source

Merge branch 'master' into next

master
Lloyd Brookes 9 years ago
parent
commit
c56c385a1a
  1. 2
      lib/local-web-server.js
  2. 2
      package.json

2
lib/local-web-server.js

@ -195,7 +195,7 @@ function proxyRequest (route, app) {
const next = arguments[arguments.length - 1] const next = arguments[arguments.length - 1]
const keys = [] const keys = []
route.re = pathToRegexp(route.from, keys) route.re = pathToRegexp(route.from, keys)
route.new = this.path.replace(route.re, route.to)
route.new = this.url.replace(route.re, route.to)
keys.forEach((key, index) => { keys.forEach((key, index) => {
const re = RegExp(`:${key.name}`, 'g') const re = RegExp(`:${key.name}`, 'g')

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "local-web-server", "name": "local-web-server",
"version": "1.0.0-alpha.5",
"version": "1.0.0-alpha.6",
"description": "A simple web-server for productive front-end development", "description": "A simple web-server for productive front-end development",
"bin": { "bin": {
"ws": "./bin/cli.js" "ws": "./bin/cli.js"

Loading…
Cancel
Save