bluejoyq

add cheerio module

...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
4 "lockfileVersion": 1, 4 "lockfileVersion": 1,
5 "requires": true, 5 "requires": true,
6 "dependencies": { 6 "dependencies": {
7 + "@types/node": {
8 + "version": "12.12.14",
9 + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.14.tgz",
10 + "integrity": "sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA=="
11 + },
7 "accepts": { 12 "accepts": {
8 "version": "1.3.7", 13 "version": "1.3.7",
9 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 14 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
...@@ -95,6 +100,11 @@ ...@@ -95,6 +100,11 @@
95 "type-is": "~1.6.17" 100 "type-is": "~1.6.17"
96 } 101 }
97 }, 102 },
103 + "boolbase": {
104 + "version": "1.0.0",
105 + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
106 + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24="
107 + },
98 "bytes": { 108 "bytes": {
99 "version": "3.1.0", 109 "version": "3.1.0",
100 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 110 "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
...@@ -105,6 +115,19 @@ ...@@ -105,6 +115,19 @@
105 "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 115 "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
106 "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 116 "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
107 }, 117 },
118 + "cheerio": {
119 + "version": "1.0.0-rc.3",
120 + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.3.tgz",
121 + "integrity": "sha512-0td5ijfUPuubwLUu0OBoe98gZj8C/AA+RW3v67GPlGOrvxWjZmBXiBCRU+I8VEiNyJzjth40POfHiz2RB3gImA==",
122 + "requires": {
123 + "css-select": "~1.2.0",
124 + "dom-serializer": "~0.1.1",
125 + "entities": "~1.1.1",
126 + "htmlparser2": "^3.9.1",
127 + "lodash": "^4.15.0",
128 + "parse5": "^3.0.1"
129 + }
130 + },
108 "combined-stream": { 131 "combined-stream": {
109 "version": "1.0.8", 132 "version": "1.0.8",
110 "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 133 "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
...@@ -150,6 +173,22 @@ ...@@ -150,6 +173,22 @@
150 "vary": "^1" 173 "vary": "^1"
151 } 174 }
152 }, 175 },
176 + "css-select": {
177 + "version": "1.2.0",
178 + "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz",
179 + "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=",
180 + "requires": {
181 + "boolbase": "~1.0.0",
182 + "css-what": "2.1",
183 + "domutils": "1.5.1",
184 + "nth-check": "~1.0.1"
185 + }
186 + },
187 + "css-what": {
188 + "version": "2.1.3",
189 + "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz",
190 + "integrity": "sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg=="
191 + },
153 "dashdash": { 192 "dashdash": {
154 "version": "1.14.1", 193 "version": "1.14.1",
155 "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 194 "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
...@@ -181,6 +220,37 @@ ...@@ -181,6 +220,37 @@
181 "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 220 "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
182 "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 221 "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
183 }, 222 },
223 + "dom-serializer": {
224 + "version": "0.1.1",
225 + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz",
226 + "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==",
227 + "requires": {
228 + "domelementtype": "^1.3.0",
229 + "entities": "^1.1.1"
230 + }
231 + },
232 + "domelementtype": {
233 + "version": "1.3.1",
234 + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz",
235 + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w=="
236 + },
237 + "domhandler": {
238 + "version": "2.4.2",
239 + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz",
240 + "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==",
241 + "requires": {
242 + "domelementtype": "1"
243 + }
244 + },
245 + "domutils": {
246 + "version": "1.5.1",
247 + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz",
248 + "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=",
249 + "requires": {
250 + "dom-serializer": "0",
251 + "domelementtype": "1"
252 + }
253 + },
184 "dotenv": { 254 "dotenv": {
185 "version": "8.2.0", 255 "version": "8.2.0",
186 "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", 256 "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
...@@ -205,6 +275,11 @@ ...@@ -205,6 +275,11 @@
205 "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 275 "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
206 "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 276 "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
207 }, 277 },
278 + "entities": {
279 + "version": "1.1.2",
280 + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz",
281 + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w=="
282 + },
208 "escape-html": { 283 "escape-html": {
209 "version": "1.0.3", 284 "version": "1.0.3",
210 "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 285 "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
...@@ -333,6 +408,19 @@ ...@@ -333,6 +408,19 @@
333 "har-schema": "^2.0.0" 408 "har-schema": "^2.0.0"
334 } 409 }
335 }, 410 },
411 + "htmlparser2": {
412 + "version": "3.10.1",
413 + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz",
414 + "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==",
415 + "requires": {
416 + "domelementtype": "^1.3.1",
417 + "domhandler": "^2.3.0",
418 + "domutils": "^1.5.1",
419 + "entities": "^1.1.1",
420 + "inherits": "^2.0.1",
421 + "readable-stream": "^3.1.1"
422 + }
423 + },
336 "http-errors": { 424 "http-errors": {
337 "version": "1.7.2", 425 "version": "1.7.2",
338 "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 426 "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
...@@ -479,6 +567,14 @@ ...@@ -479,6 +567,14 @@
479 "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 567 "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
480 "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 568 "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
481 }, 569 },
570 + "nth-check": {
571 + "version": "1.0.2",
572 + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz",
573 + "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==",
574 + "requires": {
575 + "boolbase": "~1.0.0"
576 + }
577 + },
482 "oauth-sign": { 578 "oauth-sign": {
483 "version": "0.9.0", 579 "version": "0.9.0",
484 "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 580 "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
...@@ -502,6 +598,14 @@ ...@@ -502,6 +598,14 @@
502 "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 598 "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
503 "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" 599 "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA=="
504 }, 600 },
601 + "parse5": {
602 + "version": "3.0.3",
603 + "resolved": "https://registry.npmjs.org/parse5/-/parse5-3.0.3.tgz",
604 + "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==",
605 + "requires": {
606 + "@types/node": "*"
607 + }
608 + },
505 "parseurl": { 609 "parseurl": {
506 "version": "1.3.3", 610 "version": "1.3.3",
507 "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 611 "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
...@@ -557,6 +661,16 @@ ...@@ -557,6 +661,16 @@
557 "unpipe": "1.0.0" 661 "unpipe": "1.0.0"
558 } 662 }
559 }, 663 },
664 + "readable-stream": {
665 + "version": "3.4.0",
666 + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz",
667 + "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==",
668 + "requires": {
669 + "inherits": "^2.0.3",
670 + "string_decoder": "^1.1.1",
671 + "util-deprecate": "^1.0.1"
672 + }
673 + },
560 "request": { 674 "request": {
561 "version": "2.88.0", 675 "version": "2.88.0",
562 "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", 676 "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
...@@ -703,6 +817,21 @@ ...@@ -703,6 +817,21 @@
703 "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", 817 "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz",
704 "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" 818 "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks="
705 }, 819 },
820 + "string_decoder": {
821 + "version": "1.3.0",
822 + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
823 + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
824 + "requires": {
825 + "safe-buffer": "~5.2.0"
826 + },
827 + "dependencies": {
828 + "safe-buffer": {
829 + "version": "5.2.0",
830 + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz",
831 + "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg=="
832 + }
833 + }
834 + },
706 "toidentifier": { 835 "toidentifier": {
707 "version": "1.0.0", 836 "version": "1.0.0",
708 "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 837 "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
...@@ -752,6 +881,11 @@ ...@@ -752,6 +881,11 @@
752 "punycode": "^2.1.0" 881 "punycode": "^2.1.0"
753 } 882 }
754 }, 883 },
884 + "util-deprecate": {
885 + "version": "1.0.2",
886 + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
887 + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
888 + },
755 "utils-merge": { 889 "utils-merge": {
756 "version": "1.0.1", 890 "version": "1.0.1",
757 "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 891 "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
14 "license": "ISC", 14 "license": "ISC",
15 "dependencies": { 15 "dependencies": {
16 "body-parser": "^1.19.0", 16 "body-parser": "^1.19.0",
17 + "cheerio": "^1.0.0-rc.3",
17 "cors": "^2.8.5", 18 "cors": "^2.8.5",
18 "dotenv": "^8.2.0", 19 "dotenv": "^8.2.0",
19 "express": "^4.17.1", 20 "express": "^4.17.1",
......