[feat] Install http-proxy-middleware to solve server-client connection error
Showing
2 changed files
with
31 additions
and
100 deletions
... | @@ -2281,6 +2281,14 @@ | ... | @@ -2281,6 +2281,14 @@ |
2281 | "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz", | 2281 | "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz", |
2282 | "integrity": "sha512-giAlZwstKbmvMk1OO7WXSj4OZ0keXAcl2TQq4LWHiiPH2ByaH7WeUzng+Qej8UPxxv+8lRTuouo0iaNDBuzIBA==" | 2282 | "integrity": "sha512-giAlZwstKbmvMk1OO7WXSj4OZ0keXAcl2TQq4LWHiiPH2ByaH7WeUzng+Qej8UPxxv+8lRTuouo0iaNDBuzIBA==" |
2283 | }, | 2283 | }, |
2284 | + "@types/http-proxy": { | ||
2285 | + "version": "1.17.6", | ||
2286 | + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.6.tgz", | ||
2287 | + "integrity": "sha512-+qsjqR75S/ib0ig0R9WN+CDoZeOBU6F2XLewgC4KVgdXiNHiKKHFEMRHOrs5PbYE97D5vataw5wPj4KLYfUkuQ==", | ||
2288 | + "requires": { | ||
2289 | + "@types/node": "*" | ||
2290 | + } | ||
2291 | + }, | ||
2284 | "@types/istanbul-lib-coverage": { | 2292 | "@types/istanbul-lib-coverage": { |
2285 | "version": "2.0.3", | 2293 | "version": "2.0.3", |
2286 | "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz", | 2294 | "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz", |
... | @@ -7382,110 +7390,21 @@ | ... | @@ -7382,110 +7390,21 @@ |
7382 | } | 7390 | } |
7383 | }, | 7391 | }, |
7384 | "http-proxy-middleware": { | 7392 | "http-proxy-middleware": { |
7385 | - "version": "0.19.1", | 7393 | + "version": "2.0.0", |
7386 | - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.1.tgz", | 7394 | + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.0.tgz", |
7387 | - "integrity": "sha512-yHYTgWMQO8VvwNS22eLLloAkvungsKdKTLO8AJlftYIKNfJr3GK3zK0ZCfzDDGUBttdGc8xFy1mCitvNKQtC3Q==", | 7395 | + "integrity": "sha512-S+RN5njuyvYV760aiVKnyuTXqUMcSIvYOsHA891DOVQyrdZOwaXtBHpt9FUVPEDAsOvsPArZp6VXQLs44yvkow==", |
7388 | "requires": { | 7396 | "requires": { |
7389 | - "http-proxy": "^1.17.0", | 7397 | + "@types/http-proxy": "^1.17.5", |
7390 | - "is-glob": "^4.0.0", | 7398 | + "http-proxy": "^1.18.1", |
7391 | - "lodash": "^4.17.11", | 7399 | + "is-glob": "^4.0.1", |
7392 | - "micromatch": "^3.1.10" | 7400 | + "is-plain-obj": "^3.0.0", |
7401 | + "micromatch": "^4.0.2" | ||
7393 | }, | 7402 | }, |
7394 | "dependencies": { | 7403 | "dependencies": { |
7395 | - "braces": { | 7404 | + "is-plain-obj": { |
7396 | - "version": "2.3.2", | ||
7397 | - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", | ||
7398 | - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", | ||
7399 | - "requires": { | ||
7400 | - "arr-flatten": "^1.1.0", | ||
7401 | - "array-unique": "^0.3.2", | ||
7402 | - "extend-shallow": "^2.0.1", | ||
7403 | - "fill-range": "^4.0.0", | ||
7404 | - "isobject": "^3.0.1", | ||
7405 | - "repeat-element": "^1.1.2", | ||
7406 | - "snapdragon": "^0.8.1", | ||
7407 | - "snapdragon-node": "^2.0.1", | ||
7408 | - "split-string": "^3.0.2", | ||
7409 | - "to-regex": "^3.0.1" | ||
7410 | - }, | ||
7411 | - "dependencies": { | ||
7412 | - "extend-shallow": { | ||
7413 | - "version": "2.0.1", | ||
7414 | - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", | ||
7415 | - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", | ||
7416 | - "requires": { | ||
7417 | - "is-extendable": "^0.1.0" | ||
7418 | - } | ||
7419 | - } | ||
7420 | - } | ||
7421 | - }, | ||
7422 | - "fill-range": { | ||
7423 | - "version": "4.0.0", | ||
7424 | - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", | ||
7425 | - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", | ||
7426 | - "requires": { | ||
7427 | - "extend-shallow": "^2.0.1", | ||
7428 | - "is-number": "^3.0.0", | ||
7429 | - "repeat-string": "^1.6.1", | ||
7430 | - "to-regex-range": "^2.1.0" | ||
7431 | - }, | ||
7432 | - "dependencies": { | ||
7433 | - "extend-shallow": { | ||
7434 | - "version": "2.0.1", | ||
7435 | - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", | ||
7436 | - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", | ||
7437 | - "requires": { | ||
7438 | - "is-extendable": "^0.1.0" | ||
7439 | - } | ||
7440 | - } | ||
7441 | - } | ||
7442 | - }, | ||
7443 | - "is-number": { | ||
7444 | "version": "3.0.0", | 7405 | "version": "3.0.0", |
7445 | - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", | 7406 | + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", |
7446 | - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", | 7407 | + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==" |
7447 | - "requires": { | ||
7448 | - "kind-of": "^3.0.2" | ||
7449 | - }, | ||
7450 | - "dependencies": { | ||
7451 | - "kind-of": { | ||
7452 | - "version": "3.2.2", | ||
7453 | - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", | ||
7454 | - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", | ||
7455 | - "requires": { | ||
7456 | - "is-buffer": "^1.1.5" | ||
7457 | - } | ||
7458 | - } | ||
7459 | - } | ||
7460 | - }, | ||
7461 | - "micromatch": { | ||
7462 | - "version": "3.1.10", | ||
7463 | - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", | ||
7464 | - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", | ||
7465 | - "requires": { | ||
7466 | - "arr-diff": "^4.0.0", | ||
7467 | - "array-unique": "^0.3.2", | ||
7468 | - "braces": "^2.3.1", | ||
7469 | - "define-property": "^2.0.2", | ||
7470 | - "extend-shallow": "^3.0.2", | ||
7471 | - "extglob": "^2.0.4", | ||
7472 | - "fragment-cache": "^0.2.1", | ||
7473 | - "kind-of": "^6.0.2", | ||
7474 | - "nanomatch": "^1.2.9", | ||
7475 | - "object.pick": "^1.3.0", | ||
7476 | - "regex-not": "^1.0.0", | ||
7477 | - "snapdragon": "^0.8.1", | ||
7478 | - "to-regex": "^3.0.2" | ||
7479 | - } | ||
7480 | - }, | ||
7481 | - "to-regex-range": { | ||
7482 | - "version": "2.1.1", | ||
7483 | - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", | ||
7484 | - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", | ||
7485 | - "requires": { | ||
7486 | - "is-number": "^3.0.0", | ||
7487 | - "repeat-string": "^1.6.1" | ||
7488 | - } | ||
7489 | } | 7408 | } |
7490 | } | 7409 | } |
7491 | }, | 7410 | }, |
... | @@ -15839,6 +15758,17 @@ | ... | @@ -15839,6 +15758,17 @@ |
15839 | } | 15758 | } |
15840 | } | 15759 | } |
15841 | }, | 15760 | }, |
15761 | + "http-proxy-middleware": { | ||
15762 | + "version": "0.19.1", | ||
15763 | + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.1.tgz", | ||
15764 | + "integrity": "sha512-yHYTgWMQO8VvwNS22eLLloAkvungsKdKTLO8AJlftYIKNfJr3GK3zK0ZCfzDDGUBttdGc8xFy1mCitvNKQtC3Q==", | ||
15765 | + "requires": { | ||
15766 | + "http-proxy": "^1.17.0", | ||
15767 | + "is-glob": "^4.0.0", | ||
15768 | + "lodash": "^4.17.11", | ||
15769 | + "micromatch": "^3.1.10" | ||
15770 | + } | ||
15771 | + }, | ||
15842 | "import-local": { | 15772 | "import-local": { |
15843 | "version": "2.0.0", | 15773 | "version": "2.0.0", |
15844 | "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", | 15774 | "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", | ... | ... |
... | @@ -7,6 +7,7 @@ | ... | @@ -7,6 +7,7 @@ |
7 | "@testing-library/react": "^11.2.7", | 7 | "@testing-library/react": "^11.2.7", |
8 | "@testing-library/user-event": "^12.8.3", | 8 | "@testing-library/user-event": "^12.8.3", |
9 | "axios": "^0.21.1", | 9 | "axios": "^0.21.1", |
10 | + "http-proxy-middleware": "^2.0.0", | ||
10 | "react": "^17.0.2", | 11 | "react": "^17.0.2", |
11 | "react-dom": "^17.0.2", | 12 | "react-dom": "^17.0.2", |
12 | "react-router-dom": "^5.2.0", | 13 | "react-router-dom": "^5.2.0", | ... | ... |
-
Please register or login to post a comment