├── .github ├── FUNDING.yml └── workflows │ └── main.yml ├── .gitignore ├── LICENSE ├── README.md ├── index.js ├── package-lock.json ├── package.json ├── test └── getHeadlines.js └── utils ├── getHeadlines.js └── issue.js /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: timqian # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: timqian # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: hackernews-daily-top 2 | 3 | on: 4 | schedule: 5 | - cron: "1 0 * * *" 6 | 7 | jobs: 8 | fetch-top-posts: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v1 12 | - name: Use Node.js 13 | uses: actions/setup-node@v1 14 | with: 15 | node-version: 12.x 16 | - name: npm install 17 | run: npm install --only=prod 18 | working-directory: . 19 | - name: fetch 20 | run: node index.js 21 | working-directory: . 22 | # for github app auth 23 | env: 24 | clientSecret: ${{ secrets.clientSecret }} 25 | privateKey: ${{ secrets.privateKey }} 26 | 27 | 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | secret.js 2 | 3 | # Logs 4 | logs 5 | *.log 6 | npm-debug.log* 7 | yarn-debug.log* 8 | yarn-error.log* 9 | lerna-debug.log* 10 | 11 | # Diagnostic reports (https://nodejs.org/api/report.html) 12 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 13 | 14 | # Runtime data 15 | pids 16 | *.pid 17 | *.seed 18 | *.pid.lock 19 | 20 | # Directory for instrumented libs generated by jscoverage/JSCover 21 | lib-cov 22 | 23 | # Coverage directory used by tools like istanbul 24 | coverage 25 | *.lcov 26 | 27 | # nyc test coverage 28 | .nyc_output 29 | 30 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 31 | .grunt 32 | 33 | # Bower dependency directory (https://bower.io/) 34 | bower_components 35 | 36 | # node-waf configuration 37 | .lock-wscript 38 | 39 | # Compiled binary addons (https://nodejs.org/api/addons.html) 40 | build/Release 41 | 42 | # Dependency directories 43 | node_modules/ 44 | jspm_packages/ 45 | 46 | # TypeScript v1 declaration files 47 | typings/ 48 | 49 | # TypeScript cache 50 | *.tsbuildinfo 51 | 52 | # Optional npm cache directory 53 | .npm 54 | 55 | # Optional eslint cache 56 | .eslintcache 57 | 58 | # Microbundle cache 59 | .rpt2_cache/ 60 | .rts2_cache_cjs/ 61 | .rts2_cache_es/ 62 | .rts2_cache_umd/ 63 | 64 | # Optional REPL history 65 | .node_repl_history 66 | 67 | # Output of 'npm pack' 68 | *.tgz 69 | 70 | # Yarn Integrity file 71 | .yarn-integrity 72 | 73 | # dotenv environment variables file 74 | .env 75 | .env.test 76 | 77 | # parcel-bundler cache (https://parceljs.org/) 78 | .cache 79 | 80 | # Next.js build output 81 | .next 82 | 83 | # Nuxt.js build / generate output 84 | .nuxt 85 | dist 86 | 87 | # Gatsby files 88 | .cache/ 89 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 90 | # https://nextjs.org/blog/next-9-1#public-directory-support 91 | # public 92 | 93 | # vuepress build output 94 | .vuepress/dist 95 | 96 | # Serverless directories 97 | .serverless/ 98 | 99 | # FuseBox cache 100 | .fusebox/ 101 | 102 | # DynamoDB Local files 103 | .dynamodb/ 104 | 105 | # TernJS port file 106 | .tern-port 107 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hacker News Daily Top 10 posts 2 | 3 | [![](https://badgen.net/badge/icon/RSS/orange?icon=rss&label)](http://rsshub.app/github/issue/headllines/hackernews-daily) 4 | [![](https://badgen.net/badge/icon/Telegram?icon=telegram&label)](https://t.me/headllines) 5 | [![](https://img.shields.io/github/issues-raw/headllines/hackernews-daily?label=Issues&logo=github&style=social)](https://github.com/headllines/hackernews-daily/issues) 6 | [![](https://img.shields.io/github/watchers/headllines/hackernews-daily?style=social)](https://github.com/headllines/hackernews-daily/watchers) 7 | [![](https://img.shields.io/github/stars/headllines/hackernews-daily?style=social)](https://github.com/headllines/hackernews-daily/stars) 8 | [![Follow on Feeds Pub](https://img.shields.io/badge/dynamic/json?label=follow&query=%24.data.feed.followerCount&url=https%3A%2F%2Fapi.feeds.pub%2Fgraphql%3Fquery%3Dquery%2520feed%28%2524id%253A%2520String%21%29%257B%2520feed%28id%253A%2520%2524id%29%2520%257B%2520followerCount%2520%257D%2520%257D%26variables%3D%257B%2522id%2522%253A%2520%2522http%3A%2F%2Frsshub.app%2Fgithub%2Fissue%2Fheadllines%2Fhackernews-daily%2522%257D%26operationName%3Dfeed&style=social&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABFCAYAAAAcjSspAAAACXBIWXMAAAInAAACJwG+ElQIAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASkSURBVHgB7Ztdcts2EMf/oDyeNO5MnBOUN4hzAtNvrZ0H8QSimwPEPoHlE9g5gZkTSJ46mU77YPYEVd/6yN5AnWkzrVNxuxAhN3UA0YL46eA3Y30AkDT8c7FY7MKAw+FwlIfAAyAafe2rl/w8m8bhjxOsQedEiUbBNrAVeQLPCBTwJfiaYROiWRiH36ewYAMdIBfiUV+I3oDfBrKN5j3Ge7rDYy/4eQ8WtFoUOS08zxsQiSN+u73ap7EDS1opCosR8J0+4ZcBEWyZwpJWiRKN9tnsxRnUFFkHIjqFJa1wtNJneN7WCVvFEexgqyD+E1MBkWaUXcbhuxiWNC7Ky8sXrzKiIVbzGVO2hDeANwb+mMRhYj1VdDQmytw6xJcXvKz2V/hYwk73NA6vElRII6Io3zHCPNgqhK1CvGaLOC/bIkzU7mij0TccbwgZQxRNl9rFWFCrpby8PBhkhLhoHPsLFuP9sG4xFtQmioo9rguGcXgujqv2GUX0UAMyMmVBpA8xThllHYdx+MOvaJhafIqyEN/Qzb7DY+v4LkZLqFwUFYf4hm4Zb+yxIGtt9cumUp+ipo3RSliQ5xx5tkoQiYdK8QIYBcFxGwWRVCoKxyMnhi4Ozd+eo6VUJopKEfq6PqKbQ7SYCh3txs4iP3aHqRCbZ4fjA16eSS3RIp0/CkyyjH4BssQ2lVgGFYqS7Rj8uBQiyF/e9vvygf0MB3iyrYdvxwdxRrPTJsSpZPrkq47YxRqwjUW8cv0sN4+omdJFkXGJvBiUkD1jtlnc649KGLVQ2vTJ8yOPzzhQi1AuPN08mZGzzcqtTCmWIgURYuuaICJUAFvLADWydkS7EAT3LClwFPsT3wuOUbIU2OTUwI20BOl85WrEuRYM9J/782lnkkwq4XxvZ8h3/auL/tXY0D0+HO/v6qp+vc3HT7BG2WIV1po+vDJEFhl4P6/4mRDaC5/dfHiKmlhLlCVhvIw5ONtOqb73i0DXGo36UiyD1X1IURPWokgrgXn3+5r3NlHuPzQ/anCcPe8fk0NN60xNWouyxEr4At6pKSUS3QBepYK7U0jGIqr+oxmPBDViJYqKMn1dH+dYP9rsbUqHqrvD84rgf993m3fR+xoSb1AjVktyNDo44qXzTNM1uei/ff7/sfvnbFWvdN8jRG4ZBacKEv5OqyMVtlgtyewTdkmzAybKNHc045ikpxWFxRiiAKJZ7WkGq+lDt1v+u/Q+yaTJXW5e1LL4nXl2rjO7ZFMi+m/DCrEx5IcUq/zCvGbcTHbOUhTh61pNB/DicMxZ+5n0CynuQW4hV0M0xMqiqABLx9I4Ip9Gsz1ejsdLhiV5hr/Z/K2Fo/1r21BYLAyulH8Io9GLgB2wLLQ/ExzWZ5T9Js+aNF0uXdDI8S518Qlaio1P8Q3tKR4IFRfDuokTRYONKKmh3ccDwVmKBieKBieKBgtRHpmCtKLTjp1hZVHkPsbQ9fmK8jlgK4rWWpaXLrqDbT5FK4oqWHUeN300OFE0OFE02KYjU13r7Ob973gA2GXziY5xZwXKE83N/NdF2VifT8mPXHlHXAN6knEFry2pRIfD4XA4usm//qauBcoh1b8AAAAASUVORK5CYII=)](https://feeds.pub/feed/http%3A%2F%2Frsshub.app%2Fgithub%2Fissue%2Fheadllines%2Fhackernews-daily) 9 | 10 | ## How to subscribe 11 | 12 | Top posts are stored in [issues](https://github.com/headllines/hackernews-daily/issues). You can subscribe by [watching this repo](#how-does-it-work) or via [RSS](https://feeds.pub/feed/http%3A%2F%2Frsshub.app%2Fgithub%2Fissue%2Fheadllines%2Fhackernews-daily). 13 | 14 | Email and other ways to subscribe updates are still under development, you can join [the mailing list](https://headllines.com) to get notified. 15 | 16 | ## How does it work 17 | 18 | 1. A script fetches top posts on hackernews every day 19 | 2. It opens an issue on this repo and store the headlines 20 | 3. People can subscribe to new issue by watching this repo or via [RSS](https://feeds.pub/feed/http%3A%2F%2Frsshub.app%2Fgithub%2Fissue%2Fheadllines%2Fhackernews-daily) 21 | 22 | hackernews daily 23 | 24 | ## Thanks 25 | 26 | - [Algolia](https://hn.algolia.com/) for the hacker news API 27 | - [RSSHub](https://github.com/diygod/rsshub) for generating RSS file from issues 28 | - [Feeds.Pub](https://feeds.pub) for hosting the RSS feed 29 | - [github-trending-repos](https://github.com/vitalets/github-trending-repos) for inspiration 30 | 31 | ## Related headline collectors 32 | 33 | - [Hacker News Weekly](https://github.com/headllines/hackernews-weekly) 34 | - [Hacker News Monthly](https://github.com/headllines/hackernews-monthly) 35 | 36 | ## Contribute 37 | 38 | We at [headllines.com](https://headllines.com) build open source headline collectors, if you are interested in writing an headline collector and join this orgnization, feel free to join our [telegram group](https://t.me/headllines) 39 | 40 | ## Sponsors 41 | 42 | [琚致远](https://github.com/juzhiyuan) | [Bytebase](https://bytebase.com/) | [Madao](https://madao.me/) | [SecondState](https://bit.ly/3gfWwps) 43 | 44 | [Become a sponsor](https://github.com/sponsors/timqian) 45 | 46 | ## Authors 47 | 48 | - [timqian](https://github.com/timqian) 49 | - [leadream](https://github.com/leadream) 50 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const getHeadlines = require('./utils/getHeadlines'); 2 | const issue = require('./utils/issue'); 3 | 4 | // run every day at 00:01 UTC 5 | const run = async (date) => { 6 | const contents = await getHeadlines(date); 7 | console.log(contents) 8 | const res = await issue.open({ 9 | owner: 'headllines', 10 | repo: 'hackernews-daily', 11 | title: `Hacker News Daily Top 10 @${new Date(date).toISOString().slice(0, 10)}`, 12 | body: contents 13 | }); 14 | 15 | const issueNumber = res.data.number; 16 | 17 | await issue.lock({ 18 | owner: 'headllines', 19 | repo: 'hackernews-daily', 20 | issueNumber, 21 | }); 22 | } 23 | 24 | run(new Date()) 25 | .catch(err => {throw err}); 26 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hackernews", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@octokit/auth-app": { 8 | "version": "2.4.13", 9 | "resolved": "https://registry.npm.taobao.org/@octokit/auth-app/download/@octokit/auth-app-2.4.13.tgz", 10 | "integrity": "sha1-0Xg1xBGMQbHvuoO0aB8vBHkeZEo=", 11 | "requires": { 12 | "@octokit/request": "^5.3.0", 13 | "@octokit/request-error": "^2.0.0", 14 | "@octokit/types": "^5.0.0", 15 | "@types/lru-cache": "^5.1.0", 16 | "lru-cache": "^6.0.0", 17 | "universal-github-app-jwt": "^1.0.1", 18 | "universal-user-agent": "^6.0.0" 19 | } 20 | }, 21 | "@octokit/auth-token": { 22 | "version": "2.4.2", 23 | "resolved": "https://registry.npm.taobao.org/@octokit/auth-token/download/@octokit/auth-token-2.4.2.tgz", 24 | "integrity": "sha1-ENCul5sQD6a3L6Do5j4n5tDb/4o=", 25 | "requires": { 26 | "@octokit/types": "^5.0.0" 27 | } 28 | }, 29 | "@octokit/core": { 30 | "version": "3.1.2", 31 | "resolved": "https://registry.npm.taobao.org/@octokit/core/download/@octokit/core-3.1.2.tgz", 32 | "integrity": "sha1-yTfV+WIbdkVzBo/NLl3vzIcv2cw=", 33 | "requires": { 34 | "@octokit/auth-token": "^2.4.0", 35 | "@octokit/graphql": "^4.3.1", 36 | "@octokit/request": "^5.4.0", 37 | "@octokit/types": "^5.0.0", 38 | "before-after-hook": "^2.1.0", 39 | "universal-user-agent": "^6.0.0" 40 | } 41 | }, 42 | "@octokit/endpoint": { 43 | "version": "6.0.5", 44 | "resolved": "https://registry.npm.taobao.org/@octokit/endpoint/download/@octokit/endpoint-6.0.5.tgz", 45 | "integrity": "sha1-Q6at7oE8X/0vcZ4gz9FKH+58GTo=", 46 | "requires": { 47 | "@octokit/types": "^5.0.0", 48 | "is-plain-object": "^4.0.0", 49 | "universal-user-agent": "^6.0.0" 50 | } 51 | }, 52 | "@octokit/graphql": { 53 | "version": "4.5.2", 54 | "resolved": "https://registry.npm.taobao.org/@octokit/graphql/download/@octokit/graphql-4.5.2.tgz", 55 | "integrity": "sha1-MwIev5STnPR1YoI4UasR/mQ5InQ=", 56 | "requires": { 57 | "@octokit/request": "^5.3.0", 58 | "@octokit/types": "^5.0.0", 59 | "universal-user-agent": "^6.0.0" 60 | } 61 | }, 62 | "@octokit/request": { 63 | "version": "5.4.7", 64 | "resolved": "https://registry.npm.taobao.org/@octokit/request/download/@octokit/request-5.4.7.tgz", 65 | "integrity": "sha1-/XA+4JLgRjzrpJ/3o+YctM+KD94=", 66 | "requires": { 67 | "@octokit/endpoint": "^6.0.1", 68 | "@octokit/request-error": "^2.0.0", 69 | "@octokit/types": "^5.0.0", 70 | "deprecation": "^2.0.0", 71 | "is-plain-object": "^4.0.0", 72 | "node-fetch": "^2.3.0", 73 | "once": "^1.4.0", 74 | "universal-user-agent": "^6.0.0" 75 | } 76 | }, 77 | "@octokit/request-error": { 78 | "version": "2.0.2", 79 | "resolved": "https://registry.npm.taobao.org/@octokit/request-error/download/@octokit/request-error-2.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40octokit%2Frequest-error%2Fdownload%2F%40octokit%2Frequest-error-2.0.2.tgz", 80 | "integrity": "sha1-Dna4P12P3aHbmQJ+pfYXwua6ntA=", 81 | "requires": { 82 | "@octokit/types": "^5.0.1", 83 | "deprecation": "^2.0.0", 84 | "once": "^1.4.0" 85 | } 86 | }, 87 | "@octokit/types": { 88 | "version": "5.2.1", 89 | "resolved": "https://registry.npm.taobao.org/@octokit/types/download/@octokit/types-5.2.1.tgz", 90 | "integrity": "sha1-whLwOwSS+vIV+irlBtXsGAOMKjY=", 91 | "requires": { 92 | "@types/node": ">= 8" 93 | } 94 | }, 95 | "@types/color-name": { 96 | "version": "1.1.1", 97 | "resolved": "https://registry.npm.taobao.org/@types/color-name/download/@types/color-name-1.1.1.tgz?cache=0&sync_timestamp=1596838000843&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fcolor-name%2Fdownload%2F%40types%2Fcolor-name-1.1.1.tgz", 98 | "integrity": "sha1-HBJhu+qhCoBVu8XYq4S3sq/IRqA=", 99 | "dev": true 100 | }, 101 | "@types/jsonwebtoken": { 102 | "version": "8.5.0", 103 | "resolved": "https://registry.npm.taobao.org/@types/jsonwebtoken/download/@types/jsonwebtoken-8.5.0.tgz", 104 | "integrity": "sha1-JTHV4wCAOqYyebIywBSs94DJgcU=", 105 | "requires": { 106 | "@types/node": "*" 107 | } 108 | }, 109 | "@types/lru-cache": { 110 | "version": "5.1.0", 111 | "resolved": "https://registry.npm.taobao.org/@types/lru-cache/download/@types/lru-cache-5.1.0.tgz", 112 | "integrity": "sha1-V/Io8rgMBGtKG9XKwDH4HyB/TwM=" 113 | }, 114 | "@types/node": { 115 | "version": "14.0.27", 116 | "resolved": "https://registry.npm.taobao.org/@types/node/download/@types/node-14.0.27.tgz?cache=0&sync_timestamp=1596674473562&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-14.0.27.tgz", 117 | "integrity": "sha1-oVGHOvWl6FG1GzsGXJ5jOQqeDrE=" 118 | }, 119 | "ansi-colors": { 120 | "version": "4.1.1", 121 | "resolved": "https://registry.npm.taobao.org/ansi-colors/download/ansi-colors-4.1.1.tgz", 122 | "integrity": "sha1-y7muJWv3UK8eqzRPIpqif+lLo0g=", 123 | "dev": true 124 | }, 125 | "ansi-regex": { 126 | "version": "3.0.0", 127 | "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-3.0.0.tgz?cache=0&sync_timestamp=1570188570027&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-3.0.0.tgz", 128 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 129 | "dev": true 130 | }, 131 | "ansi-styles": { 132 | "version": "4.2.1", 133 | "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-4.2.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-4.2.1.tgz", 134 | "integrity": "sha1-kK51xCTQCNJiTFvynq0xd+v881k=", 135 | "dev": true, 136 | "requires": { 137 | "@types/color-name": "^1.1.1", 138 | "color-convert": "^2.0.1" 139 | } 140 | }, 141 | "anymatch": { 142 | "version": "3.1.1", 143 | "resolved": "https://registry.npm.taobao.org/anymatch/download/anymatch-3.1.1.tgz", 144 | "integrity": "sha1-xV7PAhheJGklk5kxDBc84xIzsUI=", 145 | "dev": true, 146 | "requires": { 147 | "normalize-path": "^3.0.0", 148 | "picomatch": "^2.0.4" 149 | } 150 | }, 151 | "argparse": { 152 | "version": "1.0.10", 153 | "resolved": "https://registry.npm.taobao.org/argparse/download/argparse-1.0.10.tgz", 154 | "integrity": "sha1-vNZ5HqWuCXJeF+WtmIE0zUCz2RE=", 155 | "dev": true, 156 | "requires": { 157 | "sprintf-js": "~1.0.2" 158 | } 159 | }, 160 | "array.prototype.map": { 161 | "version": "1.0.2", 162 | "resolved": "https://registry.npm.taobao.org/array.prototype.map/download/array.prototype.map-1.0.2.tgz", 163 | "integrity": "sha1-mkFZ9BZFiiPpSDB43hEGsu9o+Ow=", 164 | "dev": true, 165 | "requires": { 166 | "define-properties": "^1.1.3", 167 | "es-abstract": "^1.17.0-next.1", 168 | "es-array-method-boxes-properly": "^1.0.0", 169 | "is-string": "^1.0.4" 170 | } 171 | }, 172 | "axios": { 173 | "version": "0.19.2", 174 | "resolved": "https://registry.npm.taobao.org/axios/download/axios-0.19.2.tgz?cache=0&sync_timestamp=1594827630503&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Faxios%2Fdownload%2Faxios-0.19.2.tgz", 175 | "integrity": "sha1-PqNsXYgY0NX4qKl6bTa4bNwAyyc=", 176 | "requires": { 177 | "follow-redirects": "1.5.10" 178 | } 179 | }, 180 | "balanced-match": { 181 | "version": "1.0.0", 182 | "resolved": "https://registry.npm.taobao.org/balanced-match/download/balanced-match-1.0.0.tgz", 183 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 184 | "dev": true 185 | }, 186 | "before-after-hook": { 187 | "version": "2.1.0", 188 | "resolved": "https://registry.npm.taobao.org/before-after-hook/download/before-after-hook-2.1.0.tgz", 189 | "integrity": "sha1-tsA0h/ROJCAN0wyl5qGXnF0vtjU=" 190 | }, 191 | "binary-extensions": { 192 | "version": "2.1.0", 193 | "resolved": "https://registry.npm.taobao.org/binary-extensions/download/binary-extensions-2.1.0.tgz?cache=0&sync_timestamp=1593261309792&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbinary-extensions%2Fdownload%2Fbinary-extensions-2.1.0.tgz", 194 | "integrity": "sha1-MPpAyef+B9vIlWeM0ocCTeokHdk=", 195 | "dev": true 196 | }, 197 | "brace-expansion": { 198 | "version": "1.1.11", 199 | "resolved": "https://registry.npm.taobao.org/brace-expansion/download/brace-expansion-1.1.11.tgz", 200 | "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=", 201 | "dev": true, 202 | "requires": { 203 | "balanced-match": "^1.0.0", 204 | "concat-map": "0.0.1" 205 | } 206 | }, 207 | "braces": { 208 | "version": "3.0.2", 209 | "resolved": "https://registry.npm.taobao.org/braces/download/braces-3.0.2.tgz", 210 | "integrity": "sha1-NFThpGLujVmeI23zNs2epPiv4Qc=", 211 | "dev": true, 212 | "requires": { 213 | "fill-range": "^7.0.1" 214 | } 215 | }, 216 | "browser-stdout": { 217 | "version": "1.3.1", 218 | "resolved": "https://registry.npm.taobao.org/browser-stdout/download/browser-stdout-1.3.1.tgz", 219 | "integrity": "sha1-uqVZ7hTO1zRSIputcyZGfGH6vWA=", 220 | "dev": true 221 | }, 222 | "buffer-equal-constant-time": { 223 | "version": "1.0.1", 224 | "resolved": "https://registry.npm.taobao.org/buffer-equal-constant-time/download/buffer-equal-constant-time-1.0.1.tgz", 225 | "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" 226 | }, 227 | "camelcase": { 228 | "version": "5.3.1", 229 | "resolved": "https://registry.npm.taobao.org/camelcase/download/camelcase-5.3.1.tgz", 230 | "integrity": "sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA=", 231 | "dev": true 232 | }, 233 | "chalk": { 234 | "version": "4.1.0", 235 | "resolved": "https://registry.npm.taobao.org/chalk/download/chalk-4.1.0.tgz?cache=0&sync_timestamp=1591687000046&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fchalk%2Fdownload%2Fchalk-4.1.0.tgz", 236 | "integrity": "sha1-ThSHCmGNni7dl92DRf2dncMVZGo=", 237 | "dev": true, 238 | "requires": { 239 | "ansi-styles": "^4.1.0", 240 | "supports-color": "^7.1.0" 241 | } 242 | }, 243 | "chokidar": { 244 | "version": "3.4.2", 245 | "resolved": "https://registry.npm.taobao.org/chokidar/download/chokidar-3.4.2.tgz?cache=0&sync_timestamp=1596729020164&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fchokidar%2Fdownload%2Fchokidar-3.4.2.tgz", 246 | "integrity": "sha1-ONyOZY3sOAl0HrPve7Ckf+QkIy0=", 247 | "dev": true, 248 | "requires": { 249 | "anymatch": "~3.1.1", 250 | "braces": "~3.0.2", 251 | "fsevents": "~2.1.2", 252 | "glob-parent": "~5.1.0", 253 | "is-binary-path": "~2.1.0", 254 | "is-glob": "~4.0.1", 255 | "normalize-path": "~3.0.0", 256 | "readdirp": "~3.4.0" 257 | } 258 | }, 259 | "cliui": { 260 | "version": "5.0.0", 261 | "resolved": "https://registry.npm.taobao.org/cliui/download/cliui-5.0.0.tgz?cache=0&sync_timestamp=1597607948125&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcliui%2Fdownload%2Fcliui-5.0.0.tgz", 262 | "integrity": "sha1-3u/P2y6AB4SqNPRvoI4GhRx7u8U=", 263 | "dev": true, 264 | "requires": { 265 | "string-width": "^3.1.0", 266 | "strip-ansi": "^5.2.0", 267 | "wrap-ansi": "^5.1.0" 268 | }, 269 | "dependencies": { 270 | "ansi-regex": { 271 | "version": "4.1.0", 272 | "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-4.1.0.tgz?cache=0&sync_timestamp=1570188570027&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-4.1.0.tgz", 273 | "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=", 274 | "dev": true 275 | }, 276 | "string-width": { 277 | "version": "3.1.0", 278 | "resolved": "https://registry.npm.taobao.org/string-width/download/string-width-3.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring-width%2Fdownload%2Fstring-width-3.1.0.tgz", 279 | "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", 280 | "dev": true, 281 | "requires": { 282 | "emoji-regex": "^7.0.1", 283 | "is-fullwidth-code-point": "^2.0.0", 284 | "strip-ansi": "^5.1.0" 285 | } 286 | }, 287 | "strip-ansi": { 288 | "version": "5.2.0", 289 | "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz", 290 | "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", 291 | "dev": true, 292 | "requires": { 293 | "ansi-regex": "^4.1.0" 294 | } 295 | } 296 | } 297 | }, 298 | "color-convert": { 299 | "version": "2.0.1", 300 | "resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz", 301 | "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=", 302 | "dev": true, 303 | "requires": { 304 | "color-name": "~1.1.4" 305 | } 306 | }, 307 | "color-name": { 308 | "version": "1.1.4", 309 | "resolved": "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz", 310 | "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=", 311 | "dev": true 312 | }, 313 | "concat-map": { 314 | "version": "0.0.1", 315 | "resolved": "https://registry.npm.taobao.org/concat-map/download/concat-map-0.0.1.tgz", 316 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 317 | "dev": true 318 | }, 319 | "dayjs": { 320 | "version": "1.8.32", 321 | "resolved": "https://registry.npm.taobao.org/dayjs/download/dayjs-1.8.32.tgz?cache=0&sync_timestamp=1596547343839&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdayjs%2Fdownload%2Fdayjs-1.8.32.tgz", 322 | "integrity": "sha1-ZsSLlcOX2feQfom9KfeLPRnUApQ=" 323 | }, 324 | "debug": { 325 | "version": "3.1.0", 326 | "resolved": "https://registry.npm.taobao.org/debug/download/debug-3.1.0.tgz", 327 | "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=", 328 | "requires": { 329 | "ms": "2.0.0" 330 | } 331 | }, 332 | "decamelize": { 333 | "version": "1.2.0", 334 | "resolved": "https://registry.npm.taobao.org/decamelize/download/decamelize-1.2.0.tgz?cache=0&sync_timestamp=1580010663472&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdecamelize%2Fdownload%2Fdecamelize-1.2.0.tgz", 335 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 336 | "dev": true 337 | }, 338 | "define-properties": { 339 | "version": "1.1.3", 340 | "resolved": "https://registry.npm.taobao.org/define-properties/download/define-properties-1.1.3.tgz", 341 | "integrity": "sha1-z4jabL7ib+bbcJT2HYcMvYTO6fE=", 342 | "dev": true, 343 | "requires": { 344 | "object-keys": "^1.0.12" 345 | } 346 | }, 347 | "deprecation": { 348 | "version": "2.3.1", 349 | "resolved": "https://registry.npm.taobao.org/deprecation/download/deprecation-2.3.1.tgz", 350 | "integrity": "sha1-Y2jL20Cr8zc7UlrIfkomDDpwCRk=" 351 | }, 352 | "diff": { 353 | "version": "4.0.2", 354 | "resolved": "https://registry.npm.taobao.org/diff/download/diff-4.0.2.tgz", 355 | "integrity": "sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0=", 356 | "dev": true 357 | }, 358 | "ecdsa-sig-formatter": { 359 | "version": "1.0.11", 360 | "resolved": "https://registry.npm.taobao.org/ecdsa-sig-formatter/download/ecdsa-sig-formatter-1.0.11.tgz", 361 | "integrity": "sha1-rg8PothQRe8UqBfao86azQSJ5b8=", 362 | "requires": { 363 | "safe-buffer": "^5.0.1" 364 | } 365 | }, 366 | "emoji-regex": { 367 | "version": "7.0.3", 368 | "resolved": "https://registry.npm.taobao.org/emoji-regex/download/emoji-regex-7.0.3.tgz", 369 | "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=", 370 | "dev": true 371 | }, 372 | "es-abstract": { 373 | "version": "1.17.6", 374 | "resolved": "https://registry.npm.taobao.org/es-abstract/download/es-abstract-1.17.6.tgz?cache=0&sync_timestamp=1597446373058&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fes-abstract%2Fdownload%2Fes-abstract-1.17.6.tgz", 375 | "integrity": "sha1-kUIHFweFeyysx7iey2cDFsPi1So=", 376 | "dev": true, 377 | "requires": { 378 | "es-to-primitive": "^1.2.1", 379 | "function-bind": "^1.1.1", 380 | "has": "^1.0.3", 381 | "has-symbols": "^1.0.1", 382 | "is-callable": "^1.2.0", 383 | "is-regex": "^1.1.0", 384 | "object-inspect": "^1.7.0", 385 | "object-keys": "^1.1.1", 386 | "object.assign": "^4.1.0", 387 | "string.prototype.trimend": "^1.0.1", 388 | "string.prototype.trimstart": "^1.0.1" 389 | } 390 | }, 391 | "es-array-method-boxes-properly": { 392 | "version": "1.0.0", 393 | "resolved": "https://registry.npm.taobao.org/es-array-method-boxes-properly/download/es-array-method-boxes-properly-1.0.0.tgz", 394 | "integrity": "sha1-hz8+hEGN5O4Zxb51KZCy5EcY0J4=", 395 | "dev": true 396 | }, 397 | "es-get-iterator": { 398 | "version": "1.1.0", 399 | "resolved": "https://registry.npm.taobao.org/es-get-iterator/download/es-get-iterator-1.1.0.tgz", 400 | "integrity": "sha1-u5itnW1jsxqs3I+J1dDuV7y1tMg=", 401 | "dev": true, 402 | "requires": { 403 | "es-abstract": "^1.17.4", 404 | "has-symbols": "^1.0.1", 405 | "is-arguments": "^1.0.4", 406 | "is-map": "^2.0.1", 407 | "is-set": "^2.0.1", 408 | "is-string": "^1.0.5", 409 | "isarray": "^2.0.5" 410 | } 411 | }, 412 | "es-to-primitive": { 413 | "version": "1.2.1", 414 | "resolved": "https://registry.npm.taobao.org/es-to-primitive/download/es-to-primitive-1.2.1.tgz", 415 | "integrity": "sha1-5VzUyc3BiLzvsDs2bHNjI/xciYo=", 416 | "dev": true, 417 | "requires": { 418 | "is-callable": "^1.1.4", 419 | "is-date-object": "^1.0.1", 420 | "is-symbol": "^1.0.2" 421 | } 422 | }, 423 | "escape-string-regexp": { 424 | "version": "4.0.0", 425 | "resolved": "https://registry.npm.taobao.org/escape-string-regexp/download/escape-string-regexp-4.0.0.tgz", 426 | "integrity": "sha1-FLqDpdNz49MR5a/KKc9b+tllvzQ=", 427 | "dev": true 428 | }, 429 | "esprima": { 430 | "version": "4.0.1", 431 | "resolved": "https://registry.npm.taobao.org/esprima/download/esprima-4.0.1.tgz", 432 | "integrity": "sha1-E7BM2z5sXRnfkatph6hpVhmwqnE=", 433 | "dev": true 434 | }, 435 | "fill-range": { 436 | "version": "7.0.1", 437 | "resolved": "https://registry.npm.taobao.org/fill-range/download/fill-range-7.0.1.tgz", 438 | "integrity": "sha1-GRmmp8df44ssfHflGYU12prN2kA=", 439 | "dev": true, 440 | "requires": { 441 | "to-regex-range": "^5.0.1" 442 | } 443 | }, 444 | "find-up": { 445 | "version": "5.0.0", 446 | "resolved": "https://registry.npm.taobao.org/find-up/download/find-up-5.0.0.tgz?cache=0&sync_timestamp=1597169862146&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-5.0.0.tgz", 447 | "integrity": "sha1-TJKBnstwg1YeT0okCoa+UZj1Nvw=", 448 | "dev": true, 449 | "requires": { 450 | "locate-path": "^6.0.0", 451 | "path-exists": "^4.0.0" 452 | } 453 | }, 454 | "flat": { 455 | "version": "4.1.0", 456 | "resolved": "https://registry.npm.taobao.org/flat/download/flat-4.1.0.tgz?cache=0&sync_timestamp=1596729088991&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fflat%2Fdownload%2Fflat-4.1.0.tgz", 457 | "integrity": "sha1-CQvsiwXjnLowl0fx1YjwTbr5jbI=", 458 | "dev": true, 459 | "requires": { 460 | "is-buffer": "~2.0.3" 461 | } 462 | }, 463 | "follow-redirects": { 464 | "version": "1.5.10", 465 | "resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.5.10.tgz?cache=0&sync_timestamp=1592518281721&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.5.10.tgz", 466 | "integrity": "sha1-e3qfmuov3/NnhqlP9kPtB/T/Xio=", 467 | "requires": { 468 | "debug": "=3.1.0" 469 | } 470 | }, 471 | "fs.realpath": { 472 | "version": "1.0.0", 473 | "resolved": "https://registry.npm.taobao.org/fs.realpath/download/fs.realpath-1.0.0.tgz", 474 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 475 | "dev": true 476 | }, 477 | "fsevents": { 478 | "version": "2.1.3", 479 | "resolved": "https://registry.npm.taobao.org/fsevents/download/fsevents-2.1.3.tgz", 480 | "integrity": "sha1-+3OHA66NL5/pAMM4Nt3r7ouX8j4=", 481 | "dev": true, 482 | "optional": true 483 | }, 484 | "function-bind": { 485 | "version": "1.1.1", 486 | "resolved": "https://registry.npm.taobao.org/function-bind/download/function-bind-1.1.1.tgz", 487 | "integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0=", 488 | "dev": true 489 | }, 490 | "get-caller-file": { 491 | "version": "2.0.5", 492 | "resolved": "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz", 493 | "integrity": "sha1-T5RBKoLbMvNuOwuXQfipf+sDH34=", 494 | "dev": true 495 | }, 496 | "glob": { 497 | "version": "7.1.6", 498 | "resolved": "https://registry.npm.taobao.org/glob/download/glob-7.1.6.tgz?cache=0&sync_timestamp=1573078302562&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fglob%2Fdownload%2Fglob-7.1.6.tgz", 499 | "integrity": "sha1-FB8zuBp8JJLhJVlDB0gMRmeSeKY=", 500 | "dev": true, 501 | "requires": { 502 | "fs.realpath": "^1.0.0", 503 | "inflight": "^1.0.4", 504 | "inherits": "2", 505 | "minimatch": "^3.0.4", 506 | "once": "^1.3.0", 507 | "path-is-absolute": "^1.0.0" 508 | } 509 | }, 510 | "glob-parent": { 511 | "version": "5.1.1", 512 | "resolved": "https://registry.npm.taobao.org/glob-parent/download/glob-parent-5.1.1.tgz?cache=0&sync_timestamp=1584835847541&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fglob-parent%2Fdownload%2Fglob-parent-5.1.1.tgz", 513 | "integrity": "sha1-tsHvQXxOVmPqSY8cRa+saRa7wik=", 514 | "dev": true, 515 | "requires": { 516 | "is-glob": "^4.0.1" 517 | } 518 | }, 519 | "growl": { 520 | "version": "1.10.5", 521 | "resolved": "https://registry.npm.taobao.org/growl/download/growl-1.10.5.tgz", 522 | "integrity": "sha1-8nNdwig2dPpnR4sQGBBZNVw2nl4=", 523 | "dev": true 524 | }, 525 | "has": { 526 | "version": "1.0.3", 527 | "resolved": "https://registry.npm.taobao.org/has/download/has-1.0.3.tgz", 528 | "integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=", 529 | "dev": true, 530 | "requires": { 531 | "function-bind": "^1.1.1" 532 | } 533 | }, 534 | "has-flag": { 535 | "version": "4.0.0", 536 | "resolved": "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz", 537 | "integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=", 538 | "dev": true 539 | }, 540 | "has-symbols": { 541 | "version": "1.0.1", 542 | "resolved": "https://registry.npm.taobao.org/has-symbols/download/has-symbols-1.0.1.tgz", 543 | "integrity": "sha1-n1IUdYpEGWxAbZvXbOv4HsLdMeg=", 544 | "dev": true 545 | }, 546 | "he": { 547 | "version": "1.2.0", 548 | "resolved": "https://registry.npm.taobao.org/he/download/he-1.2.0.tgz", 549 | "integrity": "sha1-hK5l+n6vsWX922FWauFLrwVmTw8=", 550 | "dev": true 551 | }, 552 | "inflight": { 553 | "version": "1.0.6", 554 | "resolved": "https://registry.npm.taobao.org/inflight/download/inflight-1.0.6.tgz", 555 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 556 | "dev": true, 557 | "requires": { 558 | "once": "^1.3.0", 559 | "wrappy": "1" 560 | } 561 | }, 562 | "inherits": { 563 | "version": "2.0.4", 564 | "resolved": "https://registry.npm.taobao.org/inherits/download/inherits-2.0.4.tgz", 565 | "integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=", 566 | "dev": true 567 | }, 568 | "is-arguments": { 569 | "version": "1.0.4", 570 | "resolved": "https://registry.npm.taobao.org/is-arguments/download/is-arguments-1.0.4.tgz", 571 | "integrity": "sha1-P6+WbHy6D/Q3+zH2JQCC/PBEjPM=", 572 | "dev": true 573 | }, 574 | "is-binary-path": { 575 | "version": "2.1.0", 576 | "resolved": "https://registry.npm.taobao.org/is-binary-path/download/is-binary-path-2.1.0.tgz", 577 | "integrity": "sha1-6h9/O4DwZCNug0cPhsCcJU+0Wwk=", 578 | "dev": true, 579 | "requires": { 580 | "binary-extensions": "^2.0.0" 581 | } 582 | }, 583 | "is-buffer": { 584 | "version": "2.0.4", 585 | "resolved": "https://registry.npm.taobao.org/is-buffer/download/is-buffer-2.0.4.tgz", 586 | "integrity": "sha1-PlcvI8hBGlz9lVfISeNmXgspBiM=", 587 | "dev": true 588 | }, 589 | "is-callable": { 590 | "version": "1.2.0", 591 | "resolved": "https://registry.npm.taobao.org/is-callable/download/is-callable-1.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-callable%2Fdownload%2Fis-callable-1.2.0.tgz", 592 | "integrity": "sha1-gzNlYLVKOONeOi33r9BFTWkUaLs=", 593 | "dev": true 594 | }, 595 | "is-date-object": { 596 | "version": "1.0.2", 597 | "resolved": "https://registry.npm.taobao.org/is-date-object/download/is-date-object-1.0.2.tgz?cache=0&sync_timestamp=1576729182289&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-date-object%2Fdownload%2Fis-date-object-1.0.2.tgz", 598 | "integrity": "sha1-vac28s2P0G0yhE53Q7+nSUw7/X4=", 599 | "dev": true 600 | }, 601 | "is-extglob": { 602 | "version": "2.1.1", 603 | "resolved": "https://registry.npm.taobao.org/is-extglob/download/is-extglob-2.1.1.tgz", 604 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 605 | "dev": true 606 | }, 607 | "is-fullwidth-code-point": { 608 | "version": "2.0.0", 609 | "resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-2.0.0.tgz", 610 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 611 | "dev": true 612 | }, 613 | "is-glob": { 614 | "version": "4.0.1", 615 | "resolved": "https://registry.npm.taobao.org/is-glob/download/is-glob-4.0.1.tgz", 616 | "integrity": "sha1-dWfb6fL14kZ7x3q4PEopSCQHpdw=", 617 | "dev": true, 618 | "requires": { 619 | "is-extglob": "^2.1.1" 620 | } 621 | }, 622 | "is-map": { 623 | "version": "2.0.1", 624 | "resolved": "https://registry.npm.taobao.org/is-map/download/is-map-2.0.1.tgz", 625 | "integrity": "sha1-Ug2vxDB7uOvDO4E95c58lADWRKE=", 626 | "dev": true 627 | }, 628 | "is-number": { 629 | "version": "7.0.0", 630 | "resolved": "https://registry.npm.taobao.org/is-number/download/is-number-7.0.0.tgz", 631 | "integrity": "sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss=", 632 | "dev": true 633 | }, 634 | "is-plain-obj": { 635 | "version": "1.1.0", 636 | "resolved": "https://registry.npm.taobao.org/is-plain-obj/download/is-plain-obj-1.1.0.tgz", 637 | "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", 638 | "dev": true 639 | }, 640 | "is-plain-object": { 641 | "version": "4.1.1", 642 | "resolved": "https://registry.npm.taobao.org/is-plain-object/download/is-plain-object-4.1.1.tgz", 643 | "integrity": "sha1-GhTWRSy9UHkO3H/aoK7VpAo167U=" 644 | }, 645 | "is-regex": { 646 | "version": "1.1.1", 647 | "resolved": "https://registry.npm.taobao.org/is-regex/download/is-regex-1.1.1.tgz?cache=0&sync_timestamp=1596555593794&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-regex%2Fdownload%2Fis-regex-1.1.1.tgz", 648 | "integrity": "sha1-xvmKrMVG9s7FRooHt7FTq1ZKV7k=", 649 | "dev": true, 650 | "requires": { 651 | "has-symbols": "^1.0.1" 652 | } 653 | }, 654 | "is-set": { 655 | "version": "2.0.1", 656 | "resolved": "https://registry.npm.taobao.org/is-set/download/is-set-2.0.1.tgz", 657 | "integrity": "sha1-0WBK/asXJJhtMAkVdfVJRdp+X0M=", 658 | "dev": true 659 | }, 660 | "is-string": { 661 | "version": "1.0.5", 662 | "resolved": "https://registry.npm.taobao.org/is-string/download/is-string-1.0.5.tgz", 663 | "integrity": "sha1-QEk+0ZjvP/R3uMf5L2ROyCpc06Y=", 664 | "dev": true 665 | }, 666 | "is-symbol": { 667 | "version": "1.0.3", 668 | "resolved": "https://registry.npm.taobao.org/is-symbol/download/is-symbol-1.0.3.tgz", 669 | "integrity": "sha1-OOEBS55jKb4N6dJKQU/XRB7GGTc=", 670 | "dev": true, 671 | "requires": { 672 | "has-symbols": "^1.0.1" 673 | } 674 | }, 675 | "isarray": { 676 | "version": "2.0.5", 677 | "resolved": "https://registry.npm.taobao.org/isarray/download/isarray-2.0.5.tgz", 678 | "integrity": "sha1-ivHkwSISRMxiRZ+vOJQNTmRKVyM=", 679 | "dev": true 680 | }, 681 | "isexe": { 682 | "version": "2.0.0", 683 | "resolved": "https://registry.npm.taobao.org/isexe/download/isexe-2.0.0.tgz", 684 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 685 | "dev": true 686 | }, 687 | "iterate-iterator": { 688 | "version": "1.0.1", 689 | "resolved": "https://registry.npm.taobao.org/iterate-iterator/download/iterate-iterator-1.0.1.tgz", 690 | "integrity": "sha1-FpOnaMHd15yWkFFFlFPwgv6C6fY=", 691 | "dev": true 692 | }, 693 | "iterate-value": { 694 | "version": "1.0.2", 695 | "resolved": "https://registry.npm.taobao.org/iterate-value/download/iterate-value-1.0.2.tgz", 696 | "integrity": "sha1-k1EVvTfQBqUgRlNevI0H6ckzf1c=", 697 | "dev": true, 698 | "requires": { 699 | "es-get-iterator": "^1.0.2", 700 | "iterate-iterator": "^1.0.1" 701 | } 702 | }, 703 | "js-yaml": { 704 | "version": "3.14.0", 705 | "resolved": "https://registry.npm.taobao.org/js-yaml/download/js-yaml-3.14.0.tgz", 706 | "integrity": "sha1-p6NBcPJqIbsWJCTYray0ETpp5II=", 707 | "dev": true, 708 | "requires": { 709 | "argparse": "^1.0.7", 710 | "esprima": "^4.0.0" 711 | } 712 | }, 713 | "jsonwebtoken": { 714 | "version": "8.5.1", 715 | "resolved": "https://registry.npm.taobao.org/jsonwebtoken/download/jsonwebtoken-8.5.1.tgz", 716 | "integrity": "sha1-AOceC431TCEhofJhN98igGc7zA0=", 717 | "requires": { 718 | "jws": "^3.2.2", 719 | "lodash.includes": "^4.3.0", 720 | "lodash.isboolean": "^3.0.3", 721 | "lodash.isinteger": "^4.0.4", 722 | "lodash.isnumber": "^3.0.3", 723 | "lodash.isplainobject": "^4.0.6", 724 | "lodash.isstring": "^4.0.1", 725 | "lodash.once": "^4.0.0", 726 | "ms": "^2.1.1", 727 | "semver": "^5.6.0" 728 | }, 729 | "dependencies": { 730 | "ms": { 731 | "version": "2.1.2", 732 | "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz?cache=0&sync_timestamp=1575472461218&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.1.2.tgz", 733 | "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=" 734 | } 735 | } 736 | }, 737 | "jwa": { 738 | "version": "1.4.1", 739 | "resolved": "https://registry.npm.taobao.org/jwa/download/jwa-1.4.1.tgz?cache=0&sync_timestamp=1576559839448&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjwa%2Fdownload%2Fjwa-1.4.1.tgz", 740 | "integrity": "sha1-dDwymFy56YZVUw1TZBtmyGRbA5o=", 741 | "requires": { 742 | "buffer-equal-constant-time": "1.0.1", 743 | "ecdsa-sig-formatter": "1.0.11", 744 | "safe-buffer": "^5.0.1" 745 | } 746 | }, 747 | "jws": { 748 | "version": "3.2.2", 749 | "resolved": "https://registry.npm.taobao.org/jws/download/jws-3.2.2.tgz", 750 | "integrity": "sha1-ABCZ82OUaMlBQADpmZX6UvtHgwQ=", 751 | "requires": { 752 | "jwa": "^1.4.1", 753 | "safe-buffer": "^5.0.1" 754 | } 755 | }, 756 | "locate-path": { 757 | "version": "6.0.0", 758 | "resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-6.0.0.tgz", 759 | "integrity": "sha1-VTIeswn+u8WcSAHZMackUqaB0oY=", 760 | "dev": true, 761 | "requires": { 762 | "p-locate": "^5.0.0" 763 | } 764 | }, 765 | "lodash.includes": { 766 | "version": "4.3.0", 767 | "resolved": "https://registry.npm.taobao.org/lodash.includes/download/lodash.includes-4.3.0.tgz", 768 | "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" 769 | }, 770 | "lodash.isboolean": { 771 | "version": "3.0.3", 772 | "resolved": "https://registry.npm.taobao.org/lodash.isboolean/download/lodash.isboolean-3.0.3.tgz", 773 | "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" 774 | }, 775 | "lodash.isinteger": { 776 | "version": "4.0.4", 777 | "resolved": "https://registry.npm.taobao.org/lodash.isinteger/download/lodash.isinteger-4.0.4.tgz", 778 | "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" 779 | }, 780 | "lodash.isnumber": { 781 | "version": "3.0.3", 782 | "resolved": "https://registry.npm.taobao.org/lodash.isnumber/download/lodash.isnumber-3.0.3.tgz", 783 | "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" 784 | }, 785 | "lodash.isplainobject": { 786 | "version": "4.0.6", 787 | "resolved": "https://registry.npm.taobao.org/lodash.isplainobject/download/lodash.isplainobject-4.0.6.tgz", 788 | "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" 789 | }, 790 | "lodash.isstring": { 791 | "version": "4.0.1", 792 | "resolved": "https://registry.npm.taobao.org/lodash.isstring/download/lodash.isstring-4.0.1.tgz", 793 | "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" 794 | }, 795 | "lodash.once": { 796 | "version": "4.1.1", 797 | "resolved": "https://registry.npm.taobao.org/lodash.once/download/lodash.once-4.1.1.tgz", 798 | "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" 799 | }, 800 | "log-symbols": { 801 | "version": "4.0.0", 802 | "resolved": "https://registry.npm.taobao.org/log-symbols/download/log-symbols-4.0.0.tgz?cache=0&sync_timestamp=1587898912367&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flog-symbols%2Fdownload%2Flog-symbols-4.0.0.tgz", 803 | "integrity": "sha1-abPMRtIPRI7M23XqH6cz2eghySA=", 804 | "dev": true, 805 | "requires": { 806 | "chalk": "^4.0.0" 807 | } 808 | }, 809 | "lru-cache": { 810 | "version": "6.0.0", 811 | "resolved": "https://registry.npm.taobao.org/lru-cache/download/lru-cache-6.0.0.tgz?cache=0&sync_timestamp=1594427602316&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flru-cache%2Fdownload%2Flru-cache-6.0.0.tgz", 812 | "integrity": "sha1-bW/mVw69lqr5D8rR2vo7JWbbOpQ=", 813 | "requires": { 814 | "yallist": "^4.0.0" 815 | } 816 | }, 817 | "minimatch": { 818 | "version": "3.0.4", 819 | "resolved": "https://registry.npm.taobao.org/minimatch/download/minimatch-3.0.4.tgz", 820 | "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", 821 | "dev": true, 822 | "requires": { 823 | "brace-expansion": "^1.1.7" 824 | } 825 | }, 826 | "mocha": { 827 | "version": "8.1.3", 828 | "resolved": "https://registry.npm.taobao.org/mocha/download/mocha-8.1.3.tgz", 829 | "integrity": "sha1-XpP4c+Nd/daWF+p1+caMLKYcKsU=", 830 | "dev": true, 831 | "requires": { 832 | "ansi-colors": "4.1.1", 833 | "browser-stdout": "1.3.1", 834 | "chokidar": "3.4.2", 835 | "debug": "4.1.1", 836 | "diff": "4.0.2", 837 | "escape-string-regexp": "4.0.0", 838 | "find-up": "5.0.0", 839 | "glob": "7.1.6", 840 | "growl": "1.10.5", 841 | "he": "1.2.0", 842 | "js-yaml": "3.14.0", 843 | "log-symbols": "4.0.0", 844 | "minimatch": "3.0.4", 845 | "ms": "2.1.2", 846 | "object.assign": "4.1.0", 847 | "promise.allsettled": "1.0.2", 848 | "serialize-javascript": "4.0.0", 849 | "strip-json-comments": "3.0.1", 850 | "supports-color": "7.1.0", 851 | "which": "2.0.2", 852 | "wide-align": "1.1.3", 853 | "workerpool": "6.0.0", 854 | "yargs": "13.3.2", 855 | "yargs-parser": "13.1.2", 856 | "yargs-unparser": "1.6.1" 857 | }, 858 | "dependencies": { 859 | "debug": { 860 | "version": "4.1.1", 861 | "resolved": "https://registry.npm.taobao.org/debug/download/debug-4.1.1.tgz", 862 | "integrity": "sha1-O3ImAlUQnGtYnO4FDx1RYTlmR5E=", 863 | "dev": true, 864 | "requires": { 865 | "ms": "^2.1.1" 866 | } 867 | }, 868 | "ms": { 869 | "version": "2.1.2", 870 | "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz?cache=0&sync_timestamp=1575472461218&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.1.2.tgz", 871 | "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=", 872 | "dev": true 873 | } 874 | } 875 | }, 876 | "ms": { 877 | "version": "2.0.0", 878 | "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&sync_timestamp=1575472461218&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz", 879 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 880 | }, 881 | "node-fetch": { 882 | "version": "2.6.0", 883 | "resolved": "https://registry.npm.taobao.org/node-fetch/download/node-fetch-2.6.0.tgz?cache=0&sync_timestamp=1591866541347&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.0.tgz", 884 | "integrity": "sha1-5jNFY4bUqlWGP2dqerDaqP3ssP0=" 885 | }, 886 | "normalize-path": { 887 | "version": "3.0.0", 888 | "resolved": "https://registry.npm.taobao.org/normalize-path/download/normalize-path-3.0.0.tgz", 889 | "integrity": "sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU=", 890 | "dev": true 891 | }, 892 | "object-inspect": { 893 | "version": "1.8.0", 894 | "resolved": "https://registry.npm.taobao.org/object-inspect/download/object-inspect-1.8.0.tgz?cache=0&sync_timestamp=1592545092032&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fobject-inspect%2Fdownload%2Fobject-inspect-1.8.0.tgz", 895 | "integrity": "sha1-34B+Xs9TpgnMa/6T6sPMe+WzqdA=", 896 | "dev": true 897 | }, 898 | "object-keys": { 899 | "version": "1.1.1", 900 | "resolved": "https://registry.npm.taobao.org/object-keys/download/object-keys-1.1.1.tgz", 901 | "integrity": "sha1-HEfyct8nfzsdrwYWd9nILiMixg4=", 902 | "dev": true 903 | }, 904 | "object.assign": { 905 | "version": "4.1.0", 906 | "resolved": "https://registry.npm.taobao.org/object.assign/download/object.assign-4.1.0.tgz", 907 | "integrity": "sha1-lovxEA15Vrs8oIbwBvhGs7xACNo=", 908 | "dev": true, 909 | "requires": { 910 | "define-properties": "^1.1.2", 911 | "function-bind": "^1.1.1", 912 | "has-symbols": "^1.0.0", 913 | "object-keys": "^1.0.11" 914 | } 915 | }, 916 | "once": { 917 | "version": "1.4.0", 918 | "resolved": "https://registry.npm.taobao.org/once/download/once-1.4.0.tgz", 919 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 920 | "requires": { 921 | "wrappy": "1" 922 | } 923 | }, 924 | "p-limit": { 925 | "version": "3.0.2", 926 | "resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-3.0.2.tgz?cache=0&sync_timestamp=1594559831306&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-3.0.2.tgz", 927 | "integrity": "sha1-FmTgEK88rcaBuq/T4qQ3vnsPtf4=", 928 | "dev": true, 929 | "requires": { 930 | "p-try": "^2.0.0" 931 | } 932 | }, 933 | "p-locate": { 934 | "version": "5.0.0", 935 | "resolved": "https://registry.npm.taobao.org/p-locate/download/p-locate-5.0.0.tgz?cache=0&sync_timestamp=1597081508945&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-locate%2Fdownload%2Fp-locate-5.0.0.tgz", 936 | "integrity": "sha1-g8gxXGeFAF470CGDlBHJ4RDm2DQ=", 937 | "dev": true, 938 | "requires": { 939 | "p-limit": "^3.0.2" 940 | } 941 | }, 942 | "p-try": { 943 | "version": "2.2.0", 944 | "resolved": "https://registry.npm.taobao.org/p-try/download/p-try-2.2.0.tgz", 945 | "integrity": "sha1-yyhoVA4xPWHeWPr741zpAE1VQOY=", 946 | "dev": true 947 | }, 948 | "path-exists": { 949 | "version": "4.0.0", 950 | "resolved": "https://registry.npm.taobao.org/path-exists/download/path-exists-4.0.0.tgz", 951 | "integrity": "sha1-UTvb4tO5XXdi6METfvoZXGxhtbM=", 952 | "dev": true 953 | }, 954 | "path-is-absolute": { 955 | "version": "1.0.1", 956 | "resolved": "https://registry.npm.taobao.org/path-is-absolute/download/path-is-absolute-1.0.1.tgz", 957 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 958 | "dev": true 959 | }, 960 | "picomatch": { 961 | "version": "2.2.2", 962 | "resolved": "https://registry.npm.taobao.org/picomatch/download/picomatch-2.2.2.tgz", 963 | "integrity": "sha1-IfMz6ba46v8CRo9RRupAbTRfTa0=", 964 | "dev": true 965 | }, 966 | "promise.allsettled": { 967 | "version": "1.0.2", 968 | "resolved": "https://registry.npm.taobao.org/promise.allsettled/download/promise.allsettled-1.0.2.tgz", 969 | "integrity": "sha1-1m94+7YA6D6GPYk+mLPUN2qcR8k=", 970 | "dev": true, 971 | "requires": { 972 | "array.prototype.map": "^1.0.1", 973 | "define-properties": "^1.1.3", 974 | "es-abstract": "^1.17.0-next.1", 975 | "function-bind": "^1.1.1", 976 | "iterate-value": "^1.0.0" 977 | } 978 | }, 979 | "randombytes": { 980 | "version": "2.1.0", 981 | "resolved": "https://registry.npm.taobao.org/randombytes/download/randombytes-2.1.0.tgz", 982 | "integrity": "sha1-32+ENy8CcNxlzfYpE0mrekc9Tyo=", 983 | "dev": true, 984 | "requires": { 985 | "safe-buffer": "^5.1.0" 986 | } 987 | }, 988 | "readdirp": { 989 | "version": "3.4.0", 990 | "resolved": "https://registry.npm.taobao.org/readdirp/download/readdirp-3.4.0.tgz?cache=0&sync_timestamp=1584985846450&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freaddirp%2Fdownload%2Freaddirp-3.4.0.tgz", 991 | "integrity": "sha1-n9zN+ekVWAVEkiGsZF6DA6tbmto=", 992 | "dev": true, 993 | "requires": { 994 | "picomatch": "^2.2.1" 995 | } 996 | }, 997 | "require-directory": { 998 | "version": "2.1.1", 999 | "resolved": "https://registry.npm.taobao.org/require-directory/download/require-directory-2.1.1.tgz", 1000 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 1001 | "dev": true 1002 | }, 1003 | "require-main-filename": { 1004 | "version": "2.0.0", 1005 | "resolved": "https://registry.npm.taobao.org/require-main-filename/download/require-main-filename-2.0.0.tgz", 1006 | "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs=", 1007 | "dev": true 1008 | }, 1009 | "safe-buffer": { 1010 | "version": "5.2.1", 1011 | "resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.2.1.tgz?cache=0&sync_timestamp=1589129378619&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.2.1.tgz", 1012 | "integrity": "sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY=" 1013 | }, 1014 | "semver": { 1015 | "version": "5.7.1", 1016 | "resolved": "https://registry.npm.taobao.org/semver/download/semver-5.7.1.tgz", 1017 | "integrity": "sha1-qVT5Ma66UI0we78Gnv8MAclhFvc=" 1018 | }, 1019 | "serialize-javascript": { 1020 | "version": "4.0.0", 1021 | "resolved": "https://registry.npm.taobao.org/serialize-javascript/download/serialize-javascript-4.0.0.tgz", 1022 | "integrity": "sha1-tSXhI4SJpez8Qq+sw/6Z5mb0sao=", 1023 | "dev": true, 1024 | "requires": { 1025 | "randombytes": "^2.1.0" 1026 | } 1027 | }, 1028 | "set-blocking": { 1029 | "version": "2.0.0", 1030 | "resolved": "https://registry.npm.taobao.org/set-blocking/download/set-blocking-2.0.0.tgz", 1031 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", 1032 | "dev": true 1033 | }, 1034 | "sprintf-js": { 1035 | "version": "1.0.3", 1036 | "resolved": "https://registry.npm.taobao.org/sprintf-js/download/sprintf-js-1.0.3.tgz", 1037 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1038 | "dev": true 1039 | }, 1040 | "string-width": { 1041 | "version": "2.1.1", 1042 | "resolved": "https://registry.npm.taobao.org/string-width/download/string-width-2.1.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring-width%2Fdownload%2Fstring-width-2.1.1.tgz", 1043 | "integrity": "sha1-q5Pyeo3BPSjKyBXEYhQ6bZASrp4=", 1044 | "dev": true, 1045 | "requires": { 1046 | "is-fullwidth-code-point": "^2.0.0", 1047 | "strip-ansi": "^4.0.0" 1048 | } 1049 | }, 1050 | "string.prototype.trimend": { 1051 | "version": "1.0.1", 1052 | "resolved": "https://registry.npm.taobao.org/string.prototype.trimend/download/string.prototype.trimend-1.0.1.tgz", 1053 | "integrity": "sha1-hYEqa4R6wAInD1gIFGBkyZX7aRM=", 1054 | "dev": true, 1055 | "requires": { 1056 | "define-properties": "^1.1.3", 1057 | "es-abstract": "^1.17.5" 1058 | } 1059 | }, 1060 | "string.prototype.trimstart": { 1061 | "version": "1.0.1", 1062 | "resolved": "https://registry.npm.taobao.org/string.prototype.trimstart/download/string.prototype.trimstart-1.0.1.tgz", 1063 | "integrity": "sha1-FK9tnzSwU/fPyJty+PLuFLkDmlQ=", 1064 | "dev": true, 1065 | "requires": { 1066 | "define-properties": "^1.1.3", 1067 | "es-abstract": "^1.17.5" 1068 | } 1069 | }, 1070 | "strip-ansi": { 1071 | "version": "4.0.0", 1072 | "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-4.0.0.tgz", 1073 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 1074 | "dev": true, 1075 | "requires": { 1076 | "ansi-regex": "^3.0.0" 1077 | } 1078 | }, 1079 | "strip-json-comments": { 1080 | "version": "3.0.1", 1081 | "resolved": "https://registry.npm.taobao.org/strip-json-comments/download/strip-json-comments-3.0.1.tgz?cache=0&sync_timestamp=1594567471207&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-json-comments%2Fdownload%2Fstrip-json-comments-3.0.1.tgz", 1082 | "integrity": "sha1-hXE5dakfuHvxswXMp3OV5A0qZKc=", 1083 | "dev": true 1084 | }, 1085 | "supports-color": { 1086 | "version": "7.1.0", 1087 | "resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-7.1.0.tgz?cache=0&sync_timestamp=1598611730985&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.1.0.tgz", 1088 | "integrity": "sha1-aOMlkd9z4lrRxLSRCKLsUHliv9E=", 1089 | "dev": true, 1090 | "requires": { 1091 | "has-flag": "^4.0.0" 1092 | } 1093 | }, 1094 | "timeago.js": { 1095 | "version": "4.0.2", 1096 | "resolved": "https://registry.npm.taobao.org/timeago.js/download/timeago.js-4.0.2.tgz", 1097 | "integrity": "sha1-ck6MiDPjSQZ2x7sKdfXa8g5VgCg=" 1098 | }, 1099 | "to-regex-range": { 1100 | "version": "5.0.1", 1101 | "resolved": "https://registry.npm.taobao.org/to-regex-range/download/to-regex-range-5.0.1.tgz", 1102 | "integrity": "sha1-FkjESq58jZiKMmAY7XL1tN0DkuQ=", 1103 | "dev": true, 1104 | "requires": { 1105 | "is-number": "^7.0.0" 1106 | } 1107 | }, 1108 | "universal-github-app-jwt": { 1109 | "version": "1.0.2", 1110 | "resolved": "https://registry.npm.taobao.org/universal-github-app-jwt/download/universal-github-app-jwt-1.0.2.tgz", 1111 | "integrity": "sha1-mnMF5EsqDrVl2D0RaC7r5b6L3os=", 1112 | "requires": { 1113 | "@types/jsonwebtoken": "^8.3.3", 1114 | "jsonwebtoken": "^8.5.1" 1115 | } 1116 | }, 1117 | "universal-user-agent": { 1118 | "version": "6.0.0", 1119 | "resolved": "https://registry.npm.taobao.org/universal-user-agent/download/universal-user-agent-6.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Funiversal-user-agent%2Fdownload%2Funiversal-user-agent-6.0.0.tgz", 1120 | "integrity": "sha1-M4H4UDslHA2c0hvB3pOeyd9UgO4=" 1121 | }, 1122 | "which": { 1123 | "version": "2.0.2", 1124 | "resolved": "https://registry.npm.taobao.org/which/download/which-2.0.2.tgz", 1125 | "integrity": "sha1-fGqN0KY2oDJ+ELWckobu6T8/UbE=", 1126 | "dev": true, 1127 | "requires": { 1128 | "isexe": "^2.0.0" 1129 | } 1130 | }, 1131 | "which-module": { 1132 | "version": "2.0.0", 1133 | "resolved": "https://registry.npm.taobao.org/which-module/download/which-module-2.0.0.tgz", 1134 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 1135 | "dev": true 1136 | }, 1137 | "wide-align": { 1138 | "version": "1.1.3", 1139 | "resolved": "https://registry.npm.taobao.org/wide-align/download/wide-align-1.1.3.tgz", 1140 | "integrity": "sha1-rgdOa9wMFKQx6ATmJFScYzsABFc=", 1141 | "dev": true, 1142 | "requires": { 1143 | "string-width": "^1.0.2 || 2" 1144 | } 1145 | }, 1146 | "workerpool": { 1147 | "version": "6.0.0", 1148 | "resolved": "https://registry.npm.taobao.org/workerpool/download/workerpool-6.0.0.tgz", 1149 | "integrity": "sha1-harWf6GiyO+ThqG0NTmQD2HQPVg=", 1150 | "dev": true 1151 | }, 1152 | "wrap-ansi": { 1153 | "version": "5.1.0", 1154 | "resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-5.1.0.tgz", 1155 | "integrity": "sha1-H9H2cjXVttD+54EFYAG/tpTAOwk=", 1156 | "dev": true, 1157 | "requires": { 1158 | "ansi-styles": "^3.2.0", 1159 | "string-width": "^3.0.0", 1160 | "strip-ansi": "^5.0.0" 1161 | }, 1162 | "dependencies": { 1163 | "ansi-regex": { 1164 | "version": "4.1.0", 1165 | "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-4.1.0.tgz?cache=0&sync_timestamp=1570188570027&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-4.1.0.tgz", 1166 | "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=", 1167 | "dev": true 1168 | }, 1169 | "ansi-styles": { 1170 | "version": "3.2.1", 1171 | "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-3.2.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-3.2.1.tgz", 1172 | "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", 1173 | "dev": true, 1174 | "requires": { 1175 | "color-convert": "^1.9.0" 1176 | } 1177 | }, 1178 | "color-convert": { 1179 | "version": "1.9.3", 1180 | "resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-1.9.3.tgz", 1181 | "integrity": "sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg=", 1182 | "dev": true, 1183 | "requires": { 1184 | "color-name": "1.1.3" 1185 | } 1186 | }, 1187 | "color-name": { 1188 | "version": "1.1.3", 1189 | "resolved": "https://registry.npm.taobao.org/color-name/download/color-name-1.1.3.tgz", 1190 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 1191 | "dev": true 1192 | }, 1193 | "string-width": { 1194 | "version": "3.1.0", 1195 | "resolved": "https://registry.npm.taobao.org/string-width/download/string-width-3.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring-width%2Fdownload%2Fstring-width-3.1.0.tgz", 1196 | "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", 1197 | "dev": true, 1198 | "requires": { 1199 | "emoji-regex": "^7.0.1", 1200 | "is-fullwidth-code-point": "^2.0.0", 1201 | "strip-ansi": "^5.1.0" 1202 | } 1203 | }, 1204 | "strip-ansi": { 1205 | "version": "5.2.0", 1206 | "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz", 1207 | "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", 1208 | "dev": true, 1209 | "requires": { 1210 | "ansi-regex": "^4.1.0" 1211 | } 1212 | } 1213 | } 1214 | }, 1215 | "wrappy": { 1216 | "version": "1.0.2", 1217 | "resolved": "https://registry.npm.taobao.org/wrappy/download/wrappy-1.0.2.tgz", 1218 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1219 | }, 1220 | "y18n": { 1221 | "version": "4.0.0", 1222 | "resolved": "https://registry.npm.taobao.org/y18n/download/y18n-4.0.0.tgz", 1223 | "integrity": "sha1-le+U+F7MgdAHwmThkKEg8KPIVms=", 1224 | "dev": true 1225 | }, 1226 | "yallist": { 1227 | "version": "4.0.0", 1228 | "resolved": "https://registry.npm.taobao.org/yallist/download/yallist-4.0.0.tgz", 1229 | "integrity": "sha1-m7knkNnA7/7GO+c1GeEaNQGaOnI=" 1230 | }, 1231 | "yargs": { 1232 | "version": "13.3.2", 1233 | "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-13.3.2.tgz?cache=0&sync_timestamp=1598505673423&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-13.3.2.tgz", 1234 | "integrity": "sha1-rX/+/sGqWVZayRX4Lcyzipwxot0=", 1235 | "dev": true, 1236 | "requires": { 1237 | "cliui": "^5.0.0", 1238 | "find-up": "^3.0.0", 1239 | "get-caller-file": "^2.0.1", 1240 | "require-directory": "^2.1.1", 1241 | "require-main-filename": "^2.0.0", 1242 | "set-blocking": "^2.0.0", 1243 | "string-width": "^3.0.0", 1244 | "which-module": "^2.0.0", 1245 | "y18n": "^4.0.0", 1246 | "yargs-parser": "^13.1.2" 1247 | }, 1248 | "dependencies": { 1249 | "ansi-regex": { 1250 | "version": "4.1.0", 1251 | "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-4.1.0.tgz?cache=0&sync_timestamp=1570188570027&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-4.1.0.tgz", 1252 | "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=", 1253 | "dev": true 1254 | }, 1255 | "find-up": { 1256 | "version": "3.0.0", 1257 | "resolved": "https://registry.npm.taobao.org/find-up/download/find-up-3.0.0.tgz?cache=0&sync_timestamp=1597169862146&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-3.0.0.tgz", 1258 | "integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=", 1259 | "dev": true, 1260 | "requires": { 1261 | "locate-path": "^3.0.0" 1262 | } 1263 | }, 1264 | "locate-path": { 1265 | "version": "3.0.0", 1266 | "resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-3.0.0.tgz", 1267 | "integrity": "sha1-2+w7OrdZdYBxtY/ln8QYca8hQA4=", 1268 | "dev": true, 1269 | "requires": { 1270 | "p-locate": "^3.0.0", 1271 | "path-exists": "^3.0.0" 1272 | } 1273 | }, 1274 | "p-limit": { 1275 | "version": "2.3.0", 1276 | "resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-2.3.0.tgz?cache=0&sync_timestamp=1594559831306&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-2.3.0.tgz", 1277 | "integrity": "sha1-PdM8ZHohT9//2DWTPrCG2g3CHbE=", 1278 | "dev": true, 1279 | "requires": { 1280 | "p-try": "^2.0.0" 1281 | } 1282 | }, 1283 | "p-locate": { 1284 | "version": "3.0.0", 1285 | "resolved": "https://registry.npm.taobao.org/p-locate/download/p-locate-3.0.0.tgz?cache=0&sync_timestamp=1597081508945&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-locate%2Fdownload%2Fp-locate-3.0.0.tgz", 1286 | "integrity": "sha1-Mi1poFwCZLJZl9n0DNiokasAZKQ=", 1287 | "dev": true, 1288 | "requires": { 1289 | "p-limit": "^2.0.0" 1290 | } 1291 | }, 1292 | "path-exists": { 1293 | "version": "3.0.0", 1294 | "resolved": "https://registry.npm.taobao.org/path-exists/download/path-exists-3.0.0.tgz", 1295 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 1296 | "dev": true 1297 | }, 1298 | "string-width": { 1299 | "version": "3.1.0", 1300 | "resolved": "https://registry.npm.taobao.org/string-width/download/string-width-3.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring-width%2Fdownload%2Fstring-width-3.1.0.tgz", 1301 | "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", 1302 | "dev": true, 1303 | "requires": { 1304 | "emoji-regex": "^7.0.1", 1305 | "is-fullwidth-code-point": "^2.0.0", 1306 | "strip-ansi": "^5.1.0" 1307 | } 1308 | }, 1309 | "strip-ansi": { 1310 | "version": "5.2.0", 1311 | "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz", 1312 | "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", 1313 | "dev": true, 1314 | "requires": { 1315 | "ansi-regex": "^4.1.0" 1316 | } 1317 | } 1318 | } 1319 | }, 1320 | "yargs-parser": { 1321 | "version": "13.1.2", 1322 | "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-13.1.2.tgz?cache=0&sync_timestamp=1598505032314&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-13.1.2.tgz", 1323 | "integrity": "sha1-Ew8JcC667vJlDVTObj5XBvek+zg=", 1324 | "dev": true, 1325 | "requires": { 1326 | "camelcase": "^5.0.0", 1327 | "decamelize": "^1.2.0" 1328 | } 1329 | }, 1330 | "yargs-unparser": { 1331 | "version": "1.6.1", 1332 | "resolved": "https://registry.npm.taobao.org/yargs-unparser/download/yargs-unparser-1.6.1.tgz", 1333 | "integrity": "sha1-vUsO4FtMlNBYkpwyywnj/OcdPF8=", 1334 | "dev": true, 1335 | "requires": { 1336 | "camelcase": "^5.3.1", 1337 | "decamelize": "^1.2.0", 1338 | "flat": "^4.1.0", 1339 | "is-plain-obj": "^1.1.0", 1340 | "yargs": "^14.2.3" 1341 | }, 1342 | "dependencies": { 1343 | "ansi-regex": { 1344 | "version": "4.1.0", 1345 | "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-4.1.0.tgz?cache=0&sync_timestamp=1570188570027&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-regex%2Fdownload%2Fansi-regex-4.1.0.tgz", 1346 | "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=", 1347 | "dev": true 1348 | }, 1349 | "find-up": { 1350 | "version": "3.0.0", 1351 | "resolved": "https://registry.npm.taobao.org/find-up/download/find-up-3.0.0.tgz?cache=0&sync_timestamp=1597169862146&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-3.0.0.tgz", 1352 | "integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=", 1353 | "dev": true, 1354 | "requires": { 1355 | "locate-path": "^3.0.0" 1356 | } 1357 | }, 1358 | "locate-path": { 1359 | "version": "3.0.0", 1360 | "resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-3.0.0.tgz", 1361 | "integrity": "sha1-2+w7OrdZdYBxtY/ln8QYca8hQA4=", 1362 | "dev": true, 1363 | "requires": { 1364 | "p-locate": "^3.0.0", 1365 | "path-exists": "^3.0.0" 1366 | } 1367 | }, 1368 | "p-limit": { 1369 | "version": "2.3.0", 1370 | "resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-2.3.0.tgz?cache=0&sync_timestamp=1594559831306&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-2.3.0.tgz", 1371 | "integrity": "sha1-PdM8ZHohT9//2DWTPrCG2g3CHbE=", 1372 | "dev": true, 1373 | "requires": { 1374 | "p-try": "^2.0.0" 1375 | } 1376 | }, 1377 | "p-locate": { 1378 | "version": "3.0.0", 1379 | "resolved": "https://registry.npm.taobao.org/p-locate/download/p-locate-3.0.0.tgz?cache=0&sync_timestamp=1597081508945&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-locate%2Fdownload%2Fp-locate-3.0.0.tgz", 1380 | "integrity": "sha1-Mi1poFwCZLJZl9n0DNiokasAZKQ=", 1381 | "dev": true, 1382 | "requires": { 1383 | "p-limit": "^2.0.0" 1384 | } 1385 | }, 1386 | "path-exists": { 1387 | "version": "3.0.0", 1388 | "resolved": "https://registry.npm.taobao.org/path-exists/download/path-exists-3.0.0.tgz", 1389 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 1390 | "dev": true 1391 | }, 1392 | "string-width": { 1393 | "version": "3.1.0", 1394 | "resolved": "https://registry.npm.taobao.org/string-width/download/string-width-3.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring-width%2Fdownload%2Fstring-width-3.1.0.tgz", 1395 | "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", 1396 | "dev": true, 1397 | "requires": { 1398 | "emoji-regex": "^7.0.1", 1399 | "is-fullwidth-code-point": "^2.0.0", 1400 | "strip-ansi": "^5.1.0" 1401 | } 1402 | }, 1403 | "strip-ansi": { 1404 | "version": "5.2.0", 1405 | "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz", 1406 | "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", 1407 | "dev": true, 1408 | "requires": { 1409 | "ansi-regex": "^4.1.0" 1410 | } 1411 | }, 1412 | "yargs": { 1413 | "version": "14.2.3", 1414 | "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-14.2.3.tgz?cache=0&sync_timestamp=1598505673423&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-14.2.3.tgz", 1415 | "integrity": "sha1-Ghw+3O0a+yov6jNgS8bR2NaIpBQ=", 1416 | "dev": true, 1417 | "requires": { 1418 | "cliui": "^5.0.0", 1419 | "decamelize": "^1.2.0", 1420 | "find-up": "^3.0.0", 1421 | "get-caller-file": "^2.0.1", 1422 | "require-directory": "^2.1.1", 1423 | "require-main-filename": "^2.0.0", 1424 | "set-blocking": "^2.0.0", 1425 | "string-width": "^3.0.0", 1426 | "which-module": "^2.0.0", 1427 | "y18n": "^4.0.0", 1428 | "yargs-parser": "^15.0.1" 1429 | } 1430 | }, 1431 | "yargs-parser": { 1432 | "version": "15.0.1", 1433 | "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-15.0.1.tgz?cache=0&sync_timestamp=1598505032314&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-15.0.1.tgz", 1434 | "integrity": "sha1-VHhq9AuCDcsvuAJbEbTWWddjI7M=", 1435 | "dev": true, 1436 | "requires": { 1437 | "camelcase": "^5.0.0", 1438 | "decamelize": "^1.2.0" 1439 | } 1440 | } 1441 | } 1442 | } 1443 | } 1444 | } 1445 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hackernews", 3 | "version": "1.0.0", 4 | "description": "Hacker News Daily/Weekly/Monthly headlines", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "mocha -u qunit --timeout 15000" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/headllines/hackernews.git" 12 | }, 13 | "keywords": [], 14 | "author": "", 15 | "license": "ISC", 16 | "bugs": { 17 | "url": "https://github.com/headllines/hackernews/issues" 18 | }, 19 | "homepage": "https://github.com/headllines/hackernews#readme", 20 | "dependencies": { 21 | "@octokit/auth-app": "^2.4.13", 22 | "@octokit/core": "^3.1.2", 23 | "axios": "^0.19.2", 24 | "dayjs": "^1.8.32", 25 | "timeago.js": "^4.0.2" 26 | }, 27 | "devDependencies": { 28 | "mocha": "^8.1.3" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /test/getHeadlines.js: -------------------------------------------------------------------------------- 1 | const getHeadlines = require('../utils/getHeadlines'); 2 | 3 | test('getHeadlines', async () => { 4 | const headlines = await getHeadlines(new Date('2020-09-06')); 5 | console.log(headlines) 6 | }); 7 | -------------------------------------------------------------------------------- /utils/getHeadlines.js: -------------------------------------------------------------------------------- 1 | const axios = require('axios'); 2 | const timeago = require('timeago.js'); 3 | 4 | const getHeadlines = async (date) => { 5 | console.log('start fetching headlines') 6 | try { 7 | // end of the date 8 | const endTime = Math.round(new Date(date).getTime() / 1000); 9 | // 1 hour before start of the date (save missed posts) 10 | const startTime = Math.round(new Date(date).getTime() / 1000) - (25 * 60 * 60); 11 | const res = await axios.get(`https://hn.algolia.com/api/v1/search?numericFilters=created_at_i>${startTime},created_at_i<${endTime}`); 12 | const top10Objs = res.data.hits.slice(0, 10); 13 | // console.log(top10Objs) 14 | const contents = top10Objs 15 | .map((obj, i) => { 16 | let { title, created_at, url, author, points, objectID, num_comments } = obj; 17 | if(!url) url = `https://news.ycombinator.com/item?id=${objectID}`; 18 | 19 | return `${i + 1}. **[${title}](${url})** 20 | ${points} points by [${author}](https://news.ycombinator.com/user?id=${author}) ${timeago.format(created_at)} | [${num_comments} comments](https://news.ycombinator.com/item?id=${objectID}) 21 | 22 | `; 23 | }) 24 | .join(''); 25 | 26 | 27 | return `${contents} 28 |

