Showing
3 changed files
with
209 additions
and
14 deletions
... | @@ -2621,6 +2621,20 @@ | ... | @@ -2621,6 +2621,20 @@ |
2621 | "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.2.tgz", | 2621 | "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.2.tgz", |
2622 | "integrity": "sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg==" | 2622 | "integrity": "sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg==" |
2623 | }, | 2623 | }, |
2624 | + "@types/webidl-conversions": { | ||
2625 | + "version": "6.1.1", | ||
2626 | + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz", | ||
2627 | + "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q==" | ||
2628 | + }, | ||
2629 | + "@types/whatwg-url": { | ||
2630 | + "version": "8.2.1", | ||
2631 | + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz", | ||
2632 | + "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==", | ||
2633 | + "requires": { | ||
2634 | + "@types/node": "*", | ||
2635 | + "@types/webidl-conversions": "*" | ||
2636 | + } | ||
2637 | + }, | ||
2624 | "@types/ws": { | 2638 | "@types/ws": { |
2625 | "version": "8.5.3", | 2639 | "version": "8.5.3", |
2626 | "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz", | 2640 | "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz", |
... | @@ -3423,6 +3437,11 @@ | ... | @@ -3423,6 +3437,11 @@ |
3423 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", | 3437 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", |
3424 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" | 3438 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" |
3425 | }, | 3439 | }, |
3440 | + "base64-js": { | ||
3441 | + "version": "1.5.1", | ||
3442 | + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", | ||
3443 | + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" | ||
3444 | + }, | ||
3426 | "batch": { | 3445 | "batch": { |
3427 | "version": "0.6.1", | 3446 | "version": "0.6.1", |
3428 | "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", | 3447 | "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", |
... | @@ -3611,6 +3630,23 @@ | ... | @@ -3611,6 +3630,23 @@ |
3611 | "node-int64": "^0.4.0" | 3630 | "node-int64": "^0.4.0" |
3612 | } | 3631 | } |
3613 | }, | 3632 | }, |
3633 | + "bson": { | ||
3634 | + "version": "4.6.4", | ||
3635 | + "resolved": "https://registry.npmjs.org/bson/-/bson-4.6.4.tgz", | ||
3636 | + "integrity": "sha512-TdQ3FzguAu5HKPPlr0kYQCyrYUYh8tFM+CMTpxjNzVzxeiJY00Rtuj3LXLHSgiGvmaWlZ8PE+4KyM2thqE38pQ==", | ||
3637 | + "requires": { | ||
3638 | + "buffer": "^5.6.0" | ||
3639 | + } | ||
3640 | + }, | ||
3641 | + "buffer": { | ||
3642 | + "version": "5.7.1", | ||
3643 | + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", | ||
3644 | + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", | ||
3645 | + "requires": { | ||
3646 | + "base64-js": "^1.3.1", | ||
3647 | + "ieee754": "^1.1.13" | ||
3648 | + } | ||
3649 | + }, | ||
3614 | "buffer-from": { | 3650 | "buffer-from": { |
3615 | "version": "1.1.2", | 3651 | "version": "1.1.2", |
3616 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", | 3652 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", |
... | @@ -4458,6 +4494,11 @@ | ... | @@ -4458,6 +4494,11 @@ |
4458 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", | 4494 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", |
4459 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" | 4495 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" |
4460 | }, | 4496 | }, |
4497 | + "denque": { | ||
4498 | + "version": "2.0.1", | ||
4499 | + "resolved": "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz", | ||
4500 | + "integrity": "sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==" | ||
4501 | + }, | ||
4461 | "depd": { | 4502 | "depd": { |
4462 | "version": "2.0.0", | 4503 | "version": "2.0.0", |
4463 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", | 4504 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", |
... | @@ -5411,7 +5452,7 @@ | ... | @@ -5411,7 +5452,7 @@ |
5411 | "array-flatten": { | 5452 | "array-flatten": { |
5412 | "version": "1.1.1", | 5453 | "version": "1.1.1", |
5413 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", | 5454 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", |
5414 | - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" | 5455 | + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" |
5415 | }, | 5456 | }, |
5416 | "debug": { | 5457 | "debug": { |
5417 | "version": "2.6.9", | 5458 | "version": "2.6.9", |
... | @@ -6248,6 +6289,11 @@ | ... | @@ -6248,6 +6289,11 @@ |
6248 | "harmony-reflect": "^1.4.6" | 6289 | "harmony-reflect": "^1.4.6" |
6249 | } | 6290 | } |
6250 | }, | 6291 | }, |
6292 | + "ieee754": { | ||
6293 | + "version": "1.2.1", | ||
6294 | + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", | ||
6295 | + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" | ||
6296 | + }, | ||
6251 | "ignore": { | 6297 | "ignore": { |
6252 | "version": "5.2.0", | 6298 | "version": "5.2.0", |
6253 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", | 6299 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", |
... | @@ -6325,6 +6371,11 @@ | ... | @@ -6325,6 +6371,11 @@ |
6325 | "side-channel": "^1.0.4" | 6371 | "side-channel": "^1.0.4" |
6326 | } | 6372 | } |
6327 | }, | 6373 | }, |
6374 | + "ip": { | ||
6375 | + "version": "1.1.8", | ||
6376 | + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", | ||
6377 | + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" | ||
6378 | + }, | ||
6328 | "ipaddr.js": { | 6379 | "ipaddr.js": { |
6329 | "version": "2.0.1", | 6380 | "version": "2.0.1", |
6330 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", | 6381 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", |
... | @@ -8202,6 +8253,11 @@ | ... | @@ -8202,6 +8253,11 @@ |
8202 | "object.assign": "^4.1.2" | 8253 | "object.assign": "^4.1.2" |
8203 | } | 8254 | } |
8204 | }, | 8255 | }, |
8256 | + "kareem": { | ||
8257 | + "version": "2.3.5", | ||
8258 | + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.5.tgz", | ||
8259 | + "integrity": "sha512-qxCyQtp3ioawkiRNQr/v8xw9KIviMSSNmy+63Wubj7KmMn3g7noRXIZB4vPCAP+ETi2SR8eH6CvmlKZuGpoHOg==" | ||
8260 | + }, | ||
8205 | "keyv": { | 8261 | "keyv": { |
8206 | "version": "3.1.0", | 8262 | "version": "3.1.0", |
8207 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", | 8263 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", |
... | @@ -8413,6 +8469,12 @@ | ... | @@ -8413,6 +8469,12 @@ |
8413 | "fs-monkey": "1.0.3" | 8469 | "fs-monkey": "1.0.3" |
8414 | } | 8470 | } |
8415 | }, | 8471 | }, |
8472 | + "memory-pager": { | ||
8473 | + "version": "1.5.0", | ||
8474 | + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", | ||
8475 | + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", | ||
8476 | + "optional": true | ||
8477 | + }, | ||
8416 | "merge-descriptors": { | 8478 | "merge-descriptors": { |
8417 | "version": "1.0.1", | 8479 | "version": "1.0.1", |
8418 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", | 8480 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", |
... | @@ -8546,6 +8608,85 @@ | ... | @@ -8546,6 +8608,85 @@ |
8546 | "minimist": "^1.2.6" | 8608 | "minimist": "^1.2.6" |
8547 | } | 8609 | } |
8548 | }, | 8610 | }, |
8611 | + "mongodb": { | ||
8612 | + "version": "4.5.0", | ||
8613 | + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.5.0.tgz", | ||
8614 | + "integrity": "sha512-A2l8MjEpKojnhbCM0MK3+UOGUSGvTNNSv7AkP1fsT7tkambrkkqN/5F2y+PhzsV0Nbv58u04TETpkaSEdI2zKA==", | ||
8615 | + "requires": { | ||
8616 | + "bson": "^4.6.2", | ||
8617 | + "denque": "^2.0.1", | ||
8618 | + "mongodb-connection-string-url": "^2.5.2", | ||
8619 | + "saslprep": "^1.0.3", | ||
8620 | + "socks": "^2.6.2" | ||
8621 | + } | ||
8622 | + }, | ||
8623 | + "mongodb-connection-string-url": { | ||
8624 | + "version": "2.5.2", | ||
8625 | + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.5.2.tgz", | ||
8626 | + "integrity": "sha512-tWDyIG8cQlI5k3skB6ywaEA5F9f5OntrKKsT/Lteub2zgwSUlhqEN2inGgBTm8bpYJf8QYBdA/5naz65XDpczA==", | ||
8627 | + "requires": { | ||
8628 | + "@types/whatwg-url": "^8.2.1", | ||
8629 | + "whatwg-url": "^11.0.0" | ||
8630 | + }, | ||
8631 | + "dependencies": { | ||
8632 | + "tr46": { | ||
8633 | + "version": "3.0.0", | ||
8634 | + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", | ||
8635 | + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", | ||
8636 | + "requires": { | ||
8637 | + "punycode": "^2.1.1" | ||
8638 | + } | ||
8639 | + }, | ||
8640 | + "webidl-conversions": { | ||
8641 | + "version": "7.0.0", | ||
8642 | + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", | ||
8643 | + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==" | ||
8644 | + }, | ||
8645 | + "whatwg-url": { | ||
8646 | + "version": "11.0.0", | ||
8647 | + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", | ||
8648 | + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", | ||
8649 | + "requires": { | ||
8650 | + "tr46": "^3.0.0", | ||
8651 | + "webidl-conversions": "^7.0.0" | ||
8652 | + } | ||
8653 | + } | ||
8654 | + } | ||
8655 | + }, | ||
8656 | + "mongoose": { | ||
8657 | + "version": "6.3.4", | ||
8658 | + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.3.4.tgz", | ||
8659 | + "integrity": "sha512-UP0azyGMdY+2YNbJUHeHhnVw5vPzCqs4GQDUwHkilif/rwmSZktUQhQWMp1pUgRNeF2JC30vWGLrInZxD7K/Qw==", | ||
8660 | + "requires": { | ||
8661 | + "bson": "^4.6.2", | ||
8662 | + "kareem": "2.3.5", | ||
8663 | + "mongodb": "4.5.0", | ||
8664 | + "mpath": "0.9.0", | ||
8665 | + "mquery": "4.0.3", | ||
8666 | + "ms": "2.1.3", | ||
8667 | + "sift": "16.0.0" | ||
8668 | + }, | ||
8669 | + "dependencies": { | ||
8670 | + "ms": { | ||
8671 | + "version": "2.1.3", | ||
8672 | + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", | ||
8673 | + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" | ||
8674 | + } | ||
8675 | + } | ||
8676 | + }, | ||
8677 | + "mpath": { | ||
8678 | + "version": "0.9.0", | ||
8679 | + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", | ||
8680 | + "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==" | ||
8681 | + }, | ||
8682 | + "mquery": { | ||
8683 | + "version": "4.0.3", | ||
8684 | + "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.3.tgz", | ||
8685 | + "integrity": "sha512-J5heI+P08I6VJ2Ky3+33IpCdAvlYGTSUjwTPxkAr8i8EoduPMBX2OY/wa3IKZIQl7MU4SbFk8ndgSKyB/cl1zA==", | ||
8686 | + "requires": { | ||
8687 | + "debug": "4.x" | ||
8688 | + } | ||
8689 | + }, | ||
8549 | "ms": { | 8690 | "ms": { |
8550 | "version": "2.1.2", | 8691 | "version": "2.1.2", |
8551 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", | 8692 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", |
... | @@ -10526,6 +10667,15 @@ | ... | @@ -10526,6 +10667,15 @@ |
10526 | "resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz", | 10667 | "resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz", |
10527 | "integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA==" | 10668 | "integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA==" |
10528 | }, | 10669 | }, |
10670 | + "saslprep": { | ||
10671 | + "version": "1.0.3", | ||
10672 | + "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", | ||
10673 | + "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", | ||
10674 | + "optional": true, | ||
10675 | + "requires": { | ||
10676 | + "sparse-bitfield": "^3.0.3" | ||
10677 | + } | ||
10678 | + }, | ||
10529 | "sass-loader": { | 10679 | "sass-loader": { |
10530 | "version": "12.6.0", | 10680 | "version": "12.6.0", |
10531 | "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz", | 10681 | "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz", |
... | @@ -10756,6 +10906,11 @@ | ... | @@ -10756,6 +10906,11 @@ |
10756 | "object-inspect": "^1.9.0" | 10906 | "object-inspect": "^1.9.0" |
10757 | } | 10907 | } |
10758 | }, | 10908 | }, |
10909 | + "sift": { | ||
10910 | + "version": "16.0.0", | ||
10911 | + "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.0.tgz", | ||
10912 | + "integrity": "sha512-ILTjdP2Mv9V1kIxWMXeMTIRbOBrqKc4JAXmFMnFq3fKeyQ2Qwa3Dw1ubcye3vR+Y6ofA0b9gNDr/y2t6eUeIzQ==" | ||
10913 | + }, | ||
10759 | "signal-exit": { | 10914 | "signal-exit": { |
10760 | "version": "3.0.7", | 10915 | "version": "3.0.7", |
10761 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", | 10916 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", |
... | @@ -10771,6 +10926,11 @@ | ... | @@ -10771,6 +10926,11 @@ |
10771 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", | 10926 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", |
10772 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" | 10927 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" |
10773 | }, | 10928 | }, |
10929 | + "smart-buffer": { | ||
10930 | + "version": "4.2.0", | ||
10931 | + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", | ||
10932 | + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" | ||
10933 | + }, | ||
10774 | "sockjs": { | 10934 | "sockjs": { |
10775 | "version": "0.3.24", | 10935 | "version": "0.3.24", |
10776 | "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", | 10936 | "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", |
... | @@ -10781,6 +10941,15 @@ | ... | @@ -10781,6 +10941,15 @@ |
10781 | "websocket-driver": "^0.7.4" | 10941 | "websocket-driver": "^0.7.4" |
10782 | } | 10942 | } |
10783 | }, | 10943 | }, |
10944 | + "socks": { | ||
10945 | + "version": "2.6.2", | ||
10946 | + "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.2.tgz", | ||
10947 | + "integrity": "sha512-zDZhHhZRY9PxRruRMR7kMhnf3I8hDs4S3f9RecfnGxvcBHQcKcIH/oUcEWffsfl1XxdYlA7nnlGbbTvPz9D8gA==", | ||
10948 | + "requires": { | ||
10949 | + "ip": "^1.1.5", | ||
10950 | + "smart-buffer": "^4.2.0" | ||
10951 | + } | ||
10952 | + }, | ||
10784 | "source-list-map": { | 10953 | "source-list-map": { |
10785 | "version": "2.0.1", | 10954 | "version": "2.0.1", |
10786 | "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", | 10955 | "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", |
... | @@ -10846,6 +11015,15 @@ | ... | @@ -10846,6 +11015,15 @@ |
10846 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", | 11015 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", |
10847 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" | 11016 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" |
10848 | }, | 11017 | }, |
11018 | + "sparse-bitfield": { | ||
11019 | + "version": "3.0.3", | ||
11020 | + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", | ||
11021 | + "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", | ||
11022 | + "optional": true, | ||
11023 | + "requires": { | ||
11024 | + "memory-pager": "^1.0.2" | ||
11025 | + } | ||
11026 | + }, | ||
10849 | "spdy": { | 11027 | "spdy": { |
10850 | "version": "4.0.2", | 11028 | "version": "4.0.2", |
10851 | "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", | 11029 | "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", | ... | ... |
... | @@ -9,6 +9,7 @@ | ... | @@ -9,6 +9,7 @@ |
9 | "cors": "^2.8.5", | 9 | "cors": "^2.8.5", |
10 | "express": "^4.18.1", | 10 | "express": "^4.18.1", |
11 | "http-proxy-middleware": "^2.0.6", | 11 | "http-proxy-middleware": "^2.0.6", |
12 | + "mongoose": "^6.3.4", | ||
12 | "nodemon": "^2.0.16", | 13 | "nodemon": "^2.0.16", |
13 | "react": "^18.1.0", | 14 | "react": "^18.1.0", |
14 | "react-dom": "^18.1.0", | 15 | "react-dom": "^18.1.0", |
... | @@ -19,7 +20,8 @@ | ... | @@ -19,7 +20,8 @@ |
19 | "start": "react-scripts start", | 20 | "start": "react-scripts start", |
20 | "build": "react-scripts build", | 21 | "build": "react-scripts build", |
21 | "test": "react-scripts test", | 22 | "test": "react-scripts test", |
22 | - "eject": "react-scripts eject" | 23 | + "eject": "react-scripts eject", |
24 | + "server": "node server.js" | ||
23 | }, | 25 | }, |
24 | "eslintConfig": { | 26 | "eslintConfig": { |
25 | "extends": [ | 27 | "extends": [ | ... | ... |
... | @@ -2,9 +2,14 @@ let express = require('express'); | ... | @@ -2,9 +2,14 @@ let express = require('express'); |
2 | let bodyParser = require('body-parser'); | 2 | let bodyParser = require('body-parser'); |
3 | let mongoose = require('mongoose'); | 3 | let mongoose = require('mongoose'); |
4 | 4 | ||
5 | +let cors = require('cors'); | ||
5 | let app = express(); | 6 | let app = express(); |
7 | +app.use(cors()); | ||
8 | + | ||
6 | let logid=null; | 9 | let logid=null; |
7 | -const uri = 'mongodb+srv://sjieu17:tjrwls147714@cluster0.lc6pe.mongodb.net/weather_briefing?retryWrites=true&w=majority'; | 10 | +//const uri = 'mongodb+srv://sjieu17:tjrwls147714@cluster0.lc6pe.mongodb.net/weather_briefing?retryWrites=true&w=majority'; |
11 | +const uri = 'mongodb+srv://tahmkench:dkrldnsl7@cluster0.vzipl.mongodb.net/?retryWrites=true&w=majority'; | ||
12 | + | ||
8 | let db = mongoose.connect(uri, (err) => { | 13 | let db = mongoose.connect(uri, (err) => { |
9 | if (err) { | 14 | if (err) { |
10 | console.log(err.message); | 15 | console.log(err.message); |
... | @@ -17,7 +22,7 @@ var UserSchema = new mongoose.Schema({ | ... | @@ -17,7 +22,7 @@ var UserSchema = new mongoose.Schema({ |
17 | name: String, | 22 | name: String, |
18 | id: String, | 23 | id: String, |
19 | password: String, | 24 | password: String, |
20 | - gender:Number | 25 | + gender:String |
21 | }); | 26 | }); |
22 | 27 | ||
23 | var Users = mongoose.model('users', UserSchema); | 28 | var Users = mongoose.model('users', UserSchema); |
... | @@ -25,25 +30,33 @@ var Users = mongoose.model('users', UserSchema); | ... | @@ -25,25 +30,33 @@ var Users = mongoose.model('users', UserSchema); |
25 | app.use(bodyParser.json()); | 30 | app.use(bodyParser.json()); |
26 | app.use(bodyParser.urlencoded({ limit: '1gb', extended: false })); | 31 | app.use(bodyParser.urlencoded({ limit: '1gb', extended: false })); |
27 | 32 | ||
28 | -app.post('/signup', (req, res) => { | 33 | +app.post('/api/register', (req, res) => { |
29 | - Users.findOne({ id: req.body.id, password: req.body.password }, (err, user) => { | 34 | + |
30 | - if (err) return res.status(500).json({ message: '에러가 발생하였습니다.' }); | 35 | + const new_user = new Users(req.body); |
36 | + | ||
37 | + new_user.save((err) => { | ||
38 | + if (err) return res.status(500).json({ registerSuccess: false}); | ||
39 | + else return res.status(200).json({ registerSuccess: true}); | ||
40 | + }) | ||
41 | + | ||
42 | + /*Users.findOne({ id: req.body.id, password: req.body.password }, (err, user) => { | ||
43 | + if (err) return res.status(500).json({ registerSuccess: '-1'}); | ||
31 | else if (user){ | 44 | else if (user){ |
32 | - res.send('이미 존재하는 사용자입니다.'); | 45 | + res.json({ registerSuccess: '0'}); |
33 | } | 46 | } |
34 | else{ | 47 | else{ |
35 | - var new_user = new Users(req.body); | 48 | + const new_user = new Users(req.body); |
36 | 49 | ||
37 | new_user.save((err) => { | 50 | new_user.save((err) => { |
38 | - if (err) return res.status(500).json({ message: '회원가입에 실패하였습니다.' }); | 51 | + if (err) return res.status(500).json({ registerSuccess: '-1'}); |
39 | - else return res.status(200).json({ message: '회원가입이 완료되었습니다.', data: new_user }); | 52 | + else return res.status(200).json({ registerSuccess: '1'}); |
40 | }); | 53 | }); |
41 | } | 54 | } |
42 | - }); | 55 | + });*/ |
43 | 56 | ||
44 | }); | 57 | }); |
45 | 58 | ||
46 | -app.post('/signin', (req, res) => { | 59 | +app.post('/api/login', (req, res) => { |
47 | Users.findOne({ id: req.body.id, password: req.body.password }, (err, user) => { | 60 | Users.findOne({ id: req.body.id, password: req.body.password }, (err, user) => { |
48 | if (err) return res.status(500).json({ message: '에러가 발생하였습니다.' }); | 61 | if (err) return res.status(500).json({ message: '에러가 발생하였습니다.' }); |
49 | else if (user){ | 62 | else if (user){ |
... | @@ -53,8 +66,10 @@ app.post('/signin', (req, res) => { | ... | @@ -53,8 +66,10 @@ app.post('/signin', (req, res) => { |
53 | else return res.status(404).json({ message: '아이디와 비밀번호를 다시 확인해주세요.' }); | 66 | else return res.status(404).json({ message: '아이디와 비밀번호를 다시 확인해주세요.' }); |
54 | }); | 67 | }); |
55 | }); | 68 | }); |
56 | -app.post('/logout',(req,res)=>{ | 69 | + |
70 | +app.post('/api/logout',(req,res)=>{ | ||
57 | logid=null; | 71 | logid=null; |
58 | res.send('로그아웃 되었습니다.'); | 72 | res.send('로그아웃 되었습니다.'); |
59 | }); | 73 | }); |
74 | + | ||
60 | app.listen(4000, () => console.log('Server On 4000')); | 75 | app.listen(4000, () => console.log('Server On 4000')); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment