Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/http-proxy-middleware.json

raw
1 {
2 "_id": "http-proxy-middleware",
3 "_rev": "162-b84ed5a82dd9b780f7a4185bdb498cef",
4 "name": "http-proxy-middleware",
5 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
6 "dist-tags": {
7 "latest": "1.0.6",
8 "beta": "0.21.0-beta.3",
9 "alpha": "0.22.0-alpha"
10 },
11 "versions": {
12 "0.0.1": {
13 "name": "http-proxy-middleware",
14 "version": "0.0.1",
15 "description": "http-proxy middleware for connect",
16 "main": "index.js",
17 "scripts": {
18 "test": "mocha --reporter spec"
19 },
20 "repository": {
21 "type": "git",
22 "url": "https://github.com/chimurai/http-proxy-middleware.git"
23 },
24 "keywords": [
25 "proxy",
26 "middleware",
27 "http",
28 "https",
29 "connect",
30 "browser-sync",
31 "gulp-connect"
32 ],
33 "author": {
34 "name": "Steven Chim"
35 },
36 "license": "MIT",
37 "bugs": {
38 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
39 },
40 "homepage": "https://github.com/chimurai/http-proxy-middleware",
41 "devDependencies": {
42 "http-proxy": "^1.9.0",
43 "mocha": "^2.2.1",
44 "should": "^5.2.0",
45 "url": "^0.10.3"
46 },
47 "gitHead": "9003d4cc622be6fc8cd0bbba3fab18af9db0361e",
48 "_id": "[email protected]",
49 "_shasum": "2b9feaec5fb582db09cf3693f5a5a09a5c1beee6",
50 "_from": ".",
51 "_npmVersion": "1.4.28",
52 "_npmUser": {
53 "name": "chimurai",
54 "email": "[email protected]"
55 },
56 "maintainers": [
57 {
58 "name": "chimurai",
59 "email": "[email protected]"
60 }
61 ],
62 "dist": {
63 "shasum": "2b9feaec5fb582db09cf3693f5a5a09a5c1beee6",
64 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.0.1.tgz"
65 },
66 "directories": {}
67 },
68 "0.0.2": {
69 "name": "http-proxy-middleware",
70 "version": "0.0.2",
71 "description": "http-proxy middleware for connect",
72 "main": "index.js",
73 "scripts": {
74 "test": "mocha --reporter spec"
75 },
76 "repository": {
77 "type": "git",
78 "url": "https://github.com/chimurai/http-proxy-middleware.git"
79 },
80 "keywords": [
81 "proxy",
82 "middleware",
83 "http",
84 "https",
85 "connect",
86 "browser-sync",
87 "gulp-connect"
88 ],
89 "author": {
90 "name": "Steven Chim"
91 },
92 "license": "MIT",
93 "bugs": {
94 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
95 },
96 "homepage": "https://github.com/chimurai/http-proxy-middleware",
97 "devDependencies": {
98 "mocha": "^2.2.1",
99 "should": "^5.2.0",
100 "url": "^0.10.3"
101 },
102 "dependencies": {
103 "http-proxy": "^1.9.0"
104 },
105 "gitHead": "83ace6648fadc0f0b2e2151a7c6f65a91898c3b8",
106 "_id": "[email protected]",
107 "_shasum": "6e9fde5ec41fb46fd0e3e3885cd4aa7c2e4b2d6f",
108 "_from": ".",
109 "_npmVersion": "1.4.28",
110 "_npmUser": {
111 "name": "chimurai",
112 "email": "[email protected]"
113 },
114 "maintainers": [
115 {
116 "name": "chimurai",
117 "email": "[email protected]"
118 }
119 ],
120 "dist": {
121 "shasum": "6e9fde5ec41fb46fd0e3e3885cd4aa7c2e4b2d6f",
122 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.0.2.tgz"
123 },
124 "directories": {}
125 },
126 "0.0.3": {
127 "name": "http-proxy-middleware",
128 "version": "0.0.3",
129 "description": "http-proxy middleware for connect",
130 "main": "index.js",
131 "scripts": {
132 "test": "mocha --reporter spec"
133 },
134 "repository": {
135 "type": "git",
136 "url": "https://github.com/chimurai/http-proxy-middleware.git"
137 },
138 "keywords": [
139 "proxy",
140 "middleware",
141 "http",
142 "https",
143 "connect",
144 "browser-sync",
145 "gulp-connect"
146 ],
147 "author": {
148 "name": "Steven Chim"
149 },
150 "license": "MIT",
151 "bugs": {
152 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
153 },
154 "homepage": "https://github.com/chimurai/http-proxy-middleware",
155 "devDependencies": {
156 "mocha": "^2.2.1",
157 "should": "^5.2.0"
158 },
159 "dependencies": {
160 "http-proxy": "^1.9.0",
161 "url": "^0.10.3"
162 },
163 "gitHead": "c4963a92594d7d25f0a22ba4e27e6f220ea669a8",
164 "_id": "[email protected]",
165 "_shasum": "fb97acc26f49a1449eb8112b4711b1bd0723e62c",
166 "_from": ".",
167 "_npmVersion": "1.4.28",
168 "_npmUser": {
169 "name": "chimurai",
170 "email": "[email protected]"
171 },
172 "maintainers": [
173 {
174 "name": "chimurai",
175 "email": "[email protected]"
176 }
177 ],
178 "dist": {
179 "shasum": "fb97acc26f49a1449eb8112b4711b1bd0723e62c",
180 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.0.3.tgz"
181 },
182 "directories": {}
183 },
184 "0.0.4": {
185 "name": "http-proxy-middleware",
186 "version": "0.0.4",
187 "description": "http-proxy middleware for connect",
188 "main": "index.js",
189 "scripts": {
190 "test": "mocha --reporter spec",
191 "cover": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && rm -rf coverage",
192 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
193 },
194 "repository": {
195 "type": "git",
196 "url": "https://github.com/chimurai/http-proxy-middleware.git"
197 },
198 "keywords": [
199 "proxy",
200 "middleware",
201 "http",
202 "https",
203 "connect",
204 "browser-sync",
205 "gulp-connect"
206 ],
207 "author": {
208 "name": "Steven Chim"
209 },
210 "license": "MIT",
211 "bugs": {
212 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
213 },
214 "homepage": "https://github.com/chimurai/http-proxy-middleware",
215 "devDependencies": {
216 "chai": "^2.1.1",
217 "coveralls": "^2.11.2",
218 "mocha": "^2.2.1",
219 "mocha-lcov-reporter": "0.0.2"
220 },
221 "dependencies": {
222 "http-proxy": "^1.9.0",
223 "url": "^0.10.3"
224 },
225 "gitHead": "537aed2198d02c988d11466970c5d96ff876d417",
226 "_id": "[email protected]",
227 "_shasum": "1cc89b5e4ecc1a1c023594306cf79ae3d4321ea9",
228 "_from": ".",
229 "_npmVersion": "1.4.14",
230 "_npmUser": {
231 "name": "chimurai",
232 "email": "[email protected]"
233 },
234 "maintainers": [
235 {
236 "name": "chimurai",
237 "email": "[email protected]"
238 }
239 ],
240 "dist": {
241 "shasum": "1cc89b5e4ecc1a1c023594306cf79ae3d4321ea9",
242 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.0.4.tgz"
243 },
244 "directories": {}
245 },
246 "0.0.5": {
247 "name": "http-proxy-middleware",
248 "version": "0.0.5",
249 "description": "http-proxy middleware for connect",
250 "main": "index.js",
251 "scripts": {
252 "test": "mocha --reporter spec",
253 "cover": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && rm -rf coverage",
254 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
255 },
256 "repository": {
257 "type": "git",
258 "url": "https://github.com/chimurai/http-proxy-middleware.git"
259 },
260 "keywords": [
261 "proxy",
262 "middleware",
263 "http",
264 "https",
265 "connect",
266 "browser-sync",
267 "gulp-connect"
268 ],
269 "author": {
270 "name": "Steven Chim"
271 },
272 "license": "MIT",
273 "bugs": {
274 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
275 },
276 "homepage": "https://github.com/chimurai/http-proxy-middleware",
277 "devDependencies": {
278 "chai": "^2.1.1",
279 "coveralls": "^2.11.2",
280 "mocha": "^2.2.1",
281 "mocha-lcov-reporter": "0.0.2"
282 },
283 "dependencies": {
284 "http-proxy": "^1.9.0",
285 "url": "^0.10.3"
286 },
287 "gitHead": "9a16ea7ed310db2a2c40a4a8f4bdc136c02f502d",
288 "_id": "[email protected]",
289 "_shasum": "6ae35180fdaabc5e69c6112e7d4d1919656a6bfa",
290 "_from": ".",
291 "_npmVersion": "1.4.14",
292 "_npmUser": {
293 "name": "chimurai",
294 "email": "[email protected]"
295 },
296 "maintainers": [
297 {
298 "name": "chimurai",
299 "email": "[email protected]"
300 }
301 ],
302 "dist": {
303 "shasum": "6ae35180fdaabc5e69c6112e7d4d1919656a6bfa",
304 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.0.5.tgz"
305 },
306 "directories": {}
307 },
308 "0.1.0": {
309 "name": "http-proxy-middleware",
310 "version": "0.1.0",
311 "description": "The one-liner http-proxy middleware",
312 "main": "index.js",
313 "scripts": {
314 "test": "mocha --reporter spec",
315 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
316 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
317 },
318 "repository": {
319 "type": "git",
320 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
321 },
322 "keywords": [
323 "proxy",
324 "middleware",
325 "http",
326 "https",
327 "connect",
328 "express",
329 "browser-sync",
330 "gulp"
331 ],
332 "author": {
333 "name": "Steven Chim"
334 },
335 "license": "MIT",
336 "bugs": {
337 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
338 },
339 "homepage": "https://github.com/chimurai/http-proxy-middleware",
340 "devDependencies": {
341 "browser-sync": "^2.7.13",
342 "chai": "^3.0.0",
343 "connect": "^3.4.0",
344 "coveralls": "^2.11.2",
345 "express": "^4.13.1",
346 "istanbul": "^0.3.17",
347 "istanbul-coveralls": "^1.0.3",
348 "mocha": "^2.2.5",
349 "mocha-lcov-reporter": "0.0.2"
350 },
351 "dependencies": {
352 "http-proxy": "^1.11.1",
353 "url": "^0.10.3"
354 },
355 "gitHead": "abcf4a81366dde1d8fa0057c519d79765c54ef46",
356 "_id": "[email protected]",
357 "_shasum": "7f189e2a56c026eb41cdf1837e58ac6a0155e0b1",
358 "_from": ".",
359 "_npmVersion": "2.11.2",
360 "_nodeVersion": "0.12.5",
361 "_npmUser": {
362 "name": "chimurai",
363 "email": "[email protected]"
364 },
365 "maintainers": [
366 {
367 "name": "chimurai",
368 "email": "[email protected]"
369 }
370 ],
371 "dist": {
372 "shasum": "7f189e2a56c026eb41cdf1837e58ac6a0155e0b1",
373 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.1.0.tgz"
374 },
375 "directories": {}
376 },
377 "0.2.0": {
378 "name": "http-proxy-middleware",
379 "version": "0.2.0",
380 "description": "The one-liner proxy middleware for connect, express and browser-sync",
381 "main": "index.js",
382 "scripts": {
383 "test": "mocha --reporter spec",
384 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
385 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
386 },
387 "repository": {
388 "type": "git",
389 "url": "https://github.com/chimurai/http-proxy-middleware.git"
390 },
391 "keywords": [
392 "proxy",
393 "middleware",
394 "http",
395 "https",
396 "connect",
397 "express",
398 "browser-sync",
399 "gulp"
400 ],
401 "author": {
402 "name": "Steven Chim"
403 },
404 "license": "MIT",
405 "bugs": {
406 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
407 },
408 "homepage": "https://github.com/chimurai/http-proxy-middleware",
409 "devDependencies": {
410 "browser-sync": "^2.7.13",
411 "chai": "^3.0.0",
412 "connect": "^3.4.0",
413 "coveralls": "^2.11.2",
414 "express": "^4.13.1",
415 "istanbul": "^0.3.17",
416 "istanbul-coveralls": "^1.0.3",
417 "mocha": "^2.2.5",
418 "mocha-lcov-reporter": "0.0.2"
419 },
420 "dependencies": {
421 "http-proxy": "^1.11.1",
422 "url": "^0.10.3"
423 },
424 "gitHead": "afd3536ba67185b3f082c7a4bdb7cfa7534b7403",
425 "_id": "[email protected]",
426 "_shasum": "b17921ebef893b9d8e85a7809c979bc626f16320",
427 "_from": ".",
428 "_npmVersion": "2.7.4",
429 "_nodeVersion": "0.12.2",
430 "_npmUser": {
431 "name": "chimurai",
432 "email": "[email protected]"
433 },
434 "dist": {
435 "shasum": "b17921ebef893b9d8e85a7809c979bc626f16320",
436 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.2.0.tgz"
437 },
438 "maintainers": [
439 {
440 "name": "chimurai",
441 "email": "[email protected]"
442 }
443 ],
444 "directories": {}
445 },
446 "0.3.0": {
447 "name": "http-proxy-middleware",
448 "version": "0.3.0",
449 "description": "The one-liner proxy middleware for connect, express and browser-sync",
450 "main": "index.js",
451 "scripts": {
452 "test": "mocha --reporter spec",
453 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
454 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
455 },
456 "repository": {
457 "type": "git",
458 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
459 },
460 "keywords": [
461 "proxy",
462 "middleware",
463 "http",
464 "https",
465 "connect",
466 "express",
467 "browser-sync",
468 "gulp"
469 ],
470 "author": {
471 "name": "Steven Chim"
472 },
473 "license": "MIT",
474 "bugs": {
475 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
476 },
477 "homepage": "https://github.com/chimurai/http-proxy-middleware",
478 "devDependencies": {
479 "browser-sync": "^2.7.13",
480 "chai": "^3.0.0",
481 "connect": "^3.4.0",
482 "coveralls": "^2.11.2",
483 "express": "^4.13.1",
484 "istanbul": "^0.3.17",
485 "istanbul-coveralls": "^1.0.3",
486 "mocha": "^2.2.5",
487 "mocha-lcov-reporter": "0.0.2"
488 },
489 "dependencies": {
490 "http-proxy": "^1.11.1",
491 "is-glob": "^2.0.0",
492 "micromatch": "^2.1.6",
493 "url": "^0.10.3"
494 },
495 "gitHead": "b596677e0fe4b6c4d974a21949c5e1361b4cbb33",
496 "_id": "[email protected]",
497 "_shasum": "6122fb3e1ac0e63c1f063f34f1344a5eecafcb55",
498 "_from": ".",
499 "_npmVersion": "2.11.2",
500 "_nodeVersion": "0.12.5",
501 "_npmUser": {
502 "name": "chimurai",
503 "email": "[email protected]"
504 },
505 "maintainers": [
506 {
507 "name": "chimurai",
508 "email": "[email protected]"
509 }
510 ],
511 "dist": {
512 "shasum": "6122fb3e1ac0e63c1f063f34f1344a5eecafcb55",
513 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.3.0.tgz"
514 },
515 "directories": {}
516 },
517 "0.3.1": {
518 "name": "http-proxy-middleware",
519 "version": "0.3.1",
520 "description": "The one-liner proxy middleware for connect, express and browser-sync",
521 "main": "index.js",
522 "scripts": {
523 "test": "mocha --reporter spec",
524 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
525 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
526 },
527 "repository": {
528 "type": "git",
529 "url": "https://github.com/chimurai/http-proxy-middleware.git"
530 },
531 "keywords": [
532 "proxy",
533 "middleware",
534 "http",
535 "https",
536 "connect",
537 "express",
538 "browser-sync",
539 "gulp"
540 ],
541 "author": {
542 "name": "Steven Chim"
543 },
544 "license": "MIT",
545 "bugs": {
546 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
547 },
548 "homepage": "https://github.com/chimurai/http-proxy-middleware",
549 "devDependencies": {
550 "browser-sync": "^2.7.13",
551 "chai": "^3.0.0",
552 "connect": "^3.4.0",
553 "coveralls": "^2.11.2",
554 "express": "^4.13.1",
555 "istanbul": "^0.3.17",
556 "istanbul-coveralls": "^1.0.3",
557 "mocha": "^2.2.5",
558 "mocha-lcov-reporter": "0.0.2"
559 },
560 "dependencies": {
561 "http-proxy": "^1.11.1",
562 "is-glob": "^2.0.0",
563 "micromatch": "~2.1.6",
564 "url": "^0.10.3"
565 },
566 "gitHead": "bcb949b051fa46810fcce7defb8d0f927214db62",
567 "_id": "[email protected]",
568 "_shasum": "578855ae2b602dc0dc1ce9e6e16f72d60eae5cd0",
569 "_from": ".",
570 "_npmVersion": "2.7.4",
571 "_nodeVersion": "0.12.2",
572 "_npmUser": {
573 "name": "chimurai",
574 "email": "[email protected]"
575 },
576 "dist": {
577 "shasum": "578855ae2b602dc0dc1ce9e6e16f72d60eae5cd0",
578 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.3.1.tgz"
579 },
580 "maintainers": [
581 {
582 "name": "chimurai",
583 "email": "[email protected]"
584 }
585 ],
586 "directories": {}
587 },
588 "0.3.2": {
589 "name": "http-proxy-middleware",
590 "version": "0.3.2",
591 "description": "The one-liner proxy middleware for connect, express and browser-sync",
592 "main": "index.js",
593 "scripts": {
594 "test": "mocha --reporter spec",
595 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
596 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
597 },
598 "repository": {
599 "type": "git",
600 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
601 },
602 "keywords": [
603 "proxy",
604 "middleware",
605 "http",
606 "https",
607 "connect",
608 "express",
609 "browser-sync",
610 "gulp"
611 ],
612 "author": {
613 "name": "Steven Chim"
614 },
615 "license": "MIT",
616 "bugs": {
617 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
618 },
619 "homepage": "https://github.com/chimurai/http-proxy-middleware",
620 "devDependencies": {
621 "browser-sync": "^2.7.13",
622 "chai": "^3.0.0",
623 "connect": "^3.4.0",
624 "coveralls": "^2.11.2",
625 "express": "^4.13.1",
626 "istanbul": "^0.3.17",
627 "istanbul-coveralls": "^1.0.3",
628 "mocha": "^2.2.5",
629 "mocha-lcov-reporter": "0.0.2"
630 },
631 "dependencies": {
632 "http-proxy": "^1.11.1",
633 "is-glob": "^2.0.0",
634 "micromatch": "^2.2.0",
635 "url": "^0.10.3"
636 },
637 "gitHead": "e6ef751eb707e2898bed65e23e88fa570123e87c",
638 "_id": "[email protected]",
639 "_shasum": "159cf6e50f712b50a25582f43b2672869bcd5a4d",
640 "_from": ".",
641 "_npmVersion": "2.11.2",
642 "_nodeVersion": "0.12.5",
643 "_npmUser": {
644 "name": "chimurai",
645 "email": "[email protected]"
646 },
647 "maintainers": [
648 {
649 "name": "chimurai",
650 "email": "[email protected]"
651 }
652 ],
653 "dist": {
654 "shasum": "159cf6e50f712b50a25582f43b2672869bcd5a4d",
655 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.3.2.tgz"
656 },
657 "directories": {}
658 },
659 "0.4.0": {
660 "name": "http-proxy-middleware",
661 "version": "0.4.0",
662 "description": "The one-liner proxy middleware for connect, express and browser-sync",
663 "main": "index.js",
664 "scripts": {
665 "test": "mocha --reporter spec",
666 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
667 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
668 },
669 "repository": {
670 "type": "git",
671 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
672 },
673 "keywords": [
674 "proxy",
675 "middleware",
676 "http",
677 "https",
678 "connect",
679 "express",
680 "browser-sync",
681 "gulp",
682 "websocket"
683 ],
684 "author": {
685 "name": "Steven Chim"
686 },
687 "license": "MIT",
688 "bugs": {
689 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
690 },
691 "homepage": "https://github.com/chimurai/http-proxy-middleware",
692 "devDependencies": {
693 "browser-sync": "^2.7.13",
694 "chai": "^3.0.0",
695 "connect": "^3.4.0",
696 "coveralls": "^2.11.2",
697 "express": "^4.13.1",
698 "istanbul": "^0.3.17",
699 "istanbul-coveralls": "^1.0.3",
700 "mocha": "^2.2.5",
701 "mocha-lcov-reporter": "0.0.2",
702 "ws": "^0.7.2"
703 },
704 "dependencies": {
705 "http-proxy": "^1.11.1",
706 "is-glob": "^2.0.0",
707 "micromatch": "^2.2.0",
708 "url": "^0.10.3"
709 },
710 "gitHead": "b10d7301fcde3be94b8fe4708ec1e0ad17b0bf4a",
711 "_id": "[email protected]",
712 "_shasum": "82fc0fa2602ad8cd5adb35e0e4e15f9a612e26d6",
713 "_from": ".",
714 "_npmVersion": "2.11.2",
715 "_nodeVersion": "0.12.5",
716 "_npmUser": {
717 "name": "chimurai",
718 "email": "[email protected]"
719 },
720 "maintainers": [
721 {
722 "name": "chimurai",
723 "email": "[email protected]"
724 }
725 ],
726 "dist": {
727 "shasum": "82fc0fa2602ad8cd5adb35e0e4e15f9a612e26d6",
728 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.4.0.tgz"
729 },
730 "directories": {}
731 },
732 "0.5.0": {
733 "name": "http-proxy-middleware",
734 "version": "0.5.0",
735 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
736 "main": "index.js",
737 "scripts": {
738 "test": "mocha --reporter spec",
739 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
740 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
741 },
742 "repository": {
743 "type": "git",
744 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
745 },
746 "keywords": [
747 "proxy",
748 "middleware",
749 "http",
750 "https",
751 "connect",
752 "express",
753 "browser-sync",
754 "gulp",
755 "websocket"
756 ],
757 "author": {
758 "name": "Steven Chim"
759 },
760 "license": "MIT",
761 "bugs": {
762 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
763 },
764 "homepage": "https://github.com/chimurai/http-proxy-middleware",
765 "devDependencies": {
766 "browser-sync": "^2.7.13",
767 "chai": "^3.0.0",
768 "connect": "^3.4.0",
769 "coveralls": "^2.11.2",
770 "express": "^4.13.1",
771 "istanbul": "^0.3.17",
772 "istanbul-coveralls": "^1.0.3",
773 "mocha": "^2.2.5",
774 "mocha-lcov-reporter": "0.0.2",
775 "ws": "^0.7.2"
776 },
777 "dependencies": {
778 "http-proxy": "^1.11.1",
779 "is-glob": "^2.0.0",
780 "micromatch": "^2.2.0",
781 "url": "^0.10.3"
782 },
783 "gitHead": "a025f336746df150c58f2851595b8073b3f96e42",
784 "_id": "[email protected]",
785 "_shasum": "404e8e8104f2bd000fa6946c9624214a8ba19e3a",
786 "_from": ".",
787 "_npmVersion": "2.11.2",
788 "_nodeVersion": "0.12.5",
789 "_npmUser": {
790 "name": "chimurai",
791 "email": "[email protected]"
792 },
793 "maintainers": [
794 {
795 "name": "chimurai",
796 "email": "[email protected]"
797 }
798 ],
799 "dist": {
800 "shasum": "404e8e8104f2bd000fa6946c9624214a8ba19e3a",
801 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.5.0.tgz"
802 },
803 "directories": {}
804 },
805 "0.6.0": {
806 "name": "http-proxy-middleware",
807 "version": "0.6.0",
808 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
809 "main": "index.js",
810 "scripts": {
811 "test": "mocha --reporter spec",
812 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
813 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
814 },
815 "repository": {
816 "type": "git",
817 "url": "https://github.com/chimurai/http-proxy-middleware.git"
818 },
819 "keywords": [
820 "proxy",
821 "middleware",
822 "http",
823 "https",
824 "connect",
825 "express",
826 "browser-sync",
827 "gulp",
828 "websocket"
829 ],
830 "author": {
831 "name": "Steven Chim"
832 },
833 "license": "MIT",
834 "bugs": {
835 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
836 },
837 "homepage": "https://github.com/chimurai/http-proxy-middleware",
838 "devDependencies": {
839 "browser-sync": "^2.7.13",
840 "chai": "^3.0.0",
841 "connect": "^3.4.0",
842 "coveralls": "^2.11.2",
843 "express": "^4.13.1",
844 "istanbul": "^0.3.17",
845 "istanbul-coveralls": "^1.0.3",
846 "mocha": "^2.2.5",
847 "mocha-lcov-reporter": "0.0.2",
848 "ws": "^0.7.2"
849 },
850 "dependencies": {
851 "http-proxy": "^1.11.1",
852 "is-glob": "^2.0.0",
853 "lodash": "^3.10.1",
854 "micromatch": "^2.2.0",
855 "url": "^0.10.3"
856 },
857 "gitHead": "bb473ad7c20de225fdaed6a7e74e29f3f948fce6",
858 "_id": "[email protected]",
859 "_shasum": "d5ac345ddb60fb9902c0c82c4754ec243e52018c",
860 "_from": ".",
861 "_npmVersion": "2.7.4",
862 "_nodeVersion": "0.12.2",
863 "_npmUser": {
864 "name": "chimurai",
865 "email": "[email protected]"
866 },
867 "dist": {
868 "shasum": "d5ac345ddb60fb9902c0c82c4754ec243e52018c",
869 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.6.0.tgz"
870 },
871 "maintainers": [
872 {
873 "name": "chimurai",
874 "email": "[email protected]"
875 }
876 ],
877 "directories": {}
878 },
879 "0.7.0": {
880 "name": "http-proxy-middleware",
881 "version": "0.7.0",
882 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
883 "main": "index.js",
884 "scripts": {
885 "test": "mocha --reporter spec",
886 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
887 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
888 },
889 "repository": {
890 "type": "git",
891 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
892 },
893 "keywords": [
894 "proxy",
895 "middleware",
896 "http",
897 "https",
898 "connect",
899 "express",
900 "browser-sync",
901 "gulp",
902 "websocket"
903 ],
904 "author": {
905 "name": "Steven Chim"
906 },
907 "license": "MIT",
908 "bugs": {
909 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
910 },
911 "homepage": "https://github.com/chimurai/http-proxy-middleware",
912 "devDependencies": {
913 "browser-sync": "^2.8.2",
914 "chai": "^3.2.0",
915 "connect": "^3.4.0",
916 "coveralls": "^2.11.4",
917 "express": "^4.13.3",
918 "istanbul": "^0.3.18",
919 "istanbul-coveralls": "^1.0.3",
920 "mocha": "^2.2.5",
921 "mocha-lcov-reporter": "0.0.2",
922 "ws": "^0.8.0"
923 },
924 "dependencies": {
925 "http-proxy": "^1.11.1",
926 "is-glob": "^2.0.0",
927 "lodash": "^3.10.1",
928 "micromatch": "^2.2.0",
929 "url": "^0.10.3"
930 },
931 "gitHead": "75a062515001910ce803b1147ee8310a102c82b8",
932 "_id": "[email protected]",
933 "_shasum": "350d6c2c849dd322535e1b042a01fde386d1f308",
934 "_from": ".",
935 "_npmVersion": "2.11.2",
936 "_nodeVersion": "0.12.5",
937 "_npmUser": {
938 "name": "chimurai",
939 "email": "[email protected]"
940 },
941 "maintainers": [
942 {
943 "name": "chimurai",
944 "email": "[email protected]"
945 }
946 ],
947 "dist": {
948 "shasum": "350d6c2c849dd322535e1b042a01fde386d1f308",
949 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.7.0.tgz"
950 },
951 "directories": {}
952 },
953 "0.8.0": {
954 "name": "http-proxy-middleware",
955 "version": "0.8.0",
956 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
957 "main": "index.js",
958 "scripts": {
959 "test": "mocha --reporter spec",
960 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
961 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
962 },
963 "repository": {
964 "type": "git",
965 "url": "https://github.com/chimurai/http-proxy-middleware.git"
966 },
967 "keywords": [
968 "proxy",
969 "middleware",
970 "http",
971 "https",
972 "connect",
973 "express",
974 "browser-sync",
975 "gulp",
976 "websocket"
977 ],
978 "author": {
979 "name": "Steven Chim"
980 },
981 "license": "MIT",
982 "bugs": {
983 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
984 },
985 "homepage": "https://github.com/chimurai/http-proxy-middleware",
986 "devDependencies": {
987 "browser-sync": "^2.8.2",
988 "chai": "^3.2.0",
989 "connect": "^3.4.0",
990 "coveralls": "^2.11.4",
991 "express": "^4.13.3",
992 "istanbul": "^0.3.19",
993 "istanbul-coveralls": "^1.0.3",
994 "mocha": "^2.3.0",
995 "mocha-lcov-reporter": "0.0.2",
996 "ws": "^0.8.0"
997 },
998 "dependencies": {
999 "http-proxy": "^1.11.2",
1000 "is-glob": "^2.0.0",
1001 "lodash": "^3.10.1",
1002 "micromatch": "^2.2.0"
1003 },
1004 "gitHead": "f1559c909f0ed3239a970c73f15755d65de86a53",
1005 "_id": "[email protected]",
1006 "_shasum": "47698ccccee8fd6ff35013ff3dbe70150dae628c",
1007 "_from": ".",
1008 "_npmVersion": "2.7.4",
1009 "_nodeVersion": "0.12.2",
1010 "_npmUser": {
1011 "name": "chimurai",
1012 "email": "[email protected]"
1013 },
1014 "dist": {
1015 "shasum": "47698ccccee8fd6ff35013ff3dbe70150dae628c",
1016 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.8.0.tgz"
1017 },
1018 "maintainers": [
1019 {
1020 "name": "chimurai",
1021 "email": "[email protected]"
1022 }
1023 ],
1024 "directories": {}
1025 },
1026 "0.8.1": {
1027 "name": "http-proxy-middleware",
1028 "version": "0.8.1",
1029 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1030 "main": "index.js",
1031 "scripts": {
1032 "test": "mocha --reporter spec",
1033 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1034 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1035 },
1036 "repository": {
1037 "type": "git",
1038 "url": "https://github.com/chimurai/http-proxy-middleware.git"
1039 },
1040 "keywords": [
1041 "proxy",
1042 "middleware",
1043 "http",
1044 "https",
1045 "connect",
1046 "express",
1047 "browser-sync",
1048 "gulp",
1049 "websocket"
1050 ],
1051 "author": {
1052 "name": "Steven Chim"
1053 },
1054 "license": "MIT",
1055 "bugs": {
1056 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1057 },
1058 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1059 "devDependencies": {
1060 "browser-sync": "^2.8.2",
1061 "chai": "^3.2.0",
1062 "connect": "^3.4.0",
1063 "coveralls": "^2.11.4",
1064 "express": "^4.13.3",
1065 "istanbul": "^0.3.19",
1066 "istanbul-coveralls": "^1.0.3",
1067 "mocha": "^2.3.0",
1068 "mocha-lcov-reporter": "0.0.2",
1069 "ws": "^0.8.0"
1070 },
1071 "dependencies": {
1072 "http-proxy": "^1.11.2",
1073 "is-glob": "^2.0.0",
1074 "lodash": "^3.10.1",
1075 "micromatch": "^2.2.0"
1076 },
1077 "gitHead": "13f949160afd7ef754d5a27af9514d76099817f7",
1078 "_id": "[email protected]",
1079 "_shasum": "081b8251f40997ea94f3d7909ffa853cdfc86455",
1080 "_from": ".",
1081 "_npmVersion": "2.7.4",
1082 "_nodeVersion": "0.12.2",
1083 "_npmUser": {
1084 "name": "chimurai",
1085 "email": "[email protected]"
1086 },
1087 "dist": {
1088 "shasum": "081b8251f40997ea94f3d7909ffa853cdfc86455",
1089 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.8.1.tgz"
1090 },
1091 "maintainers": [
1092 {
1093 "name": "chimurai",
1094 "email": "[email protected]"
1095 }
1096 ],
1097 "directories": {}
1098 },
1099 "0.8.2": {
1100 "name": "http-proxy-middleware",
1101 "version": "0.8.2",
1102 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1103 "main": "index.js",
1104 "scripts": {
1105 "test": "mocha --reporter spec",
1106 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1107 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1108 },
1109 "repository": {
1110 "type": "git",
1111 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1112 },
1113 "keywords": [
1114 "proxy",
1115 "middleware",
1116 "http",
1117 "https",
1118 "connect",
1119 "express",
1120 "browser-sync",
1121 "gulp",
1122 "websocket"
1123 ],
1124 "author": {
1125 "name": "Steven Chim"
1126 },
1127 "license": "MIT",
1128 "bugs": {
1129 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1130 },
1131 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1132 "devDependencies": {
1133 "browser-sync": "^2.8.2",
1134 "chai": "^3.2.0",
1135 "connect": "^3.4.0",
1136 "coveralls": "^2.11.4",
1137 "express": "^4.13.3",
1138 "istanbul": "^0.3.19",
1139 "istanbul-coveralls": "^1.0.3",
1140 "mocha": "^2.3.0",
1141 "mocha-lcov-reporter": "0.0.2",
1142 "ws": "^0.8.0"
1143 },
1144 "dependencies": {
1145 "http-proxy": "^1.11.2",
1146 "is-glob": "^2.0.0",
1147 "lodash": "^3.10.1",
1148 "micromatch": "^2.2.0"
1149 },
1150 "gitHead": "5f343b95eac318156e4475d80ec9b9c56437c273",
1151 "_id": "[email protected]",
1152 "_shasum": "8ea108c0e2c5b06a889fdec11328782a420e87c6",
1153 "_from": ".",
1154 "_npmVersion": "2.14.3",
1155 "_nodeVersion": "4.1.0",
1156 "_npmUser": {
1157 "name": "chimurai",
1158 "email": "[email protected]"
1159 },
1160 "maintainers": [
1161 {
1162 "name": "chimurai",
1163 "email": "[email protected]"
1164 }
1165 ],
1166 "dist": {
1167 "shasum": "8ea108c0e2c5b06a889fdec11328782a420e87c6",
1168 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.8.2.tgz"
1169 },
1170 "directories": {}
1171 },
1172 "0.9.0": {
1173 "name": "http-proxy-middleware",
1174 "version": "0.9.0",
1175 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1176 "main": "index.js",
1177 "scripts": {
1178 "test": "mocha --reporter spec",
1179 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1180 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1181 },
1182 "repository": {
1183 "type": "git",
1184 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1185 },
1186 "keywords": [
1187 "proxy",
1188 "middleware",
1189 "http",
1190 "https",
1191 "connect",
1192 "express",
1193 "browser-sync",
1194 "gulp",
1195 "websocket"
1196 ],
1197 "author": {
1198 "name": "Steven Chim"
1199 },
1200 "license": "MIT",
1201 "bugs": {
1202 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1203 },
1204 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1205 "devDependencies": {
1206 "browser-sync": "^2.8.2",
1207 "chai": "^3.2.0",
1208 "connect": "^3.4.0",
1209 "coveralls": "^2.11.4",
1210 "express": "^4.13.3",
1211 "istanbul": "^0.3.19",
1212 "istanbul-coveralls": "^1.0.3",
1213 "mocha": "^2.3.0",
1214 "mocha-lcov-reporter": "0.0.2",
1215 "ws": "^0.8.0"
1216 },
1217 "dependencies": {
1218 "http-proxy": "^1.11.2",
1219 "is-glob": "^2.0.0",
1220 "lodash": "^3.10.1",
1221 "micromatch": "^2.2.0"
1222 },
1223 "gitHead": "57094e506e92bd7a3f5e6cf94dbbad7632cdfcad",
1224 "_id": "[email protected]",
1225 "_shasum": "017be05797de74548653e02453b42ba42b7b0326",
1226 "_from": ".",
1227 "_npmVersion": "2.14.4",
1228 "_nodeVersion": "4.1.1",
1229 "_npmUser": {
1230 "name": "chimurai",
1231 "email": "[email protected]"
1232 },
1233 "maintainers": [
1234 {
1235 "name": "chimurai",
1236 "email": "[email protected]"
1237 }
1238 ],
1239 "dist": {
1240 "shasum": "017be05797de74548653e02453b42ba42b7b0326",
1241 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.9.0.tgz"
1242 },
1243 "directories": {}
1244 },
1245 "0.9.1": {
1246 "name": "http-proxy-middleware",
1247 "version": "0.9.1",
1248 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1249 "main": "index.js",
1250 "scripts": {
1251 "test": "mocha --reporter spec",
1252 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1253 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1254 },
1255 "repository": {
1256 "type": "git",
1257 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1258 },
1259 "keywords": [
1260 "reverse",
1261 "proxy",
1262 "middleware",
1263 "http",
1264 "https",
1265 "connect",
1266 "express",
1267 "browser-sync",
1268 "gulp",
1269 "grunt-contrib-connect",
1270 "websocket",
1271 "ws",
1272 "cors"
1273 ],
1274 "author": {
1275 "name": "Steven Chim"
1276 },
1277 "license": "MIT",
1278 "bugs": {
1279 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1280 },
1281 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1282 "devDependencies": {
1283 "browser-sync": "^2.11.0",
1284 "chai": "^3.4.1",
1285 "connect": "^3.4.0",
1286 "coveralls": "^2.11.6",
1287 "express": "^4.13.3",
1288 "istanbul": "^0.4.1",
1289 "istanbul-coveralls": "^1.0.3",
1290 "mocha": "^2.3.4",
1291 "mocha-lcov-reporter": "1.0.0",
1292 "ws": "^1.0.1"
1293 },
1294 "dependencies": {
1295 "http-proxy": "^1.12.0",
1296 "is-glob": "^2.0.1",
1297 "lodash": "^3.10.1",
1298 "micromatch": "^2.3.7"
1299 },
1300 "gitHead": "fe24b979cf7a55b757092203a5c7832233ff67ea",
1301 "_id": "[email protected]",
1302 "_shasum": "f068d8f4b6faf96cf57712f16a5e6eb50731549a",
1303 "_from": ".",
1304 "_npmVersion": "3.3.12",
1305 "_nodeVersion": "5.3.0",
1306 "_npmUser": {
1307 "name": "chimurai",
1308 "email": "[email protected]"
1309 },
1310 "maintainers": [
1311 {
1312 "name": "chimurai",
1313 "email": "[email protected]"
1314 }
1315 ],
1316 "dist": {
1317 "shasum": "f068d8f4b6faf96cf57712f16a5e6eb50731549a",
1318 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.9.1.tgz"
1319 },
1320 "directories": {}
1321 },
1322 "0.10.0-beta": {
1323 "name": "http-proxy-middleware",
1324 "version": "0.10.0-beta",
1325 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1326 "main": "index.js",
1327 "scripts": {
1328 "test": "mocha --reporter spec",
1329 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1330 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1331 },
1332 "repository": {
1333 "type": "git",
1334 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1335 },
1336 "keywords": [
1337 "reverse",
1338 "proxy",
1339 "middleware",
1340 "http",
1341 "https",
1342 "connect",
1343 "express",
1344 "browser-sync",
1345 "gulp",
1346 "grunt-contrib-connect",
1347 "websocket",
1348 "ws",
1349 "cors"
1350 ],
1351 "author": {
1352 "name": "Steven Chim"
1353 },
1354 "license": "MIT",
1355 "bugs": {
1356 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1357 },
1358 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1359 "devDependencies": {
1360 "browser-sync": "^2.11.0",
1361 "chai": "^3.4.1",
1362 "connect": "^3.4.0",
1363 "coveralls": "^2.11.6",
1364 "express": "^4.13.3",
1365 "istanbul": "^0.4.1",
1366 "istanbul-coveralls": "^1.0.3",
1367 "mocha": "^2.3.4",
1368 "mocha-lcov-reporter": "1.0.0",
1369 "ws": "^1.0.1"
1370 },
1371 "dependencies": {
1372 "http-proxy": "^1.12.0",
1373 "is-glob": "^2.0.1",
1374 "lodash": "^3.10.1",
1375 "micromatch": "^2.3.7"
1376 },
1377 "gitHead": "8ce646fe7c7736e9d90bc5d02682bc3fcc649da1",
1378 "_id": "[email protected]",
1379 "_shasum": "5573a0d75182da174488a44d56d3427081a1fc61",
1380 "_from": ".",
1381 "_npmVersion": "3.3.12",
1382 "_nodeVersion": "5.5.0",
1383 "_npmUser": {
1384 "name": "chimurai",
1385 "email": "[email protected]"
1386 },
1387 "maintainers": [
1388 {
1389 "name": "chimurai",
1390 "email": "[email protected]"
1391 }
1392 ],
1393 "dist": {
1394 "shasum": "5573a0d75182da174488a44d56d3427081a1fc61",
1395 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.10.0-beta.tgz"
1396 },
1397 "directories": {}
1398 },
1399 "0.10.0": {
1400 "name": "http-proxy-middleware",
1401 "version": "0.10.0",
1402 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1403 "main": "index.js",
1404 "scripts": {
1405 "test": "mocha --reporter spec",
1406 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1407 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1408 },
1409 "repository": {
1410 "type": "git",
1411 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1412 },
1413 "keywords": [
1414 "reverse",
1415 "proxy",
1416 "middleware",
1417 "http",
1418 "https",
1419 "connect",
1420 "express",
1421 "browser-sync",
1422 "gulp",
1423 "grunt-contrib-connect",
1424 "websocket",
1425 "ws",
1426 "cors"
1427 ],
1428 "author": {
1429 "name": "Steven Chim"
1430 },
1431 "license": "MIT",
1432 "bugs": {
1433 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1434 },
1435 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1436 "devDependencies": {
1437 "browser-sync": "^2.11.0",
1438 "chai": "^3.4.1",
1439 "connect": "^3.4.0",
1440 "coveralls": "^2.11.6",
1441 "express": "^4.13.3",
1442 "istanbul": "^0.4.1",
1443 "istanbul-coveralls": "^1.0.3",
1444 "mocha": "^2.3.4",
1445 "mocha-lcov-reporter": "1.0.0",
1446 "ws": "^1.0.1"
1447 },
1448 "dependencies": {
1449 "http-proxy": "^1.12.0",
1450 "is-glob": "^2.0.1",
1451 "lodash": "^3.10.1",
1452 "micromatch": "^2.3.7"
1453 },
1454 "gitHead": "5bed3c630c00c0d301fcdda4e4ea20ab31a95bfd",
1455 "_id": "[email protected]",
1456 "_shasum": "6060a8bf03c8443a5de7d5f279e95fa0ac0b1cfa",
1457 "_from": ".",
1458 "_npmVersion": "3.6.0",
1459 "_nodeVersion": "5.5.0",
1460 "_npmUser": {
1461 "name": "chimurai",
1462 "email": "[email protected]"
1463 },
1464 "maintainers": [
1465 {
1466 "name": "chimurai",
1467 "email": "[email protected]"
1468 }
1469 ],
1470 "dist": {
1471 "shasum": "6060a8bf03c8443a5de7d5f279e95fa0ac0b1cfa",
1472 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.10.0.tgz"
1473 },
1474 "_npmOperationalInternal": {
1475 "host": "packages-9-west.internal.npmjs.com",
1476 "tmp": "tmp/http-proxy-middleware-0.10.0.tgz_1454699998631_0.40408703149296343"
1477 },
1478 "directories": {}
1479 },
1480 "0.11.0": {
1481 "name": "http-proxy-middleware",
1482 "version": "0.11.0",
1483 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1484 "main": "index.js",
1485 "scripts": {
1486 "test": "mocha --reporter spec",
1487 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1488 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1489 },
1490 "repository": {
1491 "type": "git",
1492 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1493 },
1494 "keywords": [
1495 "reverse",
1496 "proxy",
1497 "middleware",
1498 "http",
1499 "https",
1500 "connect",
1501 "express",
1502 "browser-sync",
1503 "gulp",
1504 "grunt-contrib-connect",
1505 "websocket",
1506 "ws",
1507 "cors"
1508 ],
1509 "author": {
1510 "name": "Steven Chim"
1511 },
1512 "license": "MIT",
1513 "bugs": {
1514 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1515 },
1516 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1517 "devDependencies": {
1518 "browser-sync": "^2.11.0",
1519 "chai": "^3.4.1",
1520 "connect": "^3.4.0",
1521 "coveralls": "^2.11.6",
1522 "express": "^4.13.3",
1523 "istanbul": "^0.4.1",
1524 "istanbul-coveralls": "^1.0.3",
1525 "mocha": "^2.3.4",
1526 "mocha-lcov-reporter": "1.0.0",
1527 "ws": "^1.0.1"
1528 },
1529 "dependencies": {
1530 "http-proxy": "^1.12.0",
1531 "is-glob": "^2.0.1",
1532 "lodash": "^3.10.1",
1533 "micromatch": "^2.3.7"
1534 },
1535 "gitHead": "1f21feda49e57806d82be94ba3f3e46a70e7f868",
1536 "_id": "[email protected]",
1537 "_shasum": "0d279b6791b1d1620dca09b657f186e63c84763e",
1538 "_from": ".",
1539 "_npmVersion": "3.6.0",
1540 "_nodeVersion": "5.5.0",
1541 "_npmUser": {
1542 "name": "chimurai",
1543 "email": "[email protected]"
1544 },
1545 "maintainers": [
1546 {
1547 "name": "chimurai",
1548 "email": "[email protected]"
1549 }
1550 ],
1551 "dist": {
1552 "shasum": "0d279b6791b1d1620dca09b657f186e63c84763e",
1553 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.11.0.tgz"
1554 },
1555 "_npmOperationalInternal": {
1556 "host": "packages-9-west.internal.npmjs.com",
1557 "tmp": "tmp/http-proxy-middleware-0.11.0.tgz_1456344044565_0.8594308719038963"
1558 },
1559 "directories": {}
1560 },
1561 "0.12.0": {
1562 "name": "http-proxy-middleware",
1563 "version": "0.12.0",
1564 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1565 "main": "index.js",
1566 "scripts": {
1567 "test": "mocha --reporter spec",
1568 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1569 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1570 },
1571 "repository": {
1572 "type": "git",
1573 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1574 },
1575 "keywords": [
1576 "reverse",
1577 "proxy",
1578 "middleware",
1579 "http",
1580 "https",
1581 "connect",
1582 "express",
1583 "browser-sync",
1584 "gulp",
1585 "grunt-contrib-connect",
1586 "websocket",
1587 "ws",
1588 "cors"
1589 ],
1590 "author": {
1591 "name": "Steven Chim"
1592 },
1593 "license": "MIT",
1594 "bugs": {
1595 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1596 },
1597 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1598 "devDependencies": {
1599 "browser-sync": "^2.11.0",
1600 "chai": "^3.4.1",
1601 "connect": "^3.4.0",
1602 "coveralls": "^2.11.6",
1603 "express": "^4.13.3",
1604 "istanbul": "^0.4.1",
1605 "istanbul-coveralls": "^1.0.3",
1606 "mocha": "^2.3.4",
1607 "mocha-lcov-reporter": "1.0.0",
1608 "ws": "^1.0.1"
1609 },
1610 "dependencies": {
1611 "http-proxy": "^1.12.0",
1612 "is-glob": "^2.0.1",
1613 "lodash": "^3.10.1",
1614 "micromatch": "^2.3.7"
1615 },
1616 "gitHead": "951d9bf3fe81d83935bdcb8dfb51643a2775f251",
1617 "_id": "[email protected]",
1618 "_shasum": "014849335422dcd28e6eeddb5af1d9d2917fcb36",
1619 "_from": ".",
1620 "_npmVersion": "3.6.0",
1621 "_nodeVersion": "5.5.0",
1622 "_npmUser": {
1623 "name": "chimurai",
1624 "email": "[email protected]"
1625 },
1626 "maintainers": [
1627 {
1628 "name": "chimurai",
1629 "email": "[email protected]"
1630 }
1631 ],
1632 "dist": {
1633 "shasum": "014849335422dcd28e6eeddb5af1d9d2917fcb36",
1634 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.12.0.tgz"
1635 },
1636 "_npmOperationalInternal": {
1637 "host": "packages-12-west.internal.npmjs.com",
1638 "tmp": "tmp/http-proxy-middleware-0.12.0.tgz_1457891496060_0.7292140051722527"
1639 },
1640 "directories": {}
1641 },
1642 "0.13.0": {
1643 "name": "http-proxy-middleware",
1644 "version": "0.13.0",
1645 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1646 "main": "index.js",
1647 "scripts": {
1648 "test": "mocha --reporter spec",
1649 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1650 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1651 },
1652 "repository": {
1653 "type": "git",
1654 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1655 },
1656 "keywords": [
1657 "reverse",
1658 "proxy",
1659 "middleware",
1660 "http",
1661 "https",
1662 "connect",
1663 "express",
1664 "browser-sync",
1665 "gulp",
1666 "grunt-contrib-connect",
1667 "websocket",
1668 "ws",
1669 "cors"
1670 ],
1671 "author": {
1672 "name": "Steven Chim"
1673 },
1674 "license": "MIT",
1675 "bugs": {
1676 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1677 },
1678 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1679 "devDependencies": {
1680 "browser-sync": "^2.11.0",
1681 "chai": "^3.4.1",
1682 "connect": "^3.4.0",
1683 "coveralls": "^2.11.6",
1684 "express": "^4.13.3",
1685 "istanbul": "^0.4.1",
1686 "istanbul-coveralls": "^1.0.3",
1687 "mocha": "^2.3.4",
1688 "mocha-lcov-reporter": "1.2.0",
1689 "ws": "^1.0.1"
1690 },
1691 "dependencies": {
1692 "http-proxy": "^1.12.0",
1693 "is-glob": "^2.0.1",
1694 "lodash": "^4.6.1",
1695 "micromatch": "^2.3.7"
1696 },
1697 "gitHead": "6606489c35a06ded05694d33a15cf02917ca1173",
1698 "_id": "[email protected]",
1699 "_shasum": "9c765abb4027b3a95b9e8da8e4f4fa65b1ecca39",
1700 "_from": ".",
1701 "_npmVersion": "3.6.0",
1702 "_nodeVersion": "5.5.0",
1703 "_npmUser": {
1704 "name": "chimurai",
1705 "email": "[email protected]"
1706 },
1707 "maintainers": [
1708 {
1709 "name": "chimurai",
1710 "email": "[email protected]"
1711 }
1712 ],
1713 "dist": {
1714 "shasum": "9c765abb4027b3a95b9e8da8e4f4fa65b1ecca39",
1715 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.13.0.tgz"
1716 },
1717 "_npmOperationalInternal": {
1718 "host": "packages-12-west.internal.npmjs.com",
1719 "tmp": "tmp/http-proxy-middleware-0.13.0.tgz_1458764570225_0.37139365426264703"
1720 },
1721 "directories": {}
1722 },
1723 "0.14.0": {
1724 "name": "http-proxy-middleware",
1725 "version": "0.14.0",
1726 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1727 "main": "index.js",
1728 "scripts": {
1729 "test": "mocha --reporter spec",
1730 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1731 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1732 },
1733 "repository": {
1734 "type": "git",
1735 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1736 },
1737 "keywords": [
1738 "reverse",
1739 "proxy",
1740 "middleware",
1741 "http",
1742 "https",
1743 "connect",
1744 "express",
1745 "browser-sync",
1746 "gulp",
1747 "grunt-contrib-connect",
1748 "websocket",
1749 "ws",
1750 "cors"
1751 ],
1752 "author": {
1753 "name": "Steven Chim"
1754 },
1755 "license": "MIT",
1756 "bugs": {
1757 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1758 },
1759 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1760 "devDependencies": {
1761 "browser-sync": "^2.11.0",
1762 "chai": "^3.4.1",
1763 "connect": "^3.4.0",
1764 "coveralls": "^2.11.6",
1765 "express": "^4.13.3",
1766 "istanbul": "^0.4.1",
1767 "istanbul-coveralls": "^1.0.3",
1768 "mocha": "^2.3.4",
1769 "mocha-lcov-reporter": "1.2.0",
1770 "open": "0.0.5",
1771 "ws": "^1.0.1"
1772 },
1773 "dependencies": {
1774 "http-proxy": "^1.12.0",
1775 "is-glob": "^2.0.1",
1776 "lodash": "^4.6.1",
1777 "micromatch": "^2.3.7"
1778 },
1779 "gitHead": "28f17062174987e80bdb3ff60478d746a17cb43f",
1780 "_id": "[email protected]",
1781 "_shasum": "4bf97e2794201c5cd0ba07ca401c267f9d014444",
1782 "_from": ".",
1783 "_npmVersion": "3.6.0",
1784 "_nodeVersion": "5.5.0",
1785 "_npmUser": {
1786 "name": "chimurai",
1787 "email": "[email protected]"
1788 },
1789 "maintainers": [
1790 {
1791 "name": "chimurai",
1792 "email": "[email protected]"
1793 }
1794 ],
1795 "dist": {
1796 "shasum": "4bf97e2794201c5cd0ba07ca401c267f9d014444",
1797 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.14.0.tgz"
1798 },
1799 "_npmOperationalInternal": {
1800 "host": "packages-12-west.internal.npmjs.com",
1801 "tmp": "tmp/http-proxy-middleware-0.14.0.tgz_1461011862294_0.11940710246562958"
1802 },
1803 "directories": {}
1804 },
1805 "0.15.0": {
1806 "name": "http-proxy-middleware",
1807 "version": "0.15.0",
1808 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1809 "main": "index.js",
1810 "scripts": {
1811 "test": "mocha --reporter spec",
1812 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha",
1813 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && istanbul-coveralls && rm -rf coverage"
1814 },
1815 "repository": {
1816 "type": "git",
1817 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
1818 },
1819 "keywords": [
1820 "reverse",
1821 "proxy",
1822 "middleware",
1823 "http",
1824 "https",
1825 "connect",
1826 "express",
1827 "browser-sync",
1828 "gulp",
1829 "grunt-contrib-connect",
1830 "websocket",
1831 "ws",
1832 "cors"
1833 ],
1834 "author": {
1835 "name": "Steven Chim"
1836 },
1837 "license": "MIT",
1838 "bugs": {
1839 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1840 },
1841 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1842 "devDependencies": {
1843 "browser-sync": "^2.12.5",
1844 "chai": "^3.5.0",
1845 "connect": "^3.4.1",
1846 "coveralls": "^2.11.9",
1847 "express": "^4.13.4",
1848 "istanbul": "^0.4.3",
1849 "istanbul-coveralls": "^1.0.3",
1850 "mocha": "^2.4.5",
1851 "mocha-lcov-reporter": "1.2.0",
1852 "opn": "^4.0.1",
1853 "ws": "^1.1.0"
1854 },
1855 "dependencies": {
1856 "http-proxy": "^1.13.2",
1857 "is-glob": "^2.0.1",
1858 "lodash": "^4.11.2",
1859 "micromatch": "^2.3.8"
1860 },
1861 "gitHead": "b33b96978506ce00b7833f94514523a696e6cb13",
1862 "_id": "[email protected]",
1863 "_shasum": "59b8c391b2b838763388b0fad48b5bd36b3c0152",
1864 "_from": ".",
1865 "_npmVersion": "3.6.0",
1866 "_nodeVersion": "5.5.0",
1867 "_npmUser": {
1868 "name": "chimurai",
1869 "email": "[email protected]"
1870 },
1871 "maintainers": [
1872 {
1873 "name": "chimurai",
1874 "email": "[email protected]"
1875 }
1876 ],
1877 "dist": {
1878 "shasum": "59b8c391b2b838763388b0fad48b5bd36b3c0152",
1879 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.15.0.tgz"
1880 },
1881 "_npmOperationalInternal": {
1882 "host": "packages-16-east.internal.npmjs.com",
1883 "tmp": "tmp/http-proxy-middleware-0.15.0.tgz_1462309355357_0.6974488440901041"
1884 },
1885 "directories": {}
1886 },
1887 "0.15.1-beta": {
1888 "name": "http-proxy-middleware",
1889 "version": "0.15.1-beta",
1890 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1891 "main": "index.js",
1892 "scripts": {
1893 "test": "mocha --recursive --colors --reporter spec",
1894 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
1895 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && rm -rf coverage"
1896 },
1897 "repository": {
1898 "type": "git",
1899 "url": "https://github.com/chimurai/http-proxy-middleware.git"
1900 },
1901 "keywords": [
1902 "reverse",
1903 "proxy",
1904 "middleware",
1905 "http",
1906 "https",
1907 "connect",
1908 "express",
1909 "browser-sync",
1910 "gulp",
1911 "grunt-contrib-connect",
1912 "websocket",
1913 "ws",
1914 "cors"
1915 ],
1916 "author": {
1917 "name": "Steven Chim"
1918 },
1919 "license": "MIT",
1920 "bugs": {
1921 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
1922 },
1923 "homepage": "https://github.com/chimurai/http-proxy-middleware",
1924 "devDependencies": {
1925 "browser-sync": "^2.12.5",
1926 "chai": "^3.5.0",
1927 "connect": "^3.4.1",
1928 "coveralls": "^2.11.9",
1929 "express": "^4.13.4",
1930 "istanbul": "^0.4.3",
1931 "istanbul-coveralls": "^1.0.3",
1932 "mocha": "^2.4.5",
1933 "mocha-lcov-reporter": "1.2.0",
1934 "opn": "^4.0.1",
1935 "ws": "^1.1.0"
1936 },
1937 "dependencies": {
1938 "http-proxy": "^1.13.2",
1939 "is-glob": "^2.0.1",
1940 "lodash": "^4.11.2",
1941 "micromatch": "^2.3.8"
1942 },
1943 "gitHead": "9bf680f5b6ccef0440b86672c8bd1088b760ee64",
1944 "_id": "[email protected]",
1945 "_shasum": "ff501cb51a82d6ec3209c1f8c4345806a4fdaad8",
1946 "_from": ".",
1947 "_npmVersion": "2.7.5",
1948 "_nodeVersion": "6.0.0",
1949 "_npmUser": {
1950 "name": "chimurai",
1951 "email": "[email protected]"
1952 },
1953 "maintainers": [
1954 {
1955 "name": "chimurai",
1956 "email": "[email protected]"
1957 }
1958 ],
1959 "dist": {
1960 "shasum": "ff501cb51a82d6ec3209c1f8c4345806a4fdaad8",
1961 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.15.1-beta.tgz"
1962 },
1963 "_npmOperationalInternal": {
1964 "host": "packages-12-west.internal.npmjs.com",
1965 "tmp": "tmp/http-proxy-middleware-0.15.1-beta.tgz_1463590456172_0.49187433044426143"
1966 },
1967 "directories": {}
1968 },
1969 "0.15.1": {
1970 "name": "http-proxy-middleware",
1971 "version": "0.15.1",
1972 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
1973 "main": "index.js",
1974 "scripts": {
1975 "test": "mocha --recursive --colors --reporter spec",
1976 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
1977 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && rm -rf coverage"
1978 },
1979 "repository": {
1980 "type": "git",
1981 "url": "https://github.com/chimurai/http-proxy-middleware.git"
1982 },
1983 "keywords": [
1984 "reverse",
1985 "proxy",
1986 "middleware",
1987 "http",
1988 "https",
1989 "connect",
1990 "express",
1991 "browser-sync",
1992 "gulp",
1993 "grunt-contrib-connect",
1994 "websocket",
1995 "ws",
1996 "cors"
1997 ],
1998 "author": {
1999 "name": "Steven Chim"
2000 },
2001 "license": "MIT",
2002 "bugs": {
2003 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2004 },
2005 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2006 "devDependencies": {
2007 "browser-sync": "^2.12.5",
2008 "chai": "^3.5.0",
2009 "connect": "^3.4.1",
2010 "coveralls": "^2.11.9",
2011 "express": "^4.13.4",
2012 "istanbul": "^0.4.3",
2013 "istanbul-coveralls": "^1.0.3",
2014 "mocha": "^2.4.5",
2015 "mocha-lcov-reporter": "1.2.0",
2016 "opn": "^4.0.1",
2017 "ws": "^1.1.0"
2018 },
2019 "dependencies": {
2020 "http-proxy": "^1.13.2",
2021 "is-glob": "^2.0.1",
2022 "lodash": "^4.11.2",
2023 "micromatch": "^2.3.8"
2024 },
2025 "gitHead": "9e542faa39fd9e8caa9785088fb99511b24f41f3",
2026 "_id": "[email protected]",
2027 "_shasum": "bf455c567f6f411e66dce082d90c9049bfc391d2",
2028 "_from": ".",
2029 "_npmVersion": "2.7.5",
2030 "_nodeVersion": "6.0.0",
2031 "_npmUser": {
2032 "name": "chimurai",
2033 "email": "[email protected]"
2034 },
2035 "maintainers": [
2036 {
2037 "name": "chimurai",
2038 "email": "[email protected]"
2039 }
2040 ],
2041 "dist": {
2042 "shasum": "bf455c567f6f411e66dce082d90c9049bfc391d2",
2043 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.15.1.tgz"
2044 },
2045 "_npmOperationalInternal": {
2046 "host": "packages-16-east.internal.npmjs.com",
2047 "tmp": "tmp/http-proxy-middleware-0.15.1.tgz_1464300122470_0.43105378933250904"
2048 },
2049 "directories": {}
2050 },
2051 "0.15.2": {
2052 "name": "http-proxy-middleware",
2053 "version": "0.15.2",
2054 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2055 "main": "index.js",
2056 "scripts": {
2057 "test": "mocha --recursive --colors --reporter spec",
2058 "cover": "rm -rf coverage && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2059 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && rm -rf coverage"
2060 },
2061 "repository": {
2062 "type": "git",
2063 "url": "https://github.com/chimurai/http-proxy-middleware.git"
2064 },
2065 "keywords": [
2066 "reverse",
2067 "proxy",
2068 "middleware",
2069 "http",
2070 "https",
2071 "connect",
2072 "express",
2073 "browser-sync",
2074 "gulp",
2075 "grunt-contrib-connect",
2076 "websocket",
2077 "ws",
2078 "cors"
2079 ],
2080 "author": {
2081 "name": "Steven Chim"
2082 },
2083 "license": "MIT",
2084 "bugs": {
2085 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2086 },
2087 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2088 "devDependencies": {
2089 "browser-sync": "^2.12.5",
2090 "chai": "^3.5.0",
2091 "connect": "^3.4.1",
2092 "coveralls": "^2.11.9",
2093 "express": "^4.13.4",
2094 "istanbul": "^0.4.3",
2095 "istanbul-coveralls": "^1.0.3",
2096 "mocha": "^2.4.5",
2097 "mocha-lcov-reporter": "1.2.0",
2098 "opn": "^4.0.1",
2099 "ws": "^1.1.0"
2100 },
2101 "dependencies": {
2102 "http-proxy": "^1.13.2",
2103 "is-glob": "^2.0.1",
2104 "lodash": "^4.11.2",
2105 "micromatch": "^2.3.8"
2106 },
2107 "gitHead": "679526ef1f3a61e4b68c26d9f644195e93727b72",
2108 "_id": "[email protected]",
2109 "_shasum": "e1c69b8948fb04e2846ee22f38b650e4f09c027f",
2110 "_from": ".",
2111 "_npmVersion": "2.7.5",
2112 "_nodeVersion": "6.0.0",
2113 "_npmUser": {
2114 "name": "chimurai",
2115 "email": "[email protected]"
2116 },
2117 "maintainers": [
2118 {
2119 "name": "chimurai",
2120 "email": "[email protected]"
2121 }
2122 ],
2123 "dist": {
2124 "shasum": "e1c69b8948fb04e2846ee22f38b650e4f09c027f",
2125 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.15.2.tgz"
2126 },
2127 "_npmOperationalInternal": {
2128 "host": "packages-16-east.internal.npmjs.com",
2129 "tmp": "tmp/http-proxy-middleware-0.15.2.tgz_1464526274174_0.0279650641605258"
2130 },
2131 "directories": {}
2132 },
2133 "0.16.0": {
2134 "name": "http-proxy-middleware",
2135 "version": "0.16.0",
2136 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2137 "main": "index.js",
2138 "scripts": {
2139 "clean": "rm -rf coverage",
2140 "test": "mocha --recursive --colors --reporter spec",
2141 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2142 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
2143 },
2144 "repository": {
2145 "type": "git",
2146 "url": "https://github.com/chimurai/http-proxy-middleware.git"
2147 },
2148 "keywords": [
2149 "reverse",
2150 "proxy",
2151 "middleware",
2152 "http",
2153 "https",
2154 "connect",
2155 "express",
2156 "browser-sync",
2157 "gulp",
2158 "grunt-contrib-connect",
2159 "websocket",
2160 "ws",
2161 "cors"
2162 ],
2163 "author": {
2164 "name": "Steven Chim"
2165 },
2166 "license": "MIT",
2167 "bugs": {
2168 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2169 },
2170 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2171 "devDependencies": {
2172 "browser-sync": "^2.13.0",
2173 "chai": "^3.5.0",
2174 "connect": "^3.4.1",
2175 "coveralls": "^2.11.9",
2176 "express": "^4.13.4",
2177 "istanbul": "^0.4.3",
2178 "istanbul-coveralls": "^1.0.3",
2179 "mocha": "^2.5.3",
2180 "mocha-lcov-reporter": "1.2.0",
2181 "opn": "^4.0.2",
2182 "ws": "^1.1.0"
2183 },
2184 "dependencies": {
2185 "http-proxy": "^1.13.3",
2186 "is-glob": "^2.0.1",
2187 "lodash": "^4.13.1",
2188 "micromatch": "^2.3.8"
2189 },
2190 "gitHead": "09926cdd29573e2966993a743d8b68e415f9c6b5",
2191 "_id": "[email protected]",
2192 "_shasum": "6879b8f1151a3289dd301372b81d8dd026e3162b",
2193 "_from": ".",
2194 "_npmVersion": "2.7.5",
2195 "_nodeVersion": "6.2.1",
2196 "_npmUser": {
2197 "name": "chimurai",
2198 "email": "[email protected]"
2199 },
2200 "maintainers": [
2201 {
2202 "name": "chimurai",
2203 "email": "[email protected]"
2204 }
2205 ],
2206 "dist": {
2207 "shasum": "6879b8f1151a3289dd301372b81d8dd026e3162b",
2208 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.16.0.tgz"
2209 },
2210 "_npmOperationalInternal": {
2211 "host": "packages-12-west.internal.npmjs.com",
2212 "tmp": "tmp/http-proxy-middleware-0.16.0.tgz_1465843953253_0.4956787379924208"
2213 },
2214 "directories": {}
2215 },
2216 "0.17.0-beta": {
2217 "name": "http-proxy-middleware",
2218 "version": "0.17.0-beta",
2219 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2220 "main": "index.js",
2221 "scripts": {
2222 "clean": "rm -rf coverage",
2223 "test": "mocha --recursive --colors --reporter spec",
2224 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2225 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
2226 },
2227 "repository": {
2228 "type": "git",
2229 "url": "https://github.com/chimurai/http-proxy-middleware.git"
2230 },
2231 "keywords": [
2232 "reverse",
2233 "proxy",
2234 "middleware",
2235 "http",
2236 "https",
2237 "connect",
2238 "express",
2239 "browser-sync",
2240 "gulp",
2241 "grunt-contrib-connect",
2242 "websocket",
2243 "ws",
2244 "cors"
2245 ],
2246 "author": {
2247 "name": "Steven Chim"
2248 },
2249 "license": "MIT",
2250 "bugs": {
2251 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2252 },
2253 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2254 "devDependencies": {
2255 "browser-sync": "^2.13.0",
2256 "chai": "^3.5.0",
2257 "connect": "^3.4.1",
2258 "coveralls": "^2.11.9",
2259 "express": "^4.13.4",
2260 "istanbul": "^0.4.3",
2261 "istanbul-coveralls": "^1.0.3",
2262 "mocha": "^2.5.3",
2263 "mocha-lcov-reporter": "1.2.0",
2264 "opn": "^4.0.2",
2265 "ws": "^1.1.0"
2266 },
2267 "dependencies": {
2268 "http-proxy": "^1.13.3",
2269 "is-glob": "^2.0.1",
2270 "lodash": "^4.13.1",
2271 "micromatch": "^2.3.8"
2272 },
2273 "gitHead": "0ec0e6f906c8c41f1a73ecaa1ccc699d20fa7144",
2274 "_id": "[email protected]",
2275 "_shasum": "847e594412dccab5f20c1330bd1234de6612eda1",
2276 "_from": ".",
2277 "_npmVersion": "2.7.5",
2278 "_nodeVersion": "6.2.1",
2279 "_npmUser": {
2280 "name": "chimurai",
2281 "email": "[email protected]"
2282 },
2283 "maintainers": [
2284 {
2285 "name": "chimurai",
2286 "email": "[email protected]"
2287 }
2288 ],
2289 "dist": {
2290 "shasum": "847e594412dccab5f20c1330bd1234de6612eda1",
2291 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.17.0-beta.tgz"
2292 },
2293 "_npmOperationalInternal": {
2294 "host": "packages-12-west.internal.npmjs.com",
2295 "tmp": "tmp/http-proxy-middleware-0.17.0-beta.tgz_1466090685347_0.03170943818986416"
2296 },
2297 "directories": {}
2298 },
2299 "0.17.0": {
2300 "name": "http-proxy-middleware",
2301 "version": "0.17.0",
2302 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2303 "main": "index.js",
2304 "scripts": {
2305 "clean": "rm -rf coverage",
2306 "test": "mocha --recursive --colors --reporter spec",
2307 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2308 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
2309 },
2310 "repository": {
2311 "type": "git",
2312 "url": "https://github.com/chimurai/http-proxy-middleware.git"
2313 },
2314 "keywords": [
2315 "reverse",
2316 "proxy",
2317 "middleware",
2318 "http",
2319 "https",
2320 "connect",
2321 "express",
2322 "browser-sync",
2323 "gulp",
2324 "grunt-contrib-connect",
2325 "websocket",
2326 "ws",
2327 "cors"
2328 ],
2329 "author": {
2330 "name": "Steven Chim"
2331 },
2332 "license": "MIT",
2333 "bugs": {
2334 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2335 },
2336 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2337 "devDependencies": {
2338 "browser-sync": "^2.13.0",
2339 "chai": "^3.5.0",
2340 "connect": "^3.4.1",
2341 "coveralls": "^2.11.9",
2342 "express": "^4.13.4",
2343 "istanbul": "^0.4.3",
2344 "istanbul-coveralls": "^1.0.3",
2345 "mocha": "^2.5.3",
2346 "mocha-lcov-reporter": "1.2.0",
2347 "opn": "^4.0.2",
2348 "ws": "^1.1.0"
2349 },
2350 "dependencies": {
2351 "http-proxy": "^1.13.3",
2352 "is-glob": "^2.0.1",
2353 "lodash": "^4.13.1",
2354 "micromatch": "^2.3.8"
2355 },
2356 "gitHead": "306fdd4162af41a5ced5ba17be80cbb861204f5f",
2357 "_id": "[email protected]",
2358 "_shasum": "65770b0bb5d2b17792984e595afb082599bf81e7",
2359 "_from": ".",
2360 "_npmVersion": "2.7.5",
2361 "_nodeVersion": "6.2.1",
2362 "_npmUser": {
2363 "name": "chimurai",
2364 "email": "[email protected]"
2365 },
2366 "maintainers": [
2367 {
2368 "name": "chimurai",
2369 "email": "[email protected]"
2370 }
2371 ],
2372 "dist": {
2373 "shasum": "65770b0bb5d2b17792984e595afb082599bf81e7",
2374 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.17.0.tgz"
2375 },
2376 "_npmOperationalInternal": {
2377 "host": "packages-16-east.internal.npmjs.com",
2378 "tmp": "tmp/http-proxy-middleware-0.17.0.tgz_1467560119815_0.34178488166071475"
2379 },
2380 "directories": {}
2381 },
2382 "0.17.1": {
2383 "name": "http-proxy-middleware",
2384 "version": "0.17.1",
2385 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2386 "main": "index.js",
2387 "scripts": {
2388 "clean": "rm -rf coverage",
2389 "test": "mocha --recursive --colors --reporter spec",
2390 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2391 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
2392 },
2393 "repository": {
2394 "type": "git",
2395 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
2396 },
2397 "keywords": [
2398 "reverse",
2399 "proxy",
2400 "middleware",
2401 "http",
2402 "https",
2403 "connect",
2404 "express",
2405 "browser-sync",
2406 "gulp",
2407 "grunt-contrib-connect",
2408 "websocket",
2409 "ws",
2410 "cors"
2411 ],
2412 "author": {
2413 "name": "Steven Chim"
2414 },
2415 "license": "MIT",
2416 "bugs": {
2417 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2418 },
2419 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2420 "devDependencies": {
2421 "browser-sync": "^2.14.0",
2422 "chai": "^3.5.0",
2423 "connect": "^3.4.1",
2424 "coveralls": "^2.11.12",
2425 "express": "^4.14.0",
2426 "istanbul": "^0.4.4",
2427 "istanbul-coveralls": "^1.0.3",
2428 "mocha": "^3.0.2",
2429 "mocha-lcov-reporter": "1.2.0",
2430 "opn": "^4.0.2",
2431 "ws": "^1.1.1"
2432 },
2433 "dependencies": {
2434 "http-proxy": "^1.14.0",
2435 "is-glob": "^2.0.1",
2436 "lodash": "^4.14.2",
2437 "micromatch": "^2.3.11"
2438 },
2439 "gitHead": "8a0ff1f0da2496b517ba02ccb30b1a9a17926dc7",
2440 "_id": "[email protected]",
2441 "_shasum": "e2b847aa9962d8ce312cc82a3f443d5039cf197a",
2442 "_from": ".",
2443 "_npmVersion": "3.10.3",
2444 "_nodeVersion": "6.2.1",
2445 "_npmUser": {
2446 "name": "chimurai",
2447 "email": "[email protected]"
2448 },
2449 "maintainers": [
2450 {
2451 "name": "chimurai",
2452 "email": "[email protected]"
2453 }
2454 ],
2455 "dist": {
2456 "shasum": "e2b847aa9962d8ce312cc82a3f443d5039cf197a",
2457 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.17.1.tgz"
2458 },
2459 "_npmOperationalInternal": {
2460 "host": "packages-16-east.internal.npmjs.com",
2461 "tmp": "tmp/http-proxy-middleware-0.17.1.tgz_1470951029603_0.6751409117132425"
2462 },
2463 "directories": {}
2464 },
2465 "0.17.2-beta": {
2466 "name": "http-proxy-middleware",
2467 "version": "0.17.2-beta",
2468 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2469 "main": "index.js",
2470 "files": [
2471 "index.js",
2472 "lib"
2473 ],
2474 "scripts": {
2475 "clean": "rm -rf coverage",
2476 "test": "mocha --recursive --colors --reporter spec",
2477 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2478 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
2479 },
2480 "repository": {
2481 "type": "git",
2482 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
2483 },
2484 "keywords": [
2485 "reverse",
2486 "proxy",
2487 "middleware",
2488 "http",
2489 "https",
2490 "connect",
2491 "express",
2492 "browser-sync",
2493 "gulp",
2494 "grunt-contrib-connect",
2495 "websocket",
2496 "ws",
2497 "cors"
2498 ],
2499 "author": {
2500 "name": "Steven Chim"
2501 },
2502 "license": "MIT",
2503 "bugs": {
2504 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2505 },
2506 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2507 "devDependencies": {
2508 "browser-sync": "^2.14.0",
2509 "chai": "^3.5.0",
2510 "connect": "^3.4.1",
2511 "coveralls": "^2.11.12",
2512 "express": "^4.14.0",
2513 "istanbul": "^0.4.4",
2514 "istanbul-coveralls": "^1.0.3",
2515 "mocha": "^3.0.2",
2516 "mocha-lcov-reporter": "1.2.0",
2517 "opn": "^4.0.2",
2518 "ws": "^1.1.1"
2519 },
2520 "dependencies": {
2521 "http-proxy": "^1.14.0",
2522 "is-glob": "^2.0.1",
2523 "lodash": "^4.14.2",
2524 "micromatch": "^2.3.11"
2525 },
2526 "gitHead": "7d1865c84f4339ced230b0292db42c4d45376f1a",
2527 "_id": "[email protected]",
2528 "_shasum": "a232f70909dd9848ab2b2da7d59068b83a9ff9a8",
2529 "_from": ".",
2530 "_npmVersion": "3.10.3",
2531 "_nodeVersion": "6.2.1",
2532 "_npmUser": {
2533 "name": "chimurai",
2534 "email": "[email protected]"
2535 },
2536 "maintainers": [
2537 {
2538 "name": "chimurai",
2539 "email": "[email protected]"
2540 }
2541 ],
2542 "dist": {
2543 "shasum": "a232f70909dd9848ab2b2da7d59068b83a9ff9a8",
2544 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.17.2-beta.tgz"
2545 },
2546 "_npmOperationalInternal": {
2547 "host": "packages-12-west.internal.npmjs.com",
2548 "tmp": "tmp/http-proxy-middleware-0.17.2-beta.tgz_1473513288951_0.5517864497378469"
2549 },
2550 "directories": {}
2551 },
2552 "0.17.2": {
2553 "name": "http-proxy-middleware",
2554 "version": "0.17.2",
2555 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2556 "main": "index.js",
2557 "files": [
2558 "index.js",
2559 "lib"
2560 ],
2561 "scripts": {
2562 "clean": "rm -rf coverage",
2563 "test": "mocha --recursive --colors --reporter spec",
2564 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2565 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
2566 },
2567 "repository": {
2568 "type": "git",
2569 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
2570 },
2571 "keywords": [
2572 "reverse",
2573 "proxy",
2574 "middleware",
2575 "http",
2576 "https",
2577 "connect",
2578 "express",
2579 "browser-sync",
2580 "gulp",
2581 "grunt-contrib-connect",
2582 "websocket",
2583 "ws",
2584 "cors"
2585 ],
2586 "author": {
2587 "name": "Steven Chim"
2588 },
2589 "license": "MIT",
2590 "bugs": {
2591 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2592 },
2593 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2594 "devDependencies": {
2595 "browser-sync": "^2.14.0",
2596 "chai": "^3.5.0",
2597 "connect": "^3.4.1",
2598 "coveralls": "^2.11.12",
2599 "express": "^4.14.0",
2600 "istanbul": "^0.4.4",
2601 "istanbul-coveralls": "^1.0.3",
2602 "mocha": "^3.0.2",
2603 "mocha-lcov-reporter": "1.2.0",
2604 "opn": "^4.0.2",
2605 "ws": "^1.1.1"
2606 },
2607 "dependencies": {
2608 "http-proxy": "^1.15.1",
2609 "is-glob": "^3.0.0",
2610 "lodash": "^4.16.2",
2611 "micromatch": "^2.3.11"
2612 },
2613 "gitHead": "f03aecf755a0a645a83646131548754638b2e994",
2614 "_id": "[email protected]",
2615 "_shasum": "572d517a6d2fb1063a469de294eed96066352007",
2616 "_from": ".",
2617 "_npmVersion": "3.10.3",
2618 "_nodeVersion": "6.2.1",
2619 "_npmUser": {
2620 "name": "chimurai",
2621 "email": "[email protected]"
2622 },
2623 "maintainers": [
2624 {
2625 "name": "chimurai",
2626 "email": "[email protected]"
2627 }
2628 ],
2629 "dist": {
2630 "shasum": "572d517a6d2fb1063a469de294eed96066352007",
2631 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.17.2.tgz"
2632 },
2633 "_npmOperationalInternal": {
2634 "host": "packages-16-east.internal.npmjs.com",
2635 "tmp": "tmp/http-proxy-middleware-0.17.2.tgz_1475101693149_0.3973892144858837"
2636 },
2637 "directories": {}
2638 },
2639 "0.17.3": {
2640 "name": "http-proxy-middleware",
2641 "version": "0.17.3",
2642 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2643 "main": "index.js",
2644 "files": [
2645 "index.js",
2646 "lib"
2647 ],
2648 "scripts": {
2649 "clean": "rm -rf coverage",
2650 "test": "mocha --recursive --colors --reporter spec",
2651 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2652 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
2653 },
2654 "repository": {
2655 "type": "git",
2656 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
2657 },
2658 "keywords": [
2659 "reverse",
2660 "proxy",
2661 "middleware",
2662 "http",
2663 "https",
2664 "connect",
2665 "express",
2666 "browser-sync",
2667 "gulp",
2668 "grunt-contrib-connect",
2669 "websocket",
2670 "ws",
2671 "cors"
2672 ],
2673 "author": {
2674 "name": "Steven Chim"
2675 },
2676 "license": "MIT",
2677 "bugs": {
2678 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2679 },
2680 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2681 "devDependencies": {
2682 "browser-sync": "^2.18.2",
2683 "chai": "^3.5.0",
2684 "connect": "^3.5.0",
2685 "coveralls": "^2.11.15",
2686 "express": "^4.14.0",
2687 "istanbul": "^0.4.5",
2688 "istanbul-coveralls": "^1.0.3",
2689 "mocha": "^3.2.0",
2690 "mocha-lcov-reporter": "1.2.0",
2691 "opn": "^4.0.2",
2692 "ws": "^1.1.1"
2693 },
2694 "dependencies": {
2695 "http-proxy": "^1.16.2",
2696 "is-glob": "^3.1.0",
2697 "lodash": "^4.17.2",
2698 "micromatch": "^2.3.11"
2699 },
2700 "gitHead": "8689cb429577a7722b9334e702535cb752191c43",
2701 "_id": "[email protected]",
2702 "_shasum": "940382147149b856084f5534752d5b5a8168cd1d",
2703 "_from": ".",
2704 "_npmVersion": "3.10.3",
2705 "_nodeVersion": "6.2.1",
2706 "_npmUser": {
2707 "name": "chimurai",
2708 "email": "[email protected]"
2709 },
2710 "maintainers": [
2711 {
2712 "name": "chimurai",
2713 "email": "[email protected]"
2714 }
2715 ],
2716 "dist": {
2717 "shasum": "940382147149b856084f5534752d5b5a8168cd1d",
2718 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.17.3.tgz"
2719 },
2720 "_npmOperationalInternal": {
2721 "host": "packages-18-east.internal.npmjs.com",
2722 "tmp": "tmp/http-proxy-middleware-0.17.3.tgz_1481145720041_0.3982126035261899"
2723 },
2724 "directories": {}
2725 },
2726 "0.17.4": {
2727 "name": "http-proxy-middleware",
2728 "version": "0.17.4",
2729 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2730 "main": "index.js",
2731 "files": [
2732 "index.js",
2733 "lib"
2734 ],
2735 "scripts": {
2736 "clean": "rm -rf coverage",
2737 "test": "mocha --recursive --colors --reporter spec",
2738 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2739 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
2740 },
2741 "repository": {
2742 "type": "git",
2743 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
2744 },
2745 "keywords": [
2746 "reverse",
2747 "proxy",
2748 "middleware",
2749 "http",
2750 "https",
2751 "connect",
2752 "express",
2753 "browser-sync",
2754 "gulp",
2755 "grunt-contrib-connect",
2756 "websocket",
2757 "ws",
2758 "cors"
2759 ],
2760 "author": {
2761 "name": "Steven Chim"
2762 },
2763 "license": "MIT",
2764 "bugs": {
2765 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2766 },
2767 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2768 "devDependencies": {
2769 "browser-sync": "^2.18.2",
2770 "chai": "^3.5.0",
2771 "connect": "^3.5.0",
2772 "coveralls": "^2.11.15",
2773 "express": "^4.14.0",
2774 "istanbul": "^0.4.5",
2775 "istanbul-coveralls": "^1.0.3",
2776 "mocha": "^3.2.0",
2777 "mocha-lcov-reporter": "1.2.0",
2778 "opn": "^4.0.2",
2779 "ws": "^1.1.1"
2780 },
2781 "dependencies": {
2782 "http-proxy": "^1.16.2",
2783 "is-glob": "^3.1.0",
2784 "lodash": "^4.17.2",
2785 "micromatch": "^2.3.11"
2786 },
2787 "gitHead": "cb5e084e71bc3202fe4f711f2f5edf4e29355d99",
2788 "_id": "[email protected]",
2789 "_shasum": "642e8848851d66f09d4f124912846dbaeb41b833",
2790 "_from": ".",
2791 "_npmVersion": "4.1.2",
2792 "_nodeVersion": "7.7.1",
2793 "_npmUser": {
2794 "name": "chimurai",
2795 "email": "[email protected]"
2796 },
2797 "maintainers": [
2798 {
2799 "name": "chimurai",
2800 "email": "[email protected]"
2801 }
2802 ],
2803 "dist": {
2804 "shasum": "642e8848851d66f09d4f124912846dbaeb41b833",
2805 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.17.4.tgz"
2806 },
2807 "_npmOperationalInternal": {
2808 "host": "packages-18-east.internal.npmjs.com",
2809 "tmp": "tmp/http-proxy-middleware-0.17.4.tgz_1488496050141_0.13289726292714477"
2810 },
2811 "directories": {}
2812 },
2813 "0.18.0": {
2814 "name": "http-proxy-middleware",
2815 "version": "0.18.0",
2816 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2817 "main": "index.js",
2818 "files": [
2819 "index.js",
2820 "lib"
2821 ],
2822 "scripts": {
2823 "clean": "rm -rf coverage",
2824 "lint": "standard --verbose | snazzy --colors",
2825 "test": "npm run lint && mocha --recursive --colors --reporter spec",
2826 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2827 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean",
2828 "commitmsg": "commitlint -e $GIT_PARAMS"
2829 },
2830 "repository": {
2831 "type": "git",
2832 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
2833 },
2834 "keywords": [
2835 "reverse",
2836 "proxy",
2837 "middleware",
2838 "http",
2839 "https",
2840 "connect",
2841 "express",
2842 "browser-sync",
2843 "gulp",
2844 "grunt-contrib-connect",
2845 "websocket",
2846 "ws",
2847 "cors"
2848 ],
2849 "author": {
2850 "name": "Steven Chim"
2851 },
2852 "license": "MIT",
2853 "bugs": {
2854 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2855 },
2856 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2857 "devDependencies": {
2858 "@commitlint/cli": "^6.1.3",
2859 "@commitlint/config-conventional": "^6.1.3",
2860 "browser-sync": "^2.23.6",
2861 "chai": "^4.1.2",
2862 "connect": "^3.6.6",
2863 "coveralls": "^3.0.0",
2864 "express": "^4.16.3",
2865 "husky": "^0.14.3",
2866 "istanbul": "^0.4.5",
2867 "istanbul-coveralls": "^1.0.3",
2868 "mocha": "^5.0.4",
2869 "mocha-lcov-reporter": "1.3.0",
2870 "opn": "^5.2.0",
2871 "snazzy": "^7.1.1",
2872 "standard": "^11.0.0",
2873 "ws": "^5.0.0"
2874 },
2875 "dependencies": {
2876 "http-proxy": "^1.16.2",
2877 "is-glob": "^4.0.0",
2878 "lodash": "^4.17.5",
2879 "micromatch": "^3.1.9"
2880 },
2881 "engines": {
2882 "node": ">=4.0.0"
2883 },
2884 "standard": {
2885 "env": [
2886 "mocha"
2887 ]
2888 },
2889 "commitlint": {
2890 "extends": [
2891 "@commitlint/config-conventional"
2892 ]
2893 },
2894 "_id": "[email protected]",
2895 "_npmVersion": "5.7.1",
2896 "_nodeVersion": "9.8.0",
2897 "_npmUser": {
2898 "name": "chimurai",
2899 "email": "[email protected]"
2900 },
2901 "dist": {
2902 "integrity": "sha512-Fs25KVMPAIIcgjMZkVHJoKg9VcXcC1C8yb9JUgeDvVXY0S/zgVIhMb+qVswDIgtJe2DfckMSY2d6TuTEutlk6Q==",
2903 "shasum": "0987e6bb5a5606e5a69168d8f967a87f15dd8aab",
2904 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.18.0.tgz",
2905 "fileCount": 13,
2906 "unpackedSize": 45653
2907 },
2908 "maintainers": [
2909 {
2910 "name": "chimurai",
2911 "email": "[email protected]"
2912 }
2913 ],
2914 "directories": {},
2915 "_npmOperationalInternal": {
2916 "host": "s3://npm-registry-packages",
2917 "tmp": "tmp/http-proxy-middleware_0.18.0_1520894840221_0.4597555666447708"
2918 },
2919 "_hasShrinkwrap": false
2920 },
2921 "0.19.0": {
2922 "name": "http-proxy-middleware",
2923 "version": "0.19.0",
2924 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
2925 "main": "index.js",
2926 "scripts": {
2927 "clean": "rm -rf coverage",
2928 "lint": "standard --verbose | snazzy --colors",
2929 "lint:fix": "standard --fix",
2930 "test": "npm run lint && mocha --recursive --colors --reporter spec",
2931 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
2932 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean",
2933 "commitmsg": "commitlint -e $GIT_PARAMS"
2934 },
2935 "repository": {
2936 "type": "git",
2937 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
2938 },
2939 "keywords": [
2940 "reverse",
2941 "proxy",
2942 "middleware",
2943 "http",
2944 "https",
2945 "connect",
2946 "express",
2947 "browser-sync",
2948 "gulp",
2949 "grunt-contrib-connect",
2950 "websocket",
2951 "ws",
2952 "cors"
2953 ],
2954 "author": {
2955 "name": "Steven Chim"
2956 },
2957 "license": "MIT",
2958 "bugs": {
2959 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
2960 },
2961 "homepage": "https://github.com/chimurai/http-proxy-middleware",
2962 "devDependencies": {
2963 "@commitlint/cli": "^7.1.1",
2964 "@commitlint/config-conventional": "^7.1.1",
2965 "browser-sync": "^2.24.7",
2966 "chai": "^4.1.2",
2967 "connect": "^3.6.6",
2968 "coveralls": "^3.0.2",
2969 "express": "^4.16.3",
2970 "husky": "^0.14.3",
2971 "istanbul": "^0.4.5",
2972 "istanbul-coveralls": "^1.0.3",
2973 "mocha": "^5.2.0",
2974 "mocha-lcov-reporter": "1.3.0",
2975 "opn": "^5.3.0",
2976 "snazzy": "^8.0.0",
2977 "standard": "^12.0.0",
2978 "ws": "^6.0.0"
2979 },
2980 "dependencies": {
2981 "http-proxy": "^1.17.0",
2982 "is-glob": "^4.0.0",
2983 "lodash": "^4.17.10",
2984 "micromatch": "^3.1.10"
2985 },
2986 "engines": {
2987 "node": ">=4.0.0"
2988 },
2989 "standard": {
2990 "env": [
2991 "mocha"
2992 ]
2993 },
2994 "commitlint": {
2995 "extends": [
2996 "@commitlint/config-conventional"
2997 ]
2998 },
2999 "gitHead": "bb59c666dbb65cc0ef422bbf5332b67cbd6fb0e3",
3000 "_id": "[email protected]",
3001 "_npmVersion": "6.4.1",
3002 "_nodeVersion": "10.1.0",
3003 "_npmUser": {
3004 "name": "chimurai",
3005 "email": "[email protected]"
3006 },
3007 "dist": {
3008 "integrity": "sha512-Ab/zKDy2B0404mz83bgki0HHv/xqpYKAyFXhopAiJaVAUSJfLYrpBYynTl4ZSUJ7TqrAgjarTsxdX5yBb4unRQ==",
3009 "shasum": "40992b5901dc44bc7bc3795da81b0b248eca02d8",
3010 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.0.tgz",
3011 "fileCount": 13,
3012 "unpackedSize": 47638,
3013 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhw0DCRA9TVsSAnZWagAAUPcP/1A2WhkhsxkmhjldBC0L\n2g7MExS6bgGFP9gMvsCGXxGG4b6VlxM2oaQovWICSLrgkSJM+KdtNEw+jGjV\nBVlYMtBy25g3QYnYn9UIdmSC2mhZPg/4Th9K3GM8RFapxnzXCaB6IW9aXrrO\nWxIm2kwcHtg30j6EXdZP2dN8QXIA1hiP3cZUvnayP6knfGZmigtN53oL0aya\njK43LJnvLmGrsn8caBrCYKn/iJg/OS5vQ+efwDV9O6IKXdKDqN4FS/wwZ73B\nvgcR2avQP1ltRKxOhxczDSKB2zkSOPUBwYvsICU0HUC8YnkV54JxBFKXd9vZ\nElFjbUZu1VBYmLu2GpY13ohs6Fp6f+0rD31YWf9927pFfu/4bHcAE2TyGMF+\na7oeE6CfsKkKwwcnQAIGEpP2dJqF1B+HQ6PSVxXZu7Aul/coMNVFDrDclN3O\nRGMPZY1zruZd/rxN8EtkRfw8/3/7/kJ4xZLX9iT14CJMjyhSyAuNUrVEKMwa\nBxf2fIXMMPm8ixJDaoV1YAaguDuI175emLeYJQEIO4QRt26qwiFfNzNtncAD\nGfMvcK1iIPmmmqehBqAnykmY7X8vBwKibiqAqzcDIFvYRVBI6XuitpUtzAcj\nTxSPqbK1LK418yU9kyZTQmvIspJM208WSQg8god9nhZEsH6zuVznuJsDxElj\ncYoN\r\n=tNgg\r\n-----END PGP SIGNATURE-----\r\n"
3014 },
3015 "maintainers": [
3016 {
3017 "name": "chimurai",
3018 "email": "[email protected]"
3019 }
3020 ],
3021 "directories": {},
3022 "_npmOperationalInternal": {
3023 "host": "s3://npm-registry-packages",
3024 "tmp": "tmp/http-proxy-middleware_0.19.0_1535577347082_0.9788730101740601"
3025 },
3026 "_hasShrinkwrap": false
3027 },
3028 "0.19.1": {
3029 "name": "http-proxy-middleware",
3030 "version": "0.19.1",
3031 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
3032 "main": "index.js",
3033 "scripts": {
3034 "clean": "rm -rf coverage",
3035 "lint": "prettier \"**/*.{js,md}\" --list-different",
3036 "lint:fix": "prettier \"**/*.{js,md}\" --write",
3037 "test": "npm run lint && mocha --recursive --colors --reporter spec",
3038 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
3039 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
3040 },
3041 "repository": {
3042 "type": "git",
3043 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
3044 },
3045 "keywords": [
3046 "reverse",
3047 "proxy",
3048 "middleware",
3049 "http",
3050 "https",
3051 "connect",
3052 "express",
3053 "browser-sync",
3054 "gulp",
3055 "grunt-contrib-connect",
3056 "websocket",
3057 "ws",
3058 "cors"
3059 ],
3060 "author": {
3061 "name": "Steven Chim"
3062 },
3063 "license": "MIT",
3064 "bugs": {
3065 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
3066 },
3067 "homepage": "https://github.com/chimurai/http-proxy-middleware",
3068 "devDependencies": {
3069 "@commitlint/cli": "^7.2.1",
3070 "@commitlint/config-conventional": "^7.1.2",
3071 "browser-sync": "^2.26.3",
3072 "chai": "^4.2.0",
3073 "connect": "^3.6.6",
3074 "coveralls": "^3.0.2",
3075 "express": "^4.16.4",
3076 "husky": "^1.2.0",
3077 "istanbul": "^0.4.5",
3078 "istanbul-coveralls": "^1.0.3",
3079 "mocha": "^5.2.0",
3080 "mocha-lcov-reporter": "1.3.0",
3081 "opn": "^5.4.0",
3082 "precise-commits": "^1.0.2",
3083 "prettier": "^1.15.2",
3084 "ws": "^6.1.2"
3085 },
3086 "dependencies": {
3087 "http-proxy": "^1.17.0",
3088 "is-glob": "^4.0.0",
3089 "lodash": "^4.17.11",
3090 "micromatch": "^3.1.10"
3091 },
3092 "engines": {
3093 "node": ">=4.0.0"
3094 },
3095 "husky": {
3096 "hooks": {
3097 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
3098 "pre-commit": "precise-commits"
3099 }
3100 },
3101 "commitlint": {
3102 "extends": [
3103 "@commitlint/config-conventional"
3104 ]
3105 },
3106 "gitHead": "6422977cebde7ba6b2a506f47db97aa58ccbd44c",
3107 "_id": "[email protected]",
3108 "_npmVersion": "6.4.1",
3109 "_nodeVersion": "10.1.0",
3110 "_npmUser": {
3111 "name": "chimurai",
3112 "email": "[email protected]"
3113 },
3114 "dist": {
3115 "integrity": "sha512-yHYTgWMQO8VvwNS22eLLloAkvungsKdKTLO8AJlftYIKNfJr3GK3zK0ZCfzDDGUBttdGc8xFy1mCitvNKQtC3Q==",
3116 "shasum": "183c7dc4aa1479150306498c210cdaf96080a43a",
3117 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.1.tgz",
3118 "fileCount": 13,
3119 "unpackedSize": 47749,
3120 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+wOjCRA9TVsSAnZWagAAF4wP/iFtdy3Uih6MOUfLwFse\n8CQE+LjzM+VtuI9/7Kgzq22OoLSk9HG4f2X0yOwochMFtzyoXpJiQHbx2VQd\nMV5PMDLfoDAU/U9aLzH/HEJY4cS5/+Aq5tcZJQAEEj2BFh2/HazJ9mor7iF/\n5tnSqANMytw4Ns5s481DQ7kWslmfv6tz1sJfUhu3WZ1KRdum4UNkElwdMDo1\nP1KNOmL6fKewy5gaBvagu79Tn7nbW7JJY9LE5FNlWcb3/CamHI/goiYYfOGB\n+voQbrqRKFkoCEsWQM7jsLaAh9ThaZAOLF2qDqdZOy2TC8JQ/eenxhiLUSxy\n7bDH7KAuRr68UrHXNru/SWFXd0UtOk2RgY26/crlJOCyez/wGrVZ879gen8b\npcJRqFmUOZylMrRLCytnfD6q4WDxFXh7Y8SNPBr6YW6MNS11mgiN2Nf2SD23\nrtU4WgtdD7W/ZazW3Nr3OOhF4rXDnsOZkffZq15Kkx7Au9+VkfIu184WdjN0\nELca91oKH4NtOXSXL+2btOwoxQZK9Cil87brxlJWqBp3oEQZkkapeB6hT+xF\nJmSAnUQHthlLr6Nqh9d+s6Atha/m1dlNNhYE/DlDHIBAPSXamhwi1EB2fO4z\noNl+CkmaNXFRG4i2xazaMDnIiWzwbcpS/X+1yVR3apUTRuqc/uaxe0BjhPwe\n/2D0\r\n=nSVz\r\n-----END PGP SIGNATURE-----\r\n"
3121 },
3122 "maintainers": [
3123 {
3124 "name": "chimurai",
3125 "email": "[email protected]"
3126 }
3127 ],
3128 "directories": {},
3129 "_npmOperationalInternal": {
3130 "host": "s3://npm-registry-packages",
3131 "tmp": "tmp/http-proxy-middleware_0.19.1_1543177122633_0.17284658095161887"
3132 },
3133 "_hasShrinkwrap": false
3134 },
3135 "0.20.0-beta.0": {
3136 "name": "http-proxy-middleware",
3137 "version": "0.20.0-beta.0",
3138 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
3139 "main": "dist/index.js",
3140 "scripts": {
3141 "clean": "rm -rf coverage",
3142 "lint": "yarn lint:prettier && yarn lint:tslint",
3143 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
3144 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
3145 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
3146 "build": "tsc",
3147 "pretest": "yarn build",
3148 "test": "jest --runInBand",
3149 "precover": "yarn clean && npm run build",
3150 "cover": "jest --runInBand --coverage",
3151 "precoveralls": "yarn clean && npm run build",
3152 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
3153 "postcoveralls": "yarn clean"
3154 },
3155 "repository": {
3156 "type": "git",
3157 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
3158 },
3159 "keywords": [
3160 "reverse",
3161 "proxy",
3162 "middleware",
3163 "http",
3164 "https",
3165 "connect",
3166 "express",
3167 "browser-sync",
3168 "gulp",
3169 "grunt-contrib-connect",
3170 "websocket",
3171 "ws",
3172 "cors"
3173 ],
3174 "author": {
3175 "name": "Steven Chim"
3176 },
3177 "license": "MIT",
3178 "bugs": {
3179 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
3180 },
3181 "homepage": "https://github.com/chimurai/http-proxy-middleware",
3182 "devDependencies": {
3183 "@commitlint/cli": "^7.2.1",
3184 "@commitlint/config-conventional": "^7.1.2",
3185 "@types/express": "^4.16.1",
3186 "@types/http-proxy": "^1.17.0",
3187 "@types/is-glob": "^4.0.0",
3188 "@types/jest": "^24.0.11",
3189 "@types/lodash": "^4.14.123",
3190 "@types/micromatch": "^3.1.0",
3191 "@types/node": "^12.0.4",
3192 "browser-sync": "^2.26.3",
3193 "connect": "^3.6.6",
3194 "coveralls": "^3.0.3",
3195 "express": "^4.16.4",
3196 "husky": "^2.3.0",
3197 "jest": "^24.5.0",
3198 "open": "^6.3.0",
3199 "prettier": "^1.15.2",
3200 "ts-jest": "^24.0.0",
3201 "tslint": "^5.14.0",
3202 "tslint-config-prettier": "^1.18.0",
3203 "typescript": "^3.4.1",
3204 "ws": "^7.0.0"
3205 },
3206 "dependencies": {
3207 "http-proxy": "^1.17.0",
3208 "is-glob": "^4.0.1",
3209 "lodash": "^4.17.11",
3210 "micromatch": "^4.0.2"
3211 },
3212 "engines": {
3213 "node": ">=8.0.0"
3214 },
3215 "husky": {
3216 "hooks": {
3217 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
3218 }
3219 },
3220 "commitlint": {
3221 "extends": [
3222 "@commitlint/config-conventional"
3223 ]
3224 },
3225 "readme": "# http-proxy-middleware\n\n[![Build Status](https://img.shields.io/travis/chimurai/http-proxy-middleware/master.svg?style=flat-square)](https://travis-ci.org/chimurai/http-proxy-middleware)\n[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square)](https://coveralls.io/r/chimurai/http-proxy-middleware)\n[![dependency Status](https://img.shields.io/david/chimurai/http-proxy-middleware.svg?style=flat-square)](https://david-dm.org/chimurai/http-proxy-middleware#info=dependencies)\n[![dependency Status](https://snyk.io/test/npm/http-proxy-middleware/badge.svg?style=flat-square)](https://snyk.io/test/npm/http-proxy-middleware)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nNode.js proxying made simple. Configure proxy middleware with ease for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express), [browser-sync](https://github.com/BrowserSync/browser-sync) and [many more](#compatible-servers).\n\nPowered by the popular Nodejitsu [`http-proxy`](https://github.com/nodejitsu/node-http-proxy). [![GitHub stars](https://img.shields.io/github/stars/nodejitsu/node-http-proxy.svg?style=social&label=Star)](https://github.com/nodejitsu/node-http-proxy)\n\n## TL;DR\n\nProxy `/api` requests to `http://www.example.org`\n\n```javascript\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\nvar app = express();\n\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\napp.listen(3000);\n\n// http://localhost:3000/api/foo/bar -> http://www.example.org/api/foo/bar\n```\n\n_All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options).\n\n:bulb: **Tip:** Set the option `changeOrigin` to `true` for [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based).\n\n## Table of Contents\n\n<!-- MarkdownTOC autolink=true bracket=round depth=2 -->\n\n- [Install](#install)\n- [Core concept](#core-concept)\n- [Example](#example)\n- [Context matching](#context-matching)\n- [Options](#options)\n - [http-proxy-middleware options](#http-proxy-middleware-options)\n - [http-proxy events](#http-proxy-events)\n - [http-proxy options](#http-proxy-options)\n- [Shorthand](#shorthand)\n - [app.use\\(path, proxy\\)](#appusepath-proxy)\n- [WebSocket](#websocket)\n - [External WebSocket upgrade](#external-websocket-upgrade)\n- [Working examples](#working-examples)\n- [Recipes](#recipes)\n- [Compatible servers](#compatible-servers)\n- [Tests](#tests)\n- [Changelog](#changelog)\n- [License](#license)\n\n<!-- /MarkdownTOC -->\n\n## Install\n\n```javascript\n$ npm install --save-dev http-proxy-middleware\n```\n\n## Core concept\n\nProxy middleware configuration.\n\n#### proxy([context,] config)\n\n```javascript\nvar proxy = require('http-proxy-middleware');\n\nvar apiProxy = proxy('/api', { target: 'http://www.example.org' });\n// \\____/ \\_____________________________/\n// | |\n// context options\n\n// 'apiProxy' is now ready to be used as middleware in a server.\n```\n\n- **context**: Determine which requests should be proxied to the target host.\n (more on [context matching](#context-matching))\n- **options.target**: target host to proxy to. _(protocol + host)_\n\n(full list of [`http-proxy-middleware` configuration options](#options))\n\n#### proxy(uri [, config])\n\n```javascript\n// shorthand syntax for the example above:\nvar apiProxy = proxy('http://www.example.org/api');\n```\n\nMore about the [shorthand configuration](#shorthand).\n\n## Example\n\nAn example with `express` server.\n\n```javascript\n// include dependencies\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\n// proxy middleware options\nvar options = {\n target: 'http://www.example.org', // target host\n changeOrigin: true, // needed for virtual hosted sites\n ws: true, // proxy websockets\n pathRewrite: {\n '^/api/old-path': '/api/new-path', // rewrite path\n '^/api/remove/path': '/path' // remove base path\n },\n router: {\n // when request.headers.host == 'dev.localhost:3000',\n // override target 'http://www.example.org' to 'http://localhost:8000'\n 'dev.localhost:3000': 'http://localhost:8000'\n }\n};\n\n// create the proxy (without context)\nvar exampleProxy = proxy(options);\n\n// mount `exampleProxy` in web server\nvar app = express();\napp.use('/api', exampleProxy);\napp.listen(3000);\n```\n\n## Context matching\n\nProviding 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.\n\n[RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is used for context matching.\n\n```\n foo://example.com:8042/over/there?name=ferret#nose\n \\_/ \\______________/\\_________/ \\_________/ \\__/\n | | | | |\n scheme authority path query fragment\n```\n\n- **path matching**\n\n - `proxy({...})` - matches any path, all requests will be proxied.\n - `proxy('/', {...})` - matches any path, all requests will be proxied.\n - `proxy('/api', {...})` - matches paths starting with `/api`\n\n- **multiple path matching**\n\n - `proxy(['/api', '/ajax', '/someotherpath'], {...})`\n\n- **wildcard path matching**\n\n For fine-grained control you can use wildcard matching. Glob pattern matching is done by _micromatch_. Visit [micromatch](https://www.npmjs.com/package/micromatch) or [glob](https://www.npmjs.com/package/glob) for more globbing examples.\n\n - `proxy('**', {...})` matches any path, all requests will be proxied.\n - `proxy('**/*.html', {...})` matches any path which ends with `.html`\n - `proxy('/*.html', {...})` matches paths directly under path-absolute\n - `proxy('/api/**/*.html', {...})` matches requests ending with `.html` in the path of `/api`\n - `proxy(['/api/**', '/ajax/**'], {...})` combine multiple patterns\n - `proxy(['/api/**', '!**/bad.json'], {...})` exclusion\n\n **Note**: In multiple path matching, you cannot use string paths and wildcard paths together.\n\n- **custom matching**\n\n For full control you can provide a custom function to determine which requests should be proxied or not.\n\n ```javascript\n /**\n * @return {Boolean}\n */\n var filter = function(pathname, req) {\n return pathname.match('^/api') && req.method === 'GET';\n };\n\n var apiProxy = proxy(filter, { target: 'http://www.example.org' });\n ```\n\n## Options\n\n### http-proxy-middleware options\n\n- **option.pathRewrite**: object/function, rewrite target's url path. Object-keys will be used as _RegExp_ to match paths.\n\n ```javascript\n // rewrite path\n pathRewrite: {'^/old/api' : '/new/api'}\n\n // remove path\n pathRewrite: {'^/remove/api' : ''}\n\n // add base path\n pathRewrite: {'^/' : '/basepath/'}\n\n // custom rewriting\n pathRewrite: function (path, req) { return path.replace('/api', '/base/api') }\n ```\n\n- **option.router**: object/function, re-target `option.target` for specific requests.\n\n ```javascript\n // Use `host` and/or `path` to match requests. First match will be used.\n // The order of the configuration matters.\n router: {\n 'integration.localhost:3000' : 'http://localhost:8001', // host only\n 'staging.localhost:3000' : 'http://localhost:8002', // host only\n 'localhost:3000/api' : 'http://localhost:8003', // host + path\n '/rest' : 'http://localhost:8004' // path only\n }\n\n // Custom router function\n router: function(req) {\n return 'http://localhost:8004';\n }\n ```\n\n- **option.logLevel**: string, ['debug', 'info', 'warn', 'error', 'silent']. Default: `'info'`\n\n- **option.logProvider**: function, modify or replace log provider. Default: `console`.\n\n ```javascript\n // simple replace\n function logProvider(provider) {\n // replace the default console log provider.\n return require('winston');\n }\n ```\n\n ```javascript\n // verbose replacement\n function logProvider(provider) {\n var logger = new (require('winston')).Logger();\n\n var myCustomProvider = {\n log: logger.log,\n debug: logger.debug,\n info: logger.info,\n warn: logger.warn,\n error: logger.error\n };\n return myCustomProvider;\n }\n ```\n\n### http-proxy events\n\nSubscribe to [http-proxy events](https://github.com/nodejitsu/node-http-proxy#listening-for-proxy-events):\n\n- **option.onError**: function, subscribe to http-proxy's `error` event for custom error handling.\n\n ```javascript\n function onError(err, req, res) {\n res.writeHead(500, {\n 'Content-Type': 'text/plain'\n });\n res.end(\n 'Something went wrong. And we are reporting a custom error message.'\n );\n }\n ```\n\n- **option.onProxyRes**: function, subscribe to http-proxy's `proxyRes` event.\n\n ```javascript\n function onProxyRes(proxyRes, req, res) {\n proxyRes.headers['x-added'] = 'foobar'; // add new header to response\n delete proxyRes.headers['x-removed']; // remove header from response\n }\n ```\n\n- **option.onProxyReq**: function, subscribe to http-proxy's `proxyReq` event.\n\n ```javascript\n function onProxyReq(proxyReq, req, res) {\n // add custom header to request\n proxyReq.setHeader('x-added', 'foobar');\n // or log the req\n }\n ```\n\n- **option.onProxyReqWs**: function, subscribe to http-proxy's `proxyReqWs` event.\n\n ```javascript\n function onProxyReqWs(proxyReq, req, socket, options, head) {\n // add custom header\n proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');\n }\n ```\n\n- **option.onOpen**: function, subscribe to http-proxy's `open` event.\n\n ```javascript\n function onOpen(proxySocket) {\n // listen for messages coming FROM the target here\n proxySocket.on('data', hybiParseAndLogMessage);\n }\n ```\n\n- **option.onClose**: function, subscribe to http-proxy's `close` event.\n ```javascript\n function onClose(res, socket, head) {\n // view disconnected websocket connections\n console.log('Client disconnected');\n }\n ```\n\n### http-proxy options\n\nThe following options are provided by the underlying [http-proxy](https://github.com/nodejitsu/node-http-proxy#options) library.\n\n- **option.target**: url string to be parsed with the url module\n- **option.forward**: url string to be parsed with the url module\n- **option.agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects)\n- **option.ssl**: object to be passed to https.createServer()\n- **option.ws**: true/false: if you want to proxy websockets\n- **option.xfwd**: true/false, adds x-forward headers\n- **option.secure**: true/false, if you want to verify the SSL Certs\n- **option.toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)\n- **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path\n- **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).\n- **option.localAddress** : Local interface string to bind for outgoing connections\n- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL\n- **option.preserveHeaderKeyCase**: true/false, Default: false - specify whether you want to keep letter case of response header key\n- **option.auth** : Basic authentication i.e. 'user:password' to compute an Authorization header.\n- **option.hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.\n- **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.\n- **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.\n- **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new domain, for example `cookieDomainRewrite: \"new.domain\"`. To remove the domain, use `cookieDomainRewrite: \"\"`.\n - Object: mapping of domains to new domains, use `\"*\"` to match all domains. \n For example keep one domain unchanged, rewrite one domain and remove other domains:\n ```\n cookieDomainRewrite: {\n \"unchanged.domain\": \"unchanged.domain\",\n \"old.domain\": \"new.domain\",\n \"*\": \"\"\n }\n ```\n- **option.cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new path, for example `cookiePathRewrite: \"/newPath/\"`. To remove the path, use `cookiePathRewrite: \"\"`. To set path to root use `cookiePathRewrite: \"/\"`.\n - Object: mapping of paths to new paths, use `\"*\"` to match all paths.\n For example, to keep one path unchanged, rewrite one path and remove other paths:\n ```\n cookiePathRewrite: {\n \"/unchanged.path/\": \"/unchanged.path/\",\n \"/old.path/\": \"/new.path/\",\n \"*\": \"\"\n }\n ```\n- **option.headers**: object, adds [request headers](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields). (Example: `{host:'www.example.org'}`)\n- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target\n- **option.timeout**: timeout (in millis) for incoming requests\n- **option.followRedirects**: true/false, Default: false - specify whether you want to follow redirects\n- **option.selfHandleResponse** true/false, if set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the `proxyRes` event\n- **option.buffer**: stream of data to send as the request body. Maybe you have some middleware that consumes the request stream before proxying it on e.g. If you read the body of a request into a field called 'req.rawbody' you could restream this field in the buffer option:\n\n ```\n 'use strict';\n\n const streamify = require('stream-array');\n const HttpProxy = require('http-proxy');\n const proxy = new HttpProxy();\n\n module.exports = (req, res, next) => {\n\n proxy.web(req, res, {\n target: 'http://localhost:4003/',\n buffer: streamify(req.rawBody)\n }, next);\n\n };\n ```\n\n## Shorthand\n\nUse the shorthand syntax when verbose configuration is not needed. The `context` and `option.target` will be automatically configured when shorthand is used. Options can still be used if needed.\n\n```javascript\nproxy('http://www.example.org:8000/api');\n// proxy('/api', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api/books/*/**.json');\n// proxy('/api/books/*/**.json', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api', { changeOrigin: true });\n// proxy('/api', {target: 'http://www.example.org:8000', changeOrigin: true});\n```\n\n### app.use(path, proxy)\n\nIf you want to use the server's `app.use` `path` parameter to match requests;\nCreate and mount the proxy without the http-proxy-middleware `context` parameter:\n\n```javascript\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\n```\n\n`app.use` documentation:\n\n- express: http://expressjs.com/en/4x/api.html#app.use\n- connect: https://github.com/senchalabs/connect#mount-middleware\n\n## WebSocket\n\n```javascript\n// verbose api\nproxy('/', { target: 'http://echo.websocket.org', ws: true });\n\n// shorthand\nproxy('http://echo.websocket.org', { ws: true });\n\n// shorter shorthand\nproxy('ws://echo.websocket.org');\n```\n\n### External WebSocket upgrade\n\nIn the previous WebSocket examples, http-proxy-middleware relies on a initial http request in order to listen to the http `upgrade` event. If you need to proxy WebSockets without the initial http request, you can subscribe to the server's http `upgrade` event manually.\n\n```javascript\nvar wsProxy = proxy('ws://echo.websocket.org', { changeOrigin: true });\n\nvar app = express();\napp.use(wsProxy);\n\nvar server = app.listen(3000);\nserver.on('upgrade', wsProxy.upgrade); // <-- subscribe to http 'upgrade'\n```\n\n## Working examples\n\nView and play around with [working examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples).\n\n- Browser-Sync ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/browser-sync/index.js))\n- express ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/express/index.js))\n- connect ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/connect/index.js))\n- WebSocket ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/websocket/index.js))\n\n## Recipes\n\nView the [recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes) for common use cases.\n\n## Compatible servers\n\n`http-proxy-middleware` is compatible with the following servers:\n\n- [connect](https://www.npmjs.com/package/connect)\n- [express](https://www.npmjs.com/package/express)\n- [browser-sync](https://www.npmjs.com/package/browser-sync)\n- [lite-server](https://www.npmjs.com/package/lite-server)\n- [grunt-contrib-connect](https://www.npmjs.com/package/grunt-contrib-connect)\n- [grunt-browser-sync](https://www.npmjs.com/package/grunt-browser-sync)\n- [gulp-connect](https://www.npmjs.com/package/gulp-connect)\n- [gulp-webserver](https://www.npmjs.com/package/gulp-webserver)\n\nSample implementations can be found in the [server recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes/servers.md).\n\n## Tests\n\nRun the test suite:\n\n```bash\n# install dependencies\n$ yarn\n\n# linting\n$ yarn lint\n$ yarn lint:fix\n\n# building (compile typescript to js)\n$ yarn build\n\n# unit tests\n$ yarn test\n\n# code coverage\n$ yarn cover\n```\n\n## Changelog\n\n- [View changelog](https://github.com/chimurai/http-proxy-middleware/blob/master/CHANGELOG.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2019 Steven Chim\n",
3226 "readmeFilename": "README.md",
3227 "gitHead": "021b03f0d805446d21e9e9b0700c75b8eb8f39f6",
3228 "_id": "[email protected]",
3229 "_nodeVersion": "12.1.0",
3230 "_npmVersion": "6.9.0",
3231 "dist": {
3232 "integrity": "sha512-rXjfA9c4qCfRPBuEjn4lLinMYmXFSmylBPszJiUBg43tAJx7feHWbbx0VsLMTURe1APw8mSXCuRCMBDhByGT4Q==",
3233 "shasum": "8d38afb8ea264b8ea41a7b7b8e69411ba2eed224",
3234 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.20.0-beta.0.tgz",
3235 "fileCount": 13,
3236 "unpackedSize": 51162,
3237 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8ZZUCRA9TVsSAnZWagAARsoP/2VE+jurLfwtvCIDDVe4\nT+VKqcgNMPJEacyQ1eJBd2cs283zs75Bf/mzIHYAk8doK+X+LWwie1lW9QcP\nf+Rvr8L9bdITk4n+cGfU8es7evpVAuwB7A+h0vdEu5PPYgPhPGAZDVfT19q2\nGy2ByOUiamnNYqAlpIV1iGbPiL9nHqFXCZuEithRR/CYf/JvzW82UCQho5mk\naMhy/I05CFhRQNP30Se26L68NUofKIZnKQUGPoOUjwH5ez73xXWbV4A+gA8o\nNwvAznB9u3SwEwH3qfY880d2vCL0iZ6/wG/5G6BF4bJ/5JlpKEs8i7pxwCV9\nzlD3k0vxgms2g9g3XhuDDJE+rivLWFJa14dROKJGlfgCg8oQQuXMIl5oZJQh\n8uq10OJ2dVRmo/in0rm1BHKx0tugRGysygJ91Lml+AeavTVv719EX4VKgKpW\noXu6nu9cVktYaJN82iB/FKEjsUd2fq8QUsf0cPGj8wyDz6D1uhV76VmIH6Ml\n8HAKxtzlTR15JN9s3uCXqBYCGaAKDz4p6aA57kboWFbgqj3r1InBYhnDq53P\n+9j3xLkiawBnwb2Ckk9MendRklvbyl3Es9TERkEoIL+W/6V+MlImH0DH+uMB\noElTRggfmooAbh6GDjcS++AxlXo/mowisJpe581ndWcgXxE6j/czFt0KK3a4\nM5PT\r\n=HJp3\r\n-----END PGP SIGNATURE-----\r\n"
3238 },
3239 "maintainers": [
3240 {
3241 "name": "chimurai",
3242 "email": "[email protected]"
3243 }
3244 ],
3245 "_npmUser": {
3246 "name": "chimurai",
3247 "email": "[email protected]"
3248 },
3249 "directories": {},
3250 "_npmOperationalInternal": {
3251 "host": "s3://npm-registry-packages",
3252 "tmp": "tmp/http-proxy-middleware_0.20.0-beta.0_1559336531343_0.4642439713593851"
3253 },
3254 "_hasShrinkwrap": false
3255 },
3256 "0.20.0-beta.1": {
3257 "name": "http-proxy-middleware",
3258 "version": "0.20.0-beta.1",
3259 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
3260 "main": "dist/index.js",
3261 "scripts": {
3262 "clean": "rm -rf coverage",
3263 "lint": "yarn lint:prettier && yarn lint:tslint",
3264 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
3265 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
3266 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
3267 "build": "tsc",
3268 "pretest": "yarn build",
3269 "test": "jest --runInBand",
3270 "precover": "yarn clean && yarn build",
3271 "cover": "jest --runInBand --coverage",
3272 "precoveralls": "yarn clean && yarn build",
3273 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
3274 "postcoveralls": "yarn clean",
3275 "prepublish": "yarn build"
3276 },
3277 "repository": {
3278 "type": "git",
3279 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
3280 },
3281 "keywords": [
3282 "reverse",
3283 "proxy",
3284 "middleware",
3285 "http",
3286 "https",
3287 "connect",
3288 "express",
3289 "browser-sync",
3290 "gulp",
3291 "grunt-contrib-connect",
3292 "websocket",
3293 "ws",
3294 "cors"
3295 ],
3296 "author": {
3297 "name": "Steven Chim"
3298 },
3299 "license": "MIT",
3300 "bugs": {
3301 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
3302 },
3303 "homepage": "https://github.com/chimurai/http-proxy-middleware",
3304 "devDependencies": {
3305 "@commitlint/cli": "^7.2.1",
3306 "@commitlint/config-conventional": "^7.1.2",
3307 "@types/express": "^4.16.1",
3308 "@types/http-proxy": "^1.17.0",
3309 "@types/is-glob": "^4.0.0",
3310 "@types/jest": "^24.0.11",
3311 "@types/lodash": "^4.14.123",
3312 "@types/micromatch": "^3.1.0",
3313 "@types/node": "^12.0.4",
3314 "browser-sync": "^2.26.3",
3315 "connect": "^3.6.6",
3316 "coveralls": "^3.0.3",
3317 "express": "^4.16.4",
3318 "husky": "^2.3.0",
3319 "jest": "^24.5.0",
3320 "open": "^6.3.0",
3321 "prettier": "^1.15.2",
3322 "ts-jest": "^24.0.0",
3323 "tslint": "^5.14.0",
3324 "tslint-config-prettier": "^1.18.0",
3325 "typescript": "^3.4.1",
3326 "ws": "^7.0.0"
3327 },
3328 "dependencies": {
3329 "http-proxy": "^1.17.0",
3330 "is-glob": "^4.0.1",
3331 "lodash": "^4.17.11",
3332 "micromatch": "^4.0.2"
3333 },
3334 "engines": {
3335 "node": ">=8.0.0"
3336 },
3337 "husky": {
3338 "hooks": {
3339 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
3340 }
3341 },
3342 "commitlint": {
3343 "extends": [
3344 "@commitlint/config-conventional"
3345 ]
3346 },
3347 "readme": "# http-proxy-middleware\n\n[![Build Status](https://img.shields.io/travis/chimurai/http-proxy-middleware/master.svg?style=flat-square)](https://travis-ci.org/chimurai/http-proxy-middleware)\n[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square)](https://coveralls.io/r/chimurai/http-proxy-middleware)\n[![dependency Status](https://img.shields.io/david/chimurai/http-proxy-middleware.svg?style=flat-square)](https://david-dm.org/chimurai/http-proxy-middleware#info=dependencies)\n[![dependency Status](https://snyk.io/test/npm/http-proxy-middleware/badge.svg?style=flat-square)](https://snyk.io/test/npm/http-proxy-middleware)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nNode.js proxying made simple. Configure proxy middleware with ease for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express), [browser-sync](https://github.com/BrowserSync/browser-sync) and [many more](#compatible-servers).\n\nPowered by the popular Nodejitsu [`http-proxy`](https://github.com/nodejitsu/node-http-proxy). [![GitHub stars](https://img.shields.io/github/stars/nodejitsu/node-http-proxy.svg?style=social&label=Star)](https://github.com/nodejitsu/node-http-proxy)\n\n## TL;DR\n\nProxy `/api` requests to `http://www.example.org`\n\n```javascript\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\nvar app = express();\n\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\napp.listen(3000);\n\n// http://localhost:3000/api/foo/bar -> http://www.example.org/api/foo/bar\n```\n\n_All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options).\n\n:bulb: **Tip:** Set the option `changeOrigin` to `true` for [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based).\n\n## Table of Contents\n\n<!-- MarkdownTOC autolink=true bracket=round depth=2 -->\n\n- [Install](#install)\n- [Core concept](#core-concept)\n- [Example](#example)\n- [Context matching](#context-matching)\n- [Options](#options)\n - [http-proxy-middleware options](#http-proxy-middleware-options)\n - [http-proxy events](#http-proxy-events)\n - [http-proxy options](#http-proxy-options)\n- [Shorthand](#shorthand)\n - [app.use\\(path, proxy\\)](#appusepath-proxy)\n- [WebSocket](#websocket)\n - [External WebSocket upgrade](#external-websocket-upgrade)\n- [Working examples](#working-examples)\n- [Recipes](#recipes)\n- [Compatible servers](#compatible-servers)\n- [Tests](#tests)\n- [Changelog](#changelog)\n- [License](#license)\n\n<!-- /MarkdownTOC -->\n\n## Install\n\n```javascript\n$ npm install --save-dev http-proxy-middleware\n```\n\n## Core concept\n\nProxy middleware configuration.\n\n#### proxy([context,] config)\n\n```javascript\nvar proxy = require('http-proxy-middleware');\n\nvar apiProxy = proxy('/api', { target: 'http://www.example.org' });\n// \\____/ \\_____________________________/\n// | |\n// context options\n\n// 'apiProxy' is now ready to be used as middleware in a server.\n```\n\n- **context**: Determine which requests should be proxied to the target host.\n (more on [context matching](#context-matching))\n- **options.target**: target host to proxy to. _(protocol + host)_\n\n(full list of [`http-proxy-middleware` configuration options](#options))\n\n#### proxy(uri [, config])\n\n```javascript\n// shorthand syntax for the example above:\nvar apiProxy = proxy('http://www.example.org/api');\n```\n\nMore about the [shorthand configuration](#shorthand).\n\n## Example\n\nAn example with `express` server.\n\n```javascript\n// include dependencies\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\n// proxy middleware options\nvar options = {\n target: 'http://www.example.org', // target host\n changeOrigin: true, // needed for virtual hosted sites\n ws: true, // proxy websockets\n pathRewrite: {\n '^/api/old-path': '/api/new-path', // rewrite path\n '^/api/remove/path': '/path' // remove base path\n },\n router: {\n // when request.headers.host == 'dev.localhost:3000',\n // override target 'http://www.example.org' to 'http://localhost:8000'\n 'dev.localhost:3000': 'http://localhost:8000'\n }\n};\n\n// create the proxy (without context)\nvar exampleProxy = proxy(options);\n\n// mount `exampleProxy` in web server\nvar app = express();\napp.use('/api', exampleProxy);\napp.listen(3000);\n```\n\n## Context matching\n\nProviding 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.\n\n[RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is used for context matching.\n\n```\n foo://example.com:8042/over/there?name=ferret#nose\n \\_/ \\______________/\\_________/ \\_________/ \\__/\n | | | | |\n scheme authority path query fragment\n```\n\n- **path matching**\n\n - `proxy({...})` - matches any path, all requests will be proxied.\n - `proxy('/', {...})` - matches any path, all requests will be proxied.\n - `proxy('/api', {...})` - matches paths starting with `/api`\n\n- **multiple path matching**\n\n - `proxy(['/api', '/ajax', '/someotherpath'], {...})`\n\n- **wildcard path matching**\n\n For fine-grained control you can use wildcard matching. Glob pattern matching is done by _micromatch_. Visit [micromatch](https://www.npmjs.com/package/micromatch) or [glob](https://www.npmjs.com/package/glob) for more globbing examples.\n\n - `proxy('**', {...})` matches any path, all requests will be proxied.\n - `proxy('**/*.html', {...})` matches any path which ends with `.html`\n - `proxy('/*.html', {...})` matches paths directly under path-absolute\n - `proxy('/api/**/*.html', {...})` matches requests ending with `.html` in the path of `/api`\n - `proxy(['/api/**', '/ajax/**'], {...})` combine multiple patterns\n - `proxy(['/api/**', '!**/bad.json'], {...})` exclusion\n\n **Note**: In multiple path matching, you cannot use string paths and wildcard paths together.\n\n- **custom matching**\n\n For full control you can provide a custom function to determine which requests should be proxied or not.\n\n ```javascript\n /**\n * @return {Boolean}\n */\n var filter = function(pathname, req) {\n return pathname.match('^/api') && req.method === 'GET';\n };\n\n var apiProxy = proxy(filter, { target: 'http://www.example.org' });\n ```\n\n## Options\n\n### http-proxy-middleware options\n\n- **option.pathRewrite**: object/function, rewrite target's url path. Object-keys will be used as _RegExp_ to match paths.\n\n ```javascript\n // rewrite path\n pathRewrite: {'^/old/api' : '/new/api'}\n\n // remove path\n pathRewrite: {'^/remove/api' : ''}\n\n // add base path\n pathRewrite: {'^/' : '/basepath/'}\n\n // custom rewriting\n pathRewrite: function (path, req) { return path.replace('/api', '/base/api') }\n ```\n\n- **option.router**: object/function, re-target `option.target` for specific requests.\n\n ```javascript\n // Use `host` and/or `path` to match requests. First match will be used.\n // The order of the configuration matters.\n router: {\n 'integration.localhost:3000' : 'http://localhost:8001', // host only\n 'staging.localhost:3000' : 'http://localhost:8002', // host only\n 'localhost:3000/api' : 'http://localhost:8003', // host + path\n '/rest' : 'http://localhost:8004' // path only\n }\n\n // Custom router function\n router: function(req) {\n return 'http://localhost:8004';\n }\n ```\n\n- **option.logLevel**: string, ['debug', 'info', 'warn', 'error', 'silent']. Default: `'info'`\n\n- **option.logProvider**: function, modify or replace log provider. Default: `console`.\n\n ```javascript\n // simple replace\n function logProvider(provider) {\n // replace the default console log provider.\n return require('winston');\n }\n ```\n\n ```javascript\n // verbose replacement\n function logProvider(provider) {\n var logger = new (require('winston')).Logger();\n\n var myCustomProvider = {\n log: logger.log,\n debug: logger.debug,\n info: logger.info,\n warn: logger.warn,\n error: logger.error\n };\n return myCustomProvider;\n }\n ```\n\n### http-proxy events\n\nSubscribe to [http-proxy events](https://github.com/nodejitsu/node-http-proxy#listening-for-proxy-events):\n\n- **option.onError**: function, subscribe to http-proxy's `error` event for custom error handling.\n\n ```javascript\n function onError(err, req, res) {\n res.writeHead(500, {\n 'Content-Type': 'text/plain'\n });\n res.end(\n 'Something went wrong. And we are reporting a custom error message.'\n );\n }\n ```\n\n- **option.onProxyRes**: function, subscribe to http-proxy's `proxyRes` event.\n\n ```javascript\n function onProxyRes(proxyRes, req, res) {\n proxyRes.headers['x-added'] = 'foobar'; // add new header to response\n delete proxyRes.headers['x-removed']; // remove header from response\n }\n ```\n\n- **option.onProxyReq**: function, subscribe to http-proxy's `proxyReq` event.\n\n ```javascript\n function onProxyReq(proxyReq, req, res) {\n // add custom header to request\n proxyReq.setHeader('x-added', 'foobar');\n // or log the req\n }\n ```\n\n- **option.onProxyReqWs**: function, subscribe to http-proxy's `proxyReqWs` event.\n\n ```javascript\n function onProxyReqWs(proxyReq, req, socket, options, head) {\n // add custom header\n proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');\n }\n ```\n\n- **option.onOpen**: function, subscribe to http-proxy's `open` event.\n\n ```javascript\n function onOpen(proxySocket) {\n // listen for messages coming FROM the target here\n proxySocket.on('data', hybiParseAndLogMessage);\n }\n ```\n\n- **option.onClose**: function, subscribe to http-proxy's `close` event.\n ```javascript\n function onClose(res, socket, head) {\n // view disconnected websocket connections\n console.log('Client disconnected');\n }\n ```\n\n### http-proxy options\n\nThe following options are provided by the underlying [http-proxy](https://github.com/nodejitsu/node-http-proxy#options) library.\n\n- **option.target**: url string to be parsed with the url module\n- **option.forward**: url string to be parsed with the url module\n- **option.agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects)\n- **option.ssl**: object to be passed to https.createServer()\n- **option.ws**: true/false: if you want to proxy websockets\n- **option.xfwd**: true/false, adds x-forward headers\n- **option.secure**: true/false, if you want to verify the SSL Certs\n- **option.toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)\n- **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path\n- **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).\n- **option.localAddress** : Local interface string to bind for outgoing connections\n- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL\n- **option.preserveHeaderKeyCase**: true/false, Default: false - specify whether you want to keep letter case of response header key\n- **option.auth** : Basic authentication i.e. 'user:password' to compute an Authorization header.\n- **option.hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.\n- **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.\n- **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.\n- **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new domain, for example `cookieDomainRewrite: \"new.domain\"`. To remove the domain, use `cookieDomainRewrite: \"\"`.\n - Object: mapping of domains to new domains, use `\"*\"` to match all domains. \n For example keep one domain unchanged, rewrite one domain and remove other domains:\n ```\n cookieDomainRewrite: {\n \"unchanged.domain\": \"unchanged.domain\",\n \"old.domain\": \"new.domain\",\n \"*\": \"\"\n }\n ```\n- **option.cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new path, for example `cookiePathRewrite: \"/newPath/\"`. To remove the path, use `cookiePathRewrite: \"\"`. To set path to root use `cookiePathRewrite: \"/\"`.\n - Object: mapping of paths to new paths, use `\"*\"` to match all paths.\n For example, to keep one path unchanged, rewrite one path and remove other paths:\n ```\n cookiePathRewrite: {\n \"/unchanged.path/\": \"/unchanged.path/\",\n \"/old.path/\": \"/new.path/\",\n \"*\": \"\"\n }\n ```\n- **option.headers**: object, adds [request headers](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields). (Example: `{host:'www.example.org'}`)\n- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target\n- **option.timeout**: timeout (in millis) for incoming requests\n- **option.followRedirects**: true/false, Default: false - specify whether you want to follow redirects\n- **option.selfHandleResponse** true/false, if set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the `proxyRes` event\n- **option.buffer**: stream of data to send as the request body. Maybe you have some middleware that consumes the request stream before proxying it on e.g. If you read the body of a request into a field called 'req.rawbody' you could restream this field in the buffer option:\n\n ```\n 'use strict';\n\n const streamify = require('stream-array');\n const HttpProxy = require('http-proxy');\n const proxy = new HttpProxy();\n\n module.exports = (req, res, next) => {\n\n proxy.web(req, res, {\n target: 'http://localhost:4003/',\n buffer: streamify(req.rawBody)\n }, next);\n\n };\n ```\n\n## Shorthand\n\nUse the shorthand syntax when verbose configuration is not needed. The `context` and `option.target` will be automatically configured when shorthand is used. Options can still be used if needed.\n\n```javascript\nproxy('http://www.example.org:8000/api');\n// proxy('/api', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api/books/*/**.json');\n// proxy('/api/books/*/**.json', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api', { changeOrigin: true });\n// proxy('/api', {target: 'http://www.example.org:8000', changeOrigin: true});\n```\n\n### app.use(path, proxy)\n\nIf you want to use the server's `app.use` `path` parameter to match requests;\nCreate and mount the proxy without the http-proxy-middleware `context` parameter:\n\n```javascript\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\n```\n\n`app.use` documentation:\n\n- express: http://expressjs.com/en/4x/api.html#app.use\n- connect: https://github.com/senchalabs/connect#mount-middleware\n\n## WebSocket\n\n```javascript\n// verbose api\nproxy('/', { target: 'http://echo.websocket.org', ws: true });\n\n// shorthand\nproxy('http://echo.websocket.org', { ws: true });\n\n// shorter shorthand\nproxy('ws://echo.websocket.org');\n```\n\n### External WebSocket upgrade\n\nIn the previous WebSocket examples, http-proxy-middleware relies on a initial http request in order to listen to the http `upgrade` event. If you need to proxy WebSockets without the initial http request, you can subscribe to the server's http `upgrade` event manually.\n\n```javascript\nvar wsProxy = proxy('ws://echo.websocket.org', { changeOrigin: true });\n\nvar app = express();\napp.use(wsProxy);\n\nvar server = app.listen(3000);\nserver.on('upgrade', wsProxy.upgrade); // <-- subscribe to http 'upgrade'\n```\n\n## Working examples\n\nView and play around with [working examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples).\n\n- Browser-Sync ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/browser-sync/index.js))\n- express ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/express/index.js))\n- connect ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/connect/index.js))\n- WebSocket ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/websocket/index.js))\n\n## Recipes\n\nView the [recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes) for common use cases.\n\n## Compatible servers\n\n`http-proxy-middleware` is compatible with the following servers:\n\n- [connect](https://www.npmjs.com/package/connect)\n- [express](https://www.npmjs.com/package/express)\n- [browser-sync](https://www.npmjs.com/package/browser-sync)\n- [lite-server](https://www.npmjs.com/package/lite-server)\n- [grunt-contrib-connect](https://www.npmjs.com/package/grunt-contrib-connect)\n- [grunt-browser-sync](https://www.npmjs.com/package/grunt-browser-sync)\n- [gulp-connect](https://www.npmjs.com/package/gulp-connect)\n- [gulp-webserver](https://www.npmjs.com/package/gulp-webserver)\n\nSample implementations can be found in the [server recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes/servers.md).\n\n## Tests\n\nRun the test suite:\n\n```bash\n# install dependencies\n$ yarn\n\n# linting\n$ yarn lint\n$ yarn lint:fix\n\n# building (compile typescript to js)\n$ yarn build\n\n# unit tests\n$ yarn test\n\n# code coverage\n$ yarn cover\n```\n\n## Changelog\n\n- [View changelog](https://github.com/chimurai/http-proxy-middleware/blob/master/CHANGELOG.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2019 Steven Chim\n",
3348 "readmeFilename": "README.md",
3349 "gitHead": "a530c9e1c92b74445b4afb0af70c6b8a8136b238",
3350 "_id": "[email protected]",
3351 "_nodeVersion": "12.1.0",
3352 "_npmVersion": "6.9.0",
3353 "dist": {
3354 "integrity": "sha512-vsJ6+FeSwW6epQMXEKowYHmBN+sLxJ58O03Qf8pTyjZM+8hPSpPPasKfALkD7zEgqKJTKMoDskZH6JCkKTeFjg==",
3355 "shasum": "55e021c8240e44f9e7cf2d9ec3e18bba6ccc7553",
3356 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.20.0-beta.1.tgz",
3357 "fileCount": 13,
3358 "unpackedSize": 50619,
3359 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9B8CCRA9TVsSAnZWagAA55kP/R/PkcwvAL6okwH1wmMy\nE5nhU9ei3BGIy/Jvd8El8vF6y5qg2Xlx+J9wLdxST9Wb4qxkC/kJR6UjH+ni\nTU88pRl+mpiP2UQrakZ234FFsmFfwj8zyXyBq0aQr2V3FCvwMXG+rsGtEjUD\nGtTcfEPs44uFwDwvlFzQZWxlU8ot+ae2PEEg21fj52bLawnTeP4y6cI0g0Z/\n+lhm85lX/r4tqwj+elxQhCDt7GhHgrG0r0Mv7Gmrw96+GIH5Jino3xjjGoAi\nRwz8e8kX8Ugecy/jOp2GNI74AdREzCmEoYEZ7fqCQYi6TtGgLoOJjpA4jZWI\nYrywi6XLcKoiVcBJkvZ1M+A34NuXR3/SsGZj8J64NZ0U0XHG79BRhL1o0gKb\n5JHm5T2697L32jKwRiHipz6lSYcTSaS0PwBrkV1C3DJKIj1mj3QPCFvh6uwb\nVdV2QP34pgucp4tWBZrJXM2URfQ79+fv3CMDfui2mkhZ/hTw2U0mLeKzyCBC\n1b/jcJ3tLFmOEE4FHoWbxtRFngoyxJ4B36iNRFtQgqAmStZUa+0PLHOaXMve\nX3VoTwF2HPx0Y8uKL4KEHlg5oJLNd8pbgVVBSMeI5xJlhBapq0B9h5tjuCHs\nVQzG5tImxFX3fP+u8LLuLUcUrlIStiLqj8uMdh75Z9XzyCylf6wn0xgQOxdv\nTw/7\r\n=gP+D\r\n-----END PGP SIGNATURE-----\r\n"
3360 },
3361 "maintainers": [
3362 {
3363 "name": "chimurai",
3364 "email": "[email protected]"
3365 }
3366 ],
3367 "_npmUser": {
3368 "name": "chimurai",
3369 "email": "[email protected]"
3370 },
3371 "directories": {},
3372 "_npmOperationalInternal": {
3373 "host": "s3://npm-registry-packages",
3374 "tmp": "tmp/http-proxy-middleware_0.20.0-beta.1_1559502592209_0.9266043472076857"
3375 },
3376 "_hasShrinkwrap": false
3377 },
3378 "0.20.0-beta.2": {
3379 "name": "http-proxy-middleware",
3380 "version": "0.20.0-beta.2",
3381 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
3382 "main": "dist/index.js",
3383 "scripts": {
3384 "clean": "rm -rf coverage",
3385 "lint": "yarn lint:prettier && yarn lint:tslint",
3386 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
3387 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
3388 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
3389 "build": "tsc",
3390 "pretest": "yarn build",
3391 "test": "jest --runInBand",
3392 "precover": "yarn clean && yarn build",
3393 "cover": "jest --runInBand --coverage",
3394 "precoveralls": "yarn clean && yarn build",
3395 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
3396 "postcoveralls": "yarn clean",
3397 "prepublish": "yarn build"
3398 },
3399 "repository": {
3400 "type": "git",
3401 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
3402 },
3403 "keywords": [
3404 "reverse",
3405 "proxy",
3406 "middleware",
3407 "http",
3408 "https",
3409 "connect",
3410 "express",
3411 "browser-sync",
3412 "gulp",
3413 "grunt-contrib-connect",
3414 "websocket",
3415 "ws",
3416 "cors"
3417 ],
3418 "author": {
3419 "name": "Steven Chim"
3420 },
3421 "license": "MIT",
3422 "bugs": {
3423 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
3424 },
3425 "homepage": "https://github.com/chimurai/http-proxy-middleware",
3426 "devDependencies": {
3427 "@commitlint/cli": "^7.2.1",
3428 "@commitlint/config-conventional": "^7.1.2",
3429 "@types/express": "^4.16.1",
3430 "@types/http-proxy": "^1.17.0",
3431 "@types/is-glob": "^4.0.0",
3432 "@types/jest": "^24.0.11",
3433 "@types/lodash": "^4.14.123",
3434 "@types/micromatch": "^3.1.0",
3435 "@types/node": "^12.0.4",
3436 "browser-sync": "^2.26.3",
3437 "connect": "^3.6.6",
3438 "coveralls": "^3.0.3",
3439 "express": "^4.16.4",
3440 "husky": "^2.3.0",
3441 "jest": "^24.5.0",
3442 "open": "^6.3.0",
3443 "prettier": "^1.15.2",
3444 "ts-jest": "^24.0.0",
3445 "tslint": "^5.14.0",
3446 "tslint-config-prettier": "^1.18.0",
3447 "typescript": "^3.4.1",
3448 "ws": "^7.0.0"
3449 },
3450 "dependencies": {
3451 "http-proxy": "^1.17.0",
3452 "is-glob": "^4.0.1",
3453 "lodash": "^4.17.11",
3454 "micromatch": "^4.0.2"
3455 },
3456 "engines": {
3457 "node": ">=8.0.0"
3458 },
3459 "husky": {
3460 "hooks": {
3461 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
3462 }
3463 },
3464 "commitlint": {
3465 "extends": [
3466 "@commitlint/config-conventional"
3467 ]
3468 },
3469 "readme": "# http-proxy-middleware\n\n[![Build Status](https://img.shields.io/travis/chimurai/http-proxy-middleware/master.svg?style=flat-square)](https://travis-ci.org/chimurai/http-proxy-middleware)\n[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square)](https://coveralls.io/r/chimurai/http-proxy-middleware)\n[![dependency Status](https://img.shields.io/david/chimurai/http-proxy-middleware.svg?style=flat-square)](https://david-dm.org/chimurai/http-proxy-middleware#info=dependencies)\n[![dependency Status](https://snyk.io/test/npm/http-proxy-middleware/badge.svg?style=flat-square)](https://snyk.io/test/npm/http-proxy-middleware)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nNode.js proxying made simple. Configure proxy middleware with ease for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express), [browser-sync](https://github.com/BrowserSync/browser-sync) and [many more](#compatible-servers).\n\nPowered by the popular Nodejitsu [`http-proxy`](https://github.com/nodejitsu/node-http-proxy). [![GitHub stars](https://img.shields.io/github/stars/nodejitsu/node-http-proxy.svg?style=social&label=Star)](https://github.com/nodejitsu/node-http-proxy)\n\n## TL;DR\n\nProxy `/api` requests to `http://www.example.org`\n\n```javascript\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\nvar app = express();\n\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\napp.listen(3000);\n\n// http://localhost:3000/api/foo/bar -> http://www.example.org/api/foo/bar\n```\n\n_All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options).\n\n:bulb: **Tip:** Set the option `changeOrigin` to `true` for [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based).\n\n## Table of Contents\n\n<!-- MarkdownTOC autolink=true bracket=round depth=2 -->\n\n- [Install](#install)\n- [Core concept](#core-concept)\n- [Example](#example)\n- [Context matching](#context-matching)\n- [Options](#options)\n - [http-proxy-middleware options](#http-proxy-middleware-options)\n - [http-proxy events](#http-proxy-events)\n - [http-proxy options](#http-proxy-options)\n- [Shorthand](#shorthand)\n - [app.use\\(path, proxy\\)](#appusepath-proxy)\n- [WebSocket](#websocket)\n - [External WebSocket upgrade](#external-websocket-upgrade)\n- [Working examples](#working-examples)\n- [Recipes](#recipes)\n- [Compatible servers](#compatible-servers)\n- [Tests](#tests)\n- [Changelog](#changelog)\n- [License](#license)\n\n<!-- /MarkdownTOC -->\n\n## Install\n\n```javascript\n$ npm install --save-dev http-proxy-middleware\n```\n\n## Core concept\n\nProxy middleware configuration.\n\n#### proxy([context,] config)\n\n```javascript\nvar proxy = require('http-proxy-middleware');\n\nvar apiProxy = proxy('/api', { target: 'http://www.example.org' });\n// \\____/ \\_____________________________/\n// | |\n// context options\n\n// 'apiProxy' is now ready to be used as middleware in a server.\n```\n\n- **context**: Determine which requests should be proxied to the target host.\n (more on [context matching](#context-matching))\n- **options.target**: target host to proxy to. _(protocol + host)_\n\n(full list of [`http-proxy-middleware` configuration options](#options))\n\n#### proxy(uri [, config])\n\n```javascript\n// shorthand syntax for the example above:\nvar apiProxy = proxy('http://www.example.org/api');\n```\n\nMore about the [shorthand configuration](#shorthand).\n\n## Example\n\nAn example with `express` server.\n\n```javascript\n// include dependencies\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\n// proxy middleware options\nvar options = {\n target: 'http://www.example.org', // target host\n changeOrigin: true, // needed for virtual hosted sites\n ws: true, // proxy websockets\n pathRewrite: {\n '^/api/old-path': '/api/new-path', // rewrite path\n '^/api/remove/path': '/path' // remove base path\n },\n router: {\n // when request.headers.host == 'dev.localhost:3000',\n // override target 'http://www.example.org' to 'http://localhost:8000'\n 'dev.localhost:3000': 'http://localhost:8000'\n }\n};\n\n// create the proxy (without context)\nvar exampleProxy = proxy(options);\n\n// mount `exampleProxy` in web server\nvar app = express();\napp.use('/api', exampleProxy);\napp.listen(3000);\n```\n\n## Context matching\n\nProviding 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.\n\n[RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is used for context matching.\n\n```\n foo://example.com:8042/over/there?name=ferret#nose\n \\_/ \\______________/\\_________/ \\_________/ \\__/\n | | | | |\n scheme authority path query fragment\n```\n\n- **path matching**\n\n - `proxy({...})` - matches any path, all requests will be proxied.\n - `proxy('/', {...})` - matches any path, all requests will be proxied.\n - `proxy('/api', {...})` - matches paths starting with `/api`\n\n- **multiple path matching**\n\n - `proxy(['/api', '/ajax', '/someotherpath'], {...})`\n\n- **wildcard path matching**\n\n For fine-grained control you can use wildcard matching. Glob pattern matching is done by _micromatch_. Visit [micromatch](https://www.npmjs.com/package/micromatch) or [glob](https://www.npmjs.com/package/glob) for more globbing examples.\n\n - `proxy('**', {...})` matches any path, all requests will be proxied.\n - `proxy('**/*.html', {...})` matches any path which ends with `.html`\n - `proxy('/*.html', {...})` matches paths directly under path-absolute\n - `proxy('/api/**/*.html', {...})` matches requests ending with `.html` in the path of `/api`\n - `proxy(['/api/**', '/ajax/**'], {...})` combine multiple patterns\n - `proxy(['/api/**', '!**/bad.json'], {...})` exclusion\n\n **Note**: In multiple path matching, you cannot use string paths and wildcard paths together.\n\n- **custom matching**\n\n For full control you can provide a custom function to determine which requests should be proxied or not.\n\n ```javascript\n /**\n * @return {Boolean}\n */\n var filter = function(pathname, req) {\n return pathname.match('^/api') && req.method === 'GET';\n };\n\n var apiProxy = proxy(filter, { target: 'http://www.example.org' });\n ```\n\n## Options\n\n### http-proxy-middleware options\n\n- **option.pathRewrite**: object/function, rewrite target's url path. Object-keys will be used as _RegExp_ to match paths.\n\n ```javascript\n // rewrite path\n pathRewrite: {'^/old/api' : '/new/api'}\n\n // remove path\n pathRewrite: {'^/remove/api' : ''}\n\n // add base path\n pathRewrite: {'^/' : '/basepath/'}\n\n // custom rewriting\n pathRewrite: function (path, req) { return path.replace('/api', '/base/api') }\n ```\n\n- **option.router**: object/function, re-target `option.target` for specific requests.\n\n ```javascript\n // Use `host` and/or `path` to match requests. First match will be used.\n // The order of the configuration matters.\n router: {\n 'integration.localhost:3000' : 'http://localhost:8001', // host only\n 'staging.localhost:3000' : 'http://localhost:8002', // host only\n 'localhost:3000/api' : 'http://localhost:8003', // host + path\n '/rest' : 'http://localhost:8004' // path only\n }\n\n // Custom router function\n router: function(req) {\n return 'http://localhost:8004';\n }\n ```\n\n- **option.logLevel**: string, ['debug', 'info', 'warn', 'error', 'silent']. Default: `'info'`\n\n- **option.logProvider**: function, modify or replace log provider. Default: `console`.\n\n ```javascript\n // simple replace\n function logProvider(provider) {\n // replace the default console log provider.\n return require('winston');\n }\n ```\n\n ```javascript\n // verbose replacement\n function logProvider(provider) {\n var logger = new (require('winston')).Logger();\n\n var myCustomProvider = {\n log: logger.log,\n debug: logger.debug,\n info: logger.info,\n warn: logger.warn,\n error: logger.error\n };\n return myCustomProvider;\n }\n ```\n\n### http-proxy events\n\nSubscribe to [http-proxy events](https://github.com/nodejitsu/node-http-proxy#listening-for-proxy-events):\n\n- **option.onError**: function, subscribe to http-proxy's `error` event for custom error handling.\n\n ```javascript\n function onError(err, req, res) {\n res.writeHead(500, {\n 'Content-Type': 'text/plain'\n });\n res.end(\n 'Something went wrong. And we are reporting a custom error message.'\n );\n }\n ```\n\n- **option.onProxyRes**: function, subscribe to http-proxy's `proxyRes` event.\n\n ```javascript\n function onProxyRes(proxyRes, req, res) {\n proxyRes.headers['x-added'] = 'foobar'; // add new header to response\n delete proxyRes.headers['x-removed']; // remove header from response\n }\n ```\n\n- **option.onProxyReq**: function, subscribe to http-proxy's `proxyReq` event.\n\n ```javascript\n function onProxyReq(proxyReq, req, res) {\n // add custom header to request\n proxyReq.setHeader('x-added', 'foobar');\n // or log the req\n }\n ```\n\n- **option.onProxyReqWs**: function, subscribe to http-proxy's `proxyReqWs` event.\n\n ```javascript\n function onProxyReqWs(proxyReq, req, socket, options, head) {\n // add custom header\n proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');\n }\n ```\n\n- **option.onOpen**: function, subscribe to http-proxy's `open` event.\n\n ```javascript\n function onOpen(proxySocket) {\n // listen for messages coming FROM the target here\n proxySocket.on('data', hybiParseAndLogMessage);\n }\n ```\n\n- **option.onClose**: function, subscribe to http-proxy's `close` event.\n ```javascript\n function onClose(res, socket, head) {\n // view disconnected websocket connections\n console.log('Client disconnected');\n }\n ```\n\n### http-proxy options\n\nThe following options are provided by the underlying [http-proxy](https://github.com/nodejitsu/node-http-proxy#options) library.\n\n- **option.target**: url string to be parsed with the url module\n- **option.forward**: url string to be parsed with the url module\n- **option.agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects)\n- **option.ssl**: object to be passed to https.createServer()\n- **option.ws**: true/false: if you want to proxy websockets\n- **option.xfwd**: true/false, adds x-forward headers\n- **option.secure**: true/false, if you want to verify the SSL Certs\n- **option.toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)\n- **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path\n- **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).\n- **option.localAddress** : Local interface string to bind for outgoing connections\n- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL\n- **option.preserveHeaderKeyCase**: true/false, Default: false - specify whether you want to keep letter case of response header key\n- **option.auth** : Basic authentication i.e. 'user:password' to compute an Authorization header.\n- **option.hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.\n- **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.\n- **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.\n- **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new domain, for example `cookieDomainRewrite: \"new.domain\"`. To remove the domain, use `cookieDomainRewrite: \"\"`.\n - Object: mapping of domains to new domains, use `\"*\"` to match all domains. \n For example keep one domain unchanged, rewrite one domain and remove other domains:\n ```\n cookieDomainRewrite: {\n \"unchanged.domain\": \"unchanged.domain\",\n \"old.domain\": \"new.domain\",\n \"*\": \"\"\n }\n ```\n- **option.cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new path, for example `cookiePathRewrite: \"/newPath/\"`. To remove the path, use `cookiePathRewrite: \"\"`. To set path to root use `cookiePathRewrite: \"/\"`.\n - Object: mapping of paths to new paths, use `\"*\"` to match all paths.\n For example, to keep one path unchanged, rewrite one path and remove other paths:\n ```\n cookiePathRewrite: {\n \"/unchanged.path/\": \"/unchanged.path/\",\n \"/old.path/\": \"/new.path/\",\n \"*\": \"\"\n }\n ```\n- **option.headers**: object, adds [request headers](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields). (Example: `{host:'www.example.org'}`)\n- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target\n- **option.timeout**: timeout (in millis) for incoming requests\n- **option.followRedirects**: true/false, Default: false - specify whether you want to follow redirects\n- **option.selfHandleResponse** true/false, if set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the `proxyRes` event\n- **option.buffer**: stream of data to send as the request body. Maybe you have some middleware that consumes the request stream before proxying it on e.g. If you read the body of a request into a field called 'req.rawbody' you could restream this field in the buffer option:\n\n ```\n 'use strict';\n\n const streamify = require('stream-array');\n const HttpProxy = require('http-proxy');\n const proxy = new HttpProxy();\n\n module.exports = (req, res, next) => {\n\n proxy.web(req, res, {\n target: 'http://localhost:4003/',\n buffer: streamify(req.rawBody)\n }, next);\n\n };\n ```\n\n## Shorthand\n\nUse the shorthand syntax when verbose configuration is not needed. The `context` and `option.target` will be automatically configured when shorthand is used. Options can still be used if needed.\n\n```javascript\nproxy('http://www.example.org:8000/api');\n// proxy('/api', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api/books/*/**.json');\n// proxy('/api/books/*/**.json', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api', { changeOrigin: true });\n// proxy('/api', {target: 'http://www.example.org:8000', changeOrigin: true});\n```\n\n### app.use(path, proxy)\n\nIf you want to use the server's `app.use` `path` parameter to match requests;\nCreate and mount the proxy without the http-proxy-middleware `context` parameter:\n\n```javascript\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\n```\n\n`app.use` documentation:\n\n- express: http://expressjs.com/en/4x/api.html#app.use\n- connect: https://github.com/senchalabs/connect#mount-middleware\n\n## WebSocket\n\n```javascript\n// verbose api\nproxy('/', { target: 'http://echo.websocket.org', ws: true });\n\n// shorthand\nproxy('http://echo.websocket.org', { ws: true });\n\n// shorter shorthand\nproxy('ws://echo.websocket.org');\n```\n\n### External WebSocket upgrade\n\nIn the previous WebSocket examples, http-proxy-middleware relies on a initial http request in order to listen to the http `upgrade` event. If you need to proxy WebSockets without the initial http request, you can subscribe to the server's http `upgrade` event manually.\n\n```javascript\nvar wsProxy = proxy('ws://echo.websocket.org', { changeOrigin: true });\n\nvar app = express();\napp.use(wsProxy);\n\nvar server = app.listen(3000);\nserver.on('upgrade', wsProxy.upgrade); // <-- subscribe to http 'upgrade'\n```\n\n## Working examples\n\nView and play around with [working examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples).\n\n- Browser-Sync ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/browser-sync/index.js))\n- express ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/express/index.js))\n- connect ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/connect/index.js))\n- WebSocket ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/websocket/index.js))\n\n## Recipes\n\nView the [recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes) for common use cases.\n\n## Compatible servers\n\n`http-proxy-middleware` is compatible with the following servers:\n\n- [connect](https://www.npmjs.com/package/connect)\n- [express](https://www.npmjs.com/package/express)\n- [browser-sync](https://www.npmjs.com/package/browser-sync)\n- [lite-server](https://www.npmjs.com/package/lite-server)\n- [grunt-contrib-connect](https://www.npmjs.com/package/grunt-contrib-connect)\n- [grunt-browser-sync](https://www.npmjs.com/package/grunt-browser-sync)\n- [gulp-connect](https://www.npmjs.com/package/gulp-connect)\n- [gulp-webserver](https://www.npmjs.com/package/gulp-webserver)\n\nSample implementations can be found in the [server recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes/servers.md).\n\n## Tests\n\nRun the test suite:\n\n```bash\n# install dependencies\n$ yarn\n\n# linting\n$ yarn lint\n$ yarn lint:fix\n\n# building (compile typescript to js)\n$ yarn build\n\n# unit tests\n$ yarn test\n\n# code coverage\n$ yarn cover\n```\n\n## Changelog\n\n- [View changelog](https://github.com/chimurai/http-proxy-middleware/blob/master/CHANGELOG.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2019 Steven Chim\n",
3470 "readmeFilename": "README.md",
3471 "gitHead": "bef1d49bfd14a95de3ed8f993cc62161700dc5ef",
3472 "_id": "[email protected]",
3473 "_nodeVersion": "12.4.0",
3474 "_npmVersion": "6.9.0",
3475 "dist": {
3476 "integrity": "sha512-OkO4poCBY2pt2Fn4iAte5Vy2vMsLjUzaHX69nxCPRZ8BMjvsv7LZcgyy0xI2fILBQL+D7B6WS+rUI9ugSJh9Ng==",
3477 "shasum": "2e1f99591415ea388826f98c065a5fa173ee7d8a",
3478 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.20.0-beta.2.tgz",
3479 "fileCount": 13,
3480 "unpackedSize": 50947,
3481 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJO3uCRA9TVsSAnZWagAAUfUQAJVf9KYsosvC1oPpHoOu\nqdFXoijnD2S+LD3N5cvYeFG/NvCHOlh+jMuCC2+HPi7Jj2RKM/GmnH6Hvwib\n0wf4yZBU6tKmV/a1KVwZJ8UvahJjgAVjYnK2ri3Gk+4HjrlCtWPpJOm6tmmG\nwzsHQX2T8ZtRUk+bgLlwD84+73xdaYIBDH/eVmxjWFmBiUxOMb/otA5UFxYv\ngIo6+PwyztPMVVkrLsLGJxCH/SdJOEngwPEKwb63DVZmu2urq109v4Yz2U3g\nJmfJg3hbKnvRRejQBm9nOq6IxtVtusTfaIGRwU0p6HFbG9uxjpMWfUGH9yzO\nqXXR05X/bv5xkbI/zLqj5rPnl78BJm4473cWuqpEOW9TFpowuXvEGehLTieK\nnmpBY5qweummrJVLZ1K+N/f12T/MJQv/rmikDEwbiagA17b26r/8J+hINqYn\n9WJXnJn3aDkbY06hlWsw2/cNm22z44nTlD9W00mC7+syavyZFci5bUGzdoPQ\n6LzsFQqGCQHBZ9tZmaVAXbIDnzMQ0zg+9k0EI9fuyGiLRw/3xupP5Js3om4O\nObIVP8JVLajSADARg6HYEcvtiOvs4nFDNktIT9Zr4ex1DFWVcPoIXJJfSnYn\npIMqfC75Qq/FuCDkOAZwbhejlpiN2fWZTEZIsul0e/zZ1y0jPMNr13xpoOpY\n/bbz\r\n=Vg0O\r\n-----END PGP SIGNATURE-----\r\n"
3482 },
3483 "maintainers": [
3484 {
3485 "name": "chimurai",
3486 "email": "[email protected]"
3487 }
3488 ],
3489 "_npmUser": {
3490 "name": "chimurai",
3491 "email": "[email protected]"
3492 },
3493 "directories": {},
3494 "_npmOperationalInternal": {
3495 "host": "s3://npm-registry-packages",
3496 "tmp": "tmp/http-proxy-middleware_0.20.0-beta.2_1562701294180_0.5240101814223321"
3497 },
3498 "_hasShrinkwrap": false
3499 },
3500 "0.20.0": {
3501 "name": "http-proxy-middleware",
3502 "version": "0.20.0",
3503 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
3504 "main": "dist/index.js",
3505 "scripts": {
3506 "clean": "rm -rf dist && rm -rf coverage",
3507 "lint": "yarn lint:prettier && yarn lint:tslint",
3508 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
3509 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
3510 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
3511 "build": "tsc",
3512 "pretest": "yarn build",
3513 "test": "jest --runInBand",
3514 "precover": "yarn clean && yarn build",
3515 "cover": "jest --runInBand --coverage",
3516 "precoveralls": "yarn clean && yarn build",
3517 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
3518 "postcoveralls": "yarn clean",
3519 "prepare": "yarn clean && yarn build"
3520 },
3521 "repository": {
3522 "type": "git",
3523 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
3524 },
3525 "keywords": [
3526 "reverse",
3527 "proxy",
3528 "middleware",
3529 "http",
3530 "https",
3531 "connect",
3532 "express",
3533 "browser-sync",
3534 "gulp",
3535 "grunt-contrib-connect",
3536 "websocket",
3537 "ws",
3538 "cors"
3539 ],
3540 "author": {
3541 "name": "Steven Chim"
3542 },
3543 "license": "MIT",
3544 "bugs": {
3545 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
3546 },
3547 "homepage": "https://github.com/chimurai/http-proxy-middleware",
3548 "devDependencies": {
3549 "@commitlint/cli": "^8.0.0",
3550 "@commitlint/config-conventional": "^8.0.0",
3551 "@types/express": "^4.17.0",
3552 "@types/http-proxy": "^1.17.0",
3553 "@types/is-glob": "^4.0.0",
3554 "@types/jest": "^24.0.15",
3555 "@types/lodash": "^4.14.136",
3556 "@types/micromatch": "^3.1.0",
3557 "@types/node": "^12.6.2",
3558 "browser-sync": "^2.26.7",
3559 "connect": "^3.6.6",
3560 "coveralls": "^3.0.5",
3561 "express": "^4.16.4",
3562 "husky": "^3.0.0",
3563 "jest": "^24.5.0",
3564 "open": "^6.4.0",
3565 "prettier": "^1.18.2",
3566 "ts-jest": "^24.0.0",
3567 "tslint": "^5.18.0",
3568 "tslint-config-prettier": "^1.18.0",
3569 "typescript": "^3.5.3",
3570 "ws": "^7.1.0"
3571 },
3572 "dependencies": {
3573 "http-proxy": "^1.17.0",
3574 "is-glob": "^4.0.1",
3575 "lodash": "^4.17.14",
3576 "micromatch": "^4.0.2"
3577 },
3578 "engines": {
3579 "node": ">=8.0.0"
3580 },
3581 "husky": {
3582 "hooks": {
3583 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
3584 }
3585 },
3586 "commitlint": {
3587 "extends": [
3588 "@commitlint/config-conventional"
3589 ]
3590 },
3591 "gitHead": "3b9730826187c708fbd16cb0baa588f6aad73a00",
3592 "_id": "[email protected]",
3593 "_nodeVersion": "12.8.1",
3594 "_npmVersion": "6.10.2",
3595 "dist": {
3596 "integrity": "sha512-dNJAk71nEJhPiAczQH9hGvE/MT9kEs+zn2Dh+Hi94PGZe1GluQirC7mw5rdREUtWx6qGS1Gu0bZd4qEAg+REgw==",
3597 "shasum": "5b128f7207985c4ea91b53fab8ad897a48c690d6",
3598 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.20.0.tgz",
3599 "fileCount": 13,
3600 "unpackedSize": 51251,
3601 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbsVrCRA9TVsSAnZWagAAouMP/j7gzAb7qpsFw9cwrsJF\nikrihxJpdZHwDmcWeZmo2GsFidAbGfDV6AtL6XDAhSO+XVMb6ALr/tXjWwns\n1I/yrNPWqFEsIJlmKXRZf/cauCPlIWQrPJoGfOVrCo7XunCAxyCT3EmQwjEV\nb40JoPyRUX8UpbmicU2mM0KoKogv2mKhDy85gdLmrpgOMLuk1L3PHSR9xAOB\n69FsAyNuUqNNMfIbKkyQfxLkkAe9AZEgd+1dTf6Qk/GbTIUuMvLBwhoC641q\nFz1VEcABAecS4PkdntwwY1g+Q7nbEFIu8qgJG/o9GQFzod0HORGZhLQy/vOV\nWZCottDnxfGv1p7Nr4IfHjTWn80MYeZbs5VijG0BC539d7DWbobE/qwzUvEA\n4Iu+7WnlqUKwNAh6LEQ/f7OzYuWHp+N2tZPbqr6uJA4Btd0HbpMstVXIGMaK\nzDIsk06Z1JRTva2ws8fMA1rbAZG9YgGN5d8HXTMxf67dmccMZFbnkoP5BlSi\nrmGUYGgwVH1x3v5kzzrbXPZ+6bLB+2s1TOfybcJg6b6hIYkAHq3zX5YzX89w\nmb5MTwUKCevKL/rOzQQRwjm2E6tFI16fXJvXv6OARA+Se/HG5f12ayKppZTD\nQ2okbuuCAasl/K6J0jE35XETiQmfzTGE/lSHS4ihw6lWjW4irXcniRqys0Gg\nXS65\r\n=sGAt\r\n-----END PGP SIGNATURE-----\r\n"
3602 },
3603 "maintainers": [
3604 {
3605 "name": "chimurai",
3606 "email": "[email protected]"
3607 }
3608 ],
3609 "_npmUser": {
3610 "name": "chimurai",
3611 "email": "[email protected]"
3612 },
3613 "directories": {},
3614 "_npmOperationalInternal": {
3615 "host": "s3://npm-registry-packages",
3616 "tmp": "tmp/http-proxy-middleware_0.20.0_1567540586415_0.9096750997515071"
3617 },
3618 "_hasShrinkwrap": false
3619 },
3620 "0.21.0-beta.1": {
3621 "name": "http-proxy-middleware",
3622 "version": "0.21.0-beta.1",
3623 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
3624 "main": "dist/index.js",
3625 "scripts": {
3626 "clean": "rm -rf dist && rm -rf coverage",
3627 "lint": "yarn lint:prettier && yarn lint:tslint",
3628 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
3629 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
3630 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
3631 "build": "tsc",
3632 "pretest": "yarn build",
3633 "test": "jest --runInBand",
3634 "precover": "yarn clean && yarn build",
3635 "cover": "jest --runInBand --coverage",
3636 "precoveralls": "yarn clean && yarn build",
3637 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
3638 "postcoveralls": "yarn clean",
3639 "prepare": "yarn clean && yarn build"
3640 },
3641 "repository": {
3642 "type": "git",
3643 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
3644 },
3645 "keywords": [
3646 "reverse",
3647 "proxy",
3648 "middleware",
3649 "http",
3650 "https",
3651 "connect",
3652 "express",
3653 "browser-sync",
3654 "gulp",
3655 "grunt-contrib-connect",
3656 "websocket",
3657 "ws",
3658 "cors"
3659 ],
3660 "author": {
3661 "name": "Steven Chim"
3662 },
3663 "license": "MIT",
3664 "bugs": {
3665 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
3666 },
3667 "homepage": "https://github.com/chimurai/http-proxy-middleware",
3668 "devDependencies": {
3669 "@commitlint/cli": "^8.0.0",
3670 "@commitlint/config-conventional": "^8.0.0",
3671 "@types/express": "^4.17.0",
3672 "@types/http-proxy": "^1.17.0",
3673 "@types/is-glob": "^4.0.0",
3674 "@types/jest": "^24.0.15",
3675 "@types/lodash": "^4.14.136",
3676 "@types/micromatch": "^3.1.0",
3677 "@types/node": "^12.6.2",
3678 "browser-sync": "^2.26.7",
3679 "connect": "^3.6.6",
3680 "coveralls": "^3.0.5",
3681 "express": "^4.16.4",
3682 "husky": "^3.0.0",
3683 "jest": "^24.5.0",
3684 "open": "^6.4.0",
3685 "prettier": "^1.18.2",
3686 "ts-jest": "^24.0.0",
3687 "tslint": "^5.18.0",
3688 "tslint-config-prettier": "^1.18.0",
3689 "typescript": "^3.5.3",
3690 "ws": "^7.1.0"
3691 },
3692 "dependencies": {
3693 "http-proxy": "^1.17.0",
3694 "is-glob": "^4.0.1",
3695 "lodash": "^4.17.14",
3696 "micromatch": "^4.0.2"
3697 },
3698 "engines": {
3699 "node": ">=8.0.0"
3700 },
3701 "husky": {
3702 "hooks": {
3703 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
3704 }
3705 },
3706 "commitlint": {
3707 "extends": [
3708 "@commitlint/config-conventional"
3709 ]
3710 },
3711 "readme": "# http-proxy-middleware\n\n[![Build Status](https://img.shields.io/travis/chimurai/http-proxy-middleware/master.svg?style=flat-square)](https://travis-ci.org/chimurai/http-proxy-middleware)\n[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square)](https://coveralls.io/r/chimurai/http-proxy-middleware)\n[![dependency Status](https://img.shields.io/david/chimurai/http-proxy-middleware.svg?style=flat-square)](https://david-dm.org/chimurai/http-proxy-middleware#info=dependencies)\n[![dependency Status](https://snyk.io/test/npm/http-proxy-middleware/badge.svg?style=flat-square)](https://snyk.io/test/npm/http-proxy-middleware)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nNode.js proxying made simple. Configure proxy middleware with ease for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express), [browser-sync](https://github.com/BrowserSync/browser-sync) and [many more](#compatible-servers).\n\nPowered by the popular Nodejitsu [`http-proxy`](https://github.com/nodejitsu/node-http-proxy). [![GitHub stars](https://img.shields.io/github/stars/nodejitsu/node-http-proxy.svg?style=social&label=Star)](https://github.com/nodejitsu/node-http-proxy)\n\n## TL;DR\n\nProxy `/api` requests to `http://www.example.org`\n\n```javascript\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\nvar app = express();\n\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\napp.listen(3000);\n\n// http://localhost:3000/api/foo/bar -> http://www.example.org/api/foo/bar\n```\n\n_All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options).\n\n:bulb: **Tip:** Set the option `changeOrigin` to `true` for [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based).\n\n## Table of Contents\n\n<!-- MarkdownTOC autolink=true bracket=round depth=2 -->\n\n- [Install](#install)\n- [Core concept](#core-concept)\n- [Example](#example)\n- [Context matching](#context-matching)\n- [Options](#options)\n - [http-proxy-middleware options](#http-proxy-middleware-options)\n - [http-proxy events](#http-proxy-events)\n - [http-proxy options](#http-proxy-options)\n- [Shorthand](#shorthand)\n - [app.use\\(path, proxy\\)](#appusepath-proxy)\n- [WebSocket](#websocket)\n - [External WebSocket upgrade](#external-websocket-upgrade)\n- [Working examples](#working-examples)\n- [Recipes](#recipes)\n- [Compatible servers](#compatible-servers)\n- [Tests](#tests)\n- [Changelog](#changelog)\n- [License](#license)\n\n<!-- /MarkdownTOC -->\n\n## Install\n\n```javascript\n$ npm install --save-dev http-proxy-middleware\n```\n\n## Core concept\n\nProxy middleware configuration.\n\n#### proxy([context,] config)\n\n```javascript\nvar proxy = require('http-proxy-middleware');\n\nvar apiProxy = proxy('/api', { target: 'http://www.example.org' });\n// \\____/ \\_____________________________/\n// | |\n// context options\n\n// 'apiProxy' is now ready to be used as middleware in a server.\n```\n\n- **context**: Determine which requests should be proxied to the target host.\n (more on [context matching](#context-matching))\n- **options.target**: target host to proxy to. _(protocol + host)_\n\n(full list of [`http-proxy-middleware` configuration options](#options))\n\n#### proxy(uri [, config])\n\n```javascript\n// shorthand syntax for the example above:\nvar apiProxy = proxy('http://www.example.org/api');\n```\n\nMore about the [shorthand configuration](#shorthand).\n\n## Example\n\nAn example with `express` server.\n\n```javascript\n// include dependencies\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\n// proxy middleware options\nvar options = {\n target: 'http://www.example.org', // target host\n changeOrigin: true, // needed for virtual hosted sites\n ws: true, // proxy websockets\n pathRewrite: {\n '^/api/old-path': '/api/new-path', // rewrite path\n '^/api/remove/path': '/path' // remove base path\n },\n router: {\n // when request.headers.host == 'dev.localhost:3000',\n // override target 'http://www.example.org' to 'http://localhost:8000'\n 'dev.localhost:3000': 'http://localhost:8000'\n }\n};\n\n// create the proxy (without context)\nvar exampleProxy = proxy(options);\n\n// mount `exampleProxy` in web server\nvar app = express();\napp.use('/api', exampleProxy);\napp.listen(3000);\n```\n\n## Context matching\n\nProviding 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.\n\n[RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is used for context matching.\n\n```\n foo://example.com:8042/over/there?name=ferret#nose\n \\_/ \\______________/\\_________/ \\_________/ \\__/\n | | | | |\n scheme authority path query fragment\n```\n\n- **path matching**\n\n - `proxy({...})` - matches any path, all requests will be proxied.\n - `proxy('/', {...})` - matches any path, all requests will be proxied.\n - `proxy('/api', {...})` - matches paths starting with `/api`\n\n- **multiple path matching**\n\n - `proxy(['/api', '/ajax', '/someotherpath'], {...})`\n\n- **wildcard path matching**\n\n For fine-grained control you can use wildcard matching. Glob pattern matching is done by _micromatch_. Visit [micromatch](https://www.npmjs.com/package/micromatch) or [glob](https://www.npmjs.com/package/glob) for more globbing examples.\n\n - `proxy('**', {...})` matches any path, all requests will be proxied.\n - `proxy('**/*.html', {...})` matches any path which ends with `.html`\n - `proxy('/*.html', {...})` matches paths directly under path-absolute\n - `proxy('/api/**/*.html', {...})` matches requests ending with `.html` in the path of `/api`\n - `proxy(['/api/**', '/ajax/**'], {...})` combine multiple patterns\n - `proxy(['/api/**', '!**/bad.json'], {...})` exclusion\n\n **Note**: In multiple path matching, you cannot use string paths and wildcard paths together.\n\n- **custom matching**\n\n For full control you can provide a custom function to determine which requests should be proxied or not.\n\n ```javascript\n /**\n * @return {Boolean}\n */\n var filter = function(pathname, req) {\n return pathname.match('^/api') && req.method === 'GET';\n };\n\n var apiProxy = proxy(filter, { target: 'http://www.example.org' });\n ```\n\n## Options\n\n### http-proxy-middleware options\n\n- **option.pathRewrite**: object/function, rewrite target's url path. Object-keys will be used as _RegExp_ to match paths.\n\n ```javascript\n // rewrite path\n pathRewrite: {'^/old/api' : '/new/api'}\n\n // remove path\n pathRewrite: {'^/remove/api' : ''}\n\n // add base path\n pathRewrite: {'^/' : '/basepath/'}\n\n // custom rewriting\n pathRewrite: function (path, req) { return path.replace('/api', '/base/api') }\n ```\n\n- **option.router**: object/function, re-target `option.target` for specific requests.\n\n ```javascript\n // Use `host` and/or `path` to match requests. First match will be used.\n // The order of the configuration matters.\n router: {\n 'integration.localhost:3000' : 'http://localhost:8001', // host only\n 'staging.localhost:3000' : 'http://localhost:8002', // host only\n 'localhost:3000/api' : 'http://localhost:8003', // host + path\n '/rest' : 'http://localhost:8004' // path only\n }\n\n // Custom router function\n router: function(req) {\n return 'http://localhost:8004';\n }\n\n // Asynchronous router function which returns promise\n router: async function(req) {\n const url = await doSomeIO();\n return url;\n }\n ```\n\n- **option.logLevel**: string, ['debug', 'info', 'warn', 'error', 'silent']. Default: `'info'`\n\n- **option.logProvider**: function, modify or replace log provider. Default: `console`.\n\n ```javascript\n // simple replace\n function logProvider(provider) {\n // replace the default console log provider.\n return require('winston');\n }\n ```\n\n ```javascript\n // verbose replacement\n function logProvider(provider) {\n var logger = new (require('winston')).Logger();\n\n var myCustomProvider = {\n log: logger.log,\n debug: logger.debug,\n info: logger.info,\n warn: logger.warn,\n error: logger.error\n };\n return myCustomProvider;\n }\n ```\n\n### http-proxy events\n\nSubscribe to [http-proxy events](https://github.com/nodejitsu/node-http-proxy#listening-for-proxy-events):\n\n- **option.onError**: function, subscribe to http-proxy's `error` event for custom error handling.\n\n ```javascript\n function onError(err, req, res) {\n res.writeHead(500, {\n 'Content-Type': 'text/plain'\n });\n res.end(\n 'Something went wrong. And we are reporting a custom error message.'\n );\n }\n ```\n\n- **option.onProxyRes**: function, subscribe to http-proxy's `proxyRes` event.\n\n ```javascript\n function onProxyRes(proxyRes, req, res) {\n proxyRes.headers['x-added'] = 'foobar'; // add new header to response\n delete proxyRes.headers['x-removed']; // remove header from response\n }\n ```\n\n- **option.onProxyReq**: function, subscribe to http-proxy's `proxyReq` event.\n\n ```javascript\n function onProxyReq(proxyReq, req, res) {\n // add custom header to request\n proxyReq.setHeader('x-added', 'foobar');\n // or log the req\n }\n ```\n\n- **option.onProxyReqWs**: function, subscribe to http-proxy's `proxyReqWs` event.\n\n ```javascript\n function onProxyReqWs(proxyReq, req, socket, options, head) {\n // add custom header\n proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');\n }\n ```\n\n- **option.onOpen**: function, subscribe to http-proxy's `open` event.\n\n ```javascript\n function onOpen(proxySocket) {\n // listen for messages coming FROM the target here\n proxySocket.on('data', hybiParseAndLogMessage);\n }\n ```\n\n- **option.onClose**: function, subscribe to http-proxy's `close` event.\n ```javascript\n function onClose(res, socket, head) {\n // view disconnected websocket connections\n console.log('Client disconnected');\n }\n ```\n\n### http-proxy options\n\nThe following options are provided by the underlying [http-proxy](https://github.com/nodejitsu/node-http-proxy#options) library.\n\n- **option.target**: url string to be parsed with the url module\n- **option.forward**: url string to be parsed with the url module\n- **option.agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects)\n- **option.ssl**: object to be passed to https.createServer()\n- **option.ws**: true/false: if you want to proxy websockets\n- **option.xfwd**: true/false, adds x-forward headers\n- **option.secure**: true/false, if you want to verify the SSL Certs\n- **option.toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)\n- **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path\n- **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).\n- **option.localAddress** : Local interface string to bind for outgoing connections\n- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL\n- **option.preserveHeaderKeyCase**: true/false, Default: false - specify whether you want to keep letter case of response header key\n- **option.auth** : Basic authentication i.e. 'user:password' to compute an Authorization header.\n- **option.hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.\n- **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.\n- **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.\n- **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new domain, for example `cookieDomainRewrite: \"new.domain\"`. To remove the domain, use `cookieDomainRewrite: \"\"`.\n - Object: mapping of domains to new domains, use `\"*\"` to match all domains. \n For example keep one domain unchanged, rewrite one domain and remove other domains:\n ```\n cookieDomainRewrite: {\n \"unchanged.domain\": \"unchanged.domain\",\n \"old.domain\": \"new.domain\",\n \"*\": \"\"\n }\n ```\n- **option.cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new path, for example `cookiePathRewrite: \"/newPath/\"`. To remove the path, use `cookiePathRewrite: \"\"`. To set path to root use `cookiePathRewrite: \"/\"`.\n - Object: mapping of paths to new paths, use `\"*\"` to match all paths.\n For example, to keep one path unchanged, rewrite one path and remove other paths:\n ```\n cookiePathRewrite: {\n \"/unchanged.path/\": \"/unchanged.path/\",\n \"/old.path/\": \"/new.path/\",\n \"*\": \"\"\n }\n ```\n- **option.headers**: object, adds [request headers](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields). (Example: `{host:'www.example.org'}`)\n- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target\n- **option.timeout**: timeout (in millis) for incoming requests\n- **option.followRedirects**: true/false, Default: false - specify whether you want to follow redirects\n- **option.selfHandleResponse** true/false, if set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the `proxyRes` event\n- **option.buffer**: stream of data to send as the request body. Maybe you have some middleware that consumes the request stream before proxying it on e.g. If you read the body of a request into a field called 'req.rawbody' you could restream this field in the buffer option:\n\n ```\n 'use strict';\n\n const streamify = require('stream-array');\n const HttpProxy = require('http-proxy');\n const proxy = new HttpProxy();\n\n module.exports = (req, res, next) => {\n\n proxy.web(req, res, {\n target: 'http://localhost:4003/',\n buffer: streamify(req.rawBody)\n }, next);\n\n };\n ```\n\n## Shorthand\n\nUse the shorthand syntax when verbose configuration is not needed. The `context` and `option.target` will be automatically configured when shorthand is used. Options can still be used if needed.\n\n```javascript\nproxy('http://www.example.org:8000/api');\n// proxy('/api', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api/books/*/**.json');\n// proxy('/api/books/*/**.json', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api', { changeOrigin: true });\n// proxy('/api', {target: 'http://www.example.org:8000', changeOrigin: true});\n```\n\n### app.use(path, proxy)\n\nIf you want to use the server's `app.use` `path` parameter to match requests;\nCreate and mount the proxy without the http-proxy-middleware `context` parameter:\n\n```javascript\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\n```\n\n`app.use` documentation:\n\n- express: http://expressjs.com/en/4x/api.html#app.use\n- connect: https://github.com/senchalabs/connect#mount-middleware\n\n## WebSocket\n\n```javascript\n// verbose api\nproxy('/', { target: 'http://echo.websocket.org', ws: true });\n\n// shorthand\nproxy('http://echo.websocket.org', { ws: true });\n\n// shorter shorthand\nproxy('ws://echo.websocket.org');\n```\n\n### External WebSocket upgrade\n\nIn the previous WebSocket examples, http-proxy-middleware relies on a initial http request in order to listen to the http `upgrade` event. If you need to proxy WebSockets without the initial http request, you can subscribe to the server's http `upgrade` event manually.\n\n```javascript\nvar wsProxy = proxy('ws://echo.websocket.org', { changeOrigin: true });\n\nvar app = express();\napp.use(wsProxy);\n\nvar server = app.listen(3000);\nserver.on('upgrade', wsProxy.upgrade); // <-- subscribe to http 'upgrade'\n```\n\n## Working examples\n\nView and play around with [working examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples).\n\n- Browser-Sync ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/browser-sync/index.js))\n- express ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/express/index.js))\n- connect ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/connect/index.js))\n- WebSocket ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/websocket/index.js))\n\n## Recipes\n\nView the [recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes) for common use cases.\n\n## Compatible servers\n\n`http-proxy-middleware` is compatible with the following servers:\n\n- [connect](https://www.npmjs.com/package/connect)\n- [express](https://www.npmjs.com/package/express)\n- [browser-sync](https://www.npmjs.com/package/browser-sync)\n- [lite-server](https://www.npmjs.com/package/lite-server)\n- [grunt-contrib-connect](https://www.npmjs.com/package/grunt-contrib-connect)\n- [grunt-browser-sync](https://www.npmjs.com/package/grunt-browser-sync)\n- [gulp-connect](https://www.npmjs.com/package/gulp-connect)\n- [gulp-webserver](https://www.npmjs.com/package/gulp-webserver)\n\nSample implementations can be found in the [server recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes/servers.md).\n\n## Tests\n\nRun the test suite:\n\n```bash\n# install dependencies\n$ yarn\n\n# linting\n$ yarn lint\n$ yarn lint:fix\n\n# building (compile typescript to js)\n$ yarn build\n\n# unit tests\n$ yarn test\n\n# code coverage\n$ yarn cover\n```\n\n## Changelog\n\n- [View changelog](https://github.com/chimurai/http-proxy-middleware/blob/master/CHANGELOG.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2019 Steven Chim\n",
3712 "readmeFilename": "README.md",
3713 "gitHead": "7a738ea2251d1a156267959a202d19b49238f1a6",
3714 "_id": "[email protected]",
3715 "_nodeVersion": "12.14.0",
3716 "_npmVersion": "6.13.4",
3717 "dist": {
3718 "integrity": "sha512-qiqFG3Ri+aTfQhpeAL1IHKSOdrHTBhiaQoJSKcD5FJwPdm5rxwq6qoVIITcGwHqz0iIZLe3YIkafwRO8FMwt6A==",
3719 "shasum": "ddda0025b69f288475926dbe044b90f38278ce32",
3720 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.21.0-beta.1.tgz",
3721 "fileCount": 13,
3722 "unpackedSize": 52422,
3723 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeA/TqCRA9TVsSAnZWagAACOwP/RVXofcPWn7LTE140UKq\ny4N5PWgXu27qd7twIRWYDF1irH776Qa05DY7RnjbWK6R4+uFZ/Jf+l5ZGdkx\nBOlJVGAEa033Ic3o/BZZh3l3AwO1caR1J47rKRaE9qBWUo+0HD3BNFMbyvSH\n1knyE2af6Q+9HVic3k8ILaSZTbuvFffuR6A9kWgpjTkB22aGaA6ZvfVJCWZP\n/trm8cjUl+oCbF51eQdD38PE4Cmv/UraFDJu7zgeCgjMomH5bbrSN1vpsdvy\n+CD6k2a7j0lLPoXpOG5ehB7u6t07eBOixT0/qfJTntKdV2IOycEGXaSH35j6\n6UKvVJ47FRiV4zxLBiM2/XRhBUyaRzzie61uVDFs2gLV5aKVoS1vjWqzJ1Xl\n/BM9gb9+mWYtbST3/sIZHjzDVyHW0JXG/6KX/ufXm0yKbmqUFEpSIhq1lg24\nOkiHyx+Zmr0Rftj0NpM+2vIDa729+y2g/6DTvAh40cOtxJLSu5KawC0Z7p4L\nV0x/npTRKG49zmrcJz8JdHgTtWOxu3dIhgfCXxV4dqGTDT3dBqLofFbot+71\nwbvE5+lgJWYqAtwk+47HV4HlYm0SjAaHszU5gbdGsQveziKHvOd1wEfcVJ4t\n/aNXDfrbfwXn8OkYi+VlVRDaDhBzL0ZYufKzvhwQF3evGfEr8LfeIRTOJuKP\nhWn0\r\n=MUL+\r\n-----END PGP SIGNATURE-----\r\n"
3724 },
3725 "maintainers": [
3726 {
3727 "name": "chimurai",
3728 "email": "[email protected]"
3729 }
3730 ],
3731 "_npmUser": {
3732 "name": "chimurai",
3733 "email": "[email protected]"
3734 },
3735 "directories": {},
3736 "_npmOperationalInternal": {
3737 "host": "s3://npm-registry-packages",
3738 "tmp": "tmp/http-proxy-middleware_0.21.0-beta.1_1577317609788_0.42476028879033034"
3739 },
3740 "_hasShrinkwrap": false
3741 },
3742 "0.21.0-beta.2": {
3743 "name": "http-proxy-middleware",
3744 "version": "0.21.0-beta.2",
3745 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
3746 "main": "dist/index.js",
3747 "types": "dist/index.d.ts",
3748 "scripts": {
3749 "clean": "rm -rf dist && rm -rf coverage",
3750 "lint": "yarn lint:prettier && yarn lint:tslint",
3751 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
3752 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
3753 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
3754 "build": "tsc",
3755 "pretest": "yarn build",
3756 "test": "jest --runInBand",
3757 "precover": "yarn clean && yarn build",
3758 "cover": "jest --runInBand --coverage",
3759 "precoveralls": "yarn clean && yarn build",
3760 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
3761 "postcoveralls": "yarn clean",
3762 "prepare": "yarn clean && yarn build"
3763 },
3764 "repository": {
3765 "type": "git",
3766 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
3767 },
3768 "keywords": [
3769 "reverse",
3770 "proxy",
3771 "middleware",
3772 "http",
3773 "https",
3774 "connect",
3775 "express",
3776 "browser-sync",
3777 "gulp",
3778 "grunt-contrib-connect",
3779 "websocket",
3780 "ws",
3781 "cors"
3782 ],
3783 "author": {
3784 "name": "Steven Chim"
3785 },
3786 "license": "MIT",
3787 "bugs": {
3788 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
3789 },
3790 "homepage": "https://github.com/chimurai/http-proxy-middleware",
3791 "devDependencies": {
3792 "@commitlint/cli": "^8.0.0",
3793 "@commitlint/config-conventional": "^8.0.0",
3794 "@types/express": "^4.17.0",
3795 "@types/is-glob": "^4.0.0",
3796 "@types/jest": "^24.0.15",
3797 "@types/lodash": "^4.14.136",
3798 "@types/micromatch": "^3.1.0",
3799 "@types/node": "^12.6.2",
3800 "browser-sync": "^2.26.7",
3801 "connect": "^3.6.6",
3802 "coveralls": "^3.0.5",
3803 "express": "^4.16.4",
3804 "husky": "^3.0.0",
3805 "jest": "^24.5.0",
3806 "open": "^6.4.0",
3807 "prettier": "^1.18.2",
3808 "ts-jest": "^24.0.0",
3809 "tslint": "^5.18.0",
3810 "tslint-config-prettier": "^1.18.0",
3811 "typescript": "^3.5.3",
3812 "ws": "^7.1.0"
3813 },
3814 "dependencies": {
3815 "@types/http-proxy": "^1.17.0",
3816 "http-proxy": "^1.17.0",
3817 "is-glob": "^4.0.1",
3818 "lodash": "^4.17.14",
3819 "micromatch": "^4.0.2"
3820 },
3821 "engines": {
3822 "node": ">=8.0.0"
3823 },
3824 "husky": {
3825 "hooks": {
3826 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
3827 }
3828 },
3829 "commitlint": {
3830 "extends": [
3831 "@commitlint/config-conventional"
3832 ]
3833 },
3834 "readme": "# http-proxy-middleware\n\n[![Build Status](https://img.shields.io/travis/chimurai/http-proxy-middleware/master.svg?style=flat-square)](https://travis-ci.org/chimurai/http-proxy-middleware)\n[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square)](https://coveralls.io/r/chimurai/http-proxy-middleware)\n[![dependency Status](https://img.shields.io/david/chimurai/http-proxy-middleware.svg?style=flat-square)](https://david-dm.org/chimurai/http-proxy-middleware#info=dependencies)\n[![dependency Status](https://snyk.io/test/npm/http-proxy-middleware/badge.svg?style=flat-square)](https://snyk.io/test/npm/http-proxy-middleware)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nNode.js proxying made simple. Configure proxy middleware with ease for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express), [browser-sync](https://github.com/BrowserSync/browser-sync) and [many more](#compatible-servers).\n\nPowered by the popular Nodejitsu [`http-proxy`](https://github.com/nodejitsu/node-http-proxy). [![GitHub stars](https://img.shields.io/github/stars/nodejitsu/node-http-proxy.svg?style=social&label=Star)](https://github.com/nodejitsu/node-http-proxy)\n\n## TL;DR\n\nProxy `/api` requests to `http://www.example.org`\n\n```javascript\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\nvar app = express();\n\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\napp.listen(3000);\n\n// http://localhost:3000/api/foo/bar -> http://www.example.org/api/foo/bar\n```\n\n_All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options).\n\n:bulb: **Tip:** Set the option `changeOrigin` to `true` for [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based).\n\n## Table of Contents\n\n<!-- MarkdownTOC autolink=true bracket=round depth=2 -->\n\n- [Install](#install)\n- [Core concept](#core-concept)\n- [Example](#example)\n- [Context matching](#context-matching)\n- [Options](#options)\n - [http-proxy-middleware options](#http-proxy-middleware-options)\n - [http-proxy events](#http-proxy-events)\n - [http-proxy options](#http-proxy-options)\n- [Shorthand](#shorthand)\n - [app.use\\(path, proxy\\)](#appusepath-proxy)\n- [WebSocket](#websocket)\n - [External WebSocket upgrade](#external-websocket-upgrade)\n- [Working examples](#working-examples)\n- [Recipes](#recipes)\n- [Compatible servers](#compatible-servers)\n- [Tests](#tests)\n- [Changelog](#changelog)\n- [License](#license)\n\n<!-- /MarkdownTOC -->\n\n## Install\n\n```javascript\n$ npm install --save-dev http-proxy-middleware\n```\n\n## Core concept\n\nProxy middleware configuration.\n\n#### proxy([context,] config)\n\n```javascript\nvar proxy = require('http-proxy-middleware');\n\nvar apiProxy = proxy('/api', { target: 'http://www.example.org' });\n// \\____/ \\_____________________________/\n// | |\n// context options\n\n// 'apiProxy' is now ready to be used as middleware in a server.\n```\n\n- **context**: Determine which requests should be proxied to the target host.\n (more on [context matching](#context-matching))\n- **options.target**: target host to proxy to. _(protocol + host)_\n\n(full list of [`http-proxy-middleware` configuration options](#options))\n\n#### proxy(uri [, config])\n\n```javascript\n// shorthand syntax for the example above:\nvar apiProxy = proxy('http://www.example.org/api');\n```\n\nMore about the [shorthand configuration](#shorthand).\n\n## Example\n\nAn example with `express` server.\n\n```javascript\n// include dependencies\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\n// proxy middleware options\nvar options = {\n target: 'http://www.example.org', // target host\n changeOrigin: true, // needed for virtual hosted sites\n ws: true, // proxy websockets\n pathRewrite: {\n '^/api/old-path': '/api/new-path', // rewrite path\n '^/api/remove/path': '/path' // remove base path\n },\n router: {\n // when request.headers.host == 'dev.localhost:3000',\n // override target 'http://www.example.org' to 'http://localhost:8000'\n 'dev.localhost:3000': 'http://localhost:8000'\n }\n};\n\n// create the proxy (without context)\nvar exampleProxy = proxy(options);\n\n// mount `exampleProxy` in web server\nvar app = express();\napp.use('/api', exampleProxy);\napp.listen(3000);\n```\n\n## Context matching\n\nProviding 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.\n\n[RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is used for context matching.\n\n```\n foo://example.com:8042/over/there?name=ferret#nose\n \\_/ \\______________/\\_________/ \\_________/ \\__/\n | | | | |\n scheme authority path query fragment\n```\n\n- **path matching**\n\n - `proxy({...})` - matches any path, all requests will be proxied.\n - `proxy('/', {...})` - matches any path, all requests will be proxied.\n - `proxy('/api', {...})` - matches paths starting with `/api`\n\n- **multiple path matching**\n\n - `proxy(['/api', '/ajax', '/someotherpath'], {...})`\n\n- **wildcard path matching**\n\n For fine-grained control you can use wildcard matching. Glob pattern matching is done by _micromatch_. Visit [micromatch](https://www.npmjs.com/package/micromatch) or [glob](https://www.npmjs.com/package/glob) for more globbing examples.\n\n - `proxy('**', {...})` matches any path, all requests will be proxied.\n - `proxy('**/*.html', {...})` matches any path which ends with `.html`\n - `proxy('/*.html', {...})` matches paths directly under path-absolute\n - `proxy('/api/**/*.html', {...})` matches requests ending with `.html` in the path of `/api`\n - `proxy(['/api/**', '/ajax/**'], {...})` combine multiple patterns\n - `proxy(['/api/**', '!**/bad.json'], {...})` exclusion\n\n **Note**: In multiple path matching, you cannot use string paths and wildcard paths together.\n\n- **custom matching**\n\n For full control you can provide a custom function to determine which requests should be proxied or not.\n\n ```javascript\n /**\n * @return {Boolean}\n */\n var filter = function(pathname, req) {\n return pathname.match('^/api') && req.method === 'GET';\n };\n\n var apiProxy = proxy(filter, { target: 'http://www.example.org' });\n ```\n\n## Options\n\n### http-proxy-middleware options\n\n- **option.pathRewrite**: object/function, rewrite target's url path. Object-keys will be used as _RegExp_ to match paths.\n\n ```javascript\n // rewrite path\n pathRewrite: {'^/old/api' : '/new/api'}\n\n // remove path\n pathRewrite: {'^/remove/api' : ''}\n\n // add base path\n pathRewrite: {'^/' : '/basepath/'}\n\n // custom rewriting\n pathRewrite: function (path, req) { return path.replace('/api', '/base/api') }\n ```\n\n- **option.router**: object/function, re-target `option.target` for specific requests.\n\n ```javascript\n // Use `host` and/or `path` to match requests. First match will be used.\n // The order of the configuration matters.\n router: {\n 'integration.localhost:3000' : 'http://localhost:8001', // host only\n 'staging.localhost:3000' : 'http://localhost:8002', // host only\n 'localhost:3000/api' : 'http://localhost:8003', // host + path\n '/rest' : 'http://localhost:8004' // path only\n }\n\n // Custom router function\n router: function(req) {\n return 'http://localhost:8004';\n }\n\n // Asynchronous router function which returns promise\n router: async function(req) {\n const url = await doSomeIO();\n return url;\n }\n ```\n\n- **option.logLevel**: string, ['debug', 'info', 'warn', 'error', 'silent']. Default: `'info'`\n\n- **option.logProvider**: function, modify or replace log provider. Default: `console`.\n\n ```javascript\n // simple replace\n function logProvider(provider) {\n // replace the default console log provider.\n return require('winston');\n }\n ```\n\n ```javascript\n // verbose replacement\n function logProvider(provider) {\n var logger = new (require('winston')).Logger();\n\n var myCustomProvider = {\n log: logger.log,\n debug: logger.debug,\n info: logger.info,\n warn: logger.warn,\n error: logger.error\n };\n return myCustomProvider;\n }\n ```\n\n### http-proxy events\n\nSubscribe to [http-proxy events](https://github.com/nodejitsu/node-http-proxy#listening-for-proxy-events):\n\n- **option.onError**: function, subscribe to http-proxy's `error` event for custom error handling.\n\n ```javascript\n function onError(err, req, res) {\n res.writeHead(500, {\n 'Content-Type': 'text/plain'\n });\n res.end(\n 'Something went wrong. And we are reporting a custom error message.'\n );\n }\n ```\n\n- **option.onProxyRes**: function, subscribe to http-proxy's `proxyRes` event.\n\n ```javascript\n function onProxyRes(proxyRes, req, res) {\n proxyRes.headers['x-added'] = 'foobar'; // add new header to response\n delete proxyRes.headers['x-removed']; // remove header from response\n }\n ```\n\n- **option.onProxyReq**: function, subscribe to http-proxy's `proxyReq` event.\n\n ```javascript\n function onProxyReq(proxyReq, req, res) {\n // add custom header to request\n proxyReq.setHeader('x-added', 'foobar');\n // or log the req\n }\n ```\n\n- **option.onProxyReqWs**: function, subscribe to http-proxy's `proxyReqWs` event.\n\n ```javascript\n function onProxyReqWs(proxyReq, req, socket, options, head) {\n // add custom header\n proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');\n }\n ```\n\n- **option.onOpen**: function, subscribe to http-proxy's `open` event.\n\n ```javascript\n function onOpen(proxySocket) {\n // listen for messages coming FROM the target here\n proxySocket.on('data', hybiParseAndLogMessage);\n }\n ```\n\n- **option.onClose**: function, subscribe to http-proxy's `close` event.\n ```javascript\n function onClose(res, socket, head) {\n // view disconnected websocket connections\n console.log('Client disconnected');\n }\n ```\n\n### http-proxy options\n\nThe following options are provided by the underlying [http-proxy](https://github.com/nodejitsu/node-http-proxy#options) library.\n\n- **option.target**: url string to be parsed with the url module\n- **option.forward**: url string to be parsed with the url module\n- **option.agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects)\n- **option.ssl**: object to be passed to https.createServer()\n- **option.ws**: true/false: if you want to proxy websockets\n- **option.xfwd**: true/false, adds x-forward headers\n- **option.secure**: true/false, if you want to verify the SSL Certs\n- **option.toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)\n- **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path\n- **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).\n- **option.localAddress** : Local interface string to bind for outgoing connections\n- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL\n- **option.preserveHeaderKeyCase**: true/false, Default: false - specify whether you want to keep letter case of response header key\n- **option.auth** : Basic authentication i.e. 'user:password' to compute an Authorization header.\n- **option.hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.\n- **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.\n- **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.\n- **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new domain, for example `cookieDomainRewrite: \"new.domain\"`. To remove the domain, use `cookieDomainRewrite: \"\"`.\n - Object: mapping of domains to new domains, use `\"*\"` to match all domains. \n For example keep one domain unchanged, rewrite one domain and remove other domains:\n ```\n cookieDomainRewrite: {\n \"unchanged.domain\": \"unchanged.domain\",\n \"old.domain\": \"new.domain\",\n \"*\": \"\"\n }\n ```\n- **option.cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new path, for example `cookiePathRewrite: \"/newPath/\"`. To remove the path, use `cookiePathRewrite: \"\"`. To set path to root use `cookiePathRewrite: \"/\"`.\n - Object: mapping of paths to new paths, use `\"*\"` to match all paths.\n For example, to keep one path unchanged, rewrite one path and remove other paths:\n ```\n cookiePathRewrite: {\n \"/unchanged.path/\": \"/unchanged.path/\",\n \"/old.path/\": \"/new.path/\",\n \"*\": \"\"\n }\n ```\n- **option.headers**: object, adds [request headers](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields). (Example: `{host:'www.example.org'}`)\n- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target\n- **option.timeout**: timeout (in millis) for incoming requests\n- **option.followRedirects**: true/false, Default: false - specify whether you want to follow redirects\n- **option.selfHandleResponse** true/false, if set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the `proxyRes` event\n- **option.buffer**: stream of data to send as the request body. Maybe you have some middleware that consumes the request stream before proxying it on e.g. If you read the body of a request into a field called 'req.rawbody' you could restream this field in the buffer option:\n\n ```\n 'use strict';\n\n const streamify = require('stream-array');\n const HttpProxy = require('http-proxy');\n const proxy = new HttpProxy();\n\n module.exports = (req, res, next) => {\n\n proxy.web(req, res, {\n target: 'http://localhost:4003/',\n buffer: streamify(req.rawBody)\n }, next);\n\n };\n ```\n\n## Shorthand\n\nUse the shorthand syntax when verbose configuration is not needed. The `context` and `option.target` will be automatically configured when shorthand is used. Options can still be used if needed.\n\n```javascript\nproxy('http://www.example.org:8000/api');\n// proxy('/api', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api/books/*/**.json');\n// proxy('/api/books/*/**.json', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api', { changeOrigin: true });\n// proxy('/api', {target: 'http://www.example.org:8000', changeOrigin: true});\n```\n\n### app.use(path, proxy)\n\nIf you want to use the server's `app.use` `path` parameter to match requests;\nCreate and mount the proxy without the http-proxy-middleware `context` parameter:\n\n```javascript\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\n```\n\n`app.use` documentation:\n\n- express: http://expressjs.com/en/4x/api.html#app.use\n- connect: https://github.com/senchalabs/connect#mount-middleware\n\n## WebSocket\n\n```javascript\n// verbose api\nproxy('/', { target: 'http://echo.websocket.org', ws: true });\n\n// shorthand\nproxy('http://echo.websocket.org', { ws: true });\n\n// shorter shorthand\nproxy('ws://echo.websocket.org');\n```\n\n### External WebSocket upgrade\n\nIn the previous WebSocket examples, http-proxy-middleware relies on a initial http request in order to listen to the http `upgrade` event. If you need to proxy WebSockets without the initial http request, you can subscribe to the server's http `upgrade` event manually.\n\n```javascript\nvar wsProxy = proxy('ws://echo.websocket.org', { changeOrigin: true });\n\nvar app = express();\napp.use(wsProxy);\n\nvar server = app.listen(3000);\nserver.on('upgrade', wsProxy.upgrade); // <-- subscribe to http 'upgrade'\n```\n\n## Working examples\n\nView and play around with [working examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples).\n\n- Browser-Sync ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/browser-sync/index.js))\n- express ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/express/index.js))\n- connect ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/connect/index.js))\n- WebSocket ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/websocket/index.js))\n\n## Recipes\n\nView the [recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes) for common use cases.\n\n## Compatible servers\n\n`http-proxy-middleware` is compatible with the following servers:\n\n- [connect](https://www.npmjs.com/package/connect)\n- [express](https://www.npmjs.com/package/express)\n- [browser-sync](https://www.npmjs.com/package/browser-sync)\n- [lite-server](https://www.npmjs.com/package/lite-server)\n- [grunt-contrib-connect](https://www.npmjs.com/package/grunt-contrib-connect)\n- [grunt-browser-sync](https://www.npmjs.com/package/grunt-browser-sync)\n- [gulp-connect](https://www.npmjs.com/package/gulp-connect)\n- [gulp-webserver](https://www.npmjs.com/package/gulp-webserver)\n\nSample implementations can be found in the [server recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes/servers.md).\n\n## Tests\n\nRun the test suite:\n\n```bash\n# install dependencies\n$ yarn\n\n# linting\n$ yarn lint\n$ yarn lint:fix\n\n# building (compile typescript to js)\n$ yarn build\n\n# unit tests\n$ yarn test\n\n# code coverage\n$ yarn cover\n```\n\n## Changelog\n\n- [View changelog](https://github.com/chimurai/http-proxy-middleware/blob/master/CHANGELOG.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2019 Steven Chim\n",
3835 "readmeFilename": "README.md",
3836 "gitHead": "b2f5f69b8fd835b79bd514004b807444185107fc",
3837 "_id": "[email protected]",
3838 "_nodeVersion": "12.14.0",
3839 "_npmVersion": "6.13.4",
3840 "dist": {
3841 "integrity": "sha512-Cvemlr1M237MEgXpL+Tti9w6aUV5emMBkAXW3JaECIBeW+voER6A5Zjs5OzgAHcoeT7rz7aiVmCC3gFpo/r3Ag==",
3842 "shasum": "ff38e92a3b666c5cd019bb5019884aaf350200fe",
3843 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.21.0-beta.2.tgz",
3844 "fileCount": 24,
3845 "unpackedSize": 59320,
3846 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeEhc/CRA9TVsSAnZWagAAy1kP/31RqHzQY2vZacutkcqf\nWndTw3VOvCouEwws4/a9ONBAdcbQ1Sp4UvGwtsiuYbaXU+FnryZWpkQg26Hh\nrUNrwd7aY3s1kiEVD7l6DlexQonm+JbiuOdjksy3okej770MOuWW31xhBFpq\ngyyE4aLZXdzZ0OO5NeUErMfK4Ghm6FQK78oaQoBM9Ef6lst8qs3fVhsbq+MP\nswArYa19g5Exsw97wkZMx043tlrAxkrMWhTa1WAzQIlUEk4CgfNS4ScRjcCq\ns66HbkC5oDBGFhKDPaHx7gdZjNQeGHV1pU2EKurWWvvmeL2J6+eGI14fLwNO\n54Wtn9lcy9WlUSggT4U305LNkrQgBiEVSld2viuelIWHuMPHUtQA5WMNLozO\npyIUJ7pfEF9n5Q8Jq1erps0Sm6yGeCfInFQ5ULDwpAWVn7TGPvrG2h0nAiMM\nFdeRr7KS5YflJhWIgeszpEvTHVgo1xCcWDiVP6jrrnGI4HL/WQHiBmkCHeMo\nCbZPr33dCC3Z10AX8YLtA4n04eQbqW07EEdOwEGMyKM6BIx4onb7qQpA5Q4Z\nB5FgRd78iy6h1ZPPxIsmp6zYaX0u6cwkrCR4vvKVob3u7zKuZMnS32tt97YY\nC4lRGb/SU9oLnzyU6DIRxCXBAgaPftOUAHG7EWZotYtTGlC+9GfCf2u3ySbO\ndOfR\r\n=eGx2\r\n-----END PGP SIGNATURE-----\r\n"
3847 },
3848 "maintainers": [
3849 {
3850 "name": "chimurai",
3851 "email": "[email protected]"
3852 }
3853 ],
3854 "_npmUser": {
3855 "name": "chimurai",
3856 "email": "[email protected]"
3857 },
3858 "directories": {},
3859 "_npmOperationalInternal": {
3860 "host": "s3://npm-registry-packages",
3861 "tmp": "tmp/http-proxy-middleware_0.21.0-beta.2_1578243903123_0.7557270896855537"
3862 },
3863 "_hasShrinkwrap": false
3864 },
3865 "0.21.0-beta.3": {
3866 "name": "http-proxy-middleware",
3867 "version": "0.21.0-beta.3",
3868 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
3869 "main": "dist/index.js",
3870 "types": "dist/index.d.ts",
3871 "scripts": {
3872 "clean": "rm -rf dist && rm -rf coverage",
3873 "lint": "yarn lint:prettier && yarn lint:tslint",
3874 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
3875 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
3876 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
3877 "build": "tsc",
3878 "pretest": "yarn build",
3879 "test": "jest --runInBand",
3880 "precover": "yarn clean && yarn build",
3881 "cover": "jest --runInBand --coverage",
3882 "precoveralls": "yarn clean && yarn build",
3883 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
3884 "postcoveralls": "yarn clean",
3885 "prepare": "yarn clean && yarn build"
3886 },
3887 "repository": {
3888 "type": "git",
3889 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
3890 },
3891 "keywords": [
3892 "reverse",
3893 "proxy",
3894 "middleware",
3895 "http",
3896 "https",
3897 "connect",
3898 "express",
3899 "browser-sync",
3900 "gulp",
3901 "grunt-contrib-connect",
3902 "websocket",
3903 "ws",
3904 "cors"
3905 ],
3906 "author": {
3907 "name": "Steven Chim"
3908 },
3909 "license": "MIT",
3910 "bugs": {
3911 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
3912 },
3913 "homepage": "https://github.com/chimurai/http-proxy-middleware",
3914 "devDependencies": {
3915 "@commitlint/cli": "^8.0.0",
3916 "@commitlint/config-conventional": "^8.0.0",
3917 "@types/express": "^4.17.0",
3918 "@types/is-glob": "^4.0.0",
3919 "@types/jest": "^25.1.2",
3920 "@types/lodash": "^4.14.149",
3921 "@types/micromatch": "^4.0.1",
3922 "@types/node": "^12.6.2",
3923 "browser-sync": "^2.26.7",
3924 "connect": "^3.6.6",
3925 "coveralls": "^3.0.5",
3926 "express": "^4.16.4",
3927 "husky": "^3.0.0",
3928 "jest": "^25.1.0",
3929 "open": "^7.0.2",
3930 "prettier": "^1.19.1",
3931 "ts-jest": "^25.2.0",
3932 "tslint": "^6.0.0",
3933 "tslint-config-prettier": "^1.18.0",
3934 "typescript": "^3.7.5",
3935 "ws": "^7.1.0"
3936 },
3937 "dependencies": {
3938 "@types/http-proxy": "^1.17.3",
3939 "http-proxy": "^1.18.0",
3940 "is-glob": "^4.0.1",
3941 "lodash": "^4.17.15",
3942 "micromatch": "^4.0.2"
3943 },
3944 "engines": {
3945 "node": ">=8.0.0"
3946 },
3947 "husky": {
3948 "hooks": {
3949 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
3950 }
3951 },
3952 "commitlint": {
3953 "extends": [
3954 "@commitlint/config-conventional"
3955 ]
3956 },
3957 "readme": "# http-proxy-middleware\n\n[![Build Status](https://img.shields.io/travis/chimurai/http-proxy-middleware/master.svg?style=flat-square)](https://travis-ci.org/chimurai/http-proxy-middleware)\n[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square)](https://coveralls.io/r/chimurai/http-proxy-middleware)\n[![dependency Status](https://img.shields.io/david/chimurai/http-proxy-middleware.svg?style=flat-square)](https://david-dm.org/chimurai/http-proxy-middleware#info=dependencies)\n[![dependency Status](https://snyk.io/test/npm/http-proxy-middleware/badge.svg?style=flat-square)](https://snyk.io/test/npm/http-proxy-middleware)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nNode.js proxying made simple. Configure proxy middleware with ease for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express), [browser-sync](https://github.com/BrowserSync/browser-sync) and [many more](#compatible-servers).\n\nPowered by the popular Nodejitsu [`http-proxy`](https://github.com/nodejitsu/node-http-proxy). [![GitHub stars](https://img.shields.io/github/stars/nodejitsu/node-http-proxy.svg?style=social&label=Star)](https://github.com/nodejitsu/node-http-proxy)\n\n## TL;DR\n\nProxy `/api` requests to `http://www.example.org`\n\n```javascript\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\nvar app = express();\n\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\napp.listen(3000);\n\n// http://localhost:3000/api/foo/bar -> http://www.example.org/api/foo/bar\n```\n\n_All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options).\n\n:bulb: **Tip:** Set the option `changeOrigin` to `true` for [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based).\n\n## Table of Contents\n\n<!-- MarkdownTOC autolink=true bracket=round depth=2 -->\n\n- [Install](#install)\n- [Core concept](#core-concept)\n- [Example](#example)\n- [Context matching](#context-matching)\n- [Options](#options)\n - [http-proxy-middleware options](#http-proxy-middleware-options)\n - [http-proxy events](#http-proxy-events)\n - [http-proxy options](#http-proxy-options)\n- [Shorthand](#shorthand)\n - [app.use\\(path, proxy\\)](#appusepath-proxy)\n- [WebSocket](#websocket)\n - [External WebSocket upgrade](#external-websocket-upgrade)\n- [Working examples](#working-examples)\n- [Recipes](#recipes)\n- [Compatible servers](#compatible-servers)\n- [Tests](#tests)\n- [Changelog](#changelog)\n- [License](#license)\n\n<!-- /MarkdownTOC -->\n\n## Install\n\n```javascript\n$ npm install --save-dev http-proxy-middleware\n```\n\n## Core concept\n\nProxy middleware configuration.\n\n#### proxy([context,] config)\n\n```javascript\nvar proxy = require('http-proxy-middleware');\n\nvar apiProxy = proxy('/api', { target: 'http://www.example.org' });\n// \\____/ \\_____________________________/\n// | |\n// context options\n\n// 'apiProxy' is now ready to be used as middleware in a server.\n```\n\n- **context**: Determine which requests should be proxied to the target host.\n (more on [context matching](#context-matching))\n- **options.target**: target host to proxy to. _(protocol + host)_\n\n(full list of [`http-proxy-middleware` configuration options](#options))\n\n#### proxy(uri [, config])\n\n```javascript\n// shorthand syntax for the example above:\nvar apiProxy = proxy('http://www.example.org/api');\n```\n\nMore about the [shorthand configuration](#shorthand).\n\n## Example\n\nAn example with `express` server.\n\n```javascript\n// include dependencies\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\n// proxy middleware options\nvar options = {\n target: 'http://www.example.org', // target host\n changeOrigin: true, // needed for virtual hosted sites\n ws: true, // proxy websockets\n pathRewrite: {\n '^/api/old-path': '/api/new-path', // rewrite path\n '^/api/remove/path': '/path' // remove base path\n },\n router: {\n // when request.headers.host == 'dev.localhost:3000',\n // override target 'http://www.example.org' to 'http://localhost:8000'\n 'dev.localhost:3000': 'http://localhost:8000'\n }\n};\n\n// create the proxy (without context)\nvar exampleProxy = proxy(options);\n\n// mount `exampleProxy` in web server\nvar app = express();\napp.use('/api', exampleProxy);\napp.listen(3000);\n```\n\n## Context matching\n\nProviding 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.\n\n[RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is used for context matching.\n\n```\n foo://example.com:8042/over/there?name=ferret#nose\n \\_/ \\______________/\\_________/ \\_________/ \\__/\n | | | | |\n scheme authority path query fragment\n```\n\n- **path matching**\n\n - `proxy({...})` - matches any path, all requests will be proxied.\n - `proxy('/', {...})` - matches any path, all requests will be proxied.\n - `proxy('/api', {...})` - matches paths starting with `/api`\n\n- **multiple path matching**\n\n - `proxy(['/api', '/ajax', '/someotherpath'], {...})`\n\n- **wildcard path matching**\n\n For fine-grained control you can use wildcard matching. Glob pattern matching is done by _micromatch_. Visit [micromatch](https://www.npmjs.com/package/micromatch) or [glob](https://www.npmjs.com/package/glob) for more globbing examples.\n\n - `proxy('**', {...})` matches any path, all requests will be proxied.\n - `proxy('**/*.html', {...})` matches any path which ends with `.html`\n - `proxy('/*.html', {...})` matches paths directly under path-absolute\n - `proxy('/api/**/*.html', {...})` matches requests ending with `.html` in the path of `/api`\n - `proxy(['/api/**', '/ajax/**'], {...})` combine multiple patterns\n - `proxy(['/api/**', '!**/bad.json'], {...})` exclusion\n\n **Note**: In multiple path matching, you cannot use string paths and wildcard paths together.\n\n- **custom matching**\n\n For full control you can provide a custom function to determine which requests should be proxied or not.\n\n ```javascript\n /**\n * @return {Boolean}\n */\n var filter = function(pathname, req) {\n return pathname.match('^/api') && req.method === 'GET';\n };\n\n var apiProxy = proxy(filter, { target: 'http://www.example.org' });\n ```\n\n## Options\n\n### http-proxy-middleware options\n\n- **option.pathRewrite**: object/function, rewrite target's url path. Object-keys will be used as _RegExp_ to match paths.\n\n ```javascript\n // rewrite path\n pathRewrite: {'^/old/api' : '/new/api'}\n\n // remove path\n pathRewrite: {'^/remove/api' : ''}\n\n // add base path\n pathRewrite: {'^/' : '/basepath/'}\n\n // custom rewriting\n pathRewrite: function (path, req) { return path.replace('/api', '/base/api') }\n\n // custom rewriting, returning Promise\n pathRewrite: async function (path, req) {\n var should_add_something = await httpRequestToDecideSomething(path);\n if (should_add_something) path += \"something\";\n return path;\n }\n\n ```\n\n- **option.router**: object/function, re-target `option.target` for specific requests.\n\n ```javascript\n // Use `host` and/or `path` to match requests. First match will be used.\n // The order of the configuration matters.\n router: {\n 'integration.localhost:3000' : 'http://localhost:8001', // host only\n 'staging.localhost:3000' : 'http://localhost:8002', // host only\n 'localhost:3000/api' : 'http://localhost:8003', // host + path\n '/rest' : 'http://localhost:8004' // path only\n }\n\n // Custom router function\n router: function(req) {\n return 'http://localhost:8004';\n }\n\n // Asynchronous router function which returns promise\n router: async function(req) {\n const url = await doSomeIO();\n return url;\n }\n ```\n\n- **option.logLevel**: string, ['debug', 'info', 'warn', 'error', 'silent']. Default: `'info'`\n\n- **option.logProvider**: function, modify or replace log provider. Default: `console`.\n\n ```javascript\n // simple replace\n function logProvider(provider) {\n // replace the default console log provider.\n return require('winston');\n }\n ```\n\n ```javascript\n // verbose replacement\n function logProvider(provider) {\n var logger = new (require('winston').Logger)();\n\n var myCustomProvider = {\n log: logger.log,\n debug: logger.debug,\n info: logger.info,\n warn: logger.warn,\n error: logger.error\n };\n return myCustomProvider;\n }\n ```\n\n### http-proxy events\n\nSubscribe to [http-proxy events](https://github.com/nodejitsu/node-http-proxy#listening-for-proxy-events):\n\n- **option.onError**: function, subscribe to http-proxy's `error` event for custom error handling.\n\n ```javascript\n function onError(err, req, res) {\n res.writeHead(500, {\n 'Content-Type': 'text/plain'\n });\n res.end(\n 'Something went wrong. And we are reporting a custom error message.'\n );\n }\n ```\n\n- **option.onProxyRes**: function, subscribe to http-proxy's `proxyRes` event.\n\n ```javascript\n function onProxyRes(proxyRes, req, res) {\n proxyRes.headers['x-added'] = 'foobar'; // add new header to response\n delete proxyRes.headers['x-removed']; // remove header from response\n }\n ```\n\n- **option.onProxyReq**: function, subscribe to http-proxy's `proxyReq` event.\n\n ```javascript\n function onProxyReq(proxyReq, req, res) {\n // add custom header to request\n proxyReq.setHeader('x-added', 'foobar');\n // or log the req\n }\n ```\n\n- **option.onProxyReqWs**: function, subscribe to http-proxy's `proxyReqWs` event.\n\n ```javascript\n function onProxyReqWs(proxyReq, req, socket, options, head) {\n // add custom header\n proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');\n }\n ```\n\n- **option.onOpen**: function, subscribe to http-proxy's `open` event.\n\n ```javascript\n function onOpen(proxySocket) {\n // listen for messages coming FROM the target here\n proxySocket.on('data', hybiParseAndLogMessage);\n }\n ```\n\n- **option.onClose**: function, subscribe to http-proxy's `close` event.\n ```javascript\n function onClose(res, socket, head) {\n // view disconnected websocket connections\n console.log('Client disconnected');\n }\n ```\n\n### http-proxy options\n\nThe following options are provided by the underlying [http-proxy](https://github.com/nodejitsu/node-http-proxy#options) library.\n\n- **option.target**: url string to be parsed with the url module\n- **option.forward**: url string to be parsed with the url module\n- **option.agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects)\n- **option.ssl**: object to be passed to https.createServer()\n- **option.ws**: true/false: if you want to proxy websockets\n- **option.xfwd**: true/false, adds x-forward headers\n- **option.secure**: true/false, if you want to verify the SSL Certs\n- **option.toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)\n- **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path\n- **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).\n- **option.localAddress** : Local interface string to bind for outgoing connections\n- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL\n- **option.preserveHeaderKeyCase**: true/false, Default: false - specify whether you want to keep letter case of response header key\n- **option.auth** : Basic authentication i.e. 'user:password' to compute an Authorization header.\n- **option.hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.\n- **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.\n- **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.\n- **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new domain, for example `cookieDomainRewrite: \"new.domain\"`. To remove the domain, use `cookieDomainRewrite: \"\"`.\n - Object: mapping of domains to new domains, use `\"*\"` to match all domains. \n For example keep one domain unchanged, rewrite one domain and remove other domains:\n ```\n cookieDomainRewrite: {\n \"unchanged.domain\": \"unchanged.domain\",\n \"old.domain\": \"new.domain\",\n \"*\": \"\"\n }\n ```\n- **option.cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new path, for example `cookiePathRewrite: \"/newPath/\"`. To remove the path, use `cookiePathRewrite: \"\"`. To set path to root use `cookiePathRewrite: \"/\"`.\n - Object: mapping of paths to new paths, use `\"*\"` to match all paths.\n For example, to keep one path unchanged, rewrite one path and remove other paths:\n ```\n cookiePathRewrite: {\n \"/unchanged.path/\": \"/unchanged.path/\",\n \"/old.path/\": \"/new.path/\",\n \"*\": \"\"\n }\n ```\n- **option.headers**: object, adds [request headers](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields). (Example: `{host:'www.example.org'}`)\n- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target\n- **option.timeout**: timeout (in millis) for incoming requests\n- **option.followRedirects**: true/false, Default: false - specify whether you want to follow redirects\n- **option.selfHandleResponse** true/false, if set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the `proxyRes` event\n- **option.buffer**: stream of data to send as the request body. Maybe you have some middleware that consumes the request stream before proxying it on e.g. If you read the body of a request into a field called 'req.rawbody' you could restream this field in the buffer option:\n\n ```\n 'use strict';\n\n const streamify = require('stream-array');\n const HttpProxy = require('http-proxy');\n const proxy = new HttpProxy();\n\n module.exports = (req, res, next) => {\n\n proxy.web(req, res, {\n target: 'http://localhost:4003/',\n buffer: streamify(req.rawBody)\n }, next);\n\n };\n ```\n\n## Shorthand\n\nUse the shorthand syntax when verbose configuration is not needed. The `context` and `option.target` will be automatically configured when shorthand is used. Options can still be used if needed.\n\n```javascript\nproxy('http://www.example.org:8000/api');\n// proxy('/api', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api/books/*/**.json');\n// proxy('/api/books/*/**.json', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api', { changeOrigin: true });\n// proxy('/api', {target: 'http://www.example.org:8000', changeOrigin: true});\n```\n\n### app.use(path, proxy)\n\nIf you want to use the server's `app.use` `path` parameter to match requests;\nCreate and mount the proxy without the http-proxy-middleware `context` parameter:\n\n```javascript\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\n```\n\n`app.use` documentation:\n\n- express: http://expressjs.com/en/4x/api.html#app.use\n- connect: https://github.com/senchalabs/connect#mount-middleware\n\n## WebSocket\n\n```javascript\n// verbose api\nproxy('/', { target: 'http://echo.websocket.org', ws: true });\n\n// shorthand\nproxy('http://echo.websocket.org', { ws: true });\n\n// shorter shorthand\nproxy('ws://echo.websocket.org');\n```\n\n### External WebSocket upgrade\n\nIn the previous WebSocket examples, http-proxy-middleware relies on a initial http request in order to listen to the http `upgrade` event. If you need to proxy WebSockets without the initial http request, you can subscribe to the server's http `upgrade` event manually.\n\n```javascript\nvar wsProxy = proxy('ws://echo.websocket.org', { changeOrigin: true });\n\nvar app = express();\napp.use(wsProxy);\n\nvar server = app.listen(3000);\nserver.on('upgrade', wsProxy.upgrade); // <-- subscribe to http 'upgrade'\n```\n\n## Working examples\n\nView and play around with [working examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples).\n\n- Browser-Sync ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/browser-sync/index.js))\n- express ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/express/index.js))\n- connect ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/connect/index.js))\n- WebSocket ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/websocket/index.js))\n\n## Recipes\n\nView the [recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes) for common use cases.\n\n## Compatible servers\n\n`http-proxy-middleware` is compatible with the following servers:\n\n- [connect](https://www.npmjs.com/package/connect)\n- [express](https://www.npmjs.com/package/express)\n- [browser-sync](https://www.npmjs.com/package/browser-sync)\n- [lite-server](https://www.npmjs.com/package/lite-server)\n- [grunt-contrib-connect](https://www.npmjs.com/package/grunt-contrib-connect)\n- [grunt-browser-sync](https://www.npmjs.com/package/grunt-browser-sync)\n- [gulp-connect](https://www.npmjs.com/package/gulp-connect)\n- [gulp-webserver](https://www.npmjs.com/package/gulp-webserver)\n\nSample implementations can be found in the [server recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes/servers.md).\n\n## Tests\n\nRun the test suite:\n\n```bash\n# install dependencies\n$ yarn\n\n# linting\n$ yarn lint\n$ yarn lint:fix\n\n# building (compile typescript to js)\n$ yarn build\n\n# unit tests\n$ yarn test\n\n# code coverage\n$ yarn cover\n```\n\n## Changelog\n\n- [View changelog](https://github.com/chimurai/http-proxy-middleware/blob/master/CHANGELOG.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2020 Steven Chim\n",
3958 "readmeFilename": "README.md",
3959 "gitHead": "b3cfae63a1b36a9184c2b314f8de64902d968206",
3960 "_id": "[email protected]",
3961 "_nodeVersion": "12.15.0",
3962 "_npmVersion": "6.13.4",
3963 "dist": {
3964 "integrity": "sha512-uI1yiC+bS3NcY8KBbZ9QpIdgLOoTUsJBb1HJYWlB1K6aTArwyFR1Tf1T73kyP3miEXoFI2tebsfTGbddm1e9XQ==",
3965 "shasum": "ff5cbd11863aaf7e0012d2ad7520625e2e840255",
3966 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.21.0-beta.3.tgz",
3967 "fileCount": 24,
3968 "unpackedSize": 59849,
3969 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRvx4CRA9TVsSAnZWagAA6U8P/j56q2SkaGQ4Q7P/KU/2\nzEdomyN+Zx1V9oysfRETL4IaZsIgkdM7lCQidhpSz1jn6ODHO3Hfj226ZvUz\nzefR3+QHT0TY+Ekk+uVA8Y5IygJR8TsXhwPpkXSQ2owPtu1hyD3LMSRu51LN\nJAV5ItkB3lgcL8dF2yKqqjju9Hi6tmzjnLdN1ax8/pPxecruhOXkepu30mqH\nk4OheovQ9t9Rgkeilng7N8hZ5V1IbRWfp/z924G7xA2+eSdJL2SM+B420fLK\nYV7DNGkTys8FznijyrYLafoR1Ss0AeAo8Ce1Xv6uJeyM8UvuLUP8sXkZSBWt\netIY8S/vwJwAzHBMvriyaFMBDrz2YaO5v/ZAyRd0FY8BpGEltvJElQpoJtI8\nFDNzimr1jIXQuZuVGQl89QDh2l2SYZvirX9Pg1jwQvzkOfiQRk7TImryensW\nwUZ4OaRIi/VJ94EZl11CIEZ1iWfYRRDXGgB8FNFQe5aqHyTj/OunDZ0p9aUT\ntDw3lPaNb240LPtPBAlnMVpPjbA5uTUo7s99FV5ByrjagXanPIkhe8GFO4Jd\nrCDFztheQnetD5Q5qy9lk59QVZG3Mgp+tmJWeitil0cA5/VvpK3aCVPUEnBR\nqh/uTV6Mdho++6F/D3HbbPtuHfTGzATMfRmb/bG3ULcH8bvQ/digWvhhyLoK\nLehD\r\n=lPlZ\r\n-----END PGP SIGNATURE-----\r\n"
3970 },
3971 "maintainers": [
3972 {
3973 "name": "chimurai",
3974 "email": "[email protected]"
3975 }
3976 ],
3977 "_npmUser": {
3978 "name": "chimurai",
3979 "email": "[email protected]"
3980 },
3981 "directories": {},
3982 "_npmOperationalInternal": {
3983 "host": "s3://npm-registry-packages",
3984 "tmp": "tmp/http-proxy-middleware_0.21.0-beta.3_1581710456295_0.6966047978814855"
3985 },
3986 "_hasShrinkwrap": false
3987 },
3988 "0.21.0": {
3989 "name": "http-proxy-middleware",
3990 "version": "0.21.0",
3991 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
3992 "main": "dist/index.js",
3993 "types": "dist/index.d.ts",
3994 "scripts": {
3995 "clean": "rm -rf dist && rm -rf coverage",
3996 "lint": "yarn lint:prettier && yarn lint:tslint",
3997 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
3998 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
3999 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
4000 "build": "tsc",
4001 "pretest": "yarn build",
4002 "test": "jest --runInBand",
4003 "precover": "yarn clean && yarn build",
4004 "cover": "jest --runInBand --coverage",
4005 "precoveralls": "yarn clean && yarn build",
4006 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
4007 "postcoveralls": "yarn clean",
4008 "prepare": "yarn clean && yarn build"
4009 },
4010 "repository": {
4011 "type": "git",
4012 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
4013 },
4014 "keywords": [
4015 "reverse",
4016 "proxy",
4017 "middleware",
4018 "http",
4019 "https",
4020 "connect",
4021 "express",
4022 "browser-sync",
4023 "gulp",
4024 "grunt-contrib-connect",
4025 "websocket",
4026 "ws",
4027 "cors"
4028 ],
4029 "author": {
4030 "name": "Steven Chim"
4031 },
4032 "license": "MIT",
4033 "bugs": {
4034 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
4035 },
4036 "homepage": "https://github.com/chimurai/http-proxy-middleware",
4037 "devDependencies": {
4038 "@commitlint/cli": "^8.0.0",
4039 "@commitlint/config-conventional": "^8.0.0",
4040 "@types/express": "^4.17.0",
4041 "@types/is-glob": "^4.0.0",
4042 "@types/jest": "^25.1.2",
4043 "@types/lodash": "^4.14.149",
4044 "@types/micromatch": "^4.0.1",
4045 "@types/node": "^12.6.2",
4046 "browser-sync": "^2.26.7",
4047 "connect": "^3.6.6",
4048 "coveralls": "^3.0.5",
4049 "express": "^4.16.4",
4050 "husky": "^3.0.0",
4051 "jest": "^25.1.0",
4052 "open": "^7.0.2",
4053 "prettier": "^1.19.1",
4054 "ts-jest": "^25.2.0",
4055 "tslint": "^6.0.0",
4056 "tslint-config-prettier": "^1.18.0",
4057 "typescript": "^3.7.5",
4058 "ws": "^7.1.0"
4059 },
4060 "dependencies": {
4061 "@types/http-proxy": "^1.17.3",
4062 "http-proxy": "^1.18.0",
4063 "is-glob": "^4.0.1",
4064 "lodash": "^4.17.15",
4065 "micromatch": "^4.0.2"
4066 },
4067 "engines": {
4068 "node": ">=8.0.0"
4069 },
4070 "husky": {
4071 "hooks": {
4072 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
4073 }
4074 },
4075 "commitlint": {
4076 "extends": [
4077 "@commitlint/config-conventional"
4078 ]
4079 },
4080 "gitHead": "b8f33210770878685202ceb7494e53399ed838a0",
4081 "_id": "[email protected]",
4082 "_nodeVersion": "12.15.0",
4083 "_npmVersion": "6.13.4",
4084 "dist": {
4085 "integrity": "sha512-4Arcl5QQ6pRMRJmtM1WVHKHkFAQn5uvw83XuNeqnMTOikDiCoTxv5/vdudhKQsF+1mtaAawrK2SEB1v2tYecdQ==",
4086 "shasum": "c6b1ca05174b5fbc57bee9485ffa0fa2f0dabeb0",
4087 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.21.0.tgz",
4088 "fileCount": 24,
4089 "unpackedSize": 59919,
4090 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeSYqmCRA9TVsSAnZWagAAZjEP/iJtDP2vl9xSaH2Ii8gC\nliwQiqsHwmscx2cWyp+77nuts/R1szQCiCISv4gkLuYIUBRpgnyQ4FcKk/vf\nUqcXxNzQNHbndlNxhbBdGU4tHOVdAIhhaN/r+8F3PFOyHqzwo8wTiO31T8U5\nDCkQ5SuZj8jCJaAzTkO2kS5Xtl1nCaQU/SBHGmIunE5pnBY294UyWLljwDfC\nlS2y2r3WDswqlSw9lguLwocv6iyeujG3GlFkLnM+IyY3O1LM8lT/iOkc4ETV\nRWZjHYv+98Djky9S7K7YsFle5cWnHdc41XyOfm2YDqSAQhc94XxMxGvXniyH\nQO15Y91hlWK/eZDWaaXXT8HzhOTiRzKXeHSo5Bv8ZaxROnGwYcSxFcMZmVRC\n50Bp1Iecy+HwbLs3DNBU06DNLRdcAedo15a8J+3I3J4blL9DJue5MSj4A2aR\nF5yzn0g976E8lTwOJEOZ802H4aTL7ifZWasioANPEQ8hPUr8ce/UVHqq2t8O\nz+k310fc+6Muu48ZMNItzFUABEWY3g49Oky/d54EIHRxcr4SESvC5vDyQ2wy\npc4wTbKyM0cOOL80SMV6jZZ/NRee9DH46FoOp+Jnidg+n0UQxJqhZRyLycSY\nCVBP3ohtFzMk35hUquIqg62Ebsh8yYHDWigAwviOCaB0GERAWj6k423sNdUF\naAQU\r\n=yWY4\r\n-----END PGP SIGNATURE-----\r\n"
4091 },
4092 "maintainers": [
4093 {
4094 "name": "chimurai",
4095 "email": "[email protected]"
4096 }
4097 ],
4098 "_npmUser": {
4099 "name": "chimurai",
4100 "email": "[email protected]"
4101 },
4102 "directories": {},
4103 "_npmOperationalInternal": {
4104 "host": "s3://npm-registry-packages",
4105 "tmp": "tmp/http-proxy-middleware_0.21.0_1581877926342_0.799923503941687"
4106 },
4107 "_hasShrinkwrap": false
4108 },
4109 "0.22.0-alpha": {
4110 "name": "http-proxy-middleware",
4111 "version": "0.22.0-alpha",
4112 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
4113 "main": "dist/index.js",
4114 "types": "dist/index.d.ts",
4115 "scripts": {
4116 "clean": "rm -rf dist && rm -rf coverage",
4117 "lint": "yarn lint:prettier && yarn lint:tslint",
4118 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
4119 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
4120 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
4121 "build": "tsc",
4122 "pretest": "yarn build",
4123 "test": "jest --runInBand",
4124 "precover": "yarn clean && yarn build",
4125 "cover": "jest --runInBand --coverage",
4126 "precoveralls": "yarn clean && yarn build",
4127 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
4128 "postcoveralls": "yarn clean",
4129 "prepare": "yarn clean && yarn build"
4130 },
4131 "repository": {
4132 "type": "git",
4133 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
4134 },
4135 "keywords": [
4136 "reverse",
4137 "proxy",
4138 "middleware",
4139 "http",
4140 "https",
4141 "connect",
4142 "express",
4143 "polka",
4144 "browser-sync",
4145 "gulp",
4146 "grunt-contrib-connect",
4147 "websocket",
4148 "ws",
4149 "cors"
4150 ],
4151 "author": {
4152 "name": "Steven Chim"
4153 },
4154 "license": "MIT",
4155 "bugs": {
4156 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
4157 },
4158 "homepage": "https://github.com/chimurai/http-proxy-middleware",
4159 "devDependencies": {
4160 "@commitlint/cli": "^8.0.0",
4161 "@commitlint/config-conventional": "^8.0.0",
4162 "@types/express": "^4.17.0",
4163 "@types/is-glob": "^4.0.0",
4164 "@types/jest": "^25.1.2",
4165 "@types/lodash": "^4.14.149",
4166 "@types/micromatch": "^4.0.1",
4167 "@types/node": "^12.6.2",
4168 "browser-sync": "^2.26.7",
4169 "connect": "^3.6.6",
4170 "coveralls": "^3.0.5",
4171 "express": "^4.16.4",
4172 "husky": "^3.0.0",
4173 "jest": "^25.1.0",
4174 "open": "^7.0.2",
4175 "prettier": "^1.19.1",
4176 "ts-jest": "^25.2.0",
4177 "tslint": "^6.0.0",
4178 "tslint-config-prettier": "^1.18.0",
4179 "typescript": "^3.7.5",
4180 "ws": "^7.1.0"
4181 },
4182 "dependencies": {
4183 "@types/http-proxy": "^1.17.3",
4184 "http-proxy": "^1.18.0",
4185 "is-glob": "^4.0.1",
4186 "lodash": "^4.17.15",
4187 "micromatch": "^4.0.2"
4188 },
4189 "engines": {
4190 "node": ">=8.0.0"
4191 },
4192 "husky": {
4193 "hooks": {
4194 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
4195 }
4196 },
4197 "commitlint": {
4198 "extends": [
4199 "@commitlint/config-conventional"
4200 ]
4201 },
4202 "readme": "# http-proxy-middleware\n\n[![Build Status](https://img.shields.io/travis/chimurai/http-proxy-middleware/master.svg?style=flat-square)](https://travis-ci.org/chimurai/http-proxy-middleware)\n[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square)](https://coveralls.io/r/chimurai/http-proxy-middleware)\n[![dependency Status](https://img.shields.io/david/chimurai/http-proxy-middleware.svg?style=flat-square)](https://david-dm.org/chimurai/http-proxy-middleware#info=dependencies)\n[![dependency Status](https://snyk.io/test/npm/http-proxy-middleware/badge.svg?style=flat-square)](https://snyk.io/test/npm/http-proxy-middleware)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nNode.js proxying made simple. Configure proxy middleware with ease for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express), [browser-sync](https://github.com/BrowserSync/browser-sync) and [many more](#compatible-servers).\n\nPowered by the popular Nodejitsu [`http-proxy`](https://github.com/nodejitsu/node-http-proxy). [![GitHub stars](https://img.shields.io/github/stars/nodejitsu/node-http-proxy.svg?style=social&label=Star)](https://github.com/nodejitsu/node-http-proxy)\n\n## TL;DR\n\nProxy `/api` requests to `http://www.example.org`\n\n```javascript\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\nvar app = express();\n\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\napp.listen(3000);\n\n// http://localhost:3000/api/foo/bar -> http://www.example.org/api/foo/bar\n```\n\n_All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options).\n\n:bulb: **Tip:** Set the option `changeOrigin` to `true` for [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based).\n\n## Table of Contents\n\n<!-- MarkdownTOC autolink=true bracket=round depth=2 -->\n\n- [Install](#install)\n- [Core concept](#core-concept)\n- [Example](#example)\n- [Context matching](#context-matching)\n- [Options](#options)\n - [http-proxy-middleware options](#http-proxy-middleware-options)\n - [http-proxy events](#http-proxy-events)\n - [http-proxy options](#http-proxy-options)\n- [Shorthand](#shorthand)\n - [app.use\\(path, proxy\\)](#appusepath-proxy)\n- [WebSocket](#websocket)\n - [External WebSocket upgrade](#external-websocket-upgrade)\n- [Working examples](#working-examples)\n- [Recipes](#recipes)\n- [Compatible servers](#compatible-servers)\n- [Tests](#tests)\n- [Changelog](#changelog)\n- [License](#license)\n\n<!-- /MarkdownTOC -->\n\n## Install\n\n```bash\n$ npm install --save-dev http-proxy-middleware\n```\n\n## Core concept\n\nProxy middleware configuration.\n\n#### proxy([context,] config)\n\n```javascript\nvar proxy = require('http-proxy-middleware');\n\nvar apiProxy = proxy('/api', { target: 'http://www.example.org' });\n// \\____/ \\_____________________________/\n// | |\n// context options\n\n// 'apiProxy' is now ready to be used as middleware in a server.\n```\n\n- **context**: Determine which requests should be proxied to the target host.\n (more on [context matching](#context-matching))\n- **options.target**: target host to proxy to. _(protocol + host)_\n\n(full list of [`http-proxy-middleware` configuration options](#options))\n\n#### proxy(uri [, config])\n\n```javascript\n// shorthand syntax for the example above:\nvar apiProxy = proxy('http://www.example.org/api');\n```\n\nMore about the [shorthand configuration](#shorthand).\n\n## Example\n\nAn example with `express` server.\n\n```javascript\n// include dependencies\nvar express = require('express');\nvar proxy = require('http-proxy-middleware');\n\n// proxy middleware options\nvar options = {\n target: 'http://www.example.org', // target host\n changeOrigin: true, // needed for virtual hosted sites\n ws: true, // proxy websockets\n pathRewrite: {\n '^/api/old-path': '/api/new-path', // rewrite path\n '^/api/remove/path': '/path' // remove base path\n },\n router: {\n // when request.headers.host == 'dev.localhost:3000',\n // override target 'http://www.example.org' to 'http://localhost:8000'\n 'dev.localhost:3000': 'http://localhost:8000'\n }\n};\n\n// create the proxy (without context)\nvar exampleProxy = proxy(options);\n\n// mount `exampleProxy` in web server\nvar app = express();\napp.use('/api', exampleProxy);\napp.listen(3000);\n```\n\n## Context matching\n\nProviding 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.\n\n[RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is used for context matching.\n\n```ascii\n foo://example.com:8042/over/there?name=ferret#nose\n \\_/ \\______________/\\_________/ \\_________/ \\__/\n | | | | |\n scheme authority path query fragment\n```\n\n- **path matching**\n\n - `proxy({...})` - matches any path, all requests will be proxied.\n - `proxy('/', {...})` - matches any path, all requests will be proxied.\n - `proxy('/api', {...})` - matches paths starting with `/api`\n\n- **multiple path matching**\n\n - `proxy(['/api', '/ajax', '/someotherpath'], {...})`\n\n- **wildcard path matching**\n\n For fine-grained control you can use wildcard matching. Glob pattern matching is done by _micromatch_. Visit [micromatch](https://www.npmjs.com/package/micromatch) or [glob](https://www.npmjs.com/package/glob) for more globbing examples.\n\n - `proxy('**', {...})` matches any path, all requests will be proxied.\n - `proxy('**/*.html', {...})` matches any path which ends with `.html`\n - `proxy('/*.html', {...})` matches paths directly under path-absolute\n - `proxy('/api/**/*.html', {...})` matches requests ending with `.html` in the path of `/api`\n - `proxy(['/api/**', '/ajax/**'], {...})` combine multiple patterns\n - `proxy(['/api/**', '!**/bad.json'], {...})` exclusion\n\n **Note**: In multiple path matching, you cannot use string paths and wildcard paths together.\n\n- **custom matching**\n\n For full control you can provide a custom function to determine which requests should be proxied or not.\n\n ```javascript\n /**\n * @return {Boolean}\n */\n var filter = function(pathname, req) {\n return pathname.match('^/api') && req.method === 'GET';\n };\n\n var apiProxy = proxy(filter, { target: 'http://www.example.org' });\n ```\n\n## Options\n\n### http-proxy-middleware options\n\n- **option.pathRewrite**: object/function, rewrite target's url path. Object-keys will be used as _RegExp_ to match paths.\n\n ```javascript\n // rewrite path\n pathRewrite: {'^/old/api' : '/new/api'}\n\n // remove path\n pathRewrite: {'^/remove/api' : ''}\n\n // add base path\n pathRewrite: {'^/' : '/basepath/'}\n\n // custom rewriting\n pathRewrite: function (path, req) { return path.replace('/api', '/base/api') }\n\n // custom rewriting, returning Promise\n pathRewrite: async function (path, req) {\n var should_add_something = await httpRequestToDecideSomething(path);\n if (should_add_something) path += \"something\";\n return path;\n }\n\n ```\n\n- **option.router**: object/function, re-target `option.target` for specific requests.\n\n ```javascript\n // Use `host` and/or `path` to match requests. First match will be used.\n // The order of the configuration matters.\n router: {\n 'integration.localhost:3000' : 'http://localhost:8001', // host only\n 'staging.localhost:3000' : 'http://localhost:8002', // host only\n 'localhost:3000/api' : 'http://localhost:8003', // host + path\n '/rest' : 'http://localhost:8004' // path only\n }\n\n // Custom router function\n router: function(req) {\n return 'http://localhost:8004';\n }\n\n // Asynchronous router function which returns promise\n router: async function(req) {\n const url = await doSomeIO();\n return url;\n }\n ```\n\n- **option.logLevel**: string, ['debug', 'info', 'warn', 'error', 'silent']. Default: `'info'`\n\n- **option.logProvider**: function, modify or replace log provider. Default: `console`.\n\n ```javascript\n // simple replace\n function logProvider(provider) {\n // replace the default console log provider.\n return require('winston');\n }\n ```\n\n ```javascript\n // verbose replacement\n function logProvider(provider) {\n var logger = new (require('winston').Logger)();\n\n var myCustomProvider = {\n log: logger.log,\n debug: logger.debug,\n info: logger.info,\n warn: logger.warn,\n error: logger.error\n };\n return myCustomProvider;\n }\n ```\n\n### http-proxy events\n\nSubscribe to [http-proxy events](https://github.com/nodejitsu/node-http-proxy#listening-for-proxy-events):\n\n- **option.onError**: function, subscribe to http-proxy's `error` event for custom error handling.\n\n ```javascript\n function onError(err, req, res) {\n res.writeHead(500, {\n 'Content-Type': 'text/plain'\n });\n res.end(\n 'Something went wrong. And we are reporting a custom error message.'\n );\n }\n ```\n\n- **option.onProxyRes**: function, subscribe to http-proxy's `proxyRes` event.\n\n ```javascript\n function onProxyRes(proxyRes, req, res) {\n proxyRes.headers['x-added'] = 'foobar'; // add new header to response\n delete proxyRes.headers['x-removed']; // remove header from response\n }\n ```\n\n- **option.onProxyReq**: function, subscribe to http-proxy's `proxyReq` event.\n\n ```javascript\n function onProxyReq(proxyReq, req, res) {\n // add custom header to request\n proxyReq.setHeader('x-added', 'foobar');\n // or log the req\n }\n ```\n\n- **option.onProxyReqWs**: function, subscribe to http-proxy's `proxyReqWs` event.\n\n ```javascript\n function onProxyReqWs(proxyReq, req, socket, options, head) {\n // add custom header\n proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');\n }\n ```\n\n- **option.onOpen**: function, subscribe to http-proxy's `open` event.\n\n ```javascript\n function onOpen(proxySocket) {\n // listen for messages coming FROM the target here\n proxySocket.on('data', hybiParseAndLogMessage);\n }\n ```\n\n- **option.onClose**: function, subscribe to http-proxy's `close` event.\n\n ```javascript\n function onClose(res, socket, head) {\n // view disconnected websocket connections\n console.log('Client disconnected');\n }\n ```\n\n### http-proxy options\n\nThe following options are provided by the underlying [http-proxy](https://github.com/nodejitsu/node-http-proxy#options) library.\n\n- **option.target**: url string to be parsed with the url module\n- **option.forward**: url string to be parsed with the url module\n- **option.agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects)\n- **option.ssl**: object to be passed to https.createServer()\n- **option.ws**: true/false: if you want to proxy websockets\n- **option.xfwd**: true/false, adds x-forward headers\n- **option.secure**: true/false, if you want to verify the SSL Certs\n- **option.toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)\n- **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path\n- **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).\n- **option.localAddress** : Local interface string to bind for outgoing connections\n- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL\n- **option.preserveHeaderKeyCase**: true/false, Default: false - specify whether you want to keep letter case of response header key\n- **option.auth** : Basic authentication i.e. 'user:password' to compute an Authorization header.\n- **option.hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.\n- **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.\n- **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.\n- **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new domain, for example `cookieDomainRewrite: \"new.domain\"`. To remove the domain, use `cookieDomainRewrite: \"\"`.\n - Object: mapping of domains to new domains, use `\"*\"` to match all domains. \n For example keep one domain unchanged, rewrite one domain and remove other domains:\n ```json\n cookieDomainRewrite: {\n \"unchanged.domain\": \"unchanged.domain\",\n \"old.domain\": \"new.domain\",\n \"*\": \"\"\n }\n ```\n- **option.cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new path, for example `cookiePathRewrite: \"/newPath/\"`. To remove the path, use `cookiePathRewrite: \"\"`. To set path to root use `cookiePathRewrite: \"/\"`.\n - Object: mapping of paths to new paths, use `\"*\"` to match all paths.\n For example, to keep one path unchanged, rewrite one path and remove other paths:\n ```json\n cookiePathRewrite: {\n \"/unchanged.path/\": \"/unchanged.path/\",\n \"/old.path/\": \"/new.path/\",\n \"*\": \"\"\n }\n ```\n- **option.headers**: object, adds [request headers](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields). (Example: `{host:'www.example.org'}`)\n- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target\n- **option.timeout**: timeout (in millis) for incoming requests\n- **option.followRedirects**: true/false, Default: false - specify whether you want to follow redirects\n- **option.selfHandleResponse** true/false, if set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the `proxyRes` event\n- **option.buffer**: stream of data to send as the request body. Maybe you have some middleware that consumes the request stream before proxying it on e.g. If you read the body of a request into a field called 'req.rawbody' you could restream this field in the buffer option:\n\n ```javascript\n 'use strict';\n\n const streamify = require('stream-array');\n const HttpProxy = require('http-proxy');\n const proxy = new HttpProxy();\n\n module.exports = (req, res, next) => {\n proxy.web(\n req,\n res,\n {\n target: 'http://localhost:4003/',\n buffer: streamify(req.rawBody)\n },\n next\n );\n };\n ```\n\n## Shorthand\n\nUse the shorthand syntax when verbose configuration is not needed. The `context` and `option.target` will be automatically configured when shorthand is used. Options can still be used if needed.\n\n```javascript\nproxy('http://www.example.org:8000/api');\n// proxy('/api', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api/books/*/**.json');\n// proxy('/api/books/*/**.json', {target: 'http://www.example.org:8000'});\n\nproxy('http://www.example.org:8000/api', { changeOrigin: true });\n// proxy('/api', {target: 'http://www.example.org:8000', changeOrigin: true});\n```\n\n### app.use(path, proxy)\n\nIf you want to use the server's `app.use` `path` parameter to match requests;\nCreate and mount the proxy without the http-proxy-middleware `context` parameter:\n\n```javascript\napp.use(\n '/api',\n proxy({ target: 'http://www.example.org', changeOrigin: true })\n);\n```\n\n`app.use` documentation:\n\n- express: http://expressjs.com/en/4x/api.html#app.use\n- connect: https://github.com/senchalabs/connect#mount-middleware\n- polka: https://github.com/lukeed/polka#usebase-fn\n\n## WebSocket\n\n```javascript\n// verbose api\nproxy('/', { target: 'http://echo.websocket.org', ws: true });\n\n// shorthand\nproxy('http://echo.websocket.org', { ws: true });\n\n// shorter shorthand\nproxy('ws://echo.websocket.org');\n```\n\n### External WebSocket upgrade\n\nIn the previous WebSocket examples, http-proxy-middleware relies on a initial http request in order to listen to the http `upgrade` event. If you need to proxy WebSockets without the initial http request, you can subscribe to the server's http `upgrade` event manually.\n\n```javascript\nvar wsProxy = proxy('ws://echo.websocket.org', { changeOrigin: true });\n\nvar app = express();\napp.use(wsProxy);\n\nvar server = app.listen(3000);\nserver.on('upgrade', wsProxy.upgrade); // <-- subscribe to http 'upgrade'\n```\n\n## Working examples\n\nView and play around with [working examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples).\n\n- Browser-Sync ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/browser-sync/index.js))\n- express ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/express/index.js))\n- connect ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/connect/index.js))\n- WebSocket ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/websocket/index.js))\n\n## Recipes\n\nView the [recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes) for common use cases.\n\n## Compatible servers\n\n`http-proxy-middleware` is compatible with the following servers:\n\n- [connect](https://www.npmjs.com/package/connect)\n- [express](https://www.npmjs.com/package/express)\n- [browser-sync](https://www.npmjs.com/package/browser-sync)\n- [lite-server](https://www.npmjs.com/package/lite-server)\n- [polka](https://github.com/lukeed/polka)\n- [grunt-contrib-connect](https://www.npmjs.com/package/grunt-contrib-connect)\n- [grunt-browser-sync](https://www.npmjs.com/package/grunt-browser-sync)\n- [gulp-connect](https://www.npmjs.com/package/gulp-connect)\n- [gulp-webserver](https://www.npmjs.com/package/gulp-webserver)\n\nSample implementations can be found in the [server recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes/servers.md).\n\n## Tests\n\nRun the test suite:\n\n```bash\n# install dependencies\n$ yarn\n\n# linting\n$ yarn lint\n$ yarn lint:fix\n\n# building (compile typescript to js)\n$ yarn build\n\n# unit tests\n$ yarn test\n\n# code coverage\n$ yarn cover\n```\n\n## Changelog\n\n- [View changelog](https://github.com/chimurai/http-proxy-middleware/blob/master/CHANGELOG.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2020 Steven Chim\n",
4203 "readmeFilename": "README.md",
4204 "gitHead": "d2740d77c1232935733490f17a3ea36246d30a43",
4205 "_id": "[email protected]",
4206 "_nodeVersion": "12.15.0",
4207 "_npmVersion": "6.13.4",
4208 "dist": {
4209 "integrity": "sha512-8Pv0BDLHxYR28wxIkFzV8bO6B1N1YvdWSRrs49iHWLTYwzKPhXp8TyFaK036+eoqAgm03BkmO1HV+11oADhX2A==",
4210 "shasum": "b08602cf1b9392d8a989159af10cf7f7e5dfea60",
4211 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.22.0-alpha.tgz",
4212 "fileCount": 24,
4213 "unpackedSize": 58109,
4214 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeSwDoCRA9TVsSAnZWagAAAUMP/A17Tl8IIL5KeSQ+qqEQ\nMxJ/YRjJH7FOiyVlT9sINW+ytfD+3lJtOTD5MNY6ddg3EgBvPSmfHu3dqexA\n3735KbZ/eCkhIFg2vhlbrjaJrFZzZfUDiXd4rlPOptmrjRRhfPIDyKydXpdK\niBos2k6ahHICratlCnNNbiZFWO3Gv0HzAWDPEDLoy3423LnqsZrJPHLgnujb\nxoKwWrc3YyMlrkQ/+9bBVB1xchqyCBKtG6khRGQGm7f6VMSr940jqqh6WVfs\nHefWsNxmqpVK4ZFUD0hdBlw3ypnFfGFa8kfbfFi8AqoQL6+T7WtuQunNO1fG\nultSQVaB/jd3kzNzdtBba37ZU80sCgv2F3smu8Er9YqaRVNjtMzT/ThHqeHP\ntPys31QSJic9LD6Af4ml2n7O+7utuV6/Q1TLQAsNR+iAjde1RcltCTLgIyGR\n4XUrFm+VKmKMtzU3Rov1jqn58ZbJJyYhbm+bhGCXBapmZxpossJHA8HHW0Qd\nn6m6JHBFMJY5Y2uv2m1rCyjdgVv6etjPFzEvHSBarL1RHj2xaLPBXSPXZM1P\nqf5qy0qb5Pv+zbiLYD3j1GmzzYYuJkdjQihgN4wyM7wSZS8O8PtTVLuhsXUM\n9Gy8jW+dKUA88JSQ1v3Qaw17Xldj2oeg9NjhyBJaj4d6+rEOsgZRw2M+JkC/\n4K8/\r\n=LYOP\r\n-----END PGP SIGNATURE-----\r\n"
4215 },
4216 "maintainers": [
4217 {
4218 "name": "chimurai",
4219 "email": "[email protected]"
4220 }
4221 ],
4222 "_npmUser": {
4223 "name": "chimurai",
4224 "email": "[email protected]"
4225 },
4226 "directories": {},
4227 "_npmOperationalInternal": {
4228 "host": "s3://npm-registry-packages",
4229 "tmp": "tmp/http-proxy-middleware_0.22.0-alpha_1581973735722_0.1378931847480287"
4230 },
4231 "_hasShrinkwrap": false
4232 },
4233 "1.0.0": {
4234 "name": "http-proxy-middleware",
4235 "version": "1.0.0",
4236 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
4237 "main": "dist/index.js",
4238 "types": "dist/index.d.ts",
4239 "scripts": {
4240 "clean": "rm -rf dist && rm -rf coverage",
4241 "lint": "yarn lint:prettier && yarn lint:tslint",
4242 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
4243 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
4244 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
4245 "build": "tsc",
4246 "pretest": "yarn build",
4247 "test": "jest --runInBand",
4248 "precover": "yarn clean && yarn build",
4249 "cover": "jest --runInBand --coverage",
4250 "precoveralls": "yarn clean && yarn build",
4251 "coveralls": "jest --runInBand --coverage --coverageReporters=text-lcov | coveralls",
4252 "postcoveralls": "yarn clean",
4253 "prepare": "yarn clean && yarn build"
4254 },
4255 "repository": {
4256 "type": "git",
4257 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
4258 },
4259 "keywords": [
4260 "reverse",
4261 "proxy",
4262 "middleware",
4263 "http",
4264 "https",
4265 "connect",
4266 "express",
4267 "polka",
4268 "browser-sync",
4269 "gulp",
4270 "grunt-contrib-connect",
4271 "websocket",
4272 "ws",
4273 "cors"
4274 ],
4275 "author": {
4276 "name": "Steven Chim"
4277 },
4278 "license": "MIT",
4279 "bugs": {
4280 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
4281 },
4282 "homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
4283 "devDependencies": {
4284 "@commitlint/cli": "^8.0.0",
4285 "@commitlint/config-conventional": "^8.0.0",
4286 "@types/express": "^4.17.0",
4287 "@types/is-glob": "^4.0.0",
4288 "@types/jest": "^25.1.2",
4289 "@types/lodash": "^4.14.149",
4290 "@types/micromatch": "^4.0.1",
4291 "@types/node": "^12.6.2",
4292 "browser-sync": "^2.26.7",
4293 "connect": "^3.6.6",
4294 "coveralls": "^3.0.5",
4295 "express": "^4.16.4",
4296 "husky": "^3.0.0",
4297 "jest": "^25.1.0",
4298 "open": "^7.0.2",
4299 "prettier": "^1.19.1",
4300 "ts-jest": "^25.2.0",
4301 "tslint": "^6.0.0",
4302 "tslint-config-prettier": "^1.18.0",
4303 "typescript": "^3.7.5",
4304 "ws": "^7.1.0"
4305 },
4306 "dependencies": {
4307 "@types/http-proxy": "^1.17.3",
4308 "http-proxy": "^1.18.0",
4309 "is-glob": "^4.0.1",
4310 "lodash": "^4.17.15",
4311 "micromatch": "^4.0.2"
4312 },
4313 "engines": {
4314 "node": ">=8.0.0"
4315 },
4316 "husky": {
4317 "hooks": {
4318 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
4319 }
4320 },
4321 "commitlint": {
4322 "extends": [
4323 "@commitlint/config-conventional"
4324 ]
4325 },
4326 "gitHead": "aefdbe8688f3e1491a9e94c08e17fb6b3a0d6a8f",
4327 "_id": "[email protected]",
4328 "_nodeVersion": "12.15.0",
4329 "_npmVersion": "6.13.4",
4330 "dist": {
4331 "integrity": "sha512-1yM4gD7R/U9R5AwA6STkoj8JfjnMeZIUrd8e23Yc14A7xVVLUWlAikgvidklwq1UOroJ07sc6NWNULeOJMYOeQ==",
4332 "shasum": "984bbbb38cda7ce4495889388afe8b0f39ccd5c8",
4333 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-1.0.0.tgz",
4334 "fileCount": 24,
4335 "unpackedSize": 59829,
4336 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTGV+CRA9TVsSAnZWagAAM7YP/0TU7JcGzVw5x2sI7pw0\npHU7A0Ut3ZBPSm7QittvCrb7XEdOGLMj7bwIUm4f83MJzxT97zogJWYQ+Tki\nOfRH86TIVuoo4JTMz5yv6DxjdWTXfMN11cZ33xFNZj15U/uRPg6IiFxImK7A\nwPq3LbcKfpDZQIfyrT2ntEesWZ/KLacF7ICaVgDgmld12Ia3fyj1yH5ZC4bE\n27PniIvlOIASPWCfu4VzMTfxv3sf3lWGRv6sNzuLdq5hI1/Z5iE4SNgSiWN3\nnVJ1BfeaYqEphBYVBy7ZCeneOum3m/5ibBXK/Za1tz392cEiTcXXekbguhE/\nleT8tgRReug3vdWPIhKeXMp2PWEdcNHH5T/Juuv9d+dvgStitJdLzr4p06L1\nDca+NeUEDBD7wA+ohAzy6Nw6EgKfrQo8sNOZ5pYJu19D6b8RMLoCY8vO80gQ\nFAumAzl/dtAFw1WQ8wPBewS2/iNXNpKTpz+7odfuiI7IZahD9piPoNFSqrIL\nNUyJwshUGwYyR4fypIh+XSR3zDIZ7c04jIiRx7B7IU8wMdX5owCKvs1UtC0j\nixEWjO8xqZxLyBJNuvK4TEc0bntol4CEZZW5dyvVELhhU/QiBnkRLF6eKeI4\nmtIGQj2YRUoaEkDsYc1gr2H3ENkCtDxHpeBjibKpvxofQYR5QkUz8wLajwOj\nivD6\r\n=Pbr3\r\n-----END PGP SIGNATURE-----\r\n"
4337 },
4338 "maintainers": [
4339 {
4340 "name": "chimurai",
4341 "email": "[email protected]"
4342 }
4343 ],
4344 "_npmUser": {
4345 "name": "chimurai",
4346 "email": "[email protected]"
4347 },
4348 "directories": {},
4349 "_npmOperationalInternal": {
4350 "host": "s3://npm-registry-packages",
4351 "tmp": "tmp/http-proxy-middleware_1.0.0_1582065022028_0.619826721419185"
4352 },
4353 "_hasShrinkwrap": false
4354 },
4355 "1.0.1": {
4356 "name": "http-proxy-middleware",
4357 "version": "1.0.1",
4358 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
4359 "main": "dist/index.js",
4360 "types": "dist/index.d.ts",
4361 "scripts": {
4362 "clean": "rm -rf dist && rm -rf coverage",
4363 "lint": "yarn lint:prettier && yarn lint:tslint",
4364 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
4365 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
4366 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
4367 "build": "tsc",
4368 "pretest": "yarn build",
4369 "test": "jest",
4370 "precover": "yarn clean && yarn build",
4371 "cover": "jest --coverage",
4372 "precoveralls": "yarn clean && yarn build",
4373 "coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
4374 "postcoveralls": "yarn clean",
4375 "prepare": "yarn clean && yarn build"
4376 },
4377 "repository": {
4378 "type": "git",
4379 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
4380 },
4381 "keywords": [
4382 "reverse",
4383 "proxy",
4384 "middleware",
4385 "http",
4386 "https",
4387 "connect",
4388 "express",
4389 "polka",
4390 "browser-sync",
4391 "gulp",
4392 "grunt-contrib-connect",
4393 "websocket",
4394 "ws",
4395 "cors"
4396 ],
4397 "author": {
4398 "name": "Steven Chim"
4399 },
4400 "license": "MIT",
4401 "bugs": {
4402 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
4403 },
4404 "homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
4405 "devDependencies": {
4406 "@commitlint/cli": "^8.3.5",
4407 "@commitlint/config-conventional": "^8.3.4",
4408 "@types/express": "^4.17.2",
4409 "@types/is-glob": "^4.0.1",
4410 "@types/jest": "^25.1.3",
4411 "@types/lodash": "^4.14.149",
4412 "@types/micromatch": "^4.0.1",
4413 "@types/node": "^13.7.4",
4414 "@types/supertest": "^2.0.8",
4415 "browser-sync": "^2.26.7",
4416 "connect": "^3.7.0",
4417 "coveralls": "^3.0.5",
4418 "express": "^4.17.1",
4419 "husky": "^4.2.3",
4420 "jest": "^25.1.0",
4421 "lint-staged": "^10.0.7",
4422 "mockttp": "^0.19.3",
4423 "open": "^7.0.2",
4424 "prettier": "^1.19.1",
4425 "supertest": "^4.0.2",
4426 "ts-jest": "^25.2.0",
4427 "tslint": "^6.0.0",
4428 "tslint-config-prettier": "^1.18.0",
4429 "typescript": "^3.8.2",
4430 "ws": "^7.2.1"
4431 },
4432 "dependencies": {
4433 "@types/http-proxy": "^1.17.3",
4434 "http-proxy": "^1.18.0",
4435 "is-glob": "^4.0.1",
4436 "lodash": "^4.17.15",
4437 "micromatch": "^4.0.2"
4438 },
4439 "engines": {
4440 "node": ">=8.0.0"
4441 },
4442 "husky": {
4443 "hooks": {
4444 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
4445 "pre-commit": "lint-staged"
4446 }
4447 },
4448 "commitlint": {
4449 "extends": [
4450 "@commitlint/config-conventional"
4451 ]
4452 },
4453 "gitHead": "23522c7a88098e2e18d4a836e41c3dde9d55c4a6",
4454 "_id": "[email protected]",
4455 "_nodeVersion": "12.15.0",
4456 "_npmVersion": "6.13.4",
4457 "dist": {
4458 "integrity": "sha512-tVLWnJMEUANithPrWeYgReU+mi6/BJOlyvWKQGS4k8L+j2ZjituJdXhejd31X5J8Ux0SSIH7Iw+RItH9bwkGcw==",
4459 "shasum": "a87ee6564991faca4844ae4ab1cf4221279c28f0",
4460 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-1.0.1.tgz",
4461 "fileCount": 25,
4462 "unpackedSize": 208005,
4463 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWlukCRA9TVsSAnZWagAA8aQQAIZe1PCCvYVOjxk/LoCc\nRi8rEWdjcQXxJDTbsQqjPtYlEgRb2ypw1liL6iauPyXQ1e/WVEJasIpKB7RC\nyn7SLWEvVXROrMibhzJbs0XYBzBqyp101YOcgNXbOVAbQo32/me0+bK0iddb\nkvzh8OYet+qy2bX0jEFWVnCiL6bnqj7nV8508bmov+u9lzeb1O4wef0hAfMM\noU1pomt0cJEWegP5bdCqEx2AOChxtuZYTZftsrCs0TJHFmBYaz/jvpLwNRYc\ntRq636hbYWKxVCJAGOy4X0IEVZOsW3889dOqDoCbtLMkJcp0Xvj0+XaQcnU4\nDqaLoicKCiREd1OJewTjL6TZfT1zasOSyZfTnbfivw0TcSBR0w5VgutF9fb1\n1w9M++9ClJn8OSrDoYTs5V861dTQU1wMD5Rt1OFAYySyzMrcuX1YOIrNzMKO\n1fbTk60vOddQKwf/fCg8hLIv0t0fmLCLV7Ed7aYO29u4i3Va3Z66bgrANVUf\nwO6ade7yTBSfkAHEE8qJcQ/fUBPqbfnu7HrBumk3LHpyrG+sOOm/ABJgQO9m\niw0uWcqBcv5zjtqUSVslFfxyN7L10QpfhTSinprWkOiwWJPVNtiU0nSeCbO9\nAdKwdobuZVN1NWl1Rwxe/H4xoLVpnexO7FBoWsxpgQCjKwICu/f6j3ixau3B\nvvcl\r\n=Hbik\r\n-----END PGP SIGNATURE-----\r\n"
4464 },
4465 "maintainers": [
4466 {
4467 "name": "chimurai",
4468 "email": "[email protected]"
4469 }
4470 ],
4471 "_npmUser": {
4472 "name": "chimurai",
4473 "email": "[email protected]"
4474 },
4475 "directories": {},
4476 "_npmOperationalInternal": {
4477 "host": "s3://npm-registry-packages",
4478 "tmp": "tmp/http-proxy-middleware_1.0.1_1582980003393_0.47823463577926817"
4479 },
4480 "_hasShrinkwrap": false
4481 },
4482 "1.0.2": {
4483 "name": "http-proxy-middleware",
4484 "version": "1.0.2",
4485 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
4486 "main": "dist/index.js",
4487 "types": "dist/index.d.ts",
4488 "scripts": {
4489 "clean": "rm -rf dist && rm -rf coverage",
4490 "lint": "yarn lint:prettier && yarn lint:tslint",
4491 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
4492 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
4493 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
4494 "build": "tsc",
4495 "pretest": "yarn build",
4496 "test": "jest",
4497 "precover": "yarn clean && yarn build",
4498 "cover": "jest --coverage",
4499 "precoveralls": "yarn clean && yarn build",
4500 "coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
4501 "postcoveralls": "yarn clean",
4502 "prepare": "yarn clean && yarn build"
4503 },
4504 "repository": {
4505 "type": "git",
4506 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
4507 },
4508 "keywords": [
4509 "reverse",
4510 "proxy",
4511 "middleware",
4512 "http",
4513 "https",
4514 "connect",
4515 "express",
4516 "polka",
4517 "browser-sync",
4518 "gulp",
4519 "grunt-contrib-connect",
4520 "websocket",
4521 "ws",
4522 "cors"
4523 ],
4524 "author": {
4525 "name": "Steven Chim"
4526 },
4527 "license": "MIT",
4528 "bugs": {
4529 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
4530 },
4531 "homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
4532 "devDependencies": {
4533 "@commitlint/cli": "^8.3.5",
4534 "@commitlint/config-conventional": "^8.3.4",
4535 "@types/express": "^4.17.2",
4536 "@types/is-glob": "^4.0.1",
4537 "@types/jest": "^25.1.3",
4538 "@types/lodash": "^4.14.149",
4539 "@types/micromatch": "^4.0.1",
4540 "@types/node": "^13.7.4",
4541 "@types/supertest": "^2.0.8",
4542 "browser-sync": "^2.26.7",
4543 "connect": "^3.7.0",
4544 "coveralls": "^3.0.5",
4545 "express": "^4.17.1",
4546 "husky": "^4.2.3",
4547 "jest": "^25.1.0",
4548 "lint-staged": "^10.0.7",
4549 "mockttp": "^0.19.3",
4550 "open": "^7.0.2",
4551 "prettier": "^1.19.1",
4552 "supertest": "^4.0.2",
4553 "ts-jest": "^25.2.0",
4554 "tslint": "^6.0.0",
4555 "tslint-config-prettier": "^1.18.0",
4556 "typescript": "^3.8.2",
4557 "ws": "^7.2.1"
4558 },
4559 "dependencies": {
4560 "@types/http-proxy": "^1.17.3",
4561 "http-proxy": "^1.18.0",
4562 "is-glob": "^4.0.1",
4563 "lodash": "^4.17.15",
4564 "micromatch": "^4.0.2"
4565 },
4566 "engines": {
4567 "node": ">=8.0.0"
4568 },
4569 "husky": {
4570 "hooks": {
4571 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
4572 "pre-commit": "lint-staged"
4573 }
4574 },
4575 "commitlint": {
4576 "extends": [
4577 "@commitlint/config-conventional"
4578 ]
4579 },
4580 "gitHead": "573a8c45fbdf6b41ea99a8d8216d43f2455bb604",
4581 "_id": "[email protected]",
4582 "_nodeVersion": "12.16.1",
4583 "_npmVersion": "6.13.4",
4584 "dist": {
4585 "integrity": "sha512-JHBdMgynLHdKXK9I3BjP8XUKERBCqxvA7dtWj2Da5Bqdo2CRCRQMuUdI36eK1FUFyh6JFIOCBQiQ2ZS+LOs7ww==",
4586 "shasum": "63e8d6b039c72e7148e410e7a4690be6dc1a3b8d",
4587 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-1.0.2.tgz",
4588 "fileCount": 25,
4589 "unpackedSize": 208382,
4590 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebNtZCRA9TVsSAnZWagAAYwcP/AmPitZl+Q2IzgLeRld3\n1OyjjdhrxiDCAT3Wqa319URhySL7Inxog2Omb8wI5degmArsZhjtQEenae3D\nOacaoi3gKHbOQn6cUoaGU+4Fb0di3S1DbOlN534hJDaoORewBrvfM1AHCRV4\ndSgdTaCDPzuFytzfowVM6148/jXXk1GQPW/i44lRnHCWsjoOuyfaheyj8BHg\n4Lu70bEQB7Qg+QwPiCtdhsiHId60oqrsOvyUo2Ux3EJDkNB7pMsOYW5ALb28\n9MHmmEpq1CcxWy2hv+l9J3IqzfQ8WbdjHU/YfbcQpT0Wx+rubkDpcMHbYVsz\n8quMiHAT0M4ebXt+H5ez4jd/b/iXSTEKf0yRYCAvwwrGPTsgu4suPevgJSq0\ngkQWikIDzGIfQCRDyEv0oNC9vJytG8ttjvyB3ztG6q9PUC/HoR4fC+LR+hlC\na/bItafs8/21X6e0mqKuMhPr6TJnyROGJ/HxayizRjG4/Lgps0GKXRHpp8Jr\n6mKClZWbFi3aflSbvAWRhIM6qvFL0kWgxlVPbUnzeOVRy4Nujjft0JvdoDd+\nN+av6tsasYEclgFsKzloiO8eQ73J6/VxcbNz1q0U5l6FaAqa3QuI0i+75Bh0\nP6Rii0A31vlReadrVYDwtUniZqaN/l+8CdcOQpbIm1f0/5ElAJX2rXdjCD2X\nXk6y\r\n=bgRe\r\n-----END PGP SIGNATURE-----\r\n"
4591 },
4592 "maintainers": [
4593 {
4594 "name": "chimurai",
4595 "email": "[email protected]"
4596 }
4597 ],
4598 "_npmUser": {
4599 "name": "chimurai",
4600 "email": "[email protected]"
4601 },
4602 "directories": {},
4603 "_npmOperationalInternal": {
4604 "host": "s3://npm-registry-packages",
4605 "tmp": "tmp/http-proxy-middleware_1.0.2_1584192345027_0.7979243440019215"
4606 },
4607 "_hasShrinkwrap": false
4608 },
4609 "1.0.3": {
4610 "name": "http-proxy-middleware",
4611 "version": "1.0.3",
4612 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
4613 "main": "dist/index.js",
4614 "types": "dist/index.d.ts",
4615 "scripts": {
4616 "clean": "rm -rf dist && rm -rf coverage",
4617 "lint": "yarn lint:prettier && yarn lint:tslint",
4618 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
4619 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
4620 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
4621 "build": "tsc",
4622 "pretest": "yarn build",
4623 "test": "jest",
4624 "precover": "yarn clean && yarn build",
4625 "cover": "jest --coverage",
4626 "precoveralls": "yarn clean && yarn build",
4627 "coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
4628 "postcoveralls": "yarn clean",
4629 "prepare": "yarn clean && yarn build && rm dist/tsconfig.tsbuildinfo"
4630 },
4631 "repository": {
4632 "type": "git",
4633 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
4634 },
4635 "keywords": [
4636 "reverse",
4637 "proxy",
4638 "middleware",
4639 "http",
4640 "https",
4641 "connect",
4642 "express",
4643 "polka",
4644 "browser-sync",
4645 "gulp",
4646 "grunt-contrib-connect",
4647 "websocket",
4648 "ws",
4649 "cors"
4650 ],
4651 "author": {
4652 "name": "Steven Chim"
4653 },
4654 "license": "MIT",
4655 "bugs": {
4656 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
4657 },
4658 "homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
4659 "devDependencies": {
4660 "@commitlint/cli": "^8.3.5",
4661 "@commitlint/config-conventional": "^8.3.4",
4662 "@types/express": "^4.17.2",
4663 "@types/is-glob": "^4.0.1",
4664 "@types/jest": "^25.1.3",
4665 "@types/lodash": "^4.14.149",
4666 "@types/micromatch": "^4.0.1",
4667 "@types/node": "^13.7.4",
4668 "@types/supertest": "^2.0.8",
4669 "browser-sync": "^2.26.7",
4670 "connect": "^3.7.0",
4671 "coveralls": "^3.0.5",
4672 "express": "^4.17.1",
4673 "husky": "^4.2.3",
4674 "jest": "^25.1.0",
4675 "lint-staged": "^10.0.7",
4676 "mockttp": "^0.19.3",
4677 "open": "^7.0.2",
4678 "prettier": "^1.19.1",
4679 "supertest": "^4.0.2",
4680 "ts-jest": "^25.2.0",
4681 "tslint": "^6.0.0",
4682 "tslint-config-prettier": "^1.18.0",
4683 "typescript": "^3.8.2",
4684 "ws": "^7.2.1"
4685 },
4686 "dependencies": {
4687 "@types/http-proxy": "^1.17.3",
4688 "http-proxy": "^1.18.0",
4689 "is-glob": "^4.0.1",
4690 "lodash": "^4.17.15",
4691 "micromatch": "^4.0.2"
4692 },
4693 "engines": {
4694 "node": ">=8.0.0"
4695 },
4696 "husky": {
4697 "hooks": {
4698 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
4699 "pre-commit": "lint-staged"
4700 }
4701 },
4702 "commitlint": {
4703 "extends": [
4704 "@commitlint/config-conventional"
4705 ]
4706 },
4707 "gitHead": "e767654221fbc866adf16e3c0c96c29ca6800220",
4708 "_id": "[email protected]",
4709 "_nodeVersion": "12.16.1",
4710 "_npmVersion": "6.13.4",
4711 "dist": {
4712 "integrity": "sha512-GHvPeBD+A357zS5tHjzj6ISrVOjjCiy0I92bdyTJz0pNmIjFxO0NX/bX+xkGgnclKQE/5hHAB9JEQ7u9Pw4olg==",
4713 "shasum": "f73daad8dac622d51fe1769960c914b9b1f75a72",
4714 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-1.0.3.tgz",
4715 "fileCount": 24,
4716 "unpackedSize": 61172,
4717 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeb+60CRA9TVsSAnZWagAA3TEQAIdqzqTt1VDjJdBdeJrx\ncbW7+g9QKgm2yU0FOxPZt9pn6dHgyQ6aMTdnz1dHDNUzzNxPTMCWfokj4R0C\n58eZFUBVZTrsLDWFzUuzp9waFMJmCXmZ3A7aoVINhBuUh80IQflXejDjUb5H\nwXssYU0N5chW7dPPNAyfL3z8ploILDWU9OFrwq3Ihf3qmu+oGXVGaoXl/r7n\nquKR4B0Q3g7qynqUU6uL+kcX5T5OSLujJaN9CuX5SaNkUQhfZg0AqYCk9Yf0\naojIgN/sb7IWreQPn4kFu+jovFPQdDb1TQS3RaRvoM0FseDX7qmph80yee/c\nAQkv6oIHLI/AsfVsGGHuKlaZr4x8zyfwVWA0mCk3m41DvqkPgRnw15KCEtFd\nzMQPJpoBIBvDiNJjSYYSSVg4/Hkr+ab/6ByJTCyZ1G3NOVT9XCsKiZYr9yg7\nL5enUKyp0QO2e7yEJwbABn/UZf1ix145Nmb3avFYoBSjq1i32Iqm6m89TZ6V\nS0WnRzpzmUE8GEXkvxGHqQf8PF1dvXHsbXwaJ2kErdKX9peqiG+DWm8SVUdq\nLluhk7ClAMoAntAcoLbXTFoLTDCqJU6gnO3VCdiUc3zi+UHaQQg72KToOBiy\nWQmxWL4buEl8CwJCaRuLXcwCEa3RVfbNcamX30AvQ0Sd2coFgZkrWBwx9Va2\n7Kio\r\n=wLwG\r\n-----END PGP SIGNATURE-----\r\n"
4718 },
4719 "maintainers": [
4720 {
4721 "name": "chimurai",
4722 "email": "[email protected]"
4723 }
4724 ],
4725 "_npmUser": {
4726 "name": "chimurai",
4727 "email": "[email protected]"
4728 },
4729 "directories": {},
4730 "_npmOperationalInternal": {
4731 "host": "s3://npm-registry-packages",
4732 "tmp": "tmp/http-proxy-middleware_1.0.3_1584393907695_0.47919582672539907"
4733 },
4734 "_hasShrinkwrap": false
4735 },
4736 "1.0.4": {
4737 "name": "http-proxy-middleware",
4738 "version": "1.0.4",
4739 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
4740 "main": "dist/index.js",
4741 "types": "dist/index.d.ts",
4742 "scripts": {
4743 "clean": "rm -rf dist && rm -rf coverage",
4744 "lint": "yarn lint:prettier && yarn lint:tslint",
4745 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
4746 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
4747 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
4748 "build": "tsc",
4749 "pretest": "yarn build",
4750 "test": "jest",
4751 "coverage": "jest --coverage --coverageReporters=lcov",
4752 "prepare": "yarn clean && yarn build && rm dist/tsconfig.tsbuildinfo"
4753 },
4754 "repository": {
4755 "type": "git",
4756 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
4757 },
4758 "keywords": [
4759 "reverse",
4760 "proxy",
4761 "middleware",
4762 "http",
4763 "https",
4764 "connect",
4765 "express",
4766 "polka",
4767 "browser-sync",
4768 "gulp",
4769 "grunt-contrib-connect",
4770 "websocket",
4771 "ws",
4772 "cors"
4773 ],
4774 "author": {
4775 "name": "Steven Chim"
4776 },
4777 "license": "MIT",
4778 "bugs": {
4779 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
4780 },
4781 "homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
4782 "devDependencies": {
4783 "@commitlint/cli": "^8.3.5",
4784 "@commitlint/config-conventional": "^8.3.4",
4785 "@types/express": "^4.17.3",
4786 "@types/is-glob": "^4.0.1",
4787 "@types/jest": "^25.2.1",
4788 "@types/lodash": "^4.14.150",
4789 "@types/micromatch": "^4.0.1",
4790 "@types/node": "^13.13.5",
4791 "@types/supertest": "^2.0.9",
4792 "browser-sync": "^2.26.7",
4793 "connect": "^3.7.0",
4794 "express": "^4.17.1",
4795 "husky": "^4.2.5",
4796 "jest": "^26.0.1",
4797 "lint-staged": "^10.2.2",
4798 "mockttp": "^0.20.1",
4799 "open": "^7.0.3",
4800 "prettier": "^2.0.5",
4801 "supertest": "^4.0.2",
4802 "ts-jest": "^25.5.0",
4803 "tslint": "^6.1.2",
4804 "tslint-config-prettier": "^1.18.0",
4805 "typescript": "^3.8.3",
4806 "ws": "^7.2.5"
4807 },
4808 "dependencies": {
4809 "@types/http-proxy": "^1.17.4",
4810 "http-proxy": "^1.18.1",
4811 "is-glob": "^4.0.1",
4812 "lodash": "^4.17.15",
4813 "micromatch": "^4.0.2"
4814 },
4815 "engines": {
4816 "node": ">=8.0.0"
4817 },
4818 "husky": {
4819 "hooks": {
4820 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
4821 "pre-commit": "lint-staged"
4822 }
4823 },
4824 "commitlint": {
4825 "extends": [
4826 "@commitlint/config-conventional"
4827 ]
4828 },
4829 "gitHead": "68e3e300574d275ea99f264dedcfd72d7dccc626",
4830 "_id": "[email protected]",
4831 "_nodeVersion": "12.16.1",
4832 "_npmVersion": "6.14.4",
4833 "dist": {
4834 "integrity": "sha512-8wiqujNWlsZNbeTSSWMLUl/u70xbJ5VYRwPR8RcAbvsNxzAZbgwLzRvT96btbm3fAitZUmo5i8LY6WKGyHDgvA==",
4835 "shasum": "425ea177986a0cda34f9c81ec961c719adb6c2a9",
4836 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-1.0.4.tgz",
4837 "fileCount": 24,
4838 "unpackedSize": 61170,
4839 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewrezCRA9TVsSAnZWagAATeUQAIjWXDuQael1Xm1p4Wkh\nSxSzWFtHgHXiFvq3vHrn8TL8skN+ZTMeBD7lQIFGJGcQsKFn8U1NYGQ4DUcJ\nBzQtMTH9+E2YgGMcXrKMXgsHNXSKvDUvUyKpQalSeaiyPByn6ijH7PmanYF+\n5YmhkeDchkWgTHWcUPcUAmakC7/4bZQCZ6fxLZVuf/Xz8IE02F94WMyKj6gJ\nadWj7BOMCutWeh1DdU7l5Nn6k2IuE+WBapTieoH/gfJZYSBX6orl/II2M5lc\nke1mitUJ7WPCk+WyndrI/oVH535NOEJ6LubrjemInr7wly6v1ZMLFMIjCfSE\nUvz67mZSuCtkbPMPlLrhWRI+Q5e+2wONR3W1BxQDzgze+eadk0+RnAN1vcTv\nxGkv+XAWprLriMvhJFPWl1orA9aSLKxwny5tgfxgDsHvj1RNv5OowttcKVB0\n5QFYYZVFmOR8siQMJRL/0CP8rpkdppj6aFahdCFTDLIiA/I1WdrhVGtdnegc\nAS2R9TS9X5BJcdimTwjG5gp+c+v9cGEOaAOGyTVno5dWPeq+ZuYFn+K9N6uo\nvpjvcSuPTMb06B6VteZWnTjZBmrEZyDLUc/PdmyZmotzxiNWbZceYxxTmweL\nXnkMcWUqIrZaIIWWLWwnS2Q8bxp6cmTiCT4eHI7aHgdopUWKKMdbsA0f65BW\nDz78\r\n=Vyf6\r\n-----END PGP SIGNATURE-----\r\n"
4840 },
4841 "maintainers": [
4842 {
4843 "name": "chimurai",
4844 "email": "[email protected]"
4845 }
4846 ],
4847 "_npmUser": {
4848 "name": "chimurai",
4849 "email": "[email protected]"
4850 },
4851 "directories": {},
4852 "_npmOperationalInternal": {
4853 "host": "s3://npm-registry-packages",
4854 "tmp": "tmp/http-proxy-middleware_1.0.4_1589819315004_0.22635473245502125"
4855 },
4856 "_hasShrinkwrap": false
4857 },
4858 "0.19.2": {
4859 "name": "http-proxy-middleware",
4860 "version": "0.19.2",
4861 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
4862 "main": "index.js",
4863 "scripts": {
4864 "clean": "rm -rf coverage",
4865 "lint": "prettier \"**/*.{js,md}\" --list-different",
4866 "lint:fix": "prettier \"**/*.{js,md}\" --write",
4867 "test": "mocha --recursive --colors --reporter spec",
4868 "cover": "npm run clean && istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive",
4869 "coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive --reporter spec && istanbul-coveralls && npm run clean"
4870 },
4871 "repository": {
4872 "type": "git",
4873 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
4874 },
4875 "keywords": [
4876 "reverse",
4877 "proxy",
4878 "middleware",
4879 "http",
4880 "https",
4881 "connect",
4882 "express",
4883 "browser-sync",
4884 "gulp",
4885 "grunt-contrib-connect",
4886 "websocket",
4887 "ws",
4888 "cors"
4889 ],
4890 "author": {
4891 "name": "Steven Chim"
4892 },
4893 "license": "MIT",
4894 "bugs": {
4895 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
4896 },
4897 "homepage": "https://github.com/chimurai/http-proxy-middleware",
4898 "devDependencies": {
4899 "@commitlint/cli": "^7.2.1",
4900 "@commitlint/config-conventional": "^7.1.2",
4901 "browser-sync": "^2.26.3",
4902 "chai": "^4.2.0",
4903 "connect": "^3.6.6",
4904 "coveralls": "^3.0.2",
4905 "express": "^4.16.4",
4906 "husky": "^1.2.0",
4907 "istanbul": "^0.4.5",
4908 "istanbul-coveralls": "^1.0.3",
4909 "mocha": "^5.2.0",
4910 "mocha-lcov-reporter": "1.3.0",
4911 "opn": "^5.4.0",
4912 "precise-commits": "^1.0.2",
4913 "prettier": "^1.15.2",
4914 "ws": "^6.1.2"
4915 },
4916 "dependencies": {
4917 "http-proxy": "^1.18.1",
4918 "is-glob": "^4.0.0",
4919 "lodash": "^4.17.11",
4920 "micromatch": "^3.1.10"
4921 },
4922 "engines": {
4923 "node": ">=4.0.0"
4924 },
4925 "husky": {
4926 "hooks": {
4927 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
4928 "pre-commit": "precise-commits"
4929 }
4930 },
4931 "commitlint": {
4932 "extends": [
4933 "@commitlint/config-conventional"
4934 ]
4935 },
4936 "gitHead": "ffcd889b2aa8bbc59ed93f2bd34a61923748942f",
4937 "_id": "[email protected]",
4938 "_nodeVersion": "12.16.1",
4939 "_npmVersion": "6.14.4",
4940 "dist": {
4941 "integrity": "sha512-aYk1rTKqLTus23X3L96LGNCGNgWpG4cG0XoZIT1GUPhhulEHX/QalnO6Vbo+WmKWi4AL2IidjuC0wZtbpg0yhQ==",
4942 "shasum": "ee73dcc8348165afefe8de2ff717751d181608ee",
4943 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.2.tgz",
4944 "fileCount": 13,
4945 "unpackedSize": 47853,
4946 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexC3fCRA9TVsSAnZWagAA2VQP/Rqp9cPOtEy9vWQTjgMM\ngmBEspZoZg4C/EKGcQ0XP68mbb16M3YKP33AtoEd8J2UL6xdUqsWa3iSVxin\n5ytxr6+t26QtF7gn0Zl6lM9ckmHmseGyt6F/N2/d3op8StgF6pDIdXJQqMG8\nwJEAk8FcnrqR3JMYm5iscy5PpOHn11VHWgGBBBGsVKglm5iZozCMINCBPc73\nm5Prd4ae9pTz1Pf59WfH0UBM2TOSNpXTGBICSghHo4CxcG6N+x8Kl2XUsuyk\npnX9PIqWVZb2N1E/VrzRtIiDataCthlixZqQHZKJ8Y4jR1n3oqQK416yjehq\nfH67yeDJx2k5B14cuY9ef1XFJTAKMhgUM+2JDdgHCbA1ppQdN+VctFW7X3Ex\njvr1Ie+PBTtR9b1FUwluQA9TgtXF0BiLP1IrZtS0HSPvbDRPydhrcKLFco9C\nahsstiu2r9nhHhe9L5LhdsFL3nNY9zQEHZkofG76lvz9k5s1y0+pct89lAR0\n+d3Q7mUb+XwKDD1mm304Z5ZE0hpBCwc+km08f+BzjWqNWSOIXE0naMnP+0dF\nCOTPKlm9ZmZ7Qw2E999pbaukET2j6UoZPeVCsXc27k7UCytq1QZwOU585Fy8\nck8Tk+Sqk0LG3GQwIF3DxXxmA1kbwbCjrt6lX0zZzeOTvjr98YuFTtJAI3oQ\n+DNg\r\n=AX3P\r\n-----END PGP SIGNATURE-----\r\n"
4947 },
4948 "maintainers": [
4949 {
4950 "name": "chimurai",
4951 "email": "[email protected]"
4952 }
4953 ],
4954 "_npmUser": {
4955 "name": "chimurai",
4956 "email": "[email protected]"
4957 },
4958 "directories": {},
4959 "_npmOperationalInternal": {
4960 "host": "s3://npm-registry-packages",
4961 "tmp": "tmp/http-proxy-middleware_0.19.2_1589915102540_0.6155244724847357"
4962 },
4963 "_hasShrinkwrap": false
4964 },
4965 "1.0.5": {
4966 "name": "http-proxy-middleware",
4967 "version": "1.0.5",
4968 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
4969 "main": "dist/index.js",
4970 "types": "dist/index.d.ts",
4971 "scripts": {
4972 "clean": "rm -rf dist && rm -rf coverage",
4973 "lint": "yarn lint:prettier && yarn lint:tslint",
4974 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
4975 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
4976 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
4977 "build": "tsc",
4978 "pretest": "yarn build",
4979 "test": "jest",
4980 "coverage": "jest --coverage --coverageReporters=lcov",
4981 "prepare": "yarn clean && yarn build && rm dist/tsconfig.tsbuildinfo"
4982 },
4983 "repository": {
4984 "type": "git",
4985 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
4986 },
4987 "keywords": [
4988 "reverse",
4989 "proxy",
4990 "middleware",
4991 "http",
4992 "https",
4993 "connect",
4994 "express",
4995 "polka",
4996 "browser-sync",
4997 "gulp",
4998 "grunt-contrib-connect",
4999 "websocket",
5000 "ws",
5001 "cors"
5002 ],
5003 "author": {
5004 "name": "Steven Chim"
5005 },
5006 "license": "MIT",
5007 "bugs": {
5008 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
5009 },
5010 "homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
5011 "devDependencies": {
5012 "@commitlint/cli": "^8.3.5",
5013 "@commitlint/config-conventional": "^8.3.4",
5014 "@types/express": "^4.17.3",
5015 "@types/is-glob": "^4.0.1",
5016 "@types/jest": "^25.2.3",
5017 "@types/lodash": "^4.14.151",
5018 "@types/micromatch": "^4.0.1",
5019 "@types/node": "^14.0.3",
5020 "@types/supertest": "^2.0.9",
5021 "browser-sync": "^2.26.7",
5022 "connect": "^3.7.0",
5023 "express": "^4.17.1",
5024 "husky": "^4.2.5",
5025 "jest": "^26.0.1",
5026 "lint-staged": "^10.2.4",
5027 "mockttp": "^0.20.1",
5028 "open": "^7.0.4",
5029 "prettier": "^2.0.5",
5030 "supertest": "^4.0.2",
5031 "ts-jest": "^26.0.0",
5032 "tslint": "^6.1.2",
5033 "tslint-config-prettier": "^1.18.0",
5034 "typescript": "^3.9.2",
5035 "ws": "^7.3.0"
5036 },
5037 "dependencies": {
5038 "@types/http-proxy": "^1.17.4",
5039 "http-proxy": "^1.18.1",
5040 "is-glob": "^4.0.1",
5041 "lodash": "^4.17.19",
5042 "micromatch": "^4.0.2"
5043 },
5044 "engines": {
5045 "node": ">=8.0.0"
5046 },
5047 "husky": {
5048 "hooks": {
5049 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
5050 "pre-commit": "lint-staged"
5051 }
5052 },
5053 "commitlint": {
5054 "extends": [
5055 "@commitlint/config-conventional"
5056 ]
5057 },
5058 "gitHead": "5384dcfab6e5d565b97b2ff5d6cac3209aada6e8",
5059 "_id": "[email protected]",
5060 "_nodeVersion": "12.18.2",
5061 "_npmVersion": "6.14.5",
5062 "dist": {
5063 "integrity": "sha512-CKzML7u4RdGob8wuKI//H8Ein6wNTEQR7yjVEzPbhBLGdOfkfvgTnp2HLnniKBDP9QW4eG10/724iTWLBeER3g==",
5064 "shasum": "4c6e25d95a411e3d750bc79ccf66290675176dc2",
5065 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-1.0.5.tgz",
5066 "fileCount": 24,
5067 "unpackedSize": 61670,
5068 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB0kHCRA9TVsSAnZWagAALpUP/j4YDwQnfnjhdYWH8ZvD\nmGF0eM4yJR5BjHosTqfs6MnL42ArKo7ypF7DGmIJFHouCogayiWTB+3SrxkL\n0jVnpK5+He3dOaW6KT+3ah2et53KOPid4s9QFyhBxilnQDGYpj2WZgvmR6fI\noy3gVV3dakH/GLRTOGyBnKlKXClvVGDAUhoFfmVpK15SPxFTlLTqiWzd7ept\nSw8C/vFbXNqDm2R+tfeP2+BCOJt8lgp2qtMG6w+rXLBn14woYw7sIKPlV+ta\nuaYX88gj6VwDkj0lxIbaPr45O4cAgbSc+1G8gWSG5C5ARPCjXoH3ndDzyoy3\nTifzlefNNP8a1rFRTVD9I/asVN0bUzD/imSkeFhL3K7W3o4yq5yc7VRLmjzT\n5Q+tvKHSI3oU6oAYwp9wsKTXdP716g2QSRYqKUWU5ZZsg9Q3HrhIKffUVr+N\nfUQw/0yqD6AO/migQJM5MKbR9Y2DQxvWFZtK9qvqxWIWqm24f0uxyZpx4wEC\nnHqSASc75+mfgXuI8rTSfZRJ5N23zUPptoFUdsDOr8krFUdEemfq4zpN1xjq\nzFg/x/vHGqwMb0Dzw12CwIBZv15Fa6WMBgwkJ2jYTROoMcKe3VPMfSC55GnV\nmI0snhPv13RXtEl2MxomOPzTwq8mgsFkwPW8oU4uu8MeTE5QhpBYN+WR+zB1\n0MJd\r\n=03D7\r\n-----END PGP SIGNATURE-----\r\n"
5069 },
5070 "maintainers": [
5071 {
5072 "name": "chimurai",
5073 "email": "[email protected]"
5074 }
5075 ],
5076 "_npmUser": {
5077 "name": "chimurai",
5078 "email": "[email protected]"
5079 },
5080 "directories": {},
5081 "_npmOperationalInternal": {
5082 "host": "s3://npm-registry-packages",
5083 "tmp": "tmp/http-proxy-middleware_1.0.5_1594312967411_0.25744450312708334"
5084 },
5085 "_hasShrinkwrap": false
5086 },
5087 "1.0.6": {
5088 "name": "http-proxy-middleware",
5089 "version": "1.0.6",
5090 "description": "The one-liner node.js proxy middleware for connect, express and browser-sync",
5091 "main": "dist/index.js",
5092 "types": "dist/index.d.ts",
5093 "scripts": {
5094 "clean": "rm -rf dist && rm -rf coverage",
5095 "lint": "yarn lint:prettier && yarn lint:tslint",
5096 "lint:prettier": "prettier --check \"**/*.{js,ts,md}\"",
5097 "lint:tslint": "yarn tslint -c tslint.json '{lib,test}/**/*.ts'",
5098 "lint:fix": "prettier --write \"**/*.{js,ts,md}\"",
5099 "build": "tsc",
5100 "pretest": "yarn build",
5101 "test": "jest",
5102 "coverage": "jest --coverage --coverageReporters=lcov",
5103 "prepare": "yarn clean && yarn build && rm dist/tsconfig.tsbuildinfo"
5104 },
5105 "repository": {
5106 "type": "git",
5107 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
5108 },
5109 "keywords": [
5110 "reverse",
5111 "proxy",
5112 "middleware",
5113 "http",
5114 "https",
5115 "connect",
5116 "express",
5117 "polka",
5118 "browser-sync",
5119 "gulp",
5120 "grunt-contrib-connect",
5121 "websocket",
5122 "ws",
5123 "cors"
5124 ],
5125 "author": {
5126 "name": "Steven Chim"
5127 },
5128 "license": "MIT",
5129 "bugs": {
5130 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
5131 },
5132 "homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
5133 "devDependencies": {
5134 "@commitlint/cli": "^11.0.0",
5135 "@commitlint/config-conventional": "^11.0.0",
5136 "@types/express": "^4.17.3",
5137 "@types/is-glob": "^4.0.1",
5138 "@types/jest": "^26.0.14",
5139 "@types/lodash": "^4.14.162",
5140 "@types/micromatch": "^4.0.1",
5141 "@types/node": "^14.11.8",
5142 "@types/supertest": "^2.0.10",
5143 "browser-sync": "^2.26.12",
5144 "connect": "^3.7.0",
5145 "express": "^4.17.1",
5146 "husky": "^4.3.0",
5147 "jest": "^26.5.3",
5148 "lint-staged": "^10.4.0",
5149 "mockttp": "^1.0.2",
5150 "open": "^7.3.0",
5151 "prettier": "^2.1.2",
5152 "supertest": "^5.0.0",
5153 "ts-jest": "^26.4.1",
5154 "tslint": "^6.1.3",
5155 "tslint-config-prettier": "^1.18.0",
5156 "typescript": "^4.0.3",
5157 "ws": "^7.3.1"
5158 },
5159 "dependencies": {
5160 "@types/http-proxy": "^1.17.4",
5161 "http-proxy": "^1.18.1",
5162 "is-glob": "^4.0.1",
5163 "lodash": "^4.17.20",
5164 "micromatch": "^4.0.2"
5165 },
5166 "engines": {
5167 "node": ">=8.0.0"
5168 },
5169 "husky": {
5170 "hooks": {
5171 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
5172 "pre-commit": "lint-staged"
5173 }
5174 },
5175 "commitlint": {
5176 "extends": [
5177 "@commitlint/config-conventional"
5178 ]
5179 },
5180 "gitHead": "f212a047ef45898ce6053b622cada4b0617b9ddf",
5181 "_id": "[email protected]",
5182 "_nodeVersion": "14.13.1",
5183 "_npmVersion": "6.14.8",
5184 "dist": {
5185 "integrity": "sha512-NyL6ZB6cVni7pl+/IT2W0ni5ME00xR0sN27AQZZrpKn1b+qRh+mLbBxIq9Cq1oGfmTc7BUq4HB77mxwCaxAYNg==",
5186 "shasum": "0618557722f450375d3796d701a8ac5407b3b94e",
5187 "tarball": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-1.0.6.tgz",
5188 "fileCount": 24,
5189 "unpackedSize": 61859,
5190 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfg1/ZCRA9TVsSAnZWagAAdP8QAJXqF8bThIYwQzZeGxLO\nad1hs8DE7BooTP9ufkkugyHt4v7TY+3sQVn7CdVkZvVinldx0+27LJ0VB29J\nKrHAewjdKl29z0GwgDF6fPpjvArBZHiwzGB/O3UhyKYRtqBJd7gPN0KdTMKF\nfSFeVqRgJQpoRb1BxIltjAywLmtHHMd0NamcnRJjT3UtpbfAWFKEWcQvFyVB\nJ3PNktNpzZG9zLOtmbT0aDaMHjx+IhY9CEehSQd6MZzqMZ4FE0sZks1u6j4e\nnBUm8fuKIJKsyCxeKbOouTk1ejuKBbv8JefS3LjnVp42LlCceH3BlRVmlku6\nq0ituEoVC7mKzeuXtFk+UPD1KIxuk9gvwEHCLE5qU+7zkmpVl1UzG2+h8u3y\n6RJrvESYxidANo0Tim8ueg7comDL+qh3QX0D0xIxox3nSqiGx9vXWYSgFGfI\nHD2fXGnZCIy6zk52+wOPJW7Lt4ySIQL1t+GkOcNO2lXMGhbClmcGQCqkmZDd\neRFSufwlY6P+kIZuua+9n5rcYfRFuLMDFDKyz8wUQ7guWlT/XvF9d/+e7Q+0\n2rmri4dfzQmDQBZplSamyk6lS3qTo20ImYk5NEwl/cSyYWtvs6+F6n8fMZwM\n1U+HokrmJ7L8/JJxG1QmZdktkMlpt0LeOfJzHCrL1JgSKP9QHKY7LILvUzp7\nphkK\r\n=KREU\r\n-----END PGP SIGNATURE-----\r\n"
5191 },
5192 "maintainers": [
5193 {
5194 "name": "chimurai",
5195 "email": "[email protected]"
5196 }
5197 ],
5198 "_npmUser": {
5199 "name": "chimurai",
5200 "email": "[email protected]"
5201 },
5202 "directories": {},
5203 "_npmOperationalInternal": {
5204 "host": "s3://npm-registry-packages",
5205 "tmp": "tmp/http-proxy-middleware_1.0.6_1602445272732_0.03670054966795577"
5206 },
5207 "_hasShrinkwrap": false
5208 }
5209 },
5210 "readme": "# http-proxy-middleware\n\n[![Build Status](https://img.shields.io/travis/chimurai/http-proxy-middleware/master.svg?style=flat-square)](https://travis-ci.org/chimurai/http-proxy-middleware)\n[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square)](https://coveralls.io/r/chimurai/http-proxy-middleware)\n[![dependency Status](https://img.shields.io/david/chimurai/http-proxy-middleware.svg?style=flat-square)](https://david-dm.org/chimurai/http-proxy-middleware#info=dependencies)\n[![dependency Status](https://snyk.io/test/npm/http-proxy-middleware/badge.svg?style=flat-square)](https://snyk.io/test/npm/http-proxy-middleware)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nNode.js proxying made simple. Configure proxy middleware with ease for [connect](https://github.com/senchalabs/connect), [express](https://github.com/strongloop/express), [browser-sync](https://github.com/BrowserSync/browser-sync) and [many more](#compatible-servers).\n\nPowered by the popular Nodejitsu [`http-proxy`](https://github.com/nodejitsu/node-http-proxy). [![GitHub stars](https://img.shields.io/github/stars/nodejitsu/node-http-proxy.svg?style=social&label=Star)](https://github.com/nodejitsu/node-http-proxy)\n\n## ⚠️ Note\n\nThis page is showing documentation for version v1.x.x ([release notes](https://github.com/chimurai/http-proxy-middleware/releases))\n\nIf you're looking for v0.x documentation. Go to:\nhttps://github.com/chimurai/http-proxy-middleware/tree/v0.21.0#readme\n\n## TL;DR\n\nProxy `/api` requests to `http://www.example.org`\n\n```javascript\n// javascript\n\nconst express = require('express');\nconst { createProxyMiddleware } = require('http-proxy-middleware');\n\nconst app = express();\n\napp.use('/api', createProxyMiddleware({ target: 'http://www.example.org', changeOrigin: true }));\napp.listen(3000);\n\n// http://localhost:3000/api/foo/bar -> http://www.example.org/api/foo/bar\n```\n\n```typescript\n// typescript\n\nimport * as express from 'express';\nimport { createProxyMiddleware, Filter, Options, RequestHandler } from 'http-proxy-middleware';\n\nconst app = express();\n\napp.use('/api', createProxyMiddleware({ target: 'http://www.example.org', changeOrigin: true }));\napp.listen(3000);\n\n// http://localhost:3000/api/foo/bar -> http://www.example.org/api/foo/bar\n```\n\n_All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options).\n\n:bulb: **Tip:** Set the option `changeOrigin` to `true` for [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based).\n\n## Table of Contents\n\n<!-- MarkdownTOC autolink=true bracket=round depth=2 -->\n\n- [Install](#install)\n- [Core concept](#core-concept)\n- [Example](#example)\n- [Context matching](#context-matching)\n- [Options](#options)\n - [http-proxy-middleware options](#http-proxy-middleware-options)\n - [http-proxy events](#http-proxy-events)\n - [http-proxy options](#http-proxy-options)\n- [Shorthand](#shorthand)\n - [app.use\\(path, proxy\\)](#appusepath-proxy)\n- [WebSocket](#websocket)\n - [External WebSocket upgrade](#external-websocket-upgrade)\n- [Working examples](#working-examples)\n- [Recipes](#recipes)\n- [Compatible servers](#compatible-servers)\n- [Tests](#tests)\n- [Changelog](#changelog)\n- [License](#license)\n\n<!-- /MarkdownTOC -->\n\n## Install\n\n```bash\n$ npm install --save-dev http-proxy-middleware\n```\n\n## Core concept\n\nProxy middleware configuration.\n\n#### createProxyMiddleware([context,] config)\n\n```javascript\nconst { createProxyMiddleware } = require('http-proxy-middleware');\n\nconst apiProxy = createProxyMiddleware('/api', { target: 'http://www.example.org' });\n// \\____/ \\_____________________________/\n// | |\n// context options\n\n// 'apiProxy' is now ready to be used as middleware in a server.\n```\n\n- **context**: Determine which requests should be proxied to the target host.\n (more on [context matching](#context-matching))\n- **options.target**: target host to proxy to. _(protocol + host)_\n\n(full list of [`http-proxy-middleware` configuration options](#options))\n\n#### createProxyMiddleware(uri [, config])\n\n```javascript\n// shorthand syntax for the example above:\nconst apiProxy = createProxyMiddleware('http://www.example.org/api');\n```\n\nMore about the [shorthand configuration](#shorthand).\n\n## Example\n\nAn example with `express` server.\n\n```javascript\n// include dependencies\nconst express = require('express');\nconst { createProxyMiddleware } = require('http-proxy-middleware');\n\n// proxy middleware options\nconst options = {\n target: 'http://www.example.org', // target host\n changeOrigin: true, // needed for virtual hosted sites\n ws: true, // proxy websockets\n pathRewrite: {\n '^/api/old-path': '/api/new-path', // rewrite path\n '^/api/remove/path': '/path', // remove base path\n },\n router: {\n // when request.headers.host == 'dev.localhost:3000',\n // override target 'http://www.example.org' to 'http://localhost:8000'\n 'dev.localhost:3000': 'http://localhost:8000',\n },\n};\n\n// create the proxy (without context)\nconst exampleProxy = createProxyMiddleware(options);\n\n// mount `exampleProxy` in web server\nconst app = express();\napp.use('/api', exampleProxy);\napp.listen(3000);\n```\n\n## Context matching\n\nProviding 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.\n\n[RFC 3986 `path`](https://tools.ietf.org/html/rfc3986#section-3.3) is used for context matching.\n\n```ascii\n foo://example.com:8042/over/there?name=ferret#nose\n \\_/ \\______________/\\_________/ \\_________/ \\__/\n | | | | |\n scheme authority path query fragment\n```\n\n- **path matching**\n\n - `createProxyMiddleware({...})` - matches any path, all requests will be proxied.\n - `createProxyMiddleware('/', {...})` - matches any path, all requests will be proxied.\n - `createProxyMiddleware('/api', {...})` - matches paths starting with `/api`\n\n- **multiple path matching**\n\n - `createProxyMiddleware(['/api', '/ajax', '/someotherpath'], {...})`\n\n- **wildcard path matching**\n\n For fine-grained control you can use wildcard matching. Glob pattern matching is done by _micromatch_. Visit [micromatch](https://www.npmjs.com/package/micromatch) or [glob](https://www.npmjs.com/package/glob) for more globbing examples.\n\n - `createProxyMiddleware('**', {...})` matches any path, all requests will be proxied.\n - `createProxyMiddleware('**/*.html', {...})` matches any path which ends with `.html`\n - `createProxyMiddleware('/*.html', {...})` matches paths directly under path-absolute\n - `createProxyMiddleware('/api/**/*.html', {...})` matches requests ending with `.html` in the path of `/api`\n - `createProxyMiddleware(['/api/**', '/ajax/**'], {...})` combine multiple patterns\n - `createProxyMiddleware(['/api/**', '!**/bad.json'], {...})` exclusion\n\n **Note**: In multiple path matching, you cannot use string paths and wildcard paths together.\n\n- **custom matching**\n\n For full control you can provide a custom function to determine which requests should be proxied or not.\n\n ```javascript\n /**\n * @return {Boolean}\n */\n const filter = function (pathname, req) {\n return pathname.match('^/api') && req.method === 'GET';\n };\n\n const apiProxy = createProxyMiddleware(filter, {\n target: 'http://www.example.org',\n });\n ```\n\n## Options\n\n### http-proxy-middleware options\n\n- **option.pathRewrite**: object/function, rewrite target's url path. Object-keys will be used as _RegExp_ to match paths.\n\n ```javascript\n // rewrite path\n pathRewrite: {'^/old/api' : '/new/api'}\n\n // remove path\n pathRewrite: {'^/remove/api' : ''}\n\n // add base path\n pathRewrite: {'^/' : '/basepath/'}\n\n // custom rewriting\n pathRewrite: function (path, req) { return path.replace('/api', '/base/api') }\n\n // custom rewriting, returning Promise\n pathRewrite: async function (path, req) {\n const should_add_something = await httpRequestToDecideSomething(path);\n if (should_add_something) path += \"something\";\n return path;\n }\n ```\n\n- **option.router**: object/function, re-target `option.target` for specific requests.\n\n ```javascript\n // Use `host` and/or `path` to match requests. First match will be used.\n // The order of the configuration matters.\n router: {\n 'integration.localhost:3000' : 'http://localhost:8001', // host only\n 'staging.localhost:3000' : 'http://localhost:8002', // host only\n 'localhost:3000/api' : 'http://localhost:8003', // host + path\n '/rest' : 'http://localhost:8004' // path only\n }\n\n // Custom router function (string target)\n router: function(req) {\n return 'http://localhost:8004';\n }\n\n // Custom router function (target object)\n router: function(req) {\n return {\n protocol: 'https:', // The : is required\n host: 'localhost',\n port: 8004\n };\n }\n\n // Asynchronous router function which returns promise\n router: async function(req) {\n const url = await doSomeIO();\n return url;\n }\n ```\n\n- **option.logLevel**: string, ['debug', 'info', 'warn', 'error', 'silent']. Default: `'info'`\n\n- **option.logProvider**: function, modify or replace log provider. Default: `console`.\n\n ```javascript\n // simple replace\n function logProvider(provider) {\n // replace the default console log provider.\n return require('winston');\n }\n ```\n\n ```javascript\n // verbose replacement\n function logProvider(provider) {\n const logger = new (require('winston').Logger)();\n\n const myCustomProvider = {\n log: logger.log,\n debug: logger.debug,\n info: logger.info,\n warn: logger.warn,\n error: logger.error,\n };\n return myCustomProvider;\n }\n ```\n\n### http-proxy events\n\nSubscribe to [http-proxy events](https://github.com/nodejitsu/node-http-proxy#listening-for-proxy-events):\n\n- **option.onError**: function, subscribe to http-proxy's `error` event for custom error handling.\n\n ```javascript\n function onError(err, req, res) {\n res.writeHead(500, {\n 'Content-Type': 'text/plain',\n });\n res.end('Something went wrong. And we are reporting a custom error message.');\n }\n ```\n\n- **option.onProxyRes**: function, subscribe to http-proxy's `proxyRes` event.\n\n ```javascript\n function onProxyRes(proxyRes, req, res) {\n proxyRes.headers['x-added'] = 'foobar'; // add new header to response\n delete proxyRes.headers['x-removed']; // remove header from response\n }\n ```\n\n- **option.onProxyReq**: function, subscribe to http-proxy's `proxyReq` event.\n\n ```javascript\n function onProxyReq(proxyReq, req, res) {\n // add custom header to request\n proxyReq.setHeader('x-added', 'foobar');\n // or log the req\n }\n ```\n\n- **option.onProxyReqWs**: function, subscribe to http-proxy's `proxyReqWs` event.\n\n ```javascript\n function onProxyReqWs(proxyReq, req, socket, options, head) {\n // add custom header\n proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');\n }\n ```\n\n- **option.onOpen**: function, subscribe to http-proxy's `open` event.\n\n ```javascript\n function onOpen(proxySocket) {\n // listen for messages coming FROM the target here\n proxySocket.on('data', hybiParseAndLogMessage);\n }\n ```\n\n- **option.onClose**: function, subscribe to http-proxy's `close` event.\n\n ```javascript\n function onClose(res, socket, head) {\n // view disconnected websocket connections\n console.log('Client disconnected');\n }\n ```\n\n### http-proxy options\n\nThe following options are provided by the underlying [http-proxy](https://github.com/nodejitsu/node-http-proxy#options) library.\n\n- **option.target**: url string to be parsed with the url module\n- **option.forward**: url string to be parsed with the url module\n- **option.agent**: object to be passed to http(s).request (see Node's [https agent](http://nodejs.org/api/https.html#https_class_https_agent) and [http agent](http://nodejs.org/api/http.html#http_class_http_agent) objects)\n- **option.ssl**: object to be passed to https.createServer()\n- **option.ws**: true/false: if you want to proxy websockets\n- **option.xfwd**: true/false, adds x-forward headers\n- **option.secure**: true/false, if you want to verify the SSL Certs\n- **option.toProxy**: true/false, passes the absolute URL as the `path` (useful for proxying to proxies)\n- **option.prependPath**: true/false, Default: true - specify whether you want to prepend the target's path to the proxy path\n- **option.ignorePath**: true/false, Default: false - specify whether you want to ignore the proxy path of the incoming request (note: you will have to append / manually if required).\n- **option.localAddress** : Local interface string to bind for outgoing connections\n- **option.changeOrigin**: true/false, Default: false - changes the origin of the host header to the target URL\n- **option.preserveHeaderKeyCase**: true/false, Default: false - specify whether you want to keep letter case of response header key\n- **option.auth** : Basic authentication i.e. 'user:password' to compute an Authorization header.\n- **option.hostRewrite**: rewrites the location hostname on (301/302/307/308) redirects.\n- **option.autoRewrite**: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.\n- **option.protocolRewrite**: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.\n- **option.cookieDomainRewrite**: rewrites domain of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new domain, for example `cookieDomainRewrite: \"new.domain\"`. To remove the domain, use `cookieDomainRewrite: \"\"`.\n - Object: mapping of domains to new domains, use `\"*\"` to match all domains. \n For example keep one domain unchanged, rewrite one domain and remove other domains:\n ```json\n cookieDomainRewrite: {\n \"unchanged.domain\": \"unchanged.domain\",\n \"old.domain\": \"new.domain\",\n \"*\": \"\"\n }\n ```\n- **option.cookiePathRewrite**: rewrites path of `set-cookie` headers. Possible values:\n - `false` (default): disable cookie rewriting\n - String: new path, for example `cookiePathRewrite: \"/newPath/\"`. To remove the path, use `cookiePathRewrite: \"\"`. To set path to root use `cookiePathRewrite: \"/\"`.\n - Object: mapping of paths to new paths, use `\"*\"` to match all paths.\n For example, to keep one path unchanged, rewrite one path and remove other paths:\n ```json\n cookiePathRewrite: {\n \"/unchanged.path/\": \"/unchanged.path/\",\n \"/old.path/\": \"/new.path/\",\n \"*\": \"\"\n }\n ```\n- **option.headers**: object, adds [request headers](https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Request_fields). (Example: `{host:'www.example.org'}`)\n- **option.proxyTimeout**: timeout (in millis) when proxy receives no response from target\n- **option.timeout**: timeout (in millis) for incoming requests\n- **option.followRedirects**: true/false, Default: false - specify whether you want to follow redirects\n- **option.selfHandleResponse** true/false, if set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the `proxyRes` event\n- **option.buffer**: stream of data to send as the request body. Maybe you have some middleware that consumes the request stream before proxying it on e.g. If you read the body of a request into a field called 'req.rawbody' you could restream this field in the buffer option:\n\n ```javascript\n 'use strict';\n\n const streamify = require('stream-array');\n const HttpProxy = require('http-proxy');\n const proxy = new HttpProxy();\n\n module.exports = (req, res, next) => {\n proxy.web(\n req,\n res,\n {\n target: 'http://localhost:4003/',\n buffer: streamify(req.rawBody),\n },\n next\n );\n };\n ```\n\n## Shorthand\n\nUse the shorthand syntax when verbose configuration is not needed. The `context` and `option.target` will be automatically configured when shorthand is used. Options can still be used if needed.\n\n```javascript\ncreateProxyMiddleware('http://www.example.org:8000/api');\n// createProxyMiddleware('/api', {target: 'http://www.example.org:8000'});\n\ncreateProxyMiddleware('http://www.example.org:8000/api/books/*/**.json');\n// createProxyMiddleware('/api/books/*/**.json', {target: 'http://www.example.org:8000'});\n\ncreateProxyMiddleware('http://www.example.org:8000/api', { changeOrigin: true });\n// createProxyMiddleware('/api', {target: 'http://www.example.org:8000', changeOrigin: true});\n```\n\n### app.use(path, proxy)\n\nIf you want to use the server's `app.use` `path` parameter to match requests;\nCreate and mount the proxy without the http-proxy-middleware `context` parameter:\n\n```javascript\napp.use('/api', createProxyMiddleware({ target: 'http://www.example.org', changeOrigin: true }));\n```\n\n`app.use` documentation:\n\n- express: http://expressjs.com/en/4x/api.html#app.use\n- connect: https://github.com/senchalabs/connect#mount-middleware\n- polka: https://github.com/lukeed/polka#usebase-fn\n\n## WebSocket\n\n```javascript\n// verbose api\ncreateProxyMiddleware('/', { target: 'http://echo.websocket.org', ws: true });\n\n// shorthand\ncreateProxyMiddleware('http://echo.websocket.org', { ws: true });\n\n// shorter shorthand\ncreateProxyMiddleware('ws://echo.websocket.org');\n```\n\n### External WebSocket upgrade\n\nIn the previous WebSocket examples, http-proxy-middleware relies on a initial http request in order to listen to the http `upgrade` event. If you need to proxy WebSockets without the initial http request, you can subscribe to the server's http `upgrade` event manually.\n\n```javascript\nconst wsProxy = createProxyMiddleware('ws://echo.websocket.org', { changeOrigin: true });\n\nconst app = express();\napp.use(wsProxy);\n\nconst server = app.listen(3000);\nserver.on('upgrade', wsProxy.upgrade); // <-- subscribe to http 'upgrade'\n```\n\n## Working examples\n\nView and play around with [working examples](https://github.com/chimurai/http-proxy-middleware/tree/master/examples).\n\n- Browser-Sync ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/browser-sync/index.js))\n- express ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/express/index.js))\n- connect ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/connect/index.js))\n- WebSocket ([example source](https://github.com/chimurai/http-proxy-middleware/tree/master/examples/websocket/index.js))\n\n## Recipes\n\nView the [recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes) for common use cases.\n\n## Compatible servers\n\n`http-proxy-middleware` is compatible with the following servers:\n\n- [connect](https://www.npmjs.com/package/connect)\n- [express](https://www.npmjs.com/package/express)\n- [browser-sync](https://www.npmjs.com/package/browser-sync)\n- [lite-server](https://www.npmjs.com/package/lite-server)\n- [polka](https://github.com/lukeed/polka)\n- [grunt-contrib-connect](https://www.npmjs.com/package/grunt-contrib-connect)\n- [grunt-browser-sync](https://www.npmjs.com/package/grunt-browser-sync)\n- [gulp-connect](https://www.npmjs.com/package/gulp-connect)\n- [gulp-webserver](https://www.npmjs.com/package/gulp-webserver)\n\nSample implementations can be found in the [server recipes](https://github.com/chimurai/http-proxy-middleware/tree/master/recipes/servers.md).\n\n## Tests\n\nRun the test suite:\n\n```bash\n# install dependencies\n$ yarn\n\n# linting\n$ yarn lint\n$ yarn lint:fix\n\n# building (compile typescript to js)\n$ yarn build\n\n# unit tests\n$ yarn test\n\n# code coverage\n$ yarn cover\n```\n\n## Changelog\n\n- [View changelog](https://github.com/chimurai/http-proxy-middleware/blob/master/CHANGELOG.md)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015-2020 Steven Chim\n",
5211 "maintainers": [
5212 {
5213 "name": "chimurai",
5214 "email": "[email protected]"
5215 }
5216 ],
5217 "time": {
5218 "modified": "2020-10-11T19:41:15.158Z",
5219 "created": "2015-03-14T21:57:46.940Z",
5220 "0.0.1": "2015-03-14T21:57:46.940Z",
5221 "0.0.2": "2015-03-15T00:13:33.039Z",
5222 "0.0.3": "2015-03-15T00:28:46.736Z",
5223 "0.0.4": "2015-03-16T13:04:00.213Z",
5224 "0.0.5": "2015-03-31T12:42:27.334Z",
5225 "0.1.0": "2015-07-09T03:49:23.416Z",
5226 "0.2.0": "2015-07-13T09:38:01.476Z",
5227 "0.3.0": "2015-07-19T11:13:43.967Z",
5228 "0.3.1": "2015-07-24T15:54:23.908Z",
5229 "0.3.2": "2015-07-25T13:02:45.831Z",
5230 "0.4.0": "2015-07-28T21:26:17.656Z",
5231 "0.5.0": "2015-08-07T18:31:38.698Z",
5232 "0.6.0": "2015-08-18T11:42:02.364Z",
5233 "0.7.0": "2015-08-23T21:02:39.919Z",
5234 "0.8.0": "2015-08-31T10:50:34.399Z",
5235 "0.8.1": "2015-09-09T16:04:28.500Z",
5236 "0.8.2": "2015-09-23T18:45:34.376Z",
5237 "0.9.0": "2015-09-28T22:04:08.950Z",
5238 "0.9.1": "2016-01-18T21:46:10.860Z",
5239 "0.10.0-beta": "2016-01-26T21:30:19.853Z",
5240 "0.10.0": "2016-02-05T19:20:01.172Z",
5241 "0.11.0": "2016-02-24T20:00:47.471Z",
5242 "0.12.0": "2016-03-13T17:51:38.449Z",
5243 "0.13.0": "2016-03-23T20:22:52.857Z",
5244 "0.14.0": "2016-04-18T20:37:44.882Z",
5245 "0.15.0": "2016-05-03T21:02:36.666Z",
5246 "0.15.1-beta": "2016-05-18T16:54:18.659Z",
5247 "0.15.1": "2016-05-26T22:02:04.255Z",
5248 "0.15.2": "2016-05-29T12:51:16.198Z",
5249 "0.16.0": "2016-06-13T18:52:35.740Z",
5250 "0.17.0-beta": "2016-06-16T15:24:47.966Z",
5251 "0.17.0": "2016-07-03T15:35:21.923Z",
5252 "0.17.1": "2016-08-11T21:30:30.925Z",
5253 "0.17.2-beta": "2016-09-10T13:14:50.421Z",
5254 "0.17.2": "2016-09-28T22:28:13.856Z",
5255 "0.17.3": "2016-12-07T21:22:00.680Z",
5256 "0.17.4": "2017-03-02T23:07:30.843Z",
5257 "0.18.0": "2018-03-12T22:47:20.345Z",
5258 "0.19.0": "2018-08-29T21:15:47.242Z",
5259 "0.19.1": "2018-11-25T20:18:42.852Z",
5260 "0.20.0-beta.0": "2019-05-31T21:02:11.520Z",
5261 "0.20.0-beta.1": "2019-06-02T19:09:52.421Z",
5262 "0.20.0-beta.2": "2019-07-09T19:41:34.272Z",
5263 "0.20.0": "2019-09-03T19:56:26.579Z",
5264 "0.21.0-beta.1": "2019-12-25T23:46:49.903Z",
5265 "0.21.0-beta.2": "2020-01-05T17:05:03.266Z",
5266 "0.21.0-beta.3": "2020-02-14T20:00:56.387Z",
5267 "0.21.0": "2020-02-16T18:32:06.492Z",
5268 "0.22.0-alpha": "2020-02-17T21:08:55.856Z",
5269 "1.0.0": "2020-02-18T22:30:22.194Z",
5270 "1.0.1": "2020-02-29T12:40:03.575Z",
5271 "1.0.2": "2020-03-14T13:25:45.248Z",
5272 "1.0.3": "2020-03-16T21:25:07.879Z",
5273 "1.0.4": "2020-05-18T16:28:35.104Z",
5274 "0.19.2": "2020-05-19T19:05:02.777Z",
5275 "1.0.5": "2020-07-09T16:42:47.545Z",
5276 "1.0.6": "2020-10-11T19:41:12.902Z"
5277 },
5278 "homepage": "https://github.com/chimurai/http-proxy-middleware#readme",
5279 "keywords": [
5280 "reverse",
5281 "proxy",
5282 "middleware",
5283 "http",
5284 "https",
5285 "connect",
5286 "express",
5287 "polka",
5288 "browser-sync",
5289 "gulp",
5290 "grunt-contrib-connect",
5291 "websocket",
5292 "ws",
5293 "cors"
5294 ],
5295 "repository": {
5296 "type": "git",
5297 "url": "git+https://github.com/chimurai/http-proxy-middleware.git"
5298 },
5299 "author": {
5300 "name": "Steven Chim"
5301 },
5302 "bugs": {
5303 "url": "https://github.com/chimurai/http-proxy-middleware/issues"
5304 },
5305 "license": "MIT",
5306 "readmeFilename": "README.md",
5307 "users": {
5308 "kongxianghuan": true,
5309 "chimurai": true,
5310 "pensierinmusica": true,
5311 "hbin000": true,
5312 "cqcookie": true,
5313 "program247365": true,
5314 "jonniespratley": true,
5315 "dnik": true,
5316 "zhanghaili": true,
5317 "smcmill2": true,
5318 "quality520": true,
5319 "craigpatten": true,
5320 "ymk": true,
5321 "roccomuso": true,
5322 "manikantag": true,
5323 "antixrist": true,
5324 "quafoo": true,
5325 "taoqianbao": true,
5326 "wangnan0610": true,
5327 "monolithed": true,
5328 "ystrdy": true,
5329 "wickie": true,
5330 "johnnychq": true,
5331 "dyyz993": true,
5332 "vur": true,
5333 "nanxing": true,
5334 "leizongmin": true,
5335 "onursimsek": true,
5336 "wujr5": true,
5337 "jits": true,
5338 "shakakira": true,
5339 "abuelwafa": true,
5340 "nuer": true,
5341 "zollero": true,
5342 "iori20091101": true,
5343 "panlw": true,
5344 "bengi": true,
5345 "mark24code": true,
5346 "jacky3399": true,
5347 "scott.m.sarsfield": true,
5348 "xueboren": true,
5349 "dean-xu": true,
5350 "xiaochao": true,
5351 "wangfeia": true,
5352 "richleego": true,
5353 "king.v": true,
5354 "stone_breaker": true,
5355 "npmlincq": true,
5356 "caikan": true,
5357 "ierceg": true,
5358 "edwardxyt": true,
5359 "hehehai": true,
5360 "bigbird92": true,
5361 "chirag8642": true,
5362 "jamiemagique": true,
5363 "yikuo": true,
5364 "jinglf000": true,
5365 "jedaviata": true,
5366 "rocket0191": true,
5367 "hehaiyang": true,
5368 "joe.li": true,
5369 "largepuma": true,
5370 "icoon.li": true,
5371 "yeming": true,
5372 "xyyjk": true,
5373 "dai'liljian": true,
5374 "sayrilamar": true,
5375 "fakefarm": true,
5376 "jonschlinkert": true,
5377 "stona": true,
5378 "xfloops": true,
5379 "netoperatorwibby": true,
5380 "zuojiang": true,
5381 "vivek.vikhere": true,
5382 "warmilk": true,
5383 "maxwelldu": true,
5384 "hewenxuan": true,
5385 "xingtao": true,
5386 "ganeshkbhat": true,
5387 "jameskrill": true,
5388 "rubiadias": true,
5389 "syrontillp": true,
5390 "prasad.adss": true,
5391 "karzanosman984": true,
5392 "yangteng": true
5393 }
5394 }