Skip to content

Commit ca54580

Browse files
authored
chore(dependencies): update dependencies (chimurai#212)
* chore(dependencies): update dependencies * chore(node): remove node 0.x support (EOL) * docs(README): typo
1 parent dc014c8 commit ca54580

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ node_js:
55
- '6'
66
- '5'
77
- '4'
8-
- '0.12'
9-
- '0.11'
10-
- '0.10'
118
before_install:
129
# https://github.com/npm/npm/issues/11283
1310
- npm set progress=false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ var app = express();
131131

132132
Providing an alternative way to decide which requests should be proxied; In case you are not able to use the server's [`path` parameter](http://expressjs.com/en/4x/api.html#app.use) to mount the proxy or when you need more flexibility.
133133

134-
The [RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is be used for context matching.
134+
[RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is used for context matching.
135135

136136
```
137137
foo://example.com:8042/over/there?name=ferret#nose

package.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,30 @@
4141
"homepage": "https://github.com/chimurai/http-proxy-middleware",
4242
"devDependencies": {
4343
"browser-sync": "^2.18.2",
44-
"chai": "^3.5.0",
44+
"chai": "^4.1.2",
4545
"connect": "^3.5.0",
46-
"coveralls": "^2.11.15",
46+
"coveralls": "^3.0.0",
4747
"express": "^4.14.0",
4848
"istanbul": "^0.4.5",
4949
"istanbul-coveralls": "^1.0.3",
50-
"mocha": "^3.2.0",
51-
"mocha-lcov-reporter": "1.2.0",
52-
"opn": "^4.0.2",
50+
"mocha": "^4.0.1",
51+
"mocha-lcov-reporter": "1.3.0",
52+
"opn": "^5.1.0",
5353
"standard": "^10.0.2",
54-
"ws": "^1.1.1"
54+
"ws": "^3.2.0"
5555
},
5656
"dependencies": {
5757
"http-proxy": "^1.16.2",
58-
"is-glob": "^3.1.0",
58+
"is-glob": "^4.0.0",
5959
"lodash": "^4.17.2",
60-
"micromatch": "^2.3.11"
60+
"micromatch": "^3.1.0"
61+
},
62+
"engines": {
63+
"node" : ">=4.0.0"
6164
},
6265
"standard": {
63-
"env": [ "mocha" ]
66+
"env": [
67+
"mocha"
68+
]
6469
}
6570
}

test/e2e/http-proxy-middleware.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ describe('E2E http-proxy-middleware', function () {
258258
var responseB
259259

260260
beforeEach(function () {
261-
var mwProxy = proxyMiddleware(['/**.html', '!**.json'], {target: 'http://localhost:8000'})
261+
var mwProxy = proxyMiddleware(['**/*.html', '!**.json'], {target: 'http://localhost:8000'})
262262

263263
var mwTarget = function (req, res, next) {
264264
res.write(req.url) // respond with req.url

test/unit/context-matcher.spec.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,15 @@ describe('Context Matching', function () {
9494
expect(contextMatcher.match('**/*', url)).to.be.true
9595
expect(contextMatcher.match('**/*.*', url)).to.be.true
9696
expect(contextMatcher.match('/**', url)).to.be.true
97-
expect(contextMatcher.match('/**.*', url)).to.be.true
9897
expect(contextMatcher.match('/**/*', url)).to.be.true
9998
expect(contextMatcher.match('/**/*.*', url)).to.be.true
10099
})
101100

102101
it('should only match .html files', function () {
103102
expect(contextMatcher.match('**/*.html', url)).to.be.true
104-
expect(contextMatcher.match('/**.html', url)).to.be.true
105103
expect(contextMatcher.match('/**/*.html', url)).to.be.true
106-
expect(contextMatcher.match('/**.htm', url)).to.be.false
107-
expect(contextMatcher.match('/**.jpg', url)).to.be.false
104+
expect(contextMatcher.match('/*.htm', url)).to.be.false
105+
expect(contextMatcher.match('/*.jpg', url)).to.be.false
108106
})
109107

110108
it('should only match .html under root path', function () {
@@ -149,7 +147,7 @@ describe('Context Matching', function () {
149147
expect(contextMatcher.match(pattern, 'http://localhost/rest/foo/bar.json')).to.be.false
150148
})
151149
it('should return true when both file extensions pattern match', function () {
152-
var pattern = ['/**.html', '/**.jpeg']
150+
var pattern = ['/**/*.html', '/**/*.jpeg']
153151
expect(contextMatcher.match(pattern, 'http://localhost/api/foo/bar.html')).to.be.true
154152
expect(contextMatcher.match(pattern, 'http://localhost/api/foo/bar.jpeg')).to.be.true
155153
expect(contextMatcher.match(pattern, 'http://localhost/api/foo/bar.gif')).to.be.false

0 commit comments

Comments
 (0)