unknown

request module install -> to call weather api

...@@ -8,62 +8,13 @@ module.exports = (server, app) => { ...@@ -8,62 +8,13 @@ module.exports = (server, app) => {
8 transports: ['websocket'] 8 transports: ['websocket']
9 }); 9 });
10 10
11 - io.use(passportSocketIo.authorize(passport_IO)); //passport와 socketIO 연동 미들웨어 사용
12 - app.set('io', io); //io를 app.get("io")로 다른 라우터에서 접근 가능하게함
13 - const chat = io.of('/chat'); //chat namespace
14 11
15 - chat.on('connection', (socket) => { //네임스페이스 연결시 루프 동작 12 + io.on('connection', (socket) => { //네임스페이스 연결시 루프 동작
16 - let room;
17 - socket.to(room).emit('chat_sended_to_client', "LALALALALAL");
18 socket.on('disconnecting', (reason) => { 13 socket.on('disconnecting', (reason) => {
19 14
20 - const sql = "DELETE FROM participants WHERE id=?"
21 - console.log(socket.request.user.nickname, room, '번방 퇴장');
22 - db.query(sql, [socket.request.user.id], (err, result) => { //퇴장할때 참가자 목록에서 뺌
23 - socket.leave(room);
24 -
25 - const msg = {};
26 - const user=socket.request.user;
27 - msg.time = socket.handshake.time.slice(0, 24);
28 - msg.sended = user.id;
29 - msg.sended_Nickname = user.nickname;
30 - msg.profile_image=user.profile_image;
31 - msg.description = `${msg.sended_Nickname}님이 퇴장하셨습니다.`;
32 -
33 - socket.to(room).emit("other_leaved_room", msg);
34 - room = 0;
35 - })
36 }) 15 })
37 socket.on("connection", (roomnum) => { //방 접속시에 현재 방번호 room에 저장 16 socket.on("connection", (roomnum) => { //방 접속시에 현재 방번호 room에 저장
38 - room = roomnum;
39 - console.log(socket.request.user.nickname, room, '번방 입장');
40 - socket.join(room); // x번 room에 join시킴
41 - const msg = {};
42 - const user= socket.request.user;
43 - msg.time = socket.handshake.time.slice(0, 24);
44 - msg.sended = `${user.id}`;
45 - msg.sended_Nickname = user.nickname;
46 - msg.profile_image = user.profile_image;
47 - msg.description = `${user.nickname}님이 들어오셨습니다.`
48 -
49 - const sql = 'INSERT INTO participants (room,id,name,nickname,profile_image) VALUES (?,?,?,?,?)'; //add user in room
50 - db.query(sql, [roomnum, user.id, user.name, user.nickname, user.profile_image], (err, result) => {
51 - chat.to(room).emit("new_user_in", msg); //방에 속한 모든 사람들에게 내가 들어왔음을 알림
52 - })
53 }) 17 })
54 - socket.on('chat_sended_to_server', (data) => { //
55 - console.log('chat received', socket.request.user.id, data);
56 - const msg = {};
57 - msg.time = socket.handshake.time.slice(0, 24);
58 - msg.sended = `${socket.request.user.id}`;
59 - msg.sended_Nickname = socket.request.user.nickname;
60 - msg.profile_image = socket.request.user.profile_image;
61 - msg.description = data;
62 - console.log(room);
63 - const sql = 'INSERT INTO chat (room, description,sended,sended_nickname,time,profile_image) VALUES (?,?,?,?,?,?)';
64 - db.query(sql, [room, msg.description, msg.sended, msg.sended_Nickname, msg.time, msg.profile_image]); //채팅한 말 객체들의 배열 [ { room : 10 "sended":"YOUT","sended_NickName":"YOU" , time : "now" , description : "lala", profile_image : "!@#@!#"} , ... ]
65 - chat.to(room).emit('chat_sended_to_client', msg);
66 - });
67 }) 18 })
68 19
69 20
......
...@@ -18,6 +18,17 @@ ...@@ -18,6 +18,17 @@
18 "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", 18 "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz",
19 "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=" 19 "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8="
20 }, 20 },
21 + "ajv": {
22 + "version": "6.6.1",
23 + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.6.1.tgz",
24 + "integrity": "sha512-ZoJjft5B+EJBjUyu9C9Hc0OZyPZSSlOF+plzouTrg6UlA8f+e/n8NIgBFG/9tppJtpPWfthHakK7juJdNDODww==",
25 + "requires": {
26 + "fast-deep-equal": "2.0.1",
27 + "fast-json-stable-stringify": "2.0.0",
28 + "json-schema-traverse": "0.4.1",
29 + "uri-js": "4.2.2"
30 + }
31 + },
21 "array-flatten": { 32 "array-flatten": {
22 "version": "1.1.1", 33 "version": "1.1.1",
23 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 34 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
...@@ -28,11 +39,39 @@ ...@@ -28,11 +39,39 @@
28 "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", 39 "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz",
29 "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==" 40 "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog=="
30 }, 41 },
42 + "asn1": {
43 + "version": "0.2.4",
44 + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
45 + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
46 + "requires": {
47 + "safer-buffer": "2.1.2"
48 + }
49 + },
50 + "assert-plus": {
51 + "version": "1.0.0",
52 + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
53 + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
54 + },
31 "async-limiter": { 55 "async-limiter": {
32 "version": "1.0.0", 56 "version": "1.0.0",
33 "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", 57 "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz",
34 "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" 58 "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg=="
35 }, 59 },
60 + "asynckit": {
61 + "version": "0.4.0",
62 + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
63 + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
64 + },
65 + "aws-sign2": {
66 + "version": "0.7.0",
67 + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
68 + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
69 + },
70 + "aws4": {
71 + "version": "1.8.0",
72 + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
73 + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ=="
74 + },
36 "backo2": { 75 "backo2": {
37 "version": "1.0.2", 76 "version": "1.0.2",
38 "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", 77 "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz",
...@@ -56,6 +95,14 @@ ...@@ -56,6 +95,14 @@
56 "safe-buffer": "5.1.2" 95 "safe-buffer": "5.1.2"
57 } 96 }
58 }, 97 },
98 + "bcrypt-pbkdf": {
99 + "version": "1.0.2",
100 + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
101 + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
102 + "requires": {
103 + "tweetnacl": "0.14.5"
104 + }
105 + },
59 "better-assert": { 106 "better-assert": {
60 "version": "1.0.2", 107 "version": "1.0.2",
61 "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", 108 "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz",
...@@ -101,6 +148,19 @@ ...@@ -101,6 +148,19 @@
101 "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz", 148 "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz",
102 "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=" 149 "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs="
103 }, 150 },
151 + "caseless": {
152 + "version": "0.12.0",
153 + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
154 + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
155 + },
156 + "combined-stream": {
157 + "version": "1.0.7",
158 + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz",
159 + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==",
160 + "requires": {
161 + "delayed-stream": "1.0.0"
162 + }
163 + },
104 "component-bind": { 164 "component-bind": {
105 "version": "1.0.0", 165 "version": "1.0.0",
106 "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz", 166 "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz",
...@@ -172,6 +232,19 @@ ...@@ -172,6 +232,19 @@
172 "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 232 "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
173 "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 233 "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
174 }, 234 },
235 + "core-util-is": {
236 + "version": "1.0.2",
237 + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
238 + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
239 + },
240 + "dashdash": {
241 + "version": "1.14.1",
242 + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
243 + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
244 + "requires": {
245 + "assert-plus": "1.0.0"
246 + }
247 + },
175 "dasherize": { 248 "dasherize": {
176 "version": "2.0.0", 249 "version": "2.0.0",
177 "resolved": "https://registry.npmjs.org/dasherize/-/dasherize-2.0.0.tgz", 250 "resolved": "https://registry.npmjs.org/dasherize/-/dasherize-2.0.0.tgz",
...@@ -185,6 +258,11 @@ ...@@ -185,6 +258,11 @@
185 "ms": "2.0.0" 258 "ms": "2.0.0"
186 } 259 }
187 }, 260 },
261 + "delayed-stream": {
262 + "version": "1.0.0",
263 + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
264 + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
265 + },
188 "depd": { 266 "depd": {
189 "version": "1.1.2", 267 "version": "1.1.2",
190 "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 268 "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
...@@ -205,6 +283,15 @@ ...@@ -205,6 +283,15 @@
205 "resolved": "https://registry.npmjs.org/dont-sniff-mimetype/-/dont-sniff-mimetype-1.0.0.tgz", 283 "resolved": "https://registry.npmjs.org/dont-sniff-mimetype/-/dont-sniff-mimetype-1.0.0.tgz",
206 "integrity": "sha1-WTKJDcn04vGeXrAqIAJuXl78j1g=" 284 "integrity": "sha1-WTKJDcn04vGeXrAqIAJuXl78j1g="
207 }, 285 },
286 + "ecc-jsbn": {
287 + "version": "0.1.2",
288 + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
289 + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
290 + "requires": {
291 + "jsbn": "0.1.1",
292 + "safer-buffer": "2.1.2"
293 + }
294 + },
208 "ee-first": { 295 "ee-first": {
209 "version": "1.1.1", 296 "version": "1.1.1",
210 "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 297 "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
...@@ -342,6 +429,26 @@ ...@@ -342,6 +429,26 @@
342 } 429 }
343 } 430 }
344 }, 431 },
432 + "extend": {
433 + "version": "3.0.2",
434 + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
435 + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
436 + },
437 + "extsprintf": {
438 + "version": "1.3.0",
439 + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
440 + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
441 + },
442 + "fast-deep-equal": {
443 + "version": "2.0.1",
444 + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
445 + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk="
446 + },
447 + "fast-json-stable-stringify": {
448 + "version": "2.0.0",
449 + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
450 + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I="
451 + },
345 "feature-policy": { 452 "feature-policy": {
346 "version": "0.2.0", 453 "version": "0.2.0",
347 "resolved": "https://registry.npmjs.org/feature-policy/-/feature-policy-0.2.0.tgz", 454 "resolved": "https://registry.npmjs.org/feature-policy/-/feature-policy-0.2.0.tgz",
...@@ -368,6 +475,21 @@ ...@@ -368,6 +475,21 @@
368 } 475 }
369 } 476 }
370 }, 477 },
478 + "forever-agent": {
479 + "version": "0.6.1",
480 + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
481 + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
482 + },
483 + "form-data": {
484 + "version": "2.3.3",
485 + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
486 + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
487 + "requires": {
488 + "asynckit": "0.4.0",
489 + "combined-stream": "1.0.7",
490 + "mime-types": "2.1.21"
491 + }
492 + },
371 "forwarded": { 493 "forwarded": {
372 "version": "0.1.2", 494 "version": "0.1.2",
373 "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 495 "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
...@@ -383,6 +505,28 @@ ...@@ -383,6 +505,28 @@
383 "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 505 "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
384 "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 506 "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
385 }, 507 },
508 + "getpass": {
509 + "version": "0.1.7",
510 + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
511 + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
512 + "requires": {
513 + "assert-plus": "1.0.0"
514 + }
515 + },
516 + "har-schema": {
517 + "version": "2.0.0",
518 + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
519 + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
520 + },
521 + "har-validator": {
522 + "version": "5.1.3",
523 + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
524 + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
525 + "requires": {
526 + "ajv": "6.6.1",
527 + "har-schema": "2.0.0"
528 + }
529 + },
386 "has-binary2": { 530 "has-binary2": {
387 "version": "1.0.3", 531 "version": "1.0.3",
388 "resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.3.tgz", 532 "resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.3.tgz",
...@@ -459,6 +603,16 @@ ...@@ -459,6 +603,16 @@
459 "statuses": "1.5.0" 603 "statuses": "1.5.0"
460 } 604 }
461 }, 605 },
606 + "http-signature": {
607 + "version": "1.2.0",
608 + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
609 + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
610 + "requires": {
611 + "assert-plus": "1.0.0",
612 + "jsprim": "1.4.1",
613 + "sshpk": "1.15.2"
614 + }
615 + },
462 "iconv-lite": { 616 "iconv-lite": {
463 "version": "0.4.23", 617 "version": "0.4.23",
464 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", 618 "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz",
...@@ -487,11 +641,52 @@ ...@@ -487,11 +641,52 @@
487 "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz", 641 "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz",
488 "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=" 642 "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4="
489 }, 643 },
644 + "is-typedarray": {
645 + "version": "1.0.0",
646 + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
647 + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
648 + },
490 "isarray": { 649 "isarray": {
491 "version": "2.0.1", 650 "version": "2.0.1",
492 "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", 651 "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz",
493 "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=" 652 "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4="
494 }, 653 },
654 + "isstream": {
655 + "version": "0.1.2",
656 + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
657 + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
658 + },
659 + "jsbn": {
660 + "version": "0.1.1",
661 + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
662 + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
663 + },
664 + "json-schema": {
665 + "version": "0.2.3",
666 + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
667 + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
668 + },
669 + "json-schema-traverse": {
670 + "version": "0.4.1",
671 + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
672 + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
673 + },
674 + "json-stringify-safe": {
675 + "version": "5.0.1",
676 + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
677 + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
678 + },
679 + "jsprim": {
680 + "version": "1.4.1",
681 + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
682 + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
683 + "requires": {
684 + "assert-plus": "1.0.0",
685 + "extsprintf": "1.3.0",
686 + "json-schema": "0.2.3",
687 + "verror": "1.10.0"
688 + }
689 + },
495 "media-typer": { 690 "media-typer": {
496 "version": "0.3.0", 691 "version": "0.3.0",
497 "resolved": "http://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 692 "resolved": "http://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
...@@ -552,6 +747,11 @@ ...@@ -552,6 +747,11 @@
552 "resolved": "https://registry.npmjs.org/nocache/-/nocache-2.0.0.tgz", 747 "resolved": "https://registry.npmjs.org/nocache/-/nocache-2.0.0.tgz",
553 "integrity": "sha1-ICtIAhoMTL3i34DeFaF0Q8i0OYA=" 748 "integrity": "sha1-ICtIAhoMTL3i34DeFaF0Q8i0OYA="
554 }, 749 },
750 + "oauth-sign": {
751 + "version": "0.9.0",
752 + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
753 + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
754 + },
555 "object-component": { 755 "object-component": {
556 "version": "0.0.3", 756 "version": "0.0.3",
557 "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", 757 "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz",
...@@ -596,6 +796,11 @@ ...@@ -596,6 +796,11 @@
596 "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 796 "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
597 "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 797 "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
598 }, 798 },
799 + "performance-now": {
800 + "version": "2.1.0",
801 + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
802 + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
803 + },
599 "platform": { 804 "platform": {
600 "version": "1.3.5", 805 "version": "1.3.5",
601 "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.5.tgz", 806 "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.5.tgz",
...@@ -610,6 +815,16 @@ ...@@ -610,6 +815,16 @@
610 "ipaddr.js": "1.8.0" 815 "ipaddr.js": "1.8.0"
611 } 816 }
612 }, 817 },
818 + "psl": {
819 + "version": "1.1.29",
820 + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz",
821 + "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ=="
822 + },
823 + "punycode": {
824 + "version": "2.1.1",
825 + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
826 + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
827 + },
613 "qs": { 828 "qs": {
614 "version": "6.5.2", 829 "version": "6.5.2",
615 "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 830 "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
...@@ -636,6 +851,33 @@ ...@@ -636,6 +851,33 @@
636 "resolved": "https://registry.npmjs.org/referrer-policy/-/referrer-policy-1.1.0.tgz", 851 "resolved": "https://registry.npmjs.org/referrer-policy/-/referrer-policy-1.1.0.tgz",
637 "integrity": "sha1-NXdOtzW/UPtsB46DM0tHI1AgfXk=" 852 "integrity": "sha1-NXdOtzW/UPtsB46DM0tHI1AgfXk="
638 }, 853 },
854 + "request": {
855 + "version": "2.88.0",
856 + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
857 + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
858 + "requires": {
859 + "aws-sign2": "0.7.0",
860 + "aws4": "1.8.0",
861 + "caseless": "0.12.0",
862 + "combined-stream": "1.0.7",
863 + "extend": "3.0.2",
864 + "forever-agent": "0.6.1",
865 + "form-data": "2.3.3",
866 + "har-validator": "5.1.3",
867 + "http-signature": "1.2.0",
868 + "is-typedarray": "1.0.0",
869 + "isstream": "0.1.2",
870 + "json-stringify-safe": "5.0.1",
871 + "mime-types": "2.1.21",
872 + "oauth-sign": "0.9.0",
873 + "performance-now": "2.1.0",
874 + "qs": "6.5.2",
875 + "safe-buffer": "5.1.2",
876 + "tough-cookie": "2.4.3",
877 + "tunnel-agent": "0.6.0",
878 + "uuid": "3.3.2"
879 + }
880 + },
639 "safe-buffer": { 881 "safe-buffer": {
640 "version": "5.1.2", 882 "version": "5.1.2",
641 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 883 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
...@@ -773,6 +1015,22 @@ ...@@ -773,6 +1015,22 @@
773 } 1015 }
774 } 1016 }
775 }, 1017 },
1018 + "sshpk": {
1019 + "version": "1.15.2",
1020 + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.15.2.tgz",
1021 + "integrity": "sha512-Ra/OXQtuh0/enyl4ETZAfTaeksa6BXks5ZcjpSUNrjBr0DvrJKX+1fsKDPpT9TBXgHAFsa4510aNVgI8g/+SzA==",
1022 + "requires": {
1023 + "asn1": "0.2.4",
1024 + "assert-plus": "1.0.0",
1025 + "bcrypt-pbkdf": "1.0.2",
1026 + "dashdash": "1.14.1",
1027 + "ecc-jsbn": "0.1.2",
1028 + "getpass": "0.1.7",
1029 + "jsbn": "0.1.1",
1030 + "safer-buffer": "2.1.2",
1031 + "tweetnacl": "0.14.5"
1032 + }
1033 + },
776 "statuses": { 1034 "statuses": {
777 "version": "1.5.0", 1035 "version": "1.5.0",
778 "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1036 "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
...@@ -783,6 +1041,35 @@ ...@@ -783,6 +1041,35 @@
783 "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz", 1041 "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz",
784 "integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA=" 1042 "integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA="
785 }, 1043 },
1044 + "tough-cookie": {
1045 + "version": "2.4.3",
1046 + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
1047 + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
1048 + "requires": {
1049 + "psl": "1.1.29",
1050 + "punycode": "1.4.1"
1051 + },
1052 + "dependencies": {
1053 + "punycode": {
1054 + "version": "1.4.1",
1055 + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
1056 + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="
1057 + }
1058 + }
1059 + },
1060 + "tunnel-agent": {
1061 + "version": "0.6.0",
1062 + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
1063 + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
1064 + "requires": {
1065 + "safe-buffer": "5.1.2"
1066 + }
1067 + },
1068 + "tweetnacl": {
1069 + "version": "0.14.5",
1070 + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
1071 + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
1072 + },
786 "type-is": { 1073 "type-is": {
787 "version": "1.6.16", 1074 "version": "1.6.16",
788 "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", 1075 "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz",
...@@ -797,16 +1084,39 @@ ...@@ -797,16 +1084,39 @@
797 "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1084 "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
798 "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 1085 "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
799 }, 1086 },
1087 + "uri-js": {
1088 + "version": "4.2.2",
1089 + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
1090 + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
1091 + "requires": {
1092 + "punycode": "2.1.1"
1093 + }
1094 + },
800 "utils-merge": { 1095 "utils-merge": {
801 "version": "1.0.1", 1096 "version": "1.0.1",
802 "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1097 "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
803 "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 1098 "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
804 }, 1099 },
1100 + "uuid": {
1101 + "version": "3.3.2",
1102 + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
1103 + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA=="
1104 + },
805 "vary": { 1105 "vary": {
806 "version": "1.1.2", 1106 "version": "1.1.2",
807 "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1107 "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
808 "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 1108 "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
809 }, 1109 },
1110 + "verror": {
1111 + "version": "1.10.0",
1112 + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
1113 + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
1114 + "requires": {
1115 + "assert-plus": "1.0.0",
1116 + "core-util-is": "1.0.2",
1117 + "extsprintf": "1.3.0"
1118 + }
1119 + },
810 "ws": { 1120 "ws": {
811 "version": "6.1.2", 1121 "version": "6.1.2",
812 "resolved": "https://registry.npmjs.org/ws/-/ws-6.1.2.tgz", 1122 "resolved": "https://registry.npmjs.org/ws/-/ws-6.1.2.tgz",
......
...@@ -12,9 +12,10 @@ ...@@ -12,9 +12,10 @@
12 "debug": "~2.6.9", 12 "debug": "~2.6.9",
13 "ejs": "~2.5.7", 13 "ejs": "~2.5.7",
14 "express": "~4.16.0", 14 "express": "~4.16.0",
15 + "helmet": "^3.13.0",
15 "http-errors": "~1.6.2", 16 "http-errors": "~1.6.2",
16 "morgan": "~1.9.0", 17 "morgan": "~1.9.0",
17 - "helmet": "^3.13.0", 18 + "request": "^2.88.0",
18 "socket.io": "^2.1.1" 19 "socket.io": "^2.1.1"
19 } 20 }
20 } 21 }
......