배희수
Committed by unknown

mysql 개발 환경 구축 및 생활 기상 지수/사망확률 변수 정의

...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
9 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", 9 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
10 "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", 10 "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
11 "requires": { 11 "requires": {
12 - "mime-types": "2.1.21", 12 + "mime-types": "~2.1.18",
13 "negotiator": "0.6.1" 13 "negotiator": "0.6.1"
14 } 14 }
15 }, 15 },
...@@ -111,6 +111,11 @@ ...@@ -111,6 +111,11 @@
111 "callsite": "1.0.0" 111 "callsite": "1.0.0"
112 } 112 }
113 }, 113 },
114 + "bignumber.js": {
115 + "version": "4.1.0",
116 + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-4.1.0.tgz",
117 + "integrity": "sha512-eJzYkFYy9L4JzXsbymsFn3p54D+llV27oTQ+ziJG7WFRheJcNZilgVXMG0LoZtlQSKBsJdWtLFqOD0u+U0jZKA=="
118 + },
114 "blob": { 119 "blob": {
115 "version": "0.0.5", 120 "version": "0.0.5",
116 "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.5.tgz", 121 "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.5.tgz",
...@@ -122,15 +127,15 @@ ...@@ -122,15 +127,15 @@
122 "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=", 127 "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=",
123 "requires": { 128 "requires": {
124 "bytes": "3.0.0", 129 "bytes": "3.0.0",
125 - "content-type": "1.0.4", 130 + "content-type": "~1.0.4",
126 "debug": "2.6.9", 131 "debug": "2.6.9",
127 - "depd": "1.1.2", 132 + "depd": "~1.1.2",
128 - "http-errors": "1.6.3", 133 + "http-errors": "~1.6.3",
129 "iconv-lite": "0.4.23", 134 "iconv-lite": "0.4.23",
130 - "on-finished": "2.3.0", 135 + "on-finished": "~2.3.0",
131 "qs": "6.5.2", 136 "qs": "6.5.2",
132 "raw-body": "2.3.3", 137 "raw-body": "2.3.3",
133 - "type-is": "1.6.16" 138 + "type-is": "~1.6.16"
134 } 139 }
135 }, 140 },
136 "bytes": { 141 "bytes": {
...@@ -181,7 +186,7 @@ ...@@ -181,7 +186,7 @@
181 "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.15.tgz", 186 "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.15.tgz",
182 "integrity": "sha512-4aE67DL33dSW9gw4CI2H/yTxqHLNcxp0yS6jB+4h+wr3e43+1z7vm0HU9qXOH8j+qjKuL8+UtkOxYQSMq60Ylw==", 187 "integrity": "sha512-4aE67DL33dSW9gw4CI2H/yTxqHLNcxp0yS6jB+4h+wr3e43+1z7vm0HU9qXOH8j+qjKuL8+UtkOxYQSMq60Ylw==",
183 "requires": { 188 "requires": {
184 - "mime-db": "1.37.0" 189 + "mime-db": ">= 1.36.0 < 2"
185 } 190 }
186 }, 191 },
187 "compression": { 192 "compression": {
...@@ -189,13 +194,13 @@ ...@@ -189,13 +194,13 @@
189 "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.3.tgz", 194 "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.3.tgz",
190 "integrity": "sha512-HSjyBG5N1Nnz7tF2+O7A9XUhyjru71/fwgNb7oIsEVHR0WShfs2tIS/EySLgiTe98aOK18YDlMXpzjCXY/n9mg==", 195 "integrity": "sha512-HSjyBG5N1Nnz7tF2+O7A9XUhyjru71/fwgNb7oIsEVHR0WShfs2tIS/EySLgiTe98aOK18YDlMXpzjCXY/n9mg==",
191 "requires": { 196 "requires": {
192 - "accepts": "1.3.5", 197 + "accepts": "~1.3.5",
193 "bytes": "3.0.0", 198 "bytes": "3.0.0",
194 - "compressible": "2.0.15", 199 + "compressible": "~2.0.14",
195 "debug": "2.6.9", 200 "debug": "2.6.9",
196 - "on-headers": "1.0.1", 201 + "on-headers": "~1.0.1",
197 "safe-buffer": "5.1.2", 202 "safe-buffer": "5.1.2",
198 - "vary": "1.1.2" 203 + "vary": "~1.1.2"
199 } 204 }
200 }, 205 },
201 "content-disposition": { 206 "content-disposition": {
...@@ -312,12 +317,12 @@ ...@@ -312,12 +317,12 @@
312 "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.3.1.tgz", 317 "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.3.1.tgz",
313 "integrity": "sha512-p0njqQo5QWVxJauKcnp5IO+LBeE5JD1tAf+UxPU8ASEUHSpsSSfYR+kVb8XGGH8AEDUa1Dk5jCvPQShNBL5BdQ==", 318 "integrity": "sha512-p0njqQo5QWVxJauKcnp5IO+LBeE5JD1tAf+UxPU8ASEUHSpsSSfYR+kVb8XGGH8AEDUa1Dk5jCvPQShNBL5BdQ==",
314 "requires": { 319 "requires": {
315 - "accepts": "1.3.5", 320 + "accepts": "~1.3.4",
316 "base64id": "1.0.0", 321 "base64id": "1.0.0",
317 "cookie": "0.3.1", 322 "cookie": "0.3.1",
318 - "debug": "3.1.0", 323 + "debug": "~3.1.0",
319 - "engine.io-parser": "2.1.3", 324 + "engine.io-parser": "~2.1.0",
320 - "ws": "6.1.2" 325 + "ws": "~6.1.0"
321 }, 326 },
322 "dependencies": { 327 "dependencies": {
323 "debug": { 328 "debug": {
...@@ -337,14 +342,14 @@ ...@@ -337,14 +342,14 @@
337 "requires": { 342 "requires": {
338 "component-emitter": "1.2.1", 343 "component-emitter": "1.2.1",
339 "component-inherit": "0.0.3", 344 "component-inherit": "0.0.3",
340 - "debug": "3.1.0", 345 + "debug": "~3.1.0",
341 - "engine.io-parser": "2.1.3", 346 + "engine.io-parser": "~2.1.1",
342 "has-cors": "1.1.0", 347 "has-cors": "1.1.0",
343 "indexof": "0.0.1", 348 "indexof": "0.0.1",
344 "parseqs": "0.0.5", 349 "parseqs": "0.0.5",
345 "parseuri": "0.0.5", 350 "parseuri": "0.0.5",
346 - "ws": "6.1.2", 351 + "ws": "~6.1.0",
347 - "xmlhttprequest-ssl": "1.5.5", 352 + "xmlhttprequest-ssl": "~1.5.4",
348 "yeast": "0.1.2" 353 "yeast": "0.1.2"
349 }, 354 },
350 "dependencies": { 355 "dependencies": {
...@@ -364,10 +369,10 @@ ...@@ -364,10 +369,10 @@
364 "integrity": "sha512-6HXPre2O4Houl7c4g7Ic/XzPnHBvaEmN90vtRO9uLmwtRqQmTOw0QMevL1TOfL2Cpu1VzsaTmMotQgMdkzGkVA==", 369 "integrity": "sha512-6HXPre2O4Houl7c4g7Ic/XzPnHBvaEmN90vtRO9uLmwtRqQmTOw0QMevL1TOfL2Cpu1VzsaTmMotQgMdkzGkVA==",
365 "requires": { 370 "requires": {
366 "after": "0.8.2", 371 "after": "0.8.2",
367 - "arraybuffer.slice": "0.0.7", 372 + "arraybuffer.slice": "~0.0.7",
368 "base64-arraybuffer": "0.1.5", 373 "base64-arraybuffer": "0.1.5",
369 "blob": "0.0.5", 374 "blob": "0.0.5",
370 - "has-binary2": "1.0.3" 375 + "has-binary2": "~1.0.2"
371 } 376 }
372 }, 377 },
373 "escape-html": { 378 "escape-html": {
...@@ -390,36 +395,36 @@ ...@@ -390,36 +395,36 @@
390 "resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz", 395 "resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz",
391 "integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==", 396 "integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==",
392 "requires": { 397 "requires": {
393 - "accepts": "1.3.5", 398 + "accepts": "~1.3.5",
394 "array-flatten": "1.1.1", 399 "array-flatten": "1.1.1",
395 "body-parser": "1.18.3", 400 "body-parser": "1.18.3",
396 "content-disposition": "0.5.2", 401 "content-disposition": "0.5.2",
397 - "content-type": "1.0.4", 402 + "content-type": "~1.0.4",
398 "cookie": "0.3.1", 403 "cookie": "0.3.1",
399 "cookie-signature": "1.0.6", 404 "cookie-signature": "1.0.6",
400 "debug": "2.6.9", 405 "debug": "2.6.9",
401 - "depd": "1.1.2", 406 + "depd": "~1.1.2",
402 - "encodeurl": "1.0.2", 407 + "encodeurl": "~1.0.2",
403 - "escape-html": "1.0.3", 408 + "escape-html": "~1.0.3",
404 - "etag": "1.8.1", 409 + "etag": "~1.8.1",
405 "finalhandler": "1.1.1", 410 "finalhandler": "1.1.1",
406 "fresh": "0.5.2", 411 "fresh": "0.5.2",
407 "merge-descriptors": "1.0.1", 412 "merge-descriptors": "1.0.1",
408 - "methods": "1.1.2", 413 + "methods": "~1.1.2",
409 - "on-finished": "2.3.0", 414 + "on-finished": "~2.3.0",
410 - "parseurl": "1.3.2", 415 + "parseurl": "~1.3.2",
411 "path-to-regexp": "0.1.7", 416 "path-to-regexp": "0.1.7",
412 - "proxy-addr": "2.0.4", 417 + "proxy-addr": "~2.0.4",
413 "qs": "6.5.2", 418 "qs": "6.5.2",
414 - "range-parser": "1.2.0", 419 + "range-parser": "~1.2.0",
415 "safe-buffer": "5.1.2", 420 "safe-buffer": "5.1.2",
416 "send": "0.16.2", 421 "send": "0.16.2",
417 "serve-static": "1.13.2", 422 "serve-static": "1.13.2",
418 "setprototypeof": "1.1.0", 423 "setprototypeof": "1.1.0",
419 - "statuses": "1.4.0", 424 + "statuses": "~1.4.0",
420 - "type-is": "1.6.16", 425 + "type-is": "~1.6.16",
421 "utils-merge": "1.0.1", 426 "utils-merge": "1.0.1",
422 - "vary": "1.1.2" 427 + "vary": "~1.1.2"
423 }, 428 },
424 "dependencies": { 429 "dependencies": {
425 "statuses": { 430 "statuses": {
...@@ -460,12 +465,12 @@ ...@@ -460,12 +465,12 @@
460 "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", 465 "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==",
461 "requires": { 466 "requires": {
462 "debug": "2.6.9", 467 "debug": "2.6.9",
463 - "encodeurl": "1.0.2", 468 + "encodeurl": "~1.0.2",
464 - "escape-html": "1.0.3", 469 + "escape-html": "~1.0.3",
465 - "on-finished": "2.3.0", 470 + "on-finished": "~2.3.0",
466 - "parseurl": "1.3.2", 471 + "parseurl": "~1.3.2",
467 - "statuses": "1.4.0", 472 + "statuses": "~1.4.0",
468 - "unpipe": "1.0.0" 473 + "unpipe": "~1.0.0"
469 }, 474 },
470 "dependencies": { 475 "dependencies": {
471 "statuses": { 476 "statuses": {
...@@ -597,10 +602,10 @@ ...@@ -597,10 +602,10 @@
597 "resolved": "http://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", 602 "resolved": "http://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",
598 "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", 603 "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=",
599 "requires": { 604 "requires": {
600 - "depd": "1.1.2", 605 + "depd": "~1.1.2",
601 "inherits": "2.0.3", 606 "inherits": "2.0.3",
602 "setprototypeof": "1.1.0", 607 "setprototypeof": "1.1.0",
603 - "statuses": "1.5.0" 608 + "statuses": ">= 1.4.0 < 2"
604 } 609 }
605 }, 610 },
606 "http-signature": { 611 "http-signature": {
...@@ -618,7 +623,7 @@ ...@@ -618,7 +623,7 @@
618 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", 623 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz",
619 "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", 624 "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==",
620 "requires": { 625 "requires": {
621 - "safer-buffer": "2.1.2" 626 + "safer-buffer": ">= 2.1.2 < 3"
622 } 627 }
623 }, 628 },
624 "ienoopen": { 629 "ienoopen": {
...@@ -717,7 +722,7 @@ ...@@ -717,7 +722,7 @@
717 "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", 722 "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz",
718 "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", 723 "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==",
719 "requires": { 724 "requires": {
720 - "mime-db": "1.37.0" 725 + "mime-db": "~1.37.0"
721 } 726 }
722 }, 727 },
723 "morgan": { 728 "morgan": {
...@@ -725,11 +730,11 @@ ...@@ -725,11 +730,11 @@
725 "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz", 730 "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz",
726 "integrity": "sha512-HQStPIV4y3afTiCYVxirakhlCfGkI161c76kKFca7Fk1JusM//Qeo1ej2XaMniiNeaZklMVrh3vTtIzpzwbpmA==", 731 "integrity": "sha512-HQStPIV4y3afTiCYVxirakhlCfGkI161c76kKFca7Fk1JusM//Qeo1ej2XaMniiNeaZklMVrh3vTtIzpzwbpmA==",
727 "requires": { 732 "requires": {
728 - "basic-auth": "2.0.1", 733 + "basic-auth": "~2.0.0",
729 "debug": "2.6.9", 734 "debug": "2.6.9",
730 - "depd": "1.1.2", 735 + "depd": "~1.1.2",
731 - "on-finished": "2.3.0", 736 + "on-finished": "~2.3.0",
732 - "on-headers": "1.0.1" 737 + "on-headers": "~1.0.1"
733 } 738 }
734 }, 739 },
735 "ms": { 740 "ms": {
...@@ -737,6 +742,17 @@ ...@@ -737,6 +742,17 @@
737 "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 742 "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
738 "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 743 "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
739 }, 744 },
745 + "mysql": {
746 + "version": "2.16.0",
747 + "resolved": "https://registry.npmjs.org/mysql/-/mysql-2.16.0.tgz",
748 + "integrity": "sha512-dPbN2LHonQp7D5ja5DJXNbCLe/HRdu+f3v61aguzNRQIrmZLOeRoymBYyeThrR6ug+FqzDL95Gc9maqZUJS+Gw==",
749 + "requires": {
750 + "bignumber.js": "4.1.0",
751 + "readable-stream": "2.3.6",
752 + "safe-buffer": "5.1.2",
753 + "sqlstring": "2.3.1"
754 + }
755 + },
740 "negotiator": { 756 "negotiator": {
741 "version": "0.6.1", 757 "version": "0.6.1",
742 "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", 758 "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
...@@ -775,7 +791,7 @@ ...@@ -775,7 +791,7 @@
775 "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", 791 "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz",
776 "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", 792 "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=",
777 "requires": { 793 "requires": {
778 - "better-assert": "1.0.2" 794 + "better-assert": "~1.0.0"
779 } 795 }
780 }, 796 },
781 "parseuri": { 797 "parseuri": {
...@@ -783,7 +799,7 @@ ...@@ -783,7 +799,7 @@
783 "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz", 799 "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz",
784 "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", 800 "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=",
785 "requires": { 801 "requires": {
786 - "better-assert": "1.0.2" 802 + "better-assert": "~1.0.0"
787 } 803 }
788 }, 804 },
789 "parseurl": { 805 "parseurl": {
...@@ -806,12 +822,17 @@ ...@@ -806,12 +822,17 @@
806 "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.5.tgz", 822 "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.5.tgz",
807 "integrity": "sha512-TuvHS8AOIZNAlE77WUDiR4rySV/VMptyMfcfeoMgs4P8apaZM3JrnbzBiixKUv+XR6i+BXrQh8WAnjaSPFO65Q==" 823 "integrity": "sha512-TuvHS8AOIZNAlE77WUDiR4rySV/VMptyMfcfeoMgs4P8apaZM3JrnbzBiixKUv+XR6i+BXrQh8WAnjaSPFO65Q=="
808 }, 824 },
825 + "process-nextick-args": {
826 + "version": "2.0.0",
827 + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
828 + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw=="
829 + },
809 "proxy-addr": { 830 "proxy-addr": {
810 "version": "2.0.4", 831 "version": "2.0.4",
811 "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", 832 "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz",
812 "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==", 833 "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==",
813 "requires": { 834 "requires": {
814 - "forwarded": "0.1.2", 835 + "forwarded": "~0.1.2",
815 "ipaddr.js": "1.8.0" 836 "ipaddr.js": "1.8.0"
816 } 837 }
817 }, 838 },
...@@ -846,6 +867,27 @@ ...@@ -846,6 +867,27 @@
846 "unpipe": "1.0.0" 867 "unpipe": "1.0.0"
847 } 868 }
848 }, 869 },
870 + "readable-stream": {
871 + "version": "2.3.6",
872 + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
873 + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
874 + "requires": {
875 + "core-util-is": "~1.0.0",
876 + "inherits": "~2.0.3",
877 + "isarray": "~1.0.0",
878 + "process-nextick-args": "~2.0.0",
879 + "safe-buffer": "~5.1.1",
880 + "string_decoder": "~1.1.1",
881 + "util-deprecate": "~1.0.1"
882 + },
883 + "dependencies": {
884 + "isarray": {
885 + "version": "1.0.0",
886 + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
887 + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
888 + }
889 + }
890 + },
849 "referrer-policy": { 891 "referrer-policy": {
850 "version": "1.1.0", 892 "version": "1.1.0",
851 "resolved": "https://registry.npmjs.org/referrer-policy/-/referrer-policy-1.1.0.tgz", 893 "resolved": "https://registry.npmjs.org/referrer-policy/-/referrer-policy-1.1.0.tgz",
...@@ -894,18 +936,18 @@ ...@@ -894,18 +936,18 @@
894 "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", 936 "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==",
895 "requires": { 937 "requires": {
896 "debug": "2.6.9", 938 "debug": "2.6.9",
897 - "depd": "1.1.2", 939 + "depd": "~1.1.2",
898 - "destroy": "1.0.4", 940 + "destroy": "~1.0.4",
899 - "encodeurl": "1.0.2", 941 + "encodeurl": "~1.0.2",
900 - "escape-html": "1.0.3", 942 + "escape-html": "~1.0.3",
901 - "etag": "1.8.1", 943 + "etag": "~1.8.1",
902 "fresh": "0.5.2", 944 "fresh": "0.5.2",
903 - "http-errors": "1.6.3", 945 + "http-errors": "~1.6.2",
904 "mime": "1.4.1", 946 "mime": "1.4.1",
905 "ms": "2.0.0", 947 "ms": "2.0.0",
906 - "on-finished": "2.3.0", 948 + "on-finished": "~2.3.0",
907 - "range-parser": "1.2.0", 949 + "range-parser": "~1.2.0",
908 - "statuses": "1.4.0" 950 + "statuses": "~1.4.0"
909 }, 951 },
910 "dependencies": { 952 "dependencies": {
911 "statuses": { 953 "statuses": {
...@@ -920,9 +962,9 @@ ...@@ -920,9 +962,9 @@
920 "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", 962 "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz",
921 "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", 963 "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==",
922 "requires": { 964 "requires": {
923 - "encodeurl": "1.0.2", 965 + "encodeurl": "~1.0.2",
924 - "escape-html": "1.0.3", 966 + "escape-html": "~1.0.3",
925 - "parseurl": "1.3.2", 967 + "parseurl": "~1.3.2",
926 "send": "0.16.2" 968 "send": "0.16.2"
927 } 969 }
928 }, 970 },
...@@ -936,12 +978,12 @@ ...@@ -936,12 +978,12 @@
936 "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.2.0.tgz", 978 "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.2.0.tgz",
937 "integrity": "sha512-wxXrIuZ8AILcn+f1B4ez4hJTPG24iNgxBBDaJfT6MsyOhVYiTXWexGoPkd87ktJG8kQEcL/NBvRi64+9k4Kc0w==", 979 "integrity": "sha512-wxXrIuZ8AILcn+f1B4ez4hJTPG24iNgxBBDaJfT6MsyOhVYiTXWexGoPkd87ktJG8kQEcL/NBvRi64+9k4Kc0w==",
938 "requires": { 980 "requires": {
939 - "debug": "4.1.0", 981 + "debug": "~4.1.0",
940 - "engine.io": "3.3.1", 982 + "engine.io": "~3.3.1",
941 - "has-binary2": "1.0.3", 983 + "has-binary2": "~1.0.2",
942 - "socket.io-adapter": "1.1.1", 984 + "socket.io-adapter": "~1.1.0",
943 "socket.io-client": "2.2.0", 985 "socket.io-client": "2.2.0",
944 - "socket.io-parser": "3.3.0" 986 + "socket.io-parser": "~3.3.0"
945 }, 987 },
946 "dependencies": { 988 "dependencies": {
947 "debug": { 989 "debug": {
...@@ -949,7 +991,7 @@ ...@@ -949,7 +991,7 @@
949 "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.0.tgz", 991 "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.0.tgz",
950 "integrity": "sha512-heNPJUJIqC+xB6ayLAMHaIrmN9HKa7aQO8MGqKpvCA+uJYVcvR6l5kgdrhRuwPFHU7P5/A1w0BjByPHwpfTDKg==", 992 "integrity": "sha512-heNPJUJIqC+xB6ayLAMHaIrmN9HKa7aQO8MGqKpvCA+uJYVcvR6l5kgdrhRuwPFHU7P5/A1w0BjByPHwpfTDKg==",
951 "requires": { 993 "requires": {
952 - "ms": "2.1.1" 994 + "ms": "^2.1.1"
953 } 995 }
954 }, 996 },
955 "ms": { 997 "ms": {
...@@ -973,15 +1015,15 @@ ...@@ -973,15 +1015,15 @@
973 "base64-arraybuffer": "0.1.5", 1015 "base64-arraybuffer": "0.1.5",
974 "component-bind": "1.0.0", 1016 "component-bind": "1.0.0",
975 "component-emitter": "1.2.1", 1017 "component-emitter": "1.2.1",
976 - "debug": "3.1.0", 1018 + "debug": "~3.1.0",
977 - "engine.io-client": "3.3.1", 1019 + "engine.io-client": "~3.3.1",
978 - "has-binary2": "1.0.3", 1020 + "has-binary2": "~1.0.2",
979 "has-cors": "1.1.0", 1021 "has-cors": "1.1.0",
980 "indexof": "0.0.1", 1022 "indexof": "0.0.1",
981 "object-component": "0.0.3", 1023 "object-component": "0.0.3",
982 "parseqs": "0.0.5", 1024 "parseqs": "0.0.5",
983 "parseuri": "0.0.5", 1025 "parseuri": "0.0.5",
984 - "socket.io-parser": "3.3.0", 1026 + "socket.io-parser": "~3.3.0",
985 "to-array": "0.1.4" 1027 "to-array": "0.1.4"
986 }, 1028 },
987 "dependencies": { 1029 "dependencies": {
...@@ -1001,7 +1043,7 @@ ...@@ -1001,7 +1043,7 @@
1001 "integrity": "sha512-hczmV6bDgdaEbVqhAeVMM/jfUfzuEZHsQg6eOmLgJht6G3mPKMxYm75w2+qhAQZ+4X+1+ATZ+QFKeOZD5riHng==", 1043 "integrity": "sha512-hczmV6bDgdaEbVqhAeVMM/jfUfzuEZHsQg6eOmLgJht6G3mPKMxYm75w2+qhAQZ+4X+1+ATZ+QFKeOZD5riHng==",
1002 "requires": { 1044 "requires": {
1003 "component-emitter": "1.2.1", 1045 "component-emitter": "1.2.1",
1004 - "debug": "3.1.0", 1046 + "debug": "~3.1.0",
1005 "isarray": "2.0.1" 1047 "isarray": "2.0.1"
1006 }, 1048 },
1007 "dependencies": { 1049 "dependencies": {
...@@ -1029,13 +1071,25 @@ ...@@ -1029,13 +1071,25 @@
1029 "jsbn": "0.1.1", 1071 "jsbn": "0.1.1",
1030 "safer-buffer": "2.1.2", 1072 "safer-buffer": "2.1.2",
1031 "tweetnacl": "0.14.5" 1073 "tweetnacl": "0.14.5"
1032 - } 1074 + },
1075 + "sqlstring": {
1076 + "version": "2.3.1",
1077 + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.1.tgz",
1078 + "integrity": "sha1-R1OT/56RR5rqYtyvDKPRSYOn+0A="
1033 }, 1079 },
1034 "statuses": { 1080 "statuses": {
1035 "version": "1.5.0", 1081 "version": "1.5.0",
1036 "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1082 "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
1037 "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 1083 "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
1038 }, 1084 },
1085 + "string_decoder": {
1086 + "version": "1.1.1",
1087 + "resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
1088 + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
1089 + "requires": {
1090 + "safe-buffer": "~5.1.0"
1091 + }
1092 + },
1039 "to-array": { 1093 "to-array": {
1040 "version": "0.1.4", 1094 "version": "0.1.4",
1041 "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz", 1095 "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz",
...@@ -1076,7 +1130,7 @@ ...@@ -1076,7 +1130,7 @@
1076 "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", 1130 "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==",
1077 "requires": { 1131 "requires": {
1078 "media-typer": "0.3.0", 1132 "media-typer": "0.3.0",
1079 - "mime-types": "2.1.21" 1133 + "mime-types": "~2.1.18"
1080 } 1134 }
1081 }, 1135 },
1082 "unpipe": { 1136 "unpipe": {
...@@ -1090,7 +1144,11 @@ ...@@ -1090,7 +1144,11 @@
1090 "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 1144 "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
1091 "requires": { 1145 "requires": {
1092 "punycode": "2.1.1" 1146 "punycode": "2.1.1"
1093 - } 1147 + },
1148 + "util-deprecate": {
1149 + "version": "1.0.2",
1150 + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1151 + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
1094 }, 1152 },
1095 "utils-merge": { 1153 "utils-merge": {
1096 "version": "1.0.1", 1154 "version": "1.0.1",
...@@ -1122,7 +1180,7 @@ ...@@ -1122,7 +1180,7 @@
1122 "resolved": "https://registry.npmjs.org/ws/-/ws-6.1.2.tgz", 1180 "resolved": "https://registry.npmjs.org/ws/-/ws-6.1.2.tgz",
1123 "integrity": "sha512-rfUqzvz0WxmSXtJpPMX2EeASXabOrSMk1ruMOV3JBTBjo4ac2lDjGGsbQSyxj8Odhw5fBib8ZKEjDNvgouNKYw==", 1181 "integrity": "sha512-rfUqzvz0WxmSXtJpPMX2EeASXabOrSMk1ruMOV3JBTBjo4ac2lDjGGsbQSyxj8Odhw5fBib8ZKEjDNvgouNKYw==",
1124 "requires": { 1182 "requires": {
1125 - "async-limiter": "1.0.0" 1183 + "async-limiter": "~1.0.0"
1126 } 1184 }
1127 }, 1185 },
1128 "x-xss-protection": { 1186 "x-xss-protection": {
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
16 "http-errors": "~1.6.2", 16 "http-errors": "~1.6.2",
17 "morgan": "~1.9.0", 17 "morgan": "~1.9.0",
18 "request": "^2.88.0", 18 "request": "^2.88.0",
19 + "mysql": "^2.16.0",
19 "socket.io": "^2.1.1" 20 "socket.io": "^2.1.1"
20 } 21 }
21 } 22 }
......
1 var express = require('express'); 1 var express = require('express');
2 var router = express.Router(); 2 var router = express.Router();
3 +var mysql = require('mysql');
4 +
5 +var connection = mysql.createConnection({
6 + host : 'ryulth.com',
7 + user : 'kkonzi',
8 + password : 'kkonzi1234',
9 + database : 'kkonzi_test'
10 +});
3 11
4 /* GET home page. */ 12 /* GET home page. */
5 router.get('/', function(req, res, next) { 13 router.get('/', function(req, res, next) {
6 - res.render('index', { title: 'Express' }); 14 + // mysql 세션 연결
15 + connection.connect();
16 + // connection.query('SELECT * FROM ');
17 +
18 + // 자외선지수, 불쾌지수, 열지수, 체감 온도, 바람속도, 현재기온, 하늘 상태, 강우량, 태풍, 낙뢰
19 + var uvr, discomfort, heat, sensibleTem, windSpeed, presentTem, skyState, rainfall, typhoon, lightning;
20 + // 사망 확률
21 + var deathProb;
22 +
23 + deathProb = uvr + discomfort + heat + sensibleTem + windSpeed + presentTem + skyState + rainfall + typhoon + lightning;
24 + res.render('index', {title: 'Express'});
25 +
26 + connecttion.end();
7 }); 27 });
8 28
9 module.exports = router; 29 module.exports = router;
......