❤️ Sponsor the author

29 | `; 30 | } catch (error) { 31 | console.log(error); 32 | throw error 33 | } 34 | 35 | } 36 | 37 | module.exports = getHeadlines; 38 | 39 | 40 | // getHeadlines(new Date()) 41 | -------------------------------------------------------------------------------- /utils/issue.js: -------------------------------------------------------------------------------- 1 | const { Octokit } = require("@octokit/core"); 2 | const { createAppAuth } = require("@octokit/auth-app"); 3 | 4 | let secrets = {}; 5 | 6 | try { 7 | secrets = require('../secret.js'); 8 | } catch (error) { 9 | console.log('no secret json, on github action') 10 | } 11 | 12 | const octokit = new Octokit({ 13 | authStrategy: createAppAuth, 14 | auth: { 15 | id: 75833, 16 | installationId: 11101003, 17 | clientId: "Iv1.8d2f7d117f535668", 18 | clientSecret: process.env.clientSecret ? process.env.clientSecret : secrets.clientSecret, 19 | privateKey: process.env.privateKey ? process.env.privateKey : secrets.privateKey, 20 | }, 21 | }); 22 | 23 | const open = async ({owner, repo, title, body}) => { 24 | try { 25 | console.log('opening issue'); 26 | const res = await octokit.request('POST /repos/{owner}/{repo}/issues', { 27 | owner, 28 | repo, 29 | title, 30 | body, 31 | }); 32 | console.log('opened'); 33 | return res; 34 | } catch (error) { 35 | console.log(error); 36 | throw error; 37 | } 38 | } 39 | 40 | const lock = async ({owner, repo, issueNumber}) => { 41 | console.log('locking issue'); 42 | await octokit.request('PUT /repos/{owner}/{repo}/issues/{issue_number}/lock', { 43 | owner: owner, 44 | repo: repo, 45 | issue_number: issueNumber, 46 | lock_reason: 'resolved' 47 | }); 48 | console.log('locked'); 49 | } 50 | 51 | module.exports = { 52 | open, 53 | lock, 54 | } 55 | 56 | // lock({ 57 | // owner: 'headllines', 58 | // repo: 'hackernews-daily', 59 | // issueNumber: 39, 60 | // }); 61 | --------------------------------------------------------------------------------