├── .github └── workflows │ └── push-to-main.yml ├── .gitignore ├── LICENSE ├── enrich-object.md ├── extract-and-flatten.md ├── extract-keys.md ├── faster-access.md ├── package.json ├── parallel-promises.md ├── pattern-matching.md ├── pipe-through-exception-funcs.md ├── promise-made-simpler.md ├── readme.md ├── sequential-promises.md ├── tests ├── access-id.spec.js ├── adv-switch-case.spec.js ├── enrich-object.spec.js ├── extract-flatten.spec.js ├── extract-keys.spec.js ├── pipe.spec.js ├── promise-parallel.spec.js ├── promise-seq.spec.js ├── promise.spec.js ├── trigger-download.html └── try-catch-made-simpler.spec.js ├── trigger-file-download.md ├── try-catch-made-simpler.md └── yarn.lock /.github/workflows/push-to-main.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | branches: 4 | - main 5 | 6 | workflow_dispatch: 7 | 8 | jobs: 9 | run-tests: 10 | name: "Run tests" 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Setup Node.js environment 14 | uses: actions/setup-node@v3.5.0 15 | - name: Enable yarn 16 | run: corepack enable 17 | - name: Clone repo 18 | uses: actions/checkout@v3 19 | - name: Install dependencies 20 | run: yarn 21 | - name: Run tests 22 | run: yarn test 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /enrich-object.md: -------------------------------------------------------------------------------- 1 | # Enrich object 2 | 3 | This scenario is very common in apps that interact with data from an API/backend service. 4 | 5 | Let's say you get a `customers` list which looks like this: 6 | 7 | ```js 8 | let customers = [ 9 | { id: 1, name: 'john', age: 28, city: 'denver' }, 10 | { id: 2, name: 'bob', age: 25, city: 'kyoto' }, 11 | { id: 3, name: 'angela', age: 44, city: 'mumbai' }, 12 | ]; 13 | ``` 14 | 15 | And then you get, as an example, a `kycCustomer`: 16 | 17 | ```js 18 | let kycCustomer = { 19 | customerId: 1, 20 | kyc: true, 21 | createdOn: '2022-11-01', 22 | }; 23 | ``` 24 | 25 | But when I want to use the `kycCustomer` to, say, show on the UI or use as input to another function, I have to also get the customer's name, age and city where `customerId` equals `1`, and "enrich" this `kycCustomer` object with that data. 26 | 27 | To do this, I use an `enrich` function where I tell which keys to match, which keys to extract and the function returns an enriched list. 28 | 29 | ```js 30 | const enrich = 31 | ({ match, extract = [], source = [] }) => 32 | (inputObj) => { 33 | if (!match) return inputObj; 34 | if (!extract?.length) return inputObj; 35 | if (!source) return inputObj; 36 | if (!source?.length) return inputObj; 37 | let matchingItem = source.find( 38 | (s) => s[match.sourceKey] === inputObj[match.inputKey] 39 | ); 40 | if (!matchingItem) return inputObj; 41 | return extract.reduce((acc, key) => { 42 | return { 43 | ...acc, 44 | [key]: matchingItem[key], 45 | }; 46 | }, inputObj); 47 | }; 48 | 49 | // USAGE 50 | let customers = [ 51 | { id: 1, name: 'john', age: 28, city: 'denver' }, 52 | { id: 2, name: 'bob', age: 25, city: 'kyoto' }, 53 | { id: 3, name: 'angela', age: 44, city: 'mumbai' }, 54 | ]; 55 | 56 | let kycCustomer = { 57 | customerId: 1, 58 | kyc: true, 59 | createdOn: '2022-11-01', 60 | }; 61 | 62 | let result = enrich({ 63 | match: { sourceKey: 'id', inputKey: 'customerId' }, 64 | extract: ['name', 'age', 'city'], 65 | source: customers, 66 | })(kycCustomer); 67 | 68 | /* 69 | result = { 70 | customerId: 1, 71 | kyc: true, 72 | createdOn: '2022-11-01', 73 | name: 'john', 74 | age: 28, 75 | city: 'denver' 76 | } 77 | */ 78 | ``` 79 | 80 | ## Handling lists instead of objects 81 | 82 | We handled a single object `kycCustomer` but what if we have to enrich an entire list/array of such objects? 83 | 84 | ```js 85 | let kycCustomers = [ 86 | { customerId: 1, kyc: true, createdOn: '2022-11-01' }, 87 | { customerId: 2, kyc: false }, 88 | { customerId: 3, kyc: true, createdOn: '2022-09-01' }, 89 | ]; 90 | ``` 91 | 92 | Simply mapping over and using the `enrich` function will solve this for us. Like so: 93 | 94 | ```js 95 | let customers = [ 96 | { id: 1, name: 'john', age: 28, city: 'denver' }, 97 | { id: 2, name: 'bob', age: 25, city: 'kyoto' }, 98 | { id: 3, name: 'angela', age: 44, city: 'mumbai' }, 99 | ]; 100 | 101 | let kycCustomers = [ 102 | { customerId: 1, kyc: true, createdOn: '2022-11-01' }, 103 | { customerId: 2, kyc: false }, 104 | { customerId: 3, kyc: true, createdOn: '2022-09-01' }, 105 | ]; 106 | 107 | let enrichedKycCustomers = kycCustomers.map((kycCustomer) => 108 | enrich({ 109 | match: { sourceKey: 'id', inputKey: 'customerId' }, 110 | extract: ['name', 'age', 'city'], 111 | source: customers, 112 | })(kycCustomer) 113 | ); 114 | 115 | /* 116 | enrichedKycCustomers = [ 117 | { 118 | customerId: 1, 119 | kyc: true, 120 | createdOn: '2022-11-01', 121 | name: 'john', 122 | age: 28, 123 | city: 'denver', 124 | }, 125 | { customerId: 2, kyc: false, name: 'bob', age: 25, city: 'kyoto' }, 126 | { 127 | customerId: 3, 128 | kyc: true, 129 | createdOn: '2022-09-01', 130 | name: 'angela', 131 | age: 44, 132 | city: 'mumbai', 133 | }, 134 | ] 135 | */ 136 | ``` 137 | 138 | And in fact, because `enrich` is a higher-order function (notice how it takes one argument and returns a function that takes the inputObject argument), we can also condense the `enrichedKycCustomers` to this: 139 | 140 | ```js 141 | let enrichedKycCustomers = kycCustomers.map( 142 | enrich({ 143 | match: { sourceKey: 'id', inputKey: 'customerId' }, 144 | extract: ['name', 'age', 'city'], 145 | source: customers, 146 | }) 147 | ); 148 | ``` 149 | -------------------------------------------------------------------------------- /extract-and-flatten.md: -------------------------------------------------------------------------------- 1 | # Extract and flatten an object 2 | 3 | Many times, I've found myself wanting to extract only some keys from an object and also flatten it. 4 | 5 | As an example, here's a person's details: 6 | 7 | ```js 8 | const obj = { 9 | id: 1, 10 | name: 'john', 11 | city: 'denver', 12 | job: 'engineer', 13 | details: { 14 | age: 28, 15 | contact: { 16 | phone: '789787', 17 | email: 'john@doe.com', 18 | }, 19 | }, 20 | }; 21 | ``` 22 | 23 | And here's what I want to convert it into: 24 | 25 | ```js 26 | const newObj = { 27 | id: 1, 28 | name: 'john', 29 | email: 'john@doe.com', 30 | age: 28, 31 | location: 'denver', 32 | }; 33 | ``` 34 | 35 | So basically there's a bit of "extraction" involved (like, `location` in the new object maps to `obj.city` and `email` maps to `obj.details.contact.email`). 36 | 37 | To do this, I use a custom transform function (note that the first two functions `getKeyVal` and `pluck` are helper functions): 38 | 39 | ```js 40 | const getKeyVal = (key) => (obj) => { 41 | if (!obj || !key) return undefined; 42 | if (!obj.hasOwnProperty(key)) return undefined; 43 | return obj[key]; 44 | }; 45 | 46 | const pluck = (path) => (object) => { 47 | if (!path) return null; 48 | const keys = path.split('.').length ? path.split('.') : [path]; 49 | return keys.reduce((acc, nextKey) => getKeyVal(nextKey)(acc), object); 50 | }; 51 | 52 | const transform = (definition) => (inputObject) => { 53 | return Object.fromEntries( 54 | Object.keys(definition).map((key) => [ 55 | key, 56 | typeof definition[key] === 'string' 57 | ? pluck(definition[key])(inputObject) 58 | : transform(definition[key])(inputObject), 59 | ]) 60 | ); 61 | }; 62 | ``` 63 | 64 | And here's how I'd use the `transform` function: 65 | 66 | ```js 67 | // the actual input object 68 | const obj = { 69 | id: 1, 70 | name: 'john', 71 | city: 'denver', 72 | job: 'engineer', 73 | details: { 74 | age: 28, 75 | contact: { 76 | phone: '789787', 77 | email: 'john@doe.com', 78 | }, 79 | }, 80 | }; 81 | 82 | // the "definition" which is like a map or instruction 83 | const definition = { 84 | name: 'name', 85 | age: 'details.age', 86 | email: 'details.contact.email', 87 | id: 'id', 88 | location: 'city', 89 | }; 90 | 91 | // finally, apply the transformer 92 | const result = transform(definition)(obj); 93 | console.log(result); 94 | /* 95 | { 96 | id: 1, 97 | name: 'john', 98 | email: 'john@doe.com', 99 | age: 28, 100 | location: 'denver', 101 | } 102 | */ 103 | ``` 104 | 105 | What if in the `definition`, you had a wrong mapping? 106 | 107 | ```js 108 | const definition = { 109 | name: 'name', 110 | age: 'details.age', 111 | email: 'details.contact.email', 112 | id: 'id', 113 | location: 'city', 114 | job: 'details.job', // wrong mapping. there is no `details.job` in the input object 115 | }; 116 | ``` 117 | 118 | This will not error out but simply return `undefined` for the `job` key. 119 | -------------------------------------------------------------------------------- /extract-keys.md: -------------------------------------------------------------------------------- 1 | # Extracting keys from a list of objects 2 | 3 | Most times when you get data from an external source (like a json file or an API response), you get a list of objects with a lot of keys in each of those objects. 4 | 5 | But you might only want some keys in each object (eg for showing on the UI or using it in some data transform). 6 | 7 | In those cases, you might end up writing a function that maps over the list and "extracts" certain keys only, while discarding others. 8 | 9 | If this is a pattern, you could use this function: 10 | 11 | ```js 12 | // A HELPER FUNCTION THAT WILL BE SUBSEQUENTLY USED 13 | const getKeyVal = (key, obj) => { 14 | if (!obj) return undefined; 15 | if (obj.hasOwnProperty(key)) return obj[key]; 16 | return undefined; 17 | }; 18 | 19 | // THE ACTUAL FUNCTION TO USE 20 | const extractKeys = (keys = [], list = []) => { 21 | return list.map((obj) => { 22 | if (!obj) return undefined; 23 | return Object.fromEntries(keys.map((key) => [key, getKeyVal(key, obj)])); 24 | }); 25 | }; 26 | ``` 27 | 28 | ## Example 29 | 30 | Suppose you have data like this: 31 | 32 | ```js 33 | const objs = [ 34 | { id: 1, number: 33, place: { city: 'Ohio' }, color: 'red' }, 35 | { id: 2, number: 21, place: { city: 'Tokyo' }, color: 'black' }, 36 | { id: 3, number: 87, place: { city: 'Delhi' }, color: 'yellow' }, 37 | ]; 38 | ``` 39 | 40 | And you only want "id" and "place" keys from each object: 41 | 42 | ```js 43 | const res1 = extractKeys(['id', 'place'], objs); 44 | console.log(res1); 45 | /* 46 | [ 47 | { id: 1, place: { city: 'Ohio' } }, 48 | { id: 2, place: { city: 'Tokyo' } }, 49 | { id: 3, place: { city: 'Delhi' } }, 50 | ] 51 | */ 52 | ``` 53 | 54 | For keys that are not in the original object, the function will return `undefined` (which is the same as excluding that key in the result) 55 | 56 | Eg: 57 | 58 | ```js 59 | const res3 = extractKeys(['id', 'name', 'city'], objs); // objects in objs do not have `name` or `city` as properties 60 | console.log(res3); 61 | /* 62 | [ 63 | { id: 1 }, 64 | { id: 2 }, 65 | { id: 3 }, 66 | ] 67 | */ 68 | ``` 69 | -------------------------------------------------------------------------------- /faster-access.md: -------------------------------------------------------------------------------- 1 | # Make it faster to access more info about an `id` 2 | 3 | A repeating thing we do with a large list is try and `find` a particular item. 4 | 5 | For instance, you get a `customers` list from an API and at various points, you try and extract one particular customer: 6 | 7 | ```js 8 | let customers = [ 9 | { id: 'asdf', name: 'john', age: 28, city: 'denver' }, 10 | { id: 'lkjh', name: 'bob', age: 25, city: 'kyoto' }, 11 | { id: 'qwer', name: 'angela', age: 44, city: 'mumbai' }, 12 | ]; 13 | 14 | let customerIdToFind = 'asdf'; 15 | 16 | const result = customers.find((cust) => cust.id === customerIdToFind); 17 | // { id: 'asdf', name: 'john', age: 28, city: 'denver' } 18 | ``` 19 | 20 | There are times when I do this a lot across the app. So instead of trying to `find` by iterating over a list, I convert the `customers` list into an object where the key is the `id` and the value is the customer object. 21 | 22 | ```js 23 | const convertToObject = ({ key, list = [] }) => { 24 | if (!list || !list.length || !key) return undefined; 25 | const kvals = list.map((item) => item[key]).filter((v) => v !== undefined); 26 | return Object.fromEntries( 27 | kvals.map((kval) => [kval, list.find((item) => item[key] === kval)]) 28 | ); 29 | }; 30 | 31 | let customers = [ 32 | { id: 'asdf', name: 'john', age: 28, city: 'denver' }, 33 | { id: 'lkjh', name: 'bob', age: 25, city: 'kyoto' }, 34 | { id: 'qwer', name: 'angela', age: 44, city: 'mumbai' }, 35 | ]; 36 | 37 | let customersAsObject = convertToObject({ 38 | key: 'id', 39 | list: customers, 40 | }); 41 | 42 | /* 43 | customersAsObject = { 44 | 'asdf': { id: 'asdf', name: 'john', age: 28, city: 'denver' }, 45 | 'lkjh': { id: 'lkjh', name: 'bob', age: 25, city: 'kyoto' }, 46 | 'qwer': { id: 'qwer', name: 'angela', age: 44, city: 'mumbai' }, 47 | } 48 | */ 49 | ``` 50 | 51 | This makes it easy to "access" a particular customer at O(1) time instead of O(N) time. 52 | 53 | ```js 54 | let customers = [ 55 | { id: 'asdf', name: 'john', age: 28, city: 'denver' }, 56 | { id: 'lkjh', name: 'bob', age: 25, city: 'kyoto' }, 57 | { id: 'qwer', name: 'angela', age: 44, city: 'mumbai' }, 58 | ]; 59 | 60 | let customersAsObject = convertToObject({ 61 | key: 'id', 62 | list: customers, 63 | }); 64 | 65 | let customerIdToFind = 'asdf'; 66 | 67 | const result = customersAsObject[customerIdToFind]; 68 | // { id: 'asdf', name: 'john', age: 28, city: 'denver' } 69 | ``` 70 | 71 | Typically, I convert the `customers` list right at the time of getting the data from the API (or any other service) and pass the object around across the app. 72 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "@jest/globals": "^29.3.1", 4 | "jest": "^29.3.1" 5 | }, 6 | "scripts":{ 7 | "test":"yarn jest" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /parallel-promises.md: -------------------------------------------------------------------------------- 1 | # Parallel promises made simple 2 | 3 | `Promise.all` and `Promise.allSettled` have made it easy to run promises parallelly. However, the data returned by `Promise.allSettled` (which is what I often end up having to use because `Promise.all` fails at the first promise that rejects/fails) is slightly cumbersome to deal with. 4 | 5 | Instead, I use a recipe where it becomes easy for me to run parallel promise functions and handle the data far more easily. 6 | 7 | Before I show the recipe, here's how the usage looks like: 8 | 9 | ```js 10 | // let's say we have these functions that return a promise 11 | const getUsers = () => axios.get('/users'); 12 | const getTeams = () => axios.get('/teams'); 13 | const getPlans = () => axios.get('/plans'); 14 | const setConfig = () => axios.post('/config', { data: config }); // config comes from somewhere 15 | 16 | // now, we have to run these on app-load 17 | const results = await runPromises({ 18 | users: getUsers, 19 | teams: getTeams, 20 | plans: getPlans, 21 | config: setConfig, 22 | }); 23 | // runPromises is the recipe. 24 | 25 | // and then `results` will look like this: 26 | // results == { 27 | // users: { data: [...] }, // or { error: AxiosError } 28 | // teams: { data: [...] }, // or { error: AxiosError } 29 | // plans: { data: [...] }, // or { error: AxiosError } 30 | // config: { data: {...} }, // or { error: AxiosError } 31 | // } 32 | ``` 33 | 34 | The object-based approach is not as great as a list but you can see the benefit - no need to deal with `status` and `value` and `reason` for each. Instead, each key in your object (which maps to a function) will have a resolved value object that either contains the `data` key or the `error` key. 35 | 36 | Here's the recipe to use: 37 | 38 | ```js 39 | const runPromises = async (promises) => { 40 | let plist = Object.entries(promises).map(async ([name, promise]) => { 41 | let res; 42 | try { 43 | res = { data: await promise() }; 44 | } catch (e) { 45 | res = { error: e }; 46 | } 47 | return [name, res]; 48 | }); 49 | let intermediateResult = []; 50 | for (let p of plist) { 51 | await intermediateResult.push(await p); 52 | } 53 | return Object.fromEntries(intermediateResult); 54 | }; 55 | ``` 56 | 57 | Briefly, what we do is convert the object into a `[key, value]` pair list, then run each promise (but because this is a `map`, it is run parallelly), and finally collect these promises into another `[key, value]` pair list and return that as an object. 58 | -------------------------------------------------------------------------------- /pattern-matching.md: -------------------------------------------------------------------------------- 1 | # Advanced switch-case / pattern-matching 2 | 3 | Sometimes, we end up having to deal with somewhat complex scenarios where a simple switch-case wont be enough. 4 | 5 | Let's say you receive a value (from an API call or something) and this value could be `null` or a singleton array (eg., `[someObject]`) or an array of arbitrary number of items. Your job is to throw an error if the value is null, extract a specific key-value and process it through a function if it's a singleton array or return a reduced value if the value is an array of length greater than 1. 6 | 7 | To make it grokkable, here's the process flow: 8 | 9 | - if value === null, throw an error 10 | - if value is a singleton array, extract a specific key-value and process it through some function 11 | - if value is array of more items, run it through a reducer to extract some value. 12 | 13 | How would we do that using a switch case? 14 | 15 | ```js 16 | switch (value) { 17 | case null: 18 | throw new Error('value cannot be null'); 19 | case value.length === 1: 20 | return processFunction(value[0]?.key); 21 | case value.length > 1: 22 | return reducer(value); 23 | default: 24 | throw new Error('unprocessable value'); 25 | } 26 | ``` 27 | 28 | The problem is that the above code does not work. `case` statements match the value with the input so you can't have some expression in `case`. 29 | 30 | That's where some advanced switch-case statements come handy. The inspiration for this comes from pattern-matching ideas in other languages, and libraries like `lodash` and `ramda` which have the `cond` function (which in itself is inspired from Lisp). 31 | 32 | ```js 33 | const switchCase = (...condPairs) => { 34 | if (!condPairs || !condPairs.length) { 35 | throw new Error( 36 | 'No pair matched. Consider adding a `default` condition pair.' 37 | ); 38 | } 39 | return (...args) => { 40 | let [cond, result] = condPairs[0]; 41 | if (typeof cond === 'function' && cond(...args)) { 42 | return typeof result === 'function' ? result(...args) : result; 43 | } else if (typeof cond !== 'function' && cond) { 44 | return typeof result === 'function' ? result(...args) : result; 45 | } else { 46 | return switchCase(...condPairs.slice(1))(...args); 47 | } 48 | }; 49 | }; 50 | ``` 51 | 52 | The utility function above looks a handful but it's really simple in its logic: 53 | 54 | - `switchCase` takes arrays of condition-result pairs like this: 55 | 56 | ```js 57 | // assume isNull, throwError, isSingleton, processData, isArray, reduceData are all functions already defined 58 | let sc = switchCase( 59 | [isNull, throwError], 60 | [isSingleton, processData], 61 | [isArray, reduceData], 62 | [true, () => throw new Error('unprocessable entity')] 63 | ); 64 | 65 | // and now you use it like this: 66 | const result = sc([someObject]); 67 | ``` 68 | 69 | - next, when you call it with some arguments, it takes it and runs it through the first element of each pair. If the result of that function is true, it will run the corresponding second element. 70 | 71 | So in the example above, it will take the `[someObject]` and pass it through `isNull` function (because `isNull` is a function). If the result of that is true, then it will run the `throwError` function and pass `[someObject]` as the argument to the function. 72 | 73 | If not, then it takes the next pair (`[isSingleton, processData]`) and sends the argument (`[someObject]`) through `isSingleton`. If the result is true, then the value is passed through `processData` and the result is returned. 74 | 75 | And it goes on till it reaches the final pair `[true, throw...]`. Notice how the final pair has just `true` as the first element: the switchCase function figures that this is not a function but a value, so it won't try to run it like a function but just check if the value is true. Yes it is, and therefore it runs the function associated with this pair (the `() => throw...`). 76 | 77 | I've written the `switchCase` function in a way where it can work with both functions and values. If it's a function, it is going to run the function passing the arguments provided by you. If not, it just checks if the value is true. And if the result part of the pair (ie, second element) is a value, it simply returns the value. 78 | 79 | And finally, just as a `switch-case` is incomplete without a `default:` clause, you need to ensure you have a default case (typically the last one, with `[true, ...]`). If you don't end up having that, the function will throw an error saying you don't have a default clause. 80 | -------------------------------------------------------------------------------- /pipe-through-exception-funcs.md: -------------------------------------------------------------------------------- 1 | # Piping through functions that can throw an exception 2 | 3 | I love the pipe function. It's insanely useful in function composition and data transformation workflows where you send data through a long list of functions. 4 | 5 | I wont go into the details and intricacies of the pipe function but the gist is best described with this example: 6 | 7 | Suppose you want to do all these steps in sequence: 8 | 9 | - take a number 10 | - add 1 to the result 11 | - then double that result 12 | - then square the result of doubling 13 | - then find the square-root of the previous result 14 | - then halve it 15 | - and finally decrement it 16 | 17 | The example is trite (and you end up with the same number) but if you had a simple pipe function, you could write it like so: 18 | 19 | ```js 20 | // the input number 21 | const doSteps = (number) => 22 | pipe( 23 | // assume that all these named functions are defined somewhere 24 | inc1, // a => a + 1 25 | double, // a => a * 2 26 | square, // a => a * a 27 | root, // basically Math.sqrt 28 | halve, // a => a / 2 29 | dec1 // a => a - 1 30 | )(number); 31 | 32 | doSteps(2); // 2 33 | ``` 34 | 35 | However, real-life scenarios are hardly as ideal or simple. 36 | 37 | You deal with functions that could potentially throw an error and that kind of throws a spanner in the works. Unless you are okay with your pipe composition to throw (because one of the functions in the pipe did), it's not very neat. And I don't like runtime exceptions in my app so I use this handy-little exception-free `pipe`. 38 | 39 | ```js 40 | const safeWrapper = (func, value) => { 41 | if (value.err) { 42 | return { err: value.err }; 43 | } 44 | if (value.data) { 45 | try { 46 | let res = func(value.data); 47 | return { data: res }; 48 | } catch (e) { 49 | return { err: e }; 50 | } 51 | } 52 | }; 53 | const pipe = 54 | (...fns) => 55 | (initialInput) => { 56 | return fns.reduce( 57 | (acc, fn) => { 58 | return safeWrapper(fn, acc); 59 | }, 60 | { data: initialInput } 61 | ); 62 | }; 63 | ``` 64 | 65 | What's happening here is that I'm not calling the functions in the pipe and using their results directly. Instead, I'm wrapping them – sort of like a Faraday's box – so that if the functions throw an error, they are _contained_. 66 | 67 | A small change here is that the final output is of the form: 68 | 69 | ```ts 70 | { data: any | undefined, err: Err | undefined} 71 | ``` 72 | 73 | As an example: 74 | 75 | ```js 76 | let inc1 = (a) => a + 1; 77 | let double = (a) => a * 2; 78 | let square = (a) => a * a; 79 | let root = Math.sqrt; 80 | let halve = (a) => a / 2; 81 | let dec1 = (a) => a - 1; 82 | pipe(inc1, double, square, root, halve, dec1)(2); // { data: 2 }; 83 | ``` 84 | 85 | But if one or any of the functions throw: 86 | 87 | ```js 88 | let err = new Error('error when squaring'); 89 | let inc1 = (a) => a + 1; 90 | let double = (a) => a * 2; 91 | let square = (a) => { 92 | throw err; // instead of doing the job, we throw an error 93 | }; 94 | let root = Math.sqrt; 95 | let halve = (a) => a / 2; 96 | let dec1 = (a) => a - 1; 97 | pipe(inc1, double, square, root, halve, dec1)(2); // { err: Error('error when squaring') }; 98 | ``` 99 | 100 | The first function to throw will (kind of) "short-circuit" the whole operation and that will be the error returned. 101 | -------------------------------------------------------------------------------- /promise-made-simpler.md: -------------------------------------------------------------------------------- 1 | # Promise.then.catch.finally made simpler 2 | 3 | We deal with a lot of `promise`-based functions these days and a lot of times, we repeat this kind of code in our programs: 4 | 5 | ```js 6 | somePromise() 7 | .then((result) => { 8 | // do something with the result 9 | }) 10 | .catch((err) => { 11 | // do something with the error 12 | }) 13 | .finally(() => { 14 | // do something after the promise is resolved/rejected 15 | // like clearing up some loading state etc. 16 | }); 17 | ``` 18 | 19 | The cascading-style makes code look ugly (subjective, yes) and also kind of unreadable in real-world use-cases where there's a large chunk of code between `then` and `catch`. 20 | 21 | We can use a similar pattern as the one in [try-catch made simpler](./try-catch-made-simpler.md) to make handling promises easy and neat. 22 | 23 | ```js 24 | const runAsync = async (promiseFn, cb) => { 25 | try { 26 | const result = await promiseFn(); 27 | return { data: result }; 28 | } catch (e) { 29 | return { err: e }; 30 | } finally { 31 | if (cb) cb(); 32 | } 33 | }; 34 | ``` 35 | 36 | The basic idea is that you pass a promise function `promiseFn` and (optionally) a callback `cb` and `runAsync` takes care of running the promise, return either data or error and also running the callback function. 37 | 38 | If the promise resolves (ie, success), the return value from `runAsync` is `Promise<{ data: resolvedValue }>`, and if it rejects (ie, fails), the return value is `Promise<{ err: rejectedValue }>`. 39 | 40 | ## Example 41 | 42 | Here's a promise that could either resolve or reject: 43 | 44 | ```js 45 | const promise = (int) => 46 | new Promise((res, rej) => { 47 | if (int > 5) rej('oops'); 48 | res(int); 49 | }); 50 | ``` 51 | 52 | Here's how we'd use `runAsync` to handle this: 53 | 54 | ```js 55 | // let's say we also want to set loading state while the promise runs 56 | let loading = true; 57 | const { data, err } = await runAsync( 58 | // the promise function to call 59 | () => promise(10), 60 | // and the callback to call finally 61 | () => { 62 | loading = false; 63 | } 64 | ); 65 | // if we ran the above function, we'll get: 66 | // err = 'oops' 67 | // data = undefined 68 | // and loading will be set to false 69 | ``` 70 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # JS Cookbook 2 | 3 | **Note: This is a work in progress.** 4 | 5 | This is a cookbook of recipes that I use (or have used) across multiple JS/TS projects. 6 | 7 | 1. [Try-Catch made simpler](./try-catch-made-simpler.md) 8 | 1. [Promise.then.catch.finally made simpler](./promise-made-simpler.md) 9 | 1. [Extracting keys from a list of objects](./extract-keys.md) 10 | 1. [Extract and flatten an object](./extract-and-flatten.md) 11 | 1. [Enrich an object with properties of another object](./enrich-object.md) 12 | 1. [Make it faster to access more info about an `id`](./faster-access.md) 13 | 1. [Piping through functions that can throw an exception](./pipe-through-exception-funcs.md) 14 | 1. [Safe, simple, sequential promises](./sequential-promises.md) 15 | 1. [Trigger a file download](./trigger-file-download.md) 16 | 1. [Parallel promises made simple](./parallel-promises.md) 17 | 1. [Advanced switch-case a.k.a Pattern Matching](./pattern-matching.md) 18 | -------------------------------------------------------------------------------- /sequential-promises.md: -------------------------------------------------------------------------------- 1 | # Safe, simple, sequential promises 2 | 3 | Whenever you need to run a "sequence" of promises one after the other – because, say, you need the output of one promise to be fed into the next promise – things will get a little tricky. 4 | 5 | The bad way of doing it would be to chain them. 6 | 7 | ```js 8 | promise1() 9 | .then(result1 => { 10 | promise2(result1) 11 | .then(result2 => { 12 | promise3(result2) 13 | .then(result3 => { 14 | ... 15 | }) 16 | .catch(...) 17 | }) 18 | .catch(...) 19 | }) 20 | .catch(...) 21 | ``` 22 | 23 | A better way would be to use the `async/await` syntactic sugar: 24 | 25 | ```js 26 | try { 27 | const result1 = await promise1() 28 | const result2 = await promise2(result1) 29 | const result3 = await promise3(result2) 30 | ... 31 | return resultFinal 32 | } catch (e) { 33 | // do something with error e 34 | } 35 | ``` 36 | 37 | And that's not too bad if you had just 2-3 promises, which I guess would be typical use-case. 38 | 39 | However, we could combine the ideas from [pipe](./pipe-through-exception-funcs.md) and [safer promises](./promise-made-simpler.md) to build an asynchronous variation of a `pipe`. 40 | 41 | ```js 42 | const runAsyncHelper = async (fn, input) => { 43 | if (input.err) return { err: input.err }; 44 | try { 45 | const res = { data: await fn(input.data) }; 46 | return res; 47 | } catch (err) { 48 | return { err }; 49 | } 50 | }; 51 | 52 | const pipePromises = 53 | (...fns) => 54 | async (init) => { 55 | return fns.reduce( 56 | async (acc, fn) => { 57 | return await runAsyncHelper(fn, await acc); 58 | }, 59 | { data: init } 60 | ); 61 | }; 62 | ``` 63 | 64 | The idea is simple. 65 | 66 | - You take a bunch of promise functions 67 | - Pass { data: initialInput } to the first promise but wrap it in an `runAsyncHelper` function which simply runs the promise, awaits the result and returns either `{ data: result }` or `{ err: Error }` 68 | - and then pass that data to the next promise in the list 69 | - and so on till the final promise is resolved 70 | 71 | The key difference is that we `await` a lot. 72 | 73 | ## Example 74 | 75 | Let's say we have 3 promises to run sequentially: 76 | 77 | ```js 78 | const p1 = (int) => Promise.resolve(int); 79 | const p2 = (int) => Promise.resolve(int + 1); 80 | const p3 = (int) => Promise.resolve(int * 2); 81 | ``` 82 | 83 | We can now run them sequentially like so: 84 | 85 | ```js 86 | const result = await pipePromises(p1, p2, p3)(10); // result = { data: 22 } 87 | ``` 88 | 89 | What if one of the promises actually failed? 90 | 91 | ```js 92 | const p1 = (int) => Promise.resolve(int); 93 | const p2 = (int) => Promise.resolve(int + 1); 94 | const p3 = (_) => Promise.reject(new Error('Uh oh')); 95 | const p4 = (int) => Promise.resolve(int * 2); 96 | 97 | const result = await pipePromises(p1, p2, p3, p4)(10); // result = { err: new Error("Uh oh") } 98 | ``` 99 | 100 | A failed promise is like a short-circuit. The first promise to fail will be returned as the result of the pipe. 101 | -------------------------------------------------------------------------------- /tests/access-id.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const convertToObject = ({ key, list = [] }) => { 4 | if (!list || !list.length || !key) return undefined; 5 | const kvals = list.map((item) => item[key]).filter((v) => v !== undefined); 6 | return Object.fromEntries( 7 | kvals.map((kval) => [kval, list.find((item) => item[key] === kval)]) 8 | ); 9 | }; 10 | 11 | test('convertToObject', () => { 12 | let items = [ 13 | { id: 1, name: 'john' }, 14 | { id: 2, name: 'jane' }, 15 | { id: 3, name: 'bob' }, 16 | ]; 17 | const obj = convertToObject({ key: 'id', list: items }); 18 | expect(obj).toEqual({ 19 | 1: { id: 1, name: 'john' }, 20 | 2: { id: 2, name: 'jane' }, 21 | 3: { id: 3, name: 'bob' }, 22 | }); 23 | }); 24 | 25 | test('convertToObject2', () => { 26 | let items = [ 27 | { id: 1, name: 'john' }, 28 | { _id: 2, name: 'jane' }, 29 | { _id: 3, name: 'bob' }, 30 | ]; 31 | const obj = convertToObject({ key: 'id', list: items }); 32 | expect(obj).toEqual({ 33 | 1: { id: 1, name: 'john' }, 34 | }); 35 | }); 36 | 37 | test('convertToObject3', () => { 38 | let items = [ 39 | { id: 'a1', name: 'john' }, 40 | { id: 'a2', name: 'jane' }, 41 | { id: 'a3', name: 'bob' }, 42 | ]; 43 | const obj = convertToObject({ key: 'id', list: items }); 44 | expect(obj).toEqual({ 45 | a1: { id: 'a1', name: 'john' }, 46 | a2: { id: 'a2', name: 'jane' }, 47 | a3: { id: 'a3', name: 'bob' }, 48 | }); 49 | }); 50 | -------------------------------------------------------------------------------- /tests/adv-switch-case.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const switchCase = (...condPairs) => { 4 | if (!condPairs || !condPairs.length) { 5 | throw new Error( 6 | 'No pair matched. Consider adding a `default` condition pair.' 7 | ); 8 | } 9 | return (...args) => { 10 | let [cond, result] = condPairs[0]; 11 | if (typeof cond === 'function' && cond(...args)) { 12 | return typeof result === 'function' ? result(...args) : result; 13 | } else if (typeof cond !== 'function' && cond) { 14 | return typeof result === 'function' ? result(...args) : result; 15 | } else { 16 | return switchCase(...condPairs.slice(1))(...args); 17 | } 18 | }; 19 | }; 20 | 21 | test('adv switch case', () => { 22 | let isEven = (a) => a % 2 === 0; 23 | let isOdd = (b) => b % 2 !== 0; 24 | expect( 25 | switchCase( 26 | [isEven, 'is even'], 27 | [isOdd, 'is odd'], 28 | [true, 'doesnt look like a number'] 29 | )(2) 30 | ).toBe('is even'); 31 | 32 | let isBeta = (str) => str === 'beta'; 33 | expect( 34 | switchCase([isBeta, 'is beta!'], [true, 'is not a beta'])('alpha') 35 | ).toBe('is not a beta'); 36 | 37 | let sumMoreThan3 = (a, b) => a + b > 3; 38 | let ifSumMoreThan3 = (a, b) => a * b; 39 | let sumLessThan3 = (a, b) => a + b < 3; 40 | let ifSumLessThan3 = (a, b) => a / b; 41 | let otherwise = (a, b) => `a: ${a}, b: ${b}`; 42 | 43 | expect( 44 | switchCase( 45 | [sumMoreThan3, ifSumMoreThan3], 46 | [sumLessThan3, ifSumLessThan3], 47 | [true, otherwise] 48 | )(1, 1) 49 | ).toEqual(1); 50 | 51 | expect( 52 | switchCase( 53 | [sumMoreThan3, ifSumMoreThan3], 54 | [sumLessThan3, ifSumLessThan3], 55 | [true, otherwise] 56 | )(3, 2) 57 | ).toEqual(6); 58 | 59 | expect( 60 | switchCase( 61 | [sumMoreThan3, ifSumMoreThan3], 62 | [sumLessThan3, ifSumLessThan3], 63 | [true, otherwise] 64 | )(1, 2) 65 | ).toEqual(`a: 1, b: 2`); 66 | 67 | expect(() => 68 | switchCase([sumMoreThan3, ifSumMoreThan3], [sumLessThan3, ifSumLessThan3])( 69 | 1, 70 | 2 71 | ) 72 | ).toThrowError(); 73 | }); 74 | -------------------------------------------------------------------------------- /tests/enrich-object.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const customers = [ 4 | { 5 | id: 1, 6 | name: 'john', 7 | age: 28, 8 | city: 'denver', 9 | contact: { email: 'john@doe.com' }, 10 | }, 11 | { id: 2, name: 'bob', age: 25, city: 'kyoto' }, 12 | { id: 3, name: 'angela', age: 44, city: 'mumbai' }, 13 | ]; 14 | 15 | const enrich = 16 | ({ match, extract = [], source = [] }) => 17 | (inputObj) => { 18 | if (!match) return inputObj; 19 | if (!extract?.length) return inputObj; 20 | if (!source) return inputObj; 21 | if (!source?.length) return inputObj; 22 | let matchingItem = source.find( 23 | (s) => s[match.sourceKey] === inputObj[match.inputKey] 24 | ); 25 | if (!matchingItem) return inputObj; 26 | return extract.reduce((acc, key) => { 27 | return { 28 | ...acc, 29 | [key]: matchingItem[key], 30 | }; 31 | }, inputObj); 32 | }; 33 | 34 | test('enrich', () => { 35 | const input = { customerId: 1, kyc: false }; 36 | expect(enrich({ extract: ['id'], source: customers })(input)).toEqual(input); 37 | expect( 38 | enrich({ 39 | match: { sourceKey: 'id', inputKey: 'customerId' }, 40 | source: customers, 41 | })(input) 42 | ).toEqual(input); 43 | expect( 44 | enrich({ 45 | extract: ['id'], 46 | match: { sourceKey: 'id', inputKey: 'customerId' }, 47 | })(input) 48 | ).toEqual(input); 49 | expect( 50 | enrich({ 51 | match: 'id', 52 | extract: ['name', 'age'], 53 | source: customers, 54 | })(input) 55 | ).toEqual({ 56 | customerId: 1, 57 | kyc: false, 58 | name: 'john', 59 | age: 28, 60 | }); 61 | expect( 62 | enrich({ 63 | match: 'id', 64 | extract: ['name', 'contact'], 65 | source: customers, 66 | })(input) 67 | ).toEqual({ 68 | customerId: 1, 69 | kyc: false, 70 | name: 'john', 71 | contact: { 72 | email: 'john@doe.com', 73 | }, 74 | }); 75 | expect( 76 | enrich({ 77 | match: 'id', 78 | extract: ['name', 'location'], 79 | source: customers, 80 | })(input) 81 | ).toEqual({ 82 | customerId: 1, 83 | kyc: false, 84 | name: 'john', 85 | }); 86 | 87 | let customers2 = [ 88 | { id: 1, name: 'john', age: 28, city: 'denver' }, 89 | { id: 2, name: 'bob', age: 25, city: 'kyoto' }, 90 | { id: 3, name: 'angela', age: 44, city: 'mumbai' }, 91 | ]; 92 | 93 | let kycCustomer = { 94 | customerId: 1, 95 | kyc: true, 96 | createdOn: '2022-11-01', 97 | }; 98 | 99 | let result = enrich({ 100 | match: { sourceKey: 'id', inputKey: 'customerId' }, 101 | extract: ['name', 'age', 'city'], 102 | source: customers2, 103 | })(kycCustomer); 104 | 105 | expect(result).toEqual({ 106 | customerId: 1, 107 | kyc: true, 108 | createdOn: '2022-11-01', 109 | name: 'john', 110 | age: 28, 111 | city: 'denver', 112 | }); 113 | }); 114 | 115 | test('enrich2', () => { 116 | let customers = [ 117 | { id: 1, name: 'john', age: 28, city: 'denver' }, 118 | { id: 2, name: 'bob', age: 25, city: 'kyoto' }, 119 | { id: 3, name: 'angela', age: 44, city: 'mumbai' }, 120 | ]; 121 | 122 | let kycCustomers = [ 123 | { customerId: 1, kyc: true, createdOn: '2022-11-01' }, 124 | { customerId: 2, kyc: false }, 125 | { customerId: 3, kyc: true, createdOn: '2022-09-01' }, 126 | ]; 127 | 128 | let enrichedKycCustomers = kycCustomers.map((kycCustomer) => 129 | enrich({ 130 | match: { sourceKey: 'id', inputKey: 'customerId' }, 131 | extract: ['name', 'age', 'city'], 132 | source: customers, 133 | })(kycCustomer) 134 | ); 135 | 136 | expect(enrichedKycCustomers).toEqual([ 137 | { 138 | customerId: 1, 139 | kyc: true, 140 | createdOn: '2022-11-01', 141 | name: 'john', 142 | age: 28, 143 | city: 'denver', 144 | }, 145 | { customerId: 2, kyc: false, name: 'bob', age: 25, city: 'kyoto' }, 146 | { 147 | customerId: 3, 148 | kyc: true, 149 | createdOn: '2022-09-01', 150 | name: 'angela', 151 | age: 44, 152 | city: 'mumbai', 153 | }, 154 | ]); 155 | }); 156 | 157 | test('enrich3', () => { 158 | let customers = [ 159 | { id: 1, name: 'john', age: 28, city: 'denver' }, 160 | { id: 2, name: 'bob', age: 25, city: 'kyoto' }, 161 | { id: 3, name: 'angela', age: 44, city: 'mumbai' }, 162 | ]; 163 | 164 | let kycCustomers = [ 165 | { customerId: 1, kyc: true, createdOn: '2022-11-01' }, 166 | { customerId: 2, kyc: false }, 167 | { customerId: 3, kyc: true, createdOn: '2022-09-01' }, 168 | ]; 169 | 170 | let enrichedKycCustomers = kycCustomers.map( 171 | enrich({ 172 | match: { sourceKey: 'id', inputKey: 'customerId' }, 173 | extract: ['name', 'age', 'city'], 174 | source: customers, 175 | }) 176 | ); 177 | 178 | expect(enrichedKycCustomers).toEqual([ 179 | { 180 | customerId: 1, 181 | kyc: true, 182 | createdOn: '2022-11-01', 183 | name: 'john', 184 | age: 28, 185 | city: 'denver', 186 | }, 187 | { customerId: 2, kyc: false, name: 'bob', age: 25, city: 'kyoto' }, 188 | { 189 | customerId: 3, 190 | kyc: true, 191 | createdOn: '2022-09-01', 192 | name: 'angela', 193 | age: 44, 194 | city: 'mumbai', 195 | }, 196 | ]); 197 | }); 198 | -------------------------------------------------------------------------------- /tests/extract-flatten.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const getKeyVal = (key) => (obj) => { 4 | if (!obj || !key) return undefined; 5 | if (!obj.hasOwnProperty(key)) return undefined; 6 | return obj[key]; 7 | }; 8 | 9 | const pluck = (path) => (object) => { 10 | if (!path) return null; 11 | const keys = path.split('.').length ? path.split('.') : [path]; 12 | return keys.reduce((acc, nextKey) => getKeyVal(nextKey)(acc), object); 13 | }; 14 | 15 | const transform = (definition) => (inputObject) => { 16 | return Object.fromEntries( 17 | Object.keys(definition).map((key) => [ 18 | key, 19 | typeof definition[key] === 'string' 20 | ? pluck(definition[key])(inputObject) 21 | : transform(definition[key])(inputObject), 22 | ]) 23 | ); 24 | }; 25 | 26 | test('extract and flatten', () => { 27 | const def = { 28 | name: 'name', 29 | age: 'details.age', 30 | email: 'details.contact.email', 31 | id: 'id', 32 | location: 'city', 33 | job: 'details.job', 34 | }; 35 | const obj = { 36 | id: 1, 37 | name: 'john', 38 | city: 'denver', 39 | job: 'engineer', 40 | details: { 41 | age: 28, 42 | contact: { 43 | phone: '789787', 44 | email: 'john@doe.com', 45 | }, 46 | }, 47 | }; 48 | 49 | expect(transform(def)(obj)).toEqual({ 50 | id: 1, 51 | name: 'john', 52 | email: 'john@doe.com', 53 | age: 28, 54 | location: 'denver', 55 | }); 56 | }); 57 | -------------------------------------------------------------------------------- /tests/extract-keys.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const getKeyVal = (key, obj) => { 4 | if (!obj) return undefined; 5 | if (obj.hasOwnProperty(key)) return obj[key]; 6 | return undefined; 7 | }; 8 | const extractKeys = (keys = [], list = []) => { 9 | return list.map((obj) => { 10 | if (!obj) return undefined; 11 | return Object.fromEntries(keys.map((key) => [key, getKeyVal(key, obj)])); 12 | }); 13 | }; 14 | 15 | test('extractKeys', () => { 16 | const objs = [ 17 | { id: 1, number: 33, place: { city: 'Ohio' }, color: 'red' }, 18 | { id: 2, number: 21, place: { city: 'Tokyo' }, color: 'black' }, 19 | { id: 3, number: 87, place: { city: 'Delhi' }, color: 'yellow' }, 20 | ]; 21 | const res1 = extractKeys(['id', 'place'], objs); 22 | const res2 = extractKeys(['color', 'number'], objs); 23 | const res3 = extractKeys(['name', 'city'], objs); 24 | const res4 = extractKeys(['id', 'name', 'city'], objs); 25 | expect(res1).toEqual([ 26 | { id: 1, place: { city: 'Ohio' } }, 27 | { id: 2, place: { city: 'Tokyo' } }, 28 | { id: 3, place: { city: 'Delhi' } }, 29 | ]); 30 | expect(res2).toEqual([ 31 | { number: 33, color: 'red' }, 32 | { number: 21, color: 'black' }, 33 | { number: 87, color: 'yellow' }, 34 | ]); 35 | expect(res3).toEqual([{}, {}, {}]); 36 | expect(res4).toEqual([{ id: 1 }, { id: 2 }, { id: 3 }]); 37 | }); 38 | -------------------------------------------------------------------------------- /tests/pipe.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const safeWrapper = (func, value) => { 4 | if (value.err) { 5 | return { err: value.err }; 6 | } 7 | if (value.data) { 8 | try { 9 | let res = func(value.data); 10 | return { data: res }; 11 | } catch (e) { 12 | return { err: e }; 13 | } 14 | } 15 | }; 16 | const pipe = 17 | (...fns) => 18 | (initialInput) => { 19 | return fns.reduce( 20 | (acc, fn) => { 21 | return safeWrapper(fn, acc); 22 | }, 23 | { data: initialInput } 24 | ); 25 | }; 26 | 27 | test('pipe', () => { 28 | let inc1 = (a) => a + 1; 29 | let double = (a) => a * 2; 30 | let square = (a) => a * a; 31 | let root = Math.sqrt; 32 | let halve = (a) => a / 2; 33 | let dec1 = (a) => a - 1; 34 | expect(pipe(inc1, double, square, root, halve, dec1)(2)).toEqual({ data: 2 }); 35 | }); 36 | test('pipe with error', () => { 37 | let err = new Error('error when squaring'); 38 | let inc1 = (a) => a + 1; 39 | let double = (a) => a * 2; 40 | let square = (a) => { 41 | throw err; 42 | }; 43 | let root = Math.sqrt; 44 | let halve = (a) => a / 2; 45 | let dec1 = (a) => a - 1; 46 | expect(pipe(inc1, double, square, root, halve, dec1)(2)).toEqual({ err }); 47 | }); 48 | -------------------------------------------------------------------------------- /tests/promise-parallel.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const runPromises = async (promises) => { 4 | let plist = Object.entries(promises).map(async ([name, promise]) => { 5 | let res; 6 | try { 7 | res = { data: await promise() }; 8 | } catch (e) { 9 | res = { error: e }; 10 | } 11 | return [name, res]; 12 | }); 13 | let intermediateResult = []; 14 | for (let p of plist) { 15 | await intermediateResult.push(await p); 16 | } 17 | return Object.fromEntries(intermediateResult); 18 | }; 19 | 20 | const p1 = () => Promise.resolve(1); 21 | const p2 = () => Promise.resolve(2); 22 | const p3 = () => Promise.reject('Error!'); 23 | const p4 = () => Promise.resolve(4); 24 | const p5 = () => Promise.resolve(5); 25 | 26 | test('parallel promises', async () => { 27 | const results1 = await runPromises({ 28 | p1, 29 | p2, 30 | p3, 31 | }); 32 | expect(results1).toEqual({ 33 | p1: { data: 1 }, 34 | p2: { data: 2 }, 35 | p3: { error: 'Error!' }, 36 | }); 37 | const results2 = await runPromises({ p1, p2, p4, p5 }); 38 | expect(results2).toEqual({ 39 | p1: { data: 1 }, 40 | p2: { data: 2 }, 41 | p4: { data: 4 }, 42 | p5: { data: 5 }, 43 | }); 44 | }); 45 | -------------------------------------------------------------------------------- /tests/promise-seq.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const runAsyncHelper = async (fn, input) => { 4 | if (input.err) return { err: input.err }; 5 | try { 6 | const res = { data: await fn(input.data) }; 7 | return res; 8 | } catch (err) { 9 | return { err }; 10 | } 11 | }; 12 | 13 | const pipePromises = 14 | (...fns) => 15 | async (init) => { 16 | return fns.reduce( 17 | async (acc, fn) => { 18 | return await runAsyncHelper(fn, await acc); 19 | }, 20 | { data: init } 21 | ); 22 | }; 23 | 24 | const p1 = (int) => Promise.resolve(int); 25 | const p2 = (int) => Promise.resolve(int + 1); 26 | const p4 = (int) => Promise.resolve(int * 2); 27 | const err = new Error('Uh oh!'); 28 | const p3 = (_) => Promise.reject(err); 29 | 30 | test('promise.seq', async () => { 31 | const res = await pipePromises(p1, p2, p4)(10); 32 | expect(res).toEqual({ data: 22 }); 33 | }); 34 | 35 | test('promise.seq', async () => { 36 | const res = await pipePromises(p1, p3, p2, p4)(10); 37 | expect(res).toEqual({ err }); 38 | }); 39 | -------------------------------------------------------------------------------- /tests/promise.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const promise = (int) => 4 | new Promise((res, rej) => { 5 | if (int > 5) rej('oops'); 6 | res(int); 7 | }); 8 | 9 | const runAsync = async (promiseFn, cb) => { 10 | try { 11 | const result = await promiseFn(); 12 | return { data: result }; 13 | } catch (e) { 14 | return { err: e }; 15 | } finally { 16 | if (cb) cb(); 17 | } 18 | }; 19 | 20 | test('runAsync', async () => { 21 | let callback = jest.fn(); 22 | expect(await runAsync(() => promise(7), callback)).toEqual({ err: 'oops' }); 23 | expect(await runAsync(() => promise(3), callback)).toEqual({ data: 3 }); 24 | expect(await runAsync(() => promise(3))).toEqual({ data: 3 }); 25 | expect(callback).toHaveBeenCalledTimes(2); 26 | }); 27 | -------------------------------------------------------------------------------- /tests/trigger-download.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/try-catch-made-simpler.spec.js: -------------------------------------------------------------------------------- 1 | const { test, expect } = require('@jest/globals'); 2 | 3 | const tryCatch = (tryExpression) => { 4 | try { 5 | const res = tryExpression(); 6 | return { data: res, err: undefined }; 7 | } catch (e) { 8 | return { err: e, data: undefined }; 9 | } 10 | }; 11 | 12 | const testFn = (int) => { 13 | if (int > 5) { 14 | throw new Error('oops'); 15 | } 16 | return int; 17 | }; 18 | 19 | test('tryCatch', () => { 20 | expect(tryCatch(() => testFn(4))).toEqual({ data: 4 }); 21 | expect(tryCatch(() => testFn(10))).toEqual({ err: new Error('oops') }); 22 | }); 23 | -------------------------------------------------------------------------------- /trigger-file-download.md: -------------------------------------------------------------------------------- 1 | # Trigger a file download 2 | 3 | This one's a simple scenario: you get some contents (string) from an API call and then you have to convert that into a file and download it on the user's browser. 4 | 5 | It's so common that there are even node packages but that is an overkill. 6 | 7 | This is the snippet I use to do just that. 8 | 9 | ```js 10 | const downloadFile = ({ contents, fileName }) => { 11 | try { 12 | const file = new File([contents], fileName); 13 | const link = document.createElement('a'); 14 | link.style.display = 'none'; 15 | link.href = URL.createObjectURL(file); 16 | link.download = fileName; 17 | document.body.appendChild(link); 18 | link.click(); 19 | setTimeout(() => { 20 | URL.revokeObjectURL(link.href); 21 | document.body.removeChild(link); 22 | }, 0); 23 | return {}; 24 | } catch (e) { 25 | return { error: e }; 26 | } 27 | }; 28 | ``` 29 | 30 | This download function is a lot safer. This is because we do all the file downloading in a `try` block. Suppose the file contents are not string or if the browser has some problems create the `file` through `new File(...)`, you will get an error returned. 31 | 32 | ```js 33 | const { error } = downloadFile({ contents: ..., fileName: ... }) 34 | if (error) { 35 | // handle error case 36 | } 37 | ``` 38 | -------------------------------------------------------------------------------- /try-catch-made-simpler.md: -------------------------------------------------------------------------------- 1 | # Try-Catch made simpler 2 | 3 | A lot of native functions and library functions can and do "throw" an error. So one ends up writing a bunch of `try.. catch` (or forgetting to do so, ending up in ugly runtime errors). 4 | 5 | That's a lot of boilerplate to write. Instead, I borrowed a style popularized by the likes of Golang (`if err != nil`) and Haskell (`Either type`) to handle functions that could potentially throw exceptions/errors. 6 | 7 | ```js 8 | const tryCatch = (tryExpression) => { 9 | try { 10 | const res = tryExpression(); 11 | return { data: res, err: undefined }; 12 | } catch (e) { 13 | return { err: e, data: undefined }; 14 | } 15 | }; 16 | ``` 17 | 18 | `tryCatch` takes a function expression that could potentially throw and returns a safe value (even if the function threw an error). 19 | 20 | If the function passed to `tryCatch` succeeds, then the return is `{data: Data}` (where `Data` is whatever was the return value of the `tryExpression`.) Otherwise, where it throws, the return value will be `{ err: Error }` where `Error` is the exception thrown by the function. 21 | 22 | ## Example 23 | 24 | Suppose you have this function: 25 | 26 | ```js 27 | const testFn = (int) => { 28 | if (int > 5) { 29 | throw new Error('oops'); 30 | } 31 | return int; 32 | }; 33 | ``` 34 | 35 | `testFn` throws an error if the input is greater than 5. Otherwise it returns the input as-is. 36 | 37 | With `tryCatch`, you can wrap this so that it will never throw, but instead, return an error "safely". 38 | 39 | ```js 40 | const { data, err } = tryCatch(() => testFn(7)); // notice how we wrap `testFn(7)` as an arrow function / lambda 41 | if (err) console.log('Error:', err.toString()); 42 | else console.log('Success!', data); 43 | ``` 44 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@ampproject/remapping@^2.1.0": 6 | version "2.2.0" 7 | resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" 8 | integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== 9 | dependencies: 10 | "@jridgewell/gen-mapping" "^0.1.0" 11 | "@jridgewell/trace-mapping" "^0.3.9" 12 | 13 | "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.18.6": 14 | version "7.18.6" 15 | resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" 16 | integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== 17 | dependencies: 18 | "@babel/highlight" "^7.18.6" 19 | 20 | "@babel/compat-data@^7.20.0": 21 | version "7.20.1" 22 | resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.20.1.tgz#f2e6ef7790d8c8dbf03d379502dcc246dcce0b30" 23 | integrity sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ== 24 | 25 | "@babel/core@^7.11.6", "@babel/core@^7.12.3": 26 | version "7.20.2" 27 | resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.20.2.tgz#8dc9b1620a673f92d3624bd926dc49a52cf25b92" 28 | integrity sha512-w7DbG8DtMrJcFOi4VrLm+8QM4az8Mo+PuLBKLp2zrYRCow8W/f9xiXm5sN53C8HksCyDQwCKha9JiDoIyPjT2g== 29 | dependencies: 30 | "@ampproject/remapping" "^2.1.0" 31 | "@babel/code-frame" "^7.18.6" 32 | "@babel/generator" "^7.20.2" 33 | "@babel/helper-compilation-targets" "^7.20.0" 34 | "@babel/helper-module-transforms" "^7.20.2" 35 | "@babel/helpers" "^7.20.1" 36 | "@babel/parser" "^7.20.2" 37 | "@babel/template" "^7.18.10" 38 | "@babel/traverse" "^7.20.1" 39 | "@babel/types" "^7.20.2" 40 | convert-source-map "^1.7.0" 41 | debug "^4.1.0" 42 | gensync "^1.0.0-beta.2" 43 | json5 "^2.2.1" 44 | semver "^6.3.0" 45 | 46 | "@babel/generator@^7.20.1", "@babel/generator@^7.20.2", "@babel/generator@^7.7.2": 47 | version "7.20.4" 48 | resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.4.tgz#4d9f8f0c30be75fd90a0562099a26e5839602ab8" 49 | integrity sha512-luCf7yk/cm7yab6CAW1aiFnmEfBJplb/JojV56MYEK7ziWfGmFlTfmL9Ehwfy4gFhbjBfWO1wj7/TuSbVNEEtA== 50 | dependencies: 51 | "@babel/types" "^7.20.2" 52 | "@jridgewell/gen-mapping" "^0.3.2" 53 | jsesc "^2.5.1" 54 | 55 | "@babel/helper-compilation-targets@^7.20.0": 56 | version "7.20.0" 57 | resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz#6bf5374d424e1b3922822f1d9bdaa43b1a139d0a" 58 | integrity sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ== 59 | dependencies: 60 | "@babel/compat-data" "^7.20.0" 61 | "@babel/helper-validator-option" "^7.18.6" 62 | browserslist "^4.21.3" 63 | semver "^6.3.0" 64 | 65 | "@babel/helper-environment-visitor@^7.18.9": 66 | version "7.18.9" 67 | resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" 68 | integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== 69 | 70 | "@babel/helper-function-name@^7.19.0": 71 | version "7.19.0" 72 | resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c" 73 | integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== 74 | dependencies: 75 | "@babel/template" "^7.18.10" 76 | "@babel/types" "^7.19.0" 77 | 78 | "@babel/helper-hoist-variables@^7.18.6": 79 | version "7.18.6" 80 | resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" 81 | integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== 82 | dependencies: 83 | "@babel/types" "^7.18.6" 84 | 85 | "@babel/helper-module-imports@^7.18.6": 86 | version "7.18.6" 87 | resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" 88 | integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== 89 | dependencies: 90 | "@babel/types" "^7.18.6" 91 | 92 | "@babel/helper-module-transforms@^7.20.2": 93 | version "7.20.2" 94 | resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz#ac53da669501edd37e658602a21ba14c08748712" 95 | integrity sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA== 96 | dependencies: 97 | "@babel/helper-environment-visitor" "^7.18.9" 98 | "@babel/helper-module-imports" "^7.18.6" 99 | "@babel/helper-simple-access" "^7.20.2" 100 | "@babel/helper-split-export-declaration" "^7.18.6" 101 | "@babel/helper-validator-identifier" "^7.19.1" 102 | "@babel/template" "^7.18.10" 103 | "@babel/traverse" "^7.20.1" 104 | "@babel/types" "^7.20.2" 105 | 106 | "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.19.0", "@babel/helper-plugin-utils@^7.8.0": 107 | version "7.20.2" 108 | resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz#d1b9000752b18d0877cff85a5c376ce5c3121629" 109 | integrity sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ== 110 | 111 | "@babel/helper-simple-access@^7.20.2": 112 | version "7.20.2" 113 | resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9" 114 | integrity sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA== 115 | dependencies: 116 | "@babel/types" "^7.20.2" 117 | 118 | "@babel/helper-split-export-declaration@^7.18.6": 119 | version "7.18.6" 120 | resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" 121 | integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== 122 | dependencies: 123 | "@babel/types" "^7.18.6" 124 | 125 | "@babel/helper-string-parser@^7.19.4": 126 | version "7.19.4" 127 | resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" 128 | integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== 129 | 130 | "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": 131 | version "7.19.1" 132 | resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" 133 | integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== 134 | 135 | "@babel/helper-validator-option@^7.18.6": 136 | version "7.18.6" 137 | resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" 138 | integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== 139 | 140 | "@babel/helpers@^7.20.1": 141 | version "7.20.1" 142 | resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.20.1.tgz#2ab7a0fcb0a03b5bf76629196ed63c2d7311f4c9" 143 | integrity sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg== 144 | dependencies: 145 | "@babel/template" "^7.18.10" 146 | "@babel/traverse" "^7.20.1" 147 | "@babel/types" "^7.20.0" 148 | 149 | "@babel/highlight@^7.18.6": 150 | version "7.18.6" 151 | resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" 152 | integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== 153 | dependencies: 154 | "@babel/helper-validator-identifier" "^7.18.6" 155 | chalk "^2.0.0" 156 | js-tokens "^4.0.0" 157 | 158 | "@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.20.1", "@babel/parser@^7.20.2": 159 | version "7.20.3" 160 | resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.3.tgz#5358cf62e380cf69efcb87a7bb922ff88bfac6e2" 161 | integrity sha512-OP/s5a94frIPXwjzEcv5S/tpQfc6XhxYUnmWpgdqMWGgYCuErA3SzozaRAMQgSZWKeTJxht9aWAkUY+0UzvOFg== 162 | 163 | "@babel/plugin-syntax-async-generators@^7.8.4": 164 | version "7.8.4" 165 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" 166 | integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== 167 | dependencies: 168 | "@babel/helper-plugin-utils" "^7.8.0" 169 | 170 | "@babel/plugin-syntax-bigint@^7.8.3": 171 | version "7.8.3" 172 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" 173 | integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== 174 | dependencies: 175 | "@babel/helper-plugin-utils" "^7.8.0" 176 | 177 | "@babel/plugin-syntax-class-properties@^7.8.3": 178 | version "7.12.13" 179 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" 180 | integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== 181 | dependencies: 182 | "@babel/helper-plugin-utils" "^7.12.13" 183 | 184 | "@babel/plugin-syntax-import-meta@^7.8.3": 185 | version "7.10.4" 186 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" 187 | integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== 188 | dependencies: 189 | "@babel/helper-plugin-utils" "^7.10.4" 190 | 191 | "@babel/plugin-syntax-json-strings@^7.8.3": 192 | version "7.8.3" 193 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" 194 | integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== 195 | dependencies: 196 | "@babel/helper-plugin-utils" "^7.8.0" 197 | 198 | "@babel/plugin-syntax-jsx@^7.7.2": 199 | version "7.18.6" 200 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz#a8feef63b010150abd97f1649ec296e849943ca0" 201 | integrity sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q== 202 | dependencies: 203 | "@babel/helper-plugin-utils" "^7.18.6" 204 | 205 | "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": 206 | version "7.10.4" 207 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" 208 | integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== 209 | dependencies: 210 | "@babel/helper-plugin-utils" "^7.10.4" 211 | 212 | "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": 213 | version "7.8.3" 214 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" 215 | integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== 216 | dependencies: 217 | "@babel/helper-plugin-utils" "^7.8.0" 218 | 219 | "@babel/plugin-syntax-numeric-separator@^7.8.3": 220 | version "7.10.4" 221 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" 222 | integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== 223 | dependencies: 224 | "@babel/helper-plugin-utils" "^7.10.4" 225 | 226 | "@babel/plugin-syntax-object-rest-spread@^7.8.3": 227 | version "7.8.3" 228 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" 229 | integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== 230 | dependencies: 231 | "@babel/helper-plugin-utils" "^7.8.0" 232 | 233 | "@babel/plugin-syntax-optional-catch-binding@^7.8.3": 234 | version "7.8.3" 235 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" 236 | integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== 237 | dependencies: 238 | "@babel/helper-plugin-utils" "^7.8.0" 239 | 240 | "@babel/plugin-syntax-optional-chaining@^7.8.3": 241 | version "7.8.3" 242 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" 243 | integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== 244 | dependencies: 245 | "@babel/helper-plugin-utils" "^7.8.0" 246 | 247 | "@babel/plugin-syntax-top-level-await@^7.8.3": 248 | version "7.14.5" 249 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" 250 | integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== 251 | dependencies: 252 | "@babel/helper-plugin-utils" "^7.14.5" 253 | 254 | "@babel/plugin-syntax-typescript@^7.7.2": 255 | version "7.20.0" 256 | resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7" 257 | integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ== 258 | dependencies: 259 | "@babel/helper-plugin-utils" "^7.19.0" 260 | 261 | "@babel/template@^7.18.10", "@babel/template@^7.3.3": 262 | version "7.18.10" 263 | resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" 264 | integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== 265 | dependencies: 266 | "@babel/code-frame" "^7.18.6" 267 | "@babel/parser" "^7.18.10" 268 | "@babel/types" "^7.18.10" 269 | 270 | "@babel/traverse@^7.20.1", "@babel/traverse@^7.7.2": 271 | version "7.20.1" 272 | resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.20.1.tgz#9b15ccbf882f6d107eeeecf263fbcdd208777ec8" 273 | integrity sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA== 274 | dependencies: 275 | "@babel/code-frame" "^7.18.6" 276 | "@babel/generator" "^7.20.1" 277 | "@babel/helper-environment-visitor" "^7.18.9" 278 | "@babel/helper-function-name" "^7.19.0" 279 | "@babel/helper-hoist-variables" "^7.18.6" 280 | "@babel/helper-split-export-declaration" "^7.18.6" 281 | "@babel/parser" "^7.20.1" 282 | "@babel/types" "^7.20.0" 283 | debug "^4.1.0" 284 | globals "^11.1.0" 285 | 286 | "@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.19.0", "@babel/types@^7.20.0", "@babel/types@^7.20.2", "@babel/types@^7.3.0", "@babel/types@^7.3.3": 287 | version "7.20.2" 288 | resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.20.2.tgz#67ac09266606190f496322dbaff360fdaa5e7842" 289 | integrity sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog== 290 | dependencies: 291 | "@babel/helper-string-parser" "^7.19.4" 292 | "@babel/helper-validator-identifier" "^7.19.1" 293 | to-fast-properties "^2.0.0" 294 | 295 | "@bcoe/v8-coverage@^0.2.3": 296 | version "0.2.3" 297 | resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" 298 | integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== 299 | 300 | "@istanbuljs/load-nyc-config@^1.0.0": 301 | version "1.1.0" 302 | resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" 303 | integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== 304 | dependencies: 305 | camelcase "^5.3.1" 306 | find-up "^4.1.0" 307 | get-package-type "^0.1.0" 308 | js-yaml "^3.13.1" 309 | resolve-from "^5.0.0" 310 | 311 | "@istanbuljs/schema@^0.1.2": 312 | version "0.1.3" 313 | resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" 314 | integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== 315 | 316 | "@jest/console@^29.3.1": 317 | version "29.3.1" 318 | resolved "https://registry.yarnpkg.com/@jest/console/-/console-29.3.1.tgz#3e3f876e4e47616ea3b1464b9fbda981872e9583" 319 | integrity sha512-IRE6GD47KwcqA09RIWrabKdHPiKDGgtAL31xDxbi/RjQMsr+lY+ppxmHwY0dUEV3qvvxZzoe5Hl0RXZJOjQNUg== 320 | dependencies: 321 | "@jest/types" "^29.3.1" 322 | "@types/node" "*" 323 | chalk "^4.0.0" 324 | jest-message-util "^29.3.1" 325 | jest-util "^29.3.1" 326 | slash "^3.0.0" 327 | 328 | "@jest/core@^29.3.1": 329 | version "29.3.1" 330 | resolved "https://registry.yarnpkg.com/@jest/core/-/core-29.3.1.tgz#bff00f413ff0128f4debec1099ba7dcd649774a1" 331 | integrity sha512-0ohVjjRex985w5MmO5L3u5GR1O30DexhBSpuwx2P+9ftyqHdJXnk7IUWiP80oHMvt7ubHCJHxV0a0vlKVuZirw== 332 | dependencies: 333 | "@jest/console" "^29.3.1" 334 | "@jest/reporters" "^29.3.1" 335 | "@jest/test-result" "^29.3.1" 336 | "@jest/transform" "^29.3.1" 337 | "@jest/types" "^29.3.1" 338 | "@types/node" "*" 339 | ansi-escapes "^4.2.1" 340 | chalk "^4.0.0" 341 | ci-info "^3.2.0" 342 | exit "^0.1.2" 343 | graceful-fs "^4.2.9" 344 | jest-changed-files "^29.2.0" 345 | jest-config "^29.3.1" 346 | jest-haste-map "^29.3.1" 347 | jest-message-util "^29.3.1" 348 | jest-regex-util "^29.2.0" 349 | jest-resolve "^29.3.1" 350 | jest-resolve-dependencies "^29.3.1" 351 | jest-runner "^29.3.1" 352 | jest-runtime "^29.3.1" 353 | jest-snapshot "^29.3.1" 354 | jest-util "^29.3.1" 355 | jest-validate "^29.3.1" 356 | jest-watcher "^29.3.1" 357 | micromatch "^4.0.4" 358 | pretty-format "^29.3.1" 359 | slash "^3.0.0" 360 | strip-ansi "^6.0.0" 361 | 362 | "@jest/environment@^29.3.1": 363 | version "29.3.1" 364 | resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-29.3.1.tgz#eb039f726d5fcd14698acd072ac6576d41cfcaa6" 365 | integrity sha512-pMmvfOPmoa1c1QpfFW0nXYtNLpofqo4BrCIk6f2kW4JFeNlHV2t3vd+3iDLf31e2ot2Mec0uqZfmI+U0K2CFag== 366 | dependencies: 367 | "@jest/fake-timers" "^29.3.1" 368 | "@jest/types" "^29.3.1" 369 | "@types/node" "*" 370 | jest-mock "^29.3.1" 371 | 372 | "@jest/expect-utils@^29.3.1": 373 | version "29.3.1" 374 | resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.3.1.tgz#531f737039e9b9e27c42449798acb5bba01935b6" 375 | integrity sha512-wlrznINZI5sMjwvUoLVk617ll/UYfGIZNxmbU+Pa7wmkL4vYzhV9R2pwVqUh4NWWuLQWkI8+8mOkxs//prKQ3g== 376 | dependencies: 377 | jest-get-type "^29.2.0" 378 | 379 | "@jest/expect@^29.3.1": 380 | version "29.3.1" 381 | resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-29.3.1.tgz#456385b62894349c1d196f2d183e3716d4c6a6cd" 382 | integrity sha512-QivM7GlSHSsIAWzgfyP8dgeExPRZ9BIe2LsdPyEhCGkZkoyA+kGsoIzbKAfZCvvRzfZioKwPtCZIt5SaoxYCvg== 383 | dependencies: 384 | expect "^29.3.1" 385 | jest-snapshot "^29.3.1" 386 | 387 | "@jest/fake-timers@^29.3.1": 388 | version "29.3.1" 389 | resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-29.3.1.tgz#b140625095b60a44de820876d4c14da1aa963f67" 390 | integrity sha512-iHTL/XpnDlFki9Tq0Q1GGuVeQ8BHZGIYsvCO5eN/O/oJaRzofG9Xndd9HuSDBI/0ZS79pg0iwn07OMTQ7ngF2A== 391 | dependencies: 392 | "@jest/types" "^29.3.1" 393 | "@sinonjs/fake-timers" "^9.1.2" 394 | "@types/node" "*" 395 | jest-message-util "^29.3.1" 396 | jest-mock "^29.3.1" 397 | jest-util "^29.3.1" 398 | 399 | "@jest/globals@^29.3.1": 400 | version "29.3.1" 401 | resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-29.3.1.tgz#92be078228e82d629df40c3656d45328f134a0c6" 402 | integrity sha512-cTicd134vOcwO59OPaB6AmdHQMCtWOe+/DitpTZVxWgMJ+YvXL1HNAmPyiGbSHmF/mXVBkvlm8YYtQhyHPnV6Q== 403 | dependencies: 404 | "@jest/environment" "^29.3.1" 405 | "@jest/expect" "^29.3.1" 406 | "@jest/types" "^29.3.1" 407 | jest-mock "^29.3.1" 408 | 409 | "@jest/reporters@^29.3.1": 410 | version "29.3.1" 411 | resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-29.3.1.tgz#9a6d78c109608e677c25ddb34f907b90e07b4310" 412 | integrity sha512-GhBu3YFuDrcAYW/UESz1JphEAbvUjaY2vShRZRoRY1mxpCMB3yGSJ4j9n0GxVlEOdCf7qjvUfBCrTUUqhVfbRA== 413 | dependencies: 414 | "@bcoe/v8-coverage" "^0.2.3" 415 | "@jest/console" "^29.3.1" 416 | "@jest/test-result" "^29.3.1" 417 | "@jest/transform" "^29.3.1" 418 | "@jest/types" "^29.3.1" 419 | "@jridgewell/trace-mapping" "^0.3.15" 420 | "@types/node" "*" 421 | chalk "^4.0.0" 422 | collect-v8-coverage "^1.0.0" 423 | exit "^0.1.2" 424 | glob "^7.1.3" 425 | graceful-fs "^4.2.9" 426 | istanbul-lib-coverage "^3.0.0" 427 | istanbul-lib-instrument "^5.1.0" 428 | istanbul-lib-report "^3.0.0" 429 | istanbul-lib-source-maps "^4.0.0" 430 | istanbul-reports "^3.1.3" 431 | jest-message-util "^29.3.1" 432 | jest-util "^29.3.1" 433 | jest-worker "^29.3.1" 434 | slash "^3.0.0" 435 | string-length "^4.0.1" 436 | strip-ansi "^6.0.0" 437 | v8-to-istanbul "^9.0.1" 438 | 439 | "@jest/schemas@^29.0.0": 440 | version "29.0.0" 441 | resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.0.0.tgz#5f47f5994dd4ef067fb7b4188ceac45f77fe952a" 442 | integrity sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA== 443 | dependencies: 444 | "@sinclair/typebox" "^0.24.1" 445 | 446 | "@jest/source-map@^29.2.0": 447 | version "29.2.0" 448 | resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-29.2.0.tgz#ab3420c46d42508dcc3dc1c6deee0b613c235744" 449 | integrity sha512-1NX9/7zzI0nqa6+kgpSdKPK+WU1p+SJk3TloWZf5MzPbxri9UEeXX5bWZAPCzbQcyuAzubcdUHA7hcNznmRqWQ== 450 | dependencies: 451 | "@jridgewell/trace-mapping" "^0.3.15" 452 | callsites "^3.0.0" 453 | graceful-fs "^4.2.9" 454 | 455 | "@jest/test-result@^29.3.1": 456 | version "29.3.1" 457 | resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-29.3.1.tgz#92cd5099aa94be947560a24610aa76606de78f50" 458 | integrity sha512-qeLa6qc0ddB0kuOZyZIhfN5q0e2htngokyTWsGriedsDhItisW7SDYZ7ceOe57Ii03sL988/03wAcBh3TChMGw== 459 | dependencies: 460 | "@jest/console" "^29.3.1" 461 | "@jest/types" "^29.3.1" 462 | "@types/istanbul-lib-coverage" "^2.0.0" 463 | collect-v8-coverage "^1.0.0" 464 | 465 | "@jest/test-sequencer@^29.3.1": 466 | version "29.3.1" 467 | resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-29.3.1.tgz#fa24b3b050f7a59d48f7ef9e0b782ab65123090d" 468 | integrity sha512-IqYvLbieTv20ArgKoAMyhLHNrVHJfzO6ARZAbQRlY4UGWfdDnLlZEF0BvKOMd77uIiIjSZRwq3Jb3Fa3I8+2UA== 469 | dependencies: 470 | "@jest/test-result" "^29.3.1" 471 | graceful-fs "^4.2.9" 472 | jest-haste-map "^29.3.1" 473 | slash "^3.0.0" 474 | 475 | "@jest/transform@^29.3.1": 476 | version "29.3.1" 477 | resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-29.3.1.tgz#1e6bd3da4af50b5c82a539b7b1f3770568d6e36d" 478 | integrity sha512-8wmCFBTVGYqFNLWfcOWoVuMuKYPUBTnTMDkdvFtAYELwDOl9RGwOsvQWGPFxDJ8AWY9xM/8xCXdqmPK3+Q5Lug== 479 | dependencies: 480 | "@babel/core" "^7.11.6" 481 | "@jest/types" "^29.3.1" 482 | "@jridgewell/trace-mapping" "^0.3.15" 483 | babel-plugin-istanbul "^6.1.1" 484 | chalk "^4.0.0" 485 | convert-source-map "^2.0.0" 486 | fast-json-stable-stringify "^2.1.0" 487 | graceful-fs "^4.2.9" 488 | jest-haste-map "^29.3.1" 489 | jest-regex-util "^29.2.0" 490 | jest-util "^29.3.1" 491 | micromatch "^4.0.4" 492 | pirates "^4.0.4" 493 | slash "^3.0.0" 494 | write-file-atomic "^4.0.1" 495 | 496 | "@jest/types@^29.3.1": 497 | version "29.3.1" 498 | resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.3.1.tgz#7c5a80777cb13e703aeec6788d044150341147e3" 499 | integrity sha512-d0S0jmmTpjnhCmNpApgX3jrUZgZ22ivKJRvL2lli5hpCRoNnp1f85r2/wpKfXuYu8E7Jjh1hGfhPyup1NM5AmA== 500 | dependencies: 501 | "@jest/schemas" "^29.0.0" 502 | "@types/istanbul-lib-coverage" "^2.0.0" 503 | "@types/istanbul-reports" "^3.0.0" 504 | "@types/node" "*" 505 | "@types/yargs" "^17.0.8" 506 | chalk "^4.0.0" 507 | 508 | "@jridgewell/gen-mapping@^0.1.0": 509 | version "0.1.1" 510 | resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" 511 | integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== 512 | dependencies: 513 | "@jridgewell/set-array" "^1.0.0" 514 | "@jridgewell/sourcemap-codec" "^1.4.10" 515 | 516 | "@jridgewell/gen-mapping@^0.3.2": 517 | version "0.3.2" 518 | resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" 519 | integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== 520 | dependencies: 521 | "@jridgewell/set-array" "^1.0.1" 522 | "@jridgewell/sourcemap-codec" "^1.4.10" 523 | "@jridgewell/trace-mapping" "^0.3.9" 524 | 525 | "@jridgewell/resolve-uri@3.1.0": 526 | version "3.1.0" 527 | resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" 528 | integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== 529 | 530 | "@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": 531 | version "1.1.2" 532 | resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" 533 | integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== 534 | 535 | "@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": 536 | version "1.4.14" 537 | resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" 538 | integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== 539 | 540 | "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.15", "@jridgewell/trace-mapping@^0.3.9": 541 | version "0.3.17" 542 | resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" 543 | integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== 544 | dependencies: 545 | "@jridgewell/resolve-uri" "3.1.0" 546 | "@jridgewell/sourcemap-codec" "1.4.14" 547 | 548 | "@sinclair/typebox@^0.24.1": 549 | version "0.24.51" 550 | resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f" 551 | integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA== 552 | 553 | "@sinonjs/commons@^1.7.0": 554 | version "1.8.5" 555 | resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.5.tgz#e280c94c95f206dcfd5aca00a43f2156b758c764" 556 | integrity sha512-rTpCA0wG1wUxglBSFdMMY0oTrKYvgf4fNgv/sXbfCVAdf+FnPBdKJR/7XbpTCwbCrvCbdPYnlWaUUYz4V2fPDA== 557 | dependencies: 558 | type-detect "4.0.8" 559 | 560 | "@sinonjs/fake-timers@^9.1.2": 561 | version "9.1.2" 562 | resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-9.1.2.tgz#4eaab737fab77332ab132d396a3c0d364bd0ea8c" 563 | integrity sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw== 564 | dependencies: 565 | "@sinonjs/commons" "^1.7.0" 566 | 567 | "@types/babel__core@^7.1.14": 568 | version "7.1.20" 569 | resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.20.tgz#e168cdd612c92a2d335029ed62ac94c95b362359" 570 | integrity sha512-PVb6Bg2QuscZ30FvOU7z4guG6c926D9YRvOxEaelzndpMsvP+YM74Q/dAFASpg2l6+XLalxSGxcq/lrgYWZtyQ== 571 | dependencies: 572 | "@babel/parser" "^7.1.0" 573 | "@babel/types" "^7.0.0" 574 | "@types/babel__generator" "*" 575 | "@types/babel__template" "*" 576 | "@types/babel__traverse" "*" 577 | 578 | "@types/babel__generator@*": 579 | version "7.6.4" 580 | resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.4.tgz#1f20ce4c5b1990b37900b63f050182d28c2439b7" 581 | integrity sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg== 582 | dependencies: 583 | "@babel/types" "^7.0.0" 584 | 585 | "@types/babel__template@*": 586 | version "7.4.1" 587 | resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.1.tgz#3d1a48fd9d6c0edfd56f2ff578daed48f36c8969" 588 | integrity sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g== 589 | dependencies: 590 | "@babel/parser" "^7.1.0" 591 | "@babel/types" "^7.0.0" 592 | 593 | "@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": 594 | version "7.18.2" 595 | resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.18.2.tgz#235bf339d17185bdec25e024ca19cce257cc7309" 596 | integrity sha512-FcFaxOr2V5KZCviw1TnutEMVUVsGt4D2hP1TAfXZAMKuHYW3xQhe3jTxNPWutgCJ3/X1c5yX8ZoGVEItxKbwBg== 597 | dependencies: 598 | "@babel/types" "^7.3.0" 599 | 600 | "@types/graceful-fs@^4.1.3": 601 | version "4.1.5" 602 | resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" 603 | integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw== 604 | dependencies: 605 | "@types/node" "*" 606 | 607 | "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": 608 | version "2.0.4" 609 | resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" 610 | integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== 611 | 612 | "@types/istanbul-lib-report@*": 613 | version "3.0.0" 614 | resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" 615 | integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== 616 | dependencies: 617 | "@types/istanbul-lib-coverage" "*" 618 | 619 | "@types/istanbul-reports@^3.0.0": 620 | version "3.0.1" 621 | resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" 622 | integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== 623 | dependencies: 624 | "@types/istanbul-lib-report" "*" 625 | 626 | "@types/node@*": 627 | version "18.11.9" 628 | resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.9.tgz#02d013de7058cea16d36168ef2fc653464cfbad4" 629 | integrity sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg== 630 | 631 | "@types/prettier@^2.1.5": 632 | version "2.7.1" 633 | resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.1.tgz#dfd20e2dc35f027cdd6c1908e80a5ddc7499670e" 634 | integrity sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow== 635 | 636 | "@types/stack-utils@^2.0.0": 637 | version "2.0.1" 638 | resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" 639 | integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== 640 | 641 | "@types/yargs-parser@*": 642 | version "21.0.0" 643 | resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" 644 | integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== 645 | 646 | "@types/yargs@^17.0.8": 647 | version "17.0.14" 648 | resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.14.tgz#0943473052c24bd8cf2d1de25f1a710259327237" 649 | integrity sha512-9Pj7abXoW1RSTcZaL2Hk6G2XyLMlp5ECdVC/Zf2p/KBjC3srijLGgRAXOBjtFrJoIrvxdTKyKDA14bEcbxBaWw== 650 | dependencies: 651 | "@types/yargs-parser" "*" 652 | 653 | ansi-escapes@^4.2.1: 654 | version "4.3.2" 655 | resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" 656 | integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== 657 | dependencies: 658 | type-fest "^0.21.3" 659 | 660 | ansi-regex@^5.0.1: 661 | version "5.0.1" 662 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" 663 | integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== 664 | 665 | ansi-styles@^3.2.1: 666 | version "3.2.1" 667 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 668 | integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== 669 | dependencies: 670 | color-convert "^1.9.0" 671 | 672 | ansi-styles@^4.0.0, ansi-styles@^4.1.0: 673 | version "4.3.0" 674 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" 675 | integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== 676 | dependencies: 677 | color-convert "^2.0.1" 678 | 679 | ansi-styles@^5.0.0: 680 | version "5.2.0" 681 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" 682 | integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== 683 | 684 | anymatch@^3.0.3: 685 | version "3.1.3" 686 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" 687 | integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== 688 | dependencies: 689 | normalize-path "^3.0.0" 690 | picomatch "^2.0.4" 691 | 692 | argparse@^1.0.7: 693 | version "1.0.10" 694 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" 695 | integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== 696 | dependencies: 697 | sprintf-js "~1.0.2" 698 | 699 | babel-jest@^29.3.1: 700 | version "29.3.1" 701 | resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.3.1.tgz#05c83e0d128cd48c453eea851482a38782249f44" 702 | integrity sha512-aard+xnMoxgjwV70t0L6wkW/3HQQtV+O0PEimxKgzNqCJnbYmroPojdP2tqKSOAt8QAKV/uSZU8851M7B5+fcA== 703 | dependencies: 704 | "@jest/transform" "^29.3.1" 705 | "@types/babel__core" "^7.1.14" 706 | babel-plugin-istanbul "^6.1.1" 707 | babel-preset-jest "^29.2.0" 708 | chalk "^4.0.0" 709 | graceful-fs "^4.2.9" 710 | slash "^3.0.0" 711 | 712 | babel-plugin-istanbul@^6.1.1: 713 | version "6.1.1" 714 | resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" 715 | integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== 716 | dependencies: 717 | "@babel/helper-plugin-utils" "^7.0.0" 718 | "@istanbuljs/load-nyc-config" "^1.0.0" 719 | "@istanbuljs/schema" "^0.1.2" 720 | istanbul-lib-instrument "^5.0.4" 721 | test-exclude "^6.0.0" 722 | 723 | babel-plugin-jest-hoist@^29.2.0: 724 | version "29.2.0" 725 | resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.2.0.tgz#23ee99c37390a98cfddf3ef4a78674180d823094" 726 | integrity sha512-TnspP2WNiR3GLfCsUNHqeXw0RoQ2f9U5hQ5L3XFpwuO8htQmSrhh8qsB6vi5Yi8+kuynN1yjDjQsPfkebmB6ZA== 727 | dependencies: 728 | "@babel/template" "^7.3.3" 729 | "@babel/types" "^7.3.3" 730 | "@types/babel__core" "^7.1.14" 731 | "@types/babel__traverse" "^7.0.6" 732 | 733 | babel-preset-current-node-syntax@^1.0.0: 734 | version "1.0.1" 735 | resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" 736 | integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== 737 | dependencies: 738 | "@babel/plugin-syntax-async-generators" "^7.8.4" 739 | "@babel/plugin-syntax-bigint" "^7.8.3" 740 | "@babel/plugin-syntax-class-properties" "^7.8.3" 741 | "@babel/plugin-syntax-import-meta" "^7.8.3" 742 | "@babel/plugin-syntax-json-strings" "^7.8.3" 743 | "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" 744 | "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" 745 | "@babel/plugin-syntax-numeric-separator" "^7.8.3" 746 | "@babel/plugin-syntax-object-rest-spread" "^7.8.3" 747 | "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" 748 | "@babel/plugin-syntax-optional-chaining" "^7.8.3" 749 | "@babel/plugin-syntax-top-level-await" "^7.8.3" 750 | 751 | babel-preset-jest@^29.2.0: 752 | version "29.2.0" 753 | resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-29.2.0.tgz#3048bea3a1af222e3505e4a767a974c95a7620dc" 754 | integrity sha512-z9JmMJppMxNv8N7fNRHvhMg9cvIkMxQBXgFkane3yKVEvEOP+kB50lk8DFRvF9PGqbyXxlmebKWhuDORO8RgdA== 755 | dependencies: 756 | babel-plugin-jest-hoist "^29.2.0" 757 | babel-preset-current-node-syntax "^1.0.0" 758 | 759 | balanced-match@^1.0.0: 760 | version "1.0.2" 761 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" 762 | integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== 763 | 764 | brace-expansion@^1.1.7: 765 | version "1.1.11" 766 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 767 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== 768 | dependencies: 769 | balanced-match "^1.0.0" 770 | concat-map "0.0.1" 771 | 772 | braces@^3.0.2: 773 | version "3.0.2" 774 | resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" 775 | integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== 776 | dependencies: 777 | fill-range "^7.0.1" 778 | 779 | browserslist@^4.21.3: 780 | version "4.21.4" 781 | resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.4.tgz#e7496bbc67b9e39dd0f98565feccdcb0d4ff6987" 782 | integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw== 783 | dependencies: 784 | caniuse-lite "^1.0.30001400" 785 | electron-to-chromium "^1.4.251" 786 | node-releases "^2.0.6" 787 | update-browserslist-db "^1.0.9" 788 | 789 | bser@2.1.1: 790 | version "2.1.1" 791 | resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" 792 | integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== 793 | dependencies: 794 | node-int64 "^0.4.0" 795 | 796 | buffer-from@^1.0.0: 797 | version "1.1.2" 798 | resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" 799 | integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== 800 | 801 | callsites@^3.0.0: 802 | version "3.1.0" 803 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" 804 | integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== 805 | 806 | camelcase@^5.3.1: 807 | version "5.3.1" 808 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" 809 | integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== 810 | 811 | camelcase@^6.2.0: 812 | version "6.3.0" 813 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" 814 | integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== 815 | 816 | caniuse-lite@^1.0.30001400: 817 | version "1.0.30001434" 818 | resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001434.tgz#ec1ec1cfb0a93a34a0600d37903853030520a4e5" 819 | integrity sha512-aOBHrLmTQw//WFa2rcF1If9fa3ypkC1wzqqiKHgfdrXTWcU8C4gKVZT77eQAPWN1APys3+uQ0Df07rKauXGEYA== 820 | 821 | chalk@^2.0.0: 822 | version "2.4.2" 823 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" 824 | integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== 825 | dependencies: 826 | ansi-styles "^3.2.1" 827 | escape-string-regexp "^1.0.5" 828 | supports-color "^5.3.0" 829 | 830 | chalk@^4.0.0: 831 | version "4.1.2" 832 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" 833 | integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== 834 | dependencies: 835 | ansi-styles "^4.1.0" 836 | supports-color "^7.1.0" 837 | 838 | char-regex@^1.0.2: 839 | version "1.0.2" 840 | resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" 841 | integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== 842 | 843 | ci-info@^3.2.0: 844 | version "3.7.0" 845 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.7.0.tgz#6d01b3696c59915b6ce057e4aa4adfc2fa25f5ef" 846 | integrity sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog== 847 | 848 | cjs-module-lexer@^1.0.0: 849 | version "1.2.2" 850 | resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz#9f84ba3244a512f3a54e5277e8eef4c489864e40" 851 | integrity sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA== 852 | 853 | cliui@^8.0.1: 854 | version "8.0.1" 855 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" 856 | integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== 857 | dependencies: 858 | string-width "^4.2.0" 859 | strip-ansi "^6.0.1" 860 | wrap-ansi "^7.0.0" 861 | 862 | co@^4.6.0: 863 | version "4.6.0" 864 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" 865 | integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== 866 | 867 | collect-v8-coverage@^1.0.0: 868 | version "1.0.1" 869 | resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" 870 | integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== 871 | 872 | color-convert@^1.9.0: 873 | version "1.9.3" 874 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" 875 | integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== 876 | dependencies: 877 | color-name "1.1.3" 878 | 879 | color-convert@^2.0.1: 880 | version "2.0.1" 881 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" 882 | integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== 883 | dependencies: 884 | color-name "~1.1.4" 885 | 886 | color-name@1.1.3: 887 | version "1.1.3" 888 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 889 | integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== 890 | 891 | color-name@~1.1.4: 892 | version "1.1.4" 893 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" 894 | integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== 895 | 896 | concat-map@0.0.1: 897 | version "0.0.1" 898 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 899 | integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== 900 | 901 | convert-source-map@^1.6.0, convert-source-map@^1.7.0: 902 | version "1.9.0" 903 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" 904 | integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== 905 | 906 | convert-source-map@^2.0.0: 907 | version "2.0.0" 908 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" 909 | integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== 910 | 911 | cross-spawn@^7.0.3: 912 | version "7.0.3" 913 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" 914 | integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== 915 | dependencies: 916 | path-key "^3.1.0" 917 | shebang-command "^2.0.0" 918 | which "^2.0.1" 919 | 920 | debug@^4.1.0, debug@^4.1.1: 921 | version "4.3.4" 922 | resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" 923 | integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== 924 | dependencies: 925 | ms "2.1.2" 926 | 927 | dedent@^0.7.0: 928 | version "0.7.0" 929 | resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" 930 | integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== 931 | 932 | deepmerge@^4.2.2: 933 | version "4.2.2" 934 | resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" 935 | integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== 936 | 937 | detect-newline@^3.0.0: 938 | version "3.1.0" 939 | resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" 940 | integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== 941 | 942 | diff-sequences@^29.3.1: 943 | version "29.3.1" 944 | resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.3.1.tgz#104b5b95fe725932421a9c6e5b4bef84c3f2249e" 945 | integrity sha512-hlM3QR272NXCi4pq+N4Kok4kOp6EsgOM3ZSpJI7Da3UAs+Ttsi8MRmB6trM/lhyzUxGfOgnpkHtgqm5Q/CTcfQ== 946 | 947 | electron-to-chromium@^1.4.251: 948 | version "1.4.284" 949 | resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz#61046d1e4cab3a25238f6bf7413795270f125592" 950 | integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== 951 | 952 | emittery@^0.13.1: 953 | version "0.13.1" 954 | resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad" 955 | integrity sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ== 956 | 957 | emoji-regex@^8.0.0: 958 | version "8.0.0" 959 | resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" 960 | integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== 961 | 962 | error-ex@^1.3.1: 963 | version "1.3.2" 964 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" 965 | integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== 966 | dependencies: 967 | is-arrayish "^0.2.1" 968 | 969 | escalade@^3.1.1: 970 | version "3.1.1" 971 | resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" 972 | integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== 973 | 974 | escape-string-regexp@^1.0.5: 975 | version "1.0.5" 976 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 977 | integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== 978 | 979 | escape-string-regexp@^2.0.0: 980 | version "2.0.0" 981 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" 982 | integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== 983 | 984 | esprima@^4.0.0: 985 | version "4.0.1" 986 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" 987 | integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== 988 | 989 | execa@^5.0.0: 990 | version "5.1.1" 991 | resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" 992 | integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== 993 | dependencies: 994 | cross-spawn "^7.0.3" 995 | get-stream "^6.0.0" 996 | human-signals "^2.1.0" 997 | is-stream "^2.0.0" 998 | merge-stream "^2.0.0" 999 | npm-run-path "^4.0.1" 1000 | onetime "^5.1.2" 1001 | signal-exit "^3.0.3" 1002 | strip-final-newline "^2.0.0" 1003 | 1004 | exit@^0.1.2: 1005 | version "0.1.2" 1006 | resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" 1007 | integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== 1008 | 1009 | expect@^29.3.1: 1010 | version "29.3.1" 1011 | resolved "https://registry.yarnpkg.com/expect/-/expect-29.3.1.tgz#92877aad3f7deefc2e3f6430dd195b92295554a6" 1012 | integrity sha512-gGb1yTgU30Q0O/tQq+z30KBWv24ApkMgFUpvKBkyLUBL68Wv8dHdJxTBZFl/iT8K/bqDHvUYRH6IIN3rToopPA== 1013 | dependencies: 1014 | "@jest/expect-utils" "^29.3.1" 1015 | jest-get-type "^29.2.0" 1016 | jest-matcher-utils "^29.3.1" 1017 | jest-message-util "^29.3.1" 1018 | jest-util "^29.3.1" 1019 | 1020 | fast-json-stable-stringify@^2.1.0: 1021 | version "2.1.0" 1022 | resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" 1023 | integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== 1024 | 1025 | fb-watchman@^2.0.0: 1026 | version "2.0.2" 1027 | resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" 1028 | integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== 1029 | dependencies: 1030 | bser "2.1.1" 1031 | 1032 | fill-range@^7.0.1: 1033 | version "7.0.1" 1034 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" 1035 | integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== 1036 | dependencies: 1037 | to-regex-range "^5.0.1" 1038 | 1039 | find-up@^4.0.0, find-up@^4.1.0: 1040 | version "4.1.0" 1041 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" 1042 | integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== 1043 | dependencies: 1044 | locate-path "^5.0.0" 1045 | path-exists "^4.0.0" 1046 | 1047 | fs.realpath@^1.0.0: 1048 | version "1.0.0" 1049 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 1050 | integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== 1051 | 1052 | fsevents@^2.3.2: 1053 | version "2.3.2" 1054 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" 1055 | integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== 1056 | 1057 | function-bind@^1.1.1: 1058 | version "1.1.1" 1059 | resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" 1060 | integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== 1061 | 1062 | gensync@^1.0.0-beta.2: 1063 | version "1.0.0-beta.2" 1064 | resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" 1065 | integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== 1066 | 1067 | get-caller-file@^2.0.5: 1068 | version "2.0.5" 1069 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" 1070 | integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== 1071 | 1072 | get-package-type@^0.1.0: 1073 | version "0.1.0" 1074 | resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" 1075 | integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== 1076 | 1077 | get-stream@^6.0.0: 1078 | version "6.0.1" 1079 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" 1080 | integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== 1081 | 1082 | glob@^7.1.3, glob@^7.1.4: 1083 | version "7.2.3" 1084 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" 1085 | integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== 1086 | dependencies: 1087 | fs.realpath "^1.0.0" 1088 | inflight "^1.0.4" 1089 | inherits "2" 1090 | minimatch "^3.1.1" 1091 | once "^1.3.0" 1092 | path-is-absolute "^1.0.0" 1093 | 1094 | globals@^11.1.0: 1095 | version "11.12.0" 1096 | resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" 1097 | integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== 1098 | 1099 | graceful-fs@^4.2.9: 1100 | version "4.2.10" 1101 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" 1102 | integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== 1103 | 1104 | has-flag@^3.0.0: 1105 | version "3.0.0" 1106 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 1107 | integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== 1108 | 1109 | has-flag@^4.0.0: 1110 | version "4.0.0" 1111 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" 1112 | integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== 1113 | 1114 | has@^1.0.3: 1115 | version "1.0.3" 1116 | resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" 1117 | integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== 1118 | dependencies: 1119 | function-bind "^1.1.1" 1120 | 1121 | html-escaper@^2.0.0: 1122 | version "2.0.2" 1123 | resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" 1124 | integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== 1125 | 1126 | human-signals@^2.1.0: 1127 | version "2.1.0" 1128 | resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" 1129 | integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== 1130 | 1131 | import-local@^3.0.2: 1132 | version "3.1.0" 1133 | resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" 1134 | integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== 1135 | dependencies: 1136 | pkg-dir "^4.2.0" 1137 | resolve-cwd "^3.0.0" 1138 | 1139 | imurmurhash@^0.1.4: 1140 | version "0.1.4" 1141 | resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" 1142 | integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== 1143 | 1144 | inflight@^1.0.4: 1145 | version "1.0.6" 1146 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 1147 | integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== 1148 | dependencies: 1149 | once "^1.3.0" 1150 | wrappy "1" 1151 | 1152 | inherits@2: 1153 | version "2.0.4" 1154 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" 1155 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== 1156 | 1157 | is-arrayish@^0.2.1: 1158 | version "0.2.1" 1159 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 1160 | integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== 1161 | 1162 | is-core-module@^2.9.0: 1163 | version "2.11.0" 1164 | resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" 1165 | integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== 1166 | dependencies: 1167 | has "^1.0.3" 1168 | 1169 | is-fullwidth-code-point@^3.0.0: 1170 | version "3.0.0" 1171 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" 1172 | integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== 1173 | 1174 | is-generator-fn@^2.0.0: 1175 | version "2.1.0" 1176 | resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" 1177 | integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== 1178 | 1179 | is-number@^7.0.0: 1180 | version "7.0.0" 1181 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" 1182 | integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== 1183 | 1184 | is-stream@^2.0.0: 1185 | version "2.0.1" 1186 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" 1187 | integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== 1188 | 1189 | isexe@^2.0.0: 1190 | version "2.0.0" 1191 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 1192 | integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== 1193 | 1194 | istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: 1195 | version "3.2.0" 1196 | resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" 1197 | integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== 1198 | 1199 | istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: 1200 | version "5.2.1" 1201 | resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" 1202 | integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== 1203 | dependencies: 1204 | "@babel/core" "^7.12.3" 1205 | "@babel/parser" "^7.14.7" 1206 | "@istanbuljs/schema" "^0.1.2" 1207 | istanbul-lib-coverage "^3.2.0" 1208 | semver "^6.3.0" 1209 | 1210 | istanbul-lib-report@^3.0.0: 1211 | version "3.0.0" 1212 | resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" 1213 | integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== 1214 | dependencies: 1215 | istanbul-lib-coverage "^3.0.0" 1216 | make-dir "^3.0.0" 1217 | supports-color "^7.1.0" 1218 | 1219 | istanbul-lib-source-maps@^4.0.0: 1220 | version "4.0.1" 1221 | resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" 1222 | integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== 1223 | dependencies: 1224 | debug "^4.1.1" 1225 | istanbul-lib-coverage "^3.0.0" 1226 | source-map "^0.6.1" 1227 | 1228 | istanbul-reports@^3.1.3: 1229 | version "3.1.5" 1230 | resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.5.tgz#cc9a6ab25cb25659810e4785ed9d9fb742578bae" 1231 | integrity sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w== 1232 | dependencies: 1233 | html-escaper "^2.0.0" 1234 | istanbul-lib-report "^3.0.0" 1235 | 1236 | jest-changed-files@^29.2.0: 1237 | version "29.2.0" 1238 | resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.2.0.tgz#b6598daa9803ea6a4dce7968e20ab380ddbee289" 1239 | integrity sha512-qPVmLLyBmvF5HJrY7krDisx6Voi8DmlV3GZYX0aFNbaQsZeoz1hfxcCMbqDGuQCxU1dJy9eYc2xscE8QrCCYaA== 1240 | dependencies: 1241 | execa "^5.0.0" 1242 | p-limit "^3.1.0" 1243 | 1244 | jest-circus@^29.3.1: 1245 | version "29.3.1" 1246 | resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-29.3.1.tgz#177d07c5c0beae8ef2937a67de68f1e17bbf1b4a" 1247 | integrity sha512-wpr26sEvwb3qQQbdlmei+gzp6yoSSoSL6GsLPxnuayZSMrSd5Ka7IjAvatpIernBvT2+Ic6RLTg+jSebScmasg== 1248 | dependencies: 1249 | "@jest/environment" "^29.3.1" 1250 | "@jest/expect" "^29.3.1" 1251 | "@jest/test-result" "^29.3.1" 1252 | "@jest/types" "^29.3.1" 1253 | "@types/node" "*" 1254 | chalk "^4.0.0" 1255 | co "^4.6.0" 1256 | dedent "^0.7.0" 1257 | is-generator-fn "^2.0.0" 1258 | jest-each "^29.3.1" 1259 | jest-matcher-utils "^29.3.1" 1260 | jest-message-util "^29.3.1" 1261 | jest-runtime "^29.3.1" 1262 | jest-snapshot "^29.3.1" 1263 | jest-util "^29.3.1" 1264 | p-limit "^3.1.0" 1265 | pretty-format "^29.3.1" 1266 | slash "^3.0.0" 1267 | stack-utils "^2.0.3" 1268 | 1269 | jest-cli@^29.3.1: 1270 | version "29.3.1" 1271 | resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-29.3.1.tgz#e89dff427db3b1df50cea9a393ebd8640790416d" 1272 | integrity sha512-TO/ewvwyvPOiBBuWZ0gm04z3WWP8TIK8acgPzE4IxgsLKQgb377NYGrQLc3Wl/7ndWzIH2CDNNsUjGxwLL43VQ== 1273 | dependencies: 1274 | "@jest/core" "^29.3.1" 1275 | "@jest/test-result" "^29.3.1" 1276 | "@jest/types" "^29.3.1" 1277 | chalk "^4.0.0" 1278 | exit "^0.1.2" 1279 | graceful-fs "^4.2.9" 1280 | import-local "^3.0.2" 1281 | jest-config "^29.3.1" 1282 | jest-util "^29.3.1" 1283 | jest-validate "^29.3.1" 1284 | prompts "^2.0.1" 1285 | yargs "^17.3.1" 1286 | 1287 | jest-config@^29.3.1: 1288 | version "29.3.1" 1289 | resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-29.3.1.tgz#0bc3dcb0959ff8662957f1259947aedaefb7f3c6" 1290 | integrity sha512-y0tFHdj2WnTEhxmGUK1T7fgLen7YK4RtfvpLFBXfQkh2eMJAQq24Vx9472lvn5wg0MAO6B+iPfJfzdR9hJYalg== 1291 | dependencies: 1292 | "@babel/core" "^7.11.6" 1293 | "@jest/test-sequencer" "^29.3.1" 1294 | "@jest/types" "^29.3.1" 1295 | babel-jest "^29.3.1" 1296 | chalk "^4.0.0" 1297 | ci-info "^3.2.0" 1298 | deepmerge "^4.2.2" 1299 | glob "^7.1.3" 1300 | graceful-fs "^4.2.9" 1301 | jest-circus "^29.3.1" 1302 | jest-environment-node "^29.3.1" 1303 | jest-get-type "^29.2.0" 1304 | jest-regex-util "^29.2.0" 1305 | jest-resolve "^29.3.1" 1306 | jest-runner "^29.3.1" 1307 | jest-util "^29.3.1" 1308 | jest-validate "^29.3.1" 1309 | micromatch "^4.0.4" 1310 | parse-json "^5.2.0" 1311 | pretty-format "^29.3.1" 1312 | slash "^3.0.0" 1313 | strip-json-comments "^3.1.1" 1314 | 1315 | jest-diff@^29.3.1: 1316 | version "29.3.1" 1317 | resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.3.1.tgz#d8215b72fed8f1e647aed2cae6c752a89e757527" 1318 | integrity sha512-vU8vyiO7568tmin2lA3r2DP8oRvzhvRcD4DjpXc6uGveQodyk7CKLhQlCSiwgx3g0pFaE88/KLZ0yaTWMc4Uiw== 1319 | dependencies: 1320 | chalk "^4.0.0" 1321 | diff-sequences "^29.3.1" 1322 | jest-get-type "^29.2.0" 1323 | pretty-format "^29.3.1" 1324 | 1325 | jest-docblock@^29.2.0: 1326 | version "29.2.0" 1327 | resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.2.0.tgz#307203e20b637d97cee04809efc1d43afc641e82" 1328 | integrity sha512-bkxUsxTgWQGbXV5IENmfiIuqZhJcyvF7tU4zJ/7ioTutdz4ToB5Yx6JOFBpgI+TphRY4lhOyCWGNH/QFQh5T6A== 1329 | dependencies: 1330 | detect-newline "^3.0.0" 1331 | 1332 | jest-each@^29.3.1: 1333 | version "29.3.1" 1334 | resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-29.3.1.tgz#bc375c8734f1bb96625d83d1ca03ef508379e132" 1335 | integrity sha512-qrZH7PmFB9rEzCSl00BWjZYuS1BSOH8lLuC0azQE9lQrAx3PWGKHTDudQiOSwIy5dGAJh7KA0ScYlCP7JxvFYA== 1336 | dependencies: 1337 | "@jest/types" "^29.3.1" 1338 | chalk "^4.0.0" 1339 | jest-get-type "^29.2.0" 1340 | jest-util "^29.3.1" 1341 | pretty-format "^29.3.1" 1342 | 1343 | jest-environment-node@^29.3.1: 1344 | version "29.3.1" 1345 | resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.3.1.tgz#5023b32472b3fba91db5c799a0d5624ad4803e74" 1346 | integrity sha512-xm2THL18Xf5sIHoU7OThBPtuH6Lerd+Y1NLYiZJlkE3hbE+7N7r8uvHIl/FkZ5ymKXJe/11SQuf3fv4v6rUMag== 1347 | dependencies: 1348 | "@jest/environment" "^29.3.1" 1349 | "@jest/fake-timers" "^29.3.1" 1350 | "@jest/types" "^29.3.1" 1351 | "@types/node" "*" 1352 | jest-mock "^29.3.1" 1353 | jest-util "^29.3.1" 1354 | 1355 | jest-get-type@^29.2.0: 1356 | version "29.2.0" 1357 | resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.2.0.tgz#726646f927ef61d583a3b3adb1ab13f3a5036408" 1358 | integrity sha512-uXNJlg8hKFEnDgFsrCjznB+sTxdkuqiCL6zMgA75qEbAJjJYTs9XPrvDctrEig2GDow22T/LvHgO57iJhXB/UA== 1359 | 1360 | jest-haste-map@^29.3.1: 1361 | version "29.3.1" 1362 | resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-29.3.1.tgz#af83b4347f1dae5ee8c2fb57368dc0bb3e5af843" 1363 | integrity sha512-/FFtvoG1xjbbPXQLFef+WSU4yrc0fc0Dds6aRPBojUid7qlPqZvxdUBA03HW0fnVHXVCnCdkuoghYItKNzc/0A== 1364 | dependencies: 1365 | "@jest/types" "^29.3.1" 1366 | "@types/graceful-fs" "^4.1.3" 1367 | "@types/node" "*" 1368 | anymatch "^3.0.3" 1369 | fb-watchman "^2.0.0" 1370 | graceful-fs "^4.2.9" 1371 | jest-regex-util "^29.2.0" 1372 | jest-util "^29.3.1" 1373 | jest-worker "^29.3.1" 1374 | micromatch "^4.0.4" 1375 | walker "^1.0.8" 1376 | optionalDependencies: 1377 | fsevents "^2.3.2" 1378 | 1379 | jest-leak-detector@^29.3.1: 1380 | version "29.3.1" 1381 | resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-29.3.1.tgz#95336d020170671db0ee166b75cd8ef647265518" 1382 | integrity sha512-3DA/VVXj4zFOPagGkuqHnSQf1GZBmmlagpguxEERO6Pla2g84Q1MaVIB3YMxgUaFIaYag8ZnTyQgiZ35YEqAQA== 1383 | dependencies: 1384 | jest-get-type "^29.2.0" 1385 | pretty-format "^29.3.1" 1386 | 1387 | jest-matcher-utils@^29.3.1: 1388 | version "29.3.1" 1389 | resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.3.1.tgz#6e7f53512f80e817dfa148672bd2d5d04914a572" 1390 | integrity sha512-fkRMZUAScup3txIKfMe3AIZZmPEjWEdsPJFK3AIy5qRohWqQFg1qrmKfYXR9qEkNc7OdAu2N4KPHibEmy4HPeQ== 1391 | dependencies: 1392 | chalk "^4.0.0" 1393 | jest-diff "^29.3.1" 1394 | jest-get-type "^29.2.0" 1395 | pretty-format "^29.3.1" 1396 | 1397 | jest-message-util@^29.3.1: 1398 | version "29.3.1" 1399 | resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-29.3.1.tgz#37bc5c468dfe5120712053dd03faf0f053bd6adb" 1400 | integrity sha512-lMJTbgNcDm5z+6KDxWtqOFWlGQxD6XaYwBqHR8kmpkP+WWWG90I35kdtQHY67Ay5CSuydkTBbJG+tH9JShFCyA== 1401 | dependencies: 1402 | "@babel/code-frame" "^7.12.13" 1403 | "@jest/types" "^29.3.1" 1404 | "@types/stack-utils" "^2.0.0" 1405 | chalk "^4.0.0" 1406 | graceful-fs "^4.2.9" 1407 | micromatch "^4.0.4" 1408 | pretty-format "^29.3.1" 1409 | slash "^3.0.0" 1410 | stack-utils "^2.0.3" 1411 | 1412 | jest-mock@^29.3.1: 1413 | version "29.3.1" 1414 | resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-29.3.1.tgz#60287d92e5010979d01f218c6b215b688e0f313e" 1415 | integrity sha512-H8/qFDtDVMFvFP4X8NuOT3XRDzOUTz+FeACjufHzsOIBAxivLqkB1PoLCaJx9iPPQ8dZThHPp/G3WRWyMgA3JA== 1416 | dependencies: 1417 | "@jest/types" "^29.3.1" 1418 | "@types/node" "*" 1419 | jest-util "^29.3.1" 1420 | 1421 | jest-pnp-resolver@^1.2.2: 1422 | version "1.2.3" 1423 | resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e" 1424 | integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== 1425 | 1426 | jest-regex-util@^29.2.0: 1427 | version "29.2.0" 1428 | resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-29.2.0.tgz#82ef3b587e8c303357728d0322d48bbfd2971f7b" 1429 | integrity sha512-6yXn0kg2JXzH30cr2NlThF+70iuO/3irbaB4mh5WyqNIvLLP+B6sFdluO1/1RJmslyh/f9osnefECflHvTbwVA== 1430 | 1431 | jest-resolve-dependencies@^29.3.1: 1432 | version "29.3.1" 1433 | resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-29.3.1.tgz#a6a329708a128e68d67c49f38678a4a4a914c3bf" 1434 | integrity sha512-Vk0cYq0byRw2WluNmNWGqPeRnZ3p3hHmjJMp2dyyZeYIfiBskwq4rpiuGFR6QGAdbj58WC7HN4hQHjf2mpvrLA== 1435 | dependencies: 1436 | jest-regex-util "^29.2.0" 1437 | jest-snapshot "^29.3.1" 1438 | 1439 | jest-resolve@^29.3.1: 1440 | version "29.3.1" 1441 | resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-29.3.1.tgz#9a4b6b65387a3141e4a40815535c7f196f1a68a7" 1442 | integrity sha512-amXJgH/Ng712w3Uz5gqzFBBjxV8WFLSmNjoreBGMqxgCz5cH7swmBZzgBaCIOsvb0NbpJ0vgaSFdJqMdT+rADw== 1443 | dependencies: 1444 | chalk "^4.0.0" 1445 | graceful-fs "^4.2.9" 1446 | jest-haste-map "^29.3.1" 1447 | jest-pnp-resolver "^1.2.2" 1448 | jest-util "^29.3.1" 1449 | jest-validate "^29.3.1" 1450 | resolve "^1.20.0" 1451 | resolve.exports "^1.1.0" 1452 | slash "^3.0.0" 1453 | 1454 | jest-runner@^29.3.1: 1455 | version "29.3.1" 1456 | resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-29.3.1.tgz#a92a879a47dd096fea46bb1517b0a99418ee9e2d" 1457 | integrity sha512-oFvcwRNrKMtE6u9+AQPMATxFcTySyKfLhvso7Sdk/rNpbhg4g2GAGCopiInk1OP4q6gz3n6MajW4+fnHWlU3bA== 1458 | dependencies: 1459 | "@jest/console" "^29.3.1" 1460 | "@jest/environment" "^29.3.1" 1461 | "@jest/test-result" "^29.3.1" 1462 | "@jest/transform" "^29.3.1" 1463 | "@jest/types" "^29.3.1" 1464 | "@types/node" "*" 1465 | chalk "^4.0.0" 1466 | emittery "^0.13.1" 1467 | graceful-fs "^4.2.9" 1468 | jest-docblock "^29.2.0" 1469 | jest-environment-node "^29.3.1" 1470 | jest-haste-map "^29.3.1" 1471 | jest-leak-detector "^29.3.1" 1472 | jest-message-util "^29.3.1" 1473 | jest-resolve "^29.3.1" 1474 | jest-runtime "^29.3.1" 1475 | jest-util "^29.3.1" 1476 | jest-watcher "^29.3.1" 1477 | jest-worker "^29.3.1" 1478 | p-limit "^3.1.0" 1479 | source-map-support "0.5.13" 1480 | 1481 | jest-runtime@^29.3.1: 1482 | version "29.3.1" 1483 | resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-29.3.1.tgz#21efccb1a66911d6d8591276a6182f520b86737a" 1484 | integrity sha512-jLzkIxIqXwBEOZx7wx9OO9sxoZmgT2NhmQKzHQm1xwR1kNW/dn0OjxR424VwHHf1SPN6Qwlb5pp1oGCeFTQ62A== 1485 | dependencies: 1486 | "@jest/environment" "^29.3.1" 1487 | "@jest/fake-timers" "^29.3.1" 1488 | "@jest/globals" "^29.3.1" 1489 | "@jest/source-map" "^29.2.0" 1490 | "@jest/test-result" "^29.3.1" 1491 | "@jest/transform" "^29.3.1" 1492 | "@jest/types" "^29.3.1" 1493 | "@types/node" "*" 1494 | chalk "^4.0.0" 1495 | cjs-module-lexer "^1.0.0" 1496 | collect-v8-coverage "^1.0.0" 1497 | glob "^7.1.3" 1498 | graceful-fs "^4.2.9" 1499 | jest-haste-map "^29.3.1" 1500 | jest-message-util "^29.3.1" 1501 | jest-mock "^29.3.1" 1502 | jest-regex-util "^29.2.0" 1503 | jest-resolve "^29.3.1" 1504 | jest-snapshot "^29.3.1" 1505 | jest-util "^29.3.1" 1506 | slash "^3.0.0" 1507 | strip-bom "^4.0.0" 1508 | 1509 | jest-snapshot@^29.3.1: 1510 | version "29.3.1" 1511 | resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-29.3.1.tgz#17bcef71a453adc059a18a32ccbd594b8cc4e45e" 1512 | integrity sha512-+3JOc+s28upYLI2OJM4PWRGK9AgpsMs/ekNryUV0yMBClT9B1DF2u2qay8YxcQd338PPYSFNb0lsar1B49sLDA== 1513 | dependencies: 1514 | "@babel/core" "^7.11.6" 1515 | "@babel/generator" "^7.7.2" 1516 | "@babel/plugin-syntax-jsx" "^7.7.2" 1517 | "@babel/plugin-syntax-typescript" "^7.7.2" 1518 | "@babel/traverse" "^7.7.2" 1519 | "@babel/types" "^7.3.3" 1520 | "@jest/expect-utils" "^29.3.1" 1521 | "@jest/transform" "^29.3.1" 1522 | "@jest/types" "^29.3.1" 1523 | "@types/babel__traverse" "^7.0.6" 1524 | "@types/prettier" "^2.1.5" 1525 | babel-preset-current-node-syntax "^1.0.0" 1526 | chalk "^4.0.0" 1527 | expect "^29.3.1" 1528 | graceful-fs "^4.2.9" 1529 | jest-diff "^29.3.1" 1530 | jest-get-type "^29.2.0" 1531 | jest-haste-map "^29.3.1" 1532 | jest-matcher-utils "^29.3.1" 1533 | jest-message-util "^29.3.1" 1534 | jest-util "^29.3.1" 1535 | natural-compare "^1.4.0" 1536 | pretty-format "^29.3.1" 1537 | semver "^7.3.5" 1538 | 1539 | jest-util@^29.3.1: 1540 | version "29.3.1" 1541 | resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.3.1.tgz#1dda51e378bbcb7e3bc9d8ab651445591ed373e1" 1542 | integrity sha512-7YOVZaiX7RJLv76ZfHt4nbNEzzTRiMW/IiOG7ZOKmTXmoGBxUDefgMAxQubu6WPVqP5zSzAdZG0FfLcC7HOIFQ== 1543 | dependencies: 1544 | "@jest/types" "^29.3.1" 1545 | "@types/node" "*" 1546 | chalk "^4.0.0" 1547 | ci-info "^3.2.0" 1548 | graceful-fs "^4.2.9" 1549 | picomatch "^2.2.3" 1550 | 1551 | jest-validate@^29.3.1: 1552 | version "29.3.1" 1553 | resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.3.1.tgz#d56fefaa2e7d1fde3ecdc973c7f7f8f25eea704a" 1554 | integrity sha512-N9Lr3oYR2Mpzuelp1F8negJR3YE+L1ebk1rYA5qYo9TTY3f9OWdptLoNSPP9itOCBIRBqjt/S5XHlzYglLN67g== 1555 | dependencies: 1556 | "@jest/types" "^29.3.1" 1557 | camelcase "^6.2.0" 1558 | chalk "^4.0.0" 1559 | jest-get-type "^29.2.0" 1560 | leven "^3.1.0" 1561 | pretty-format "^29.3.1" 1562 | 1563 | jest-watcher@^29.3.1: 1564 | version "29.3.1" 1565 | resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-29.3.1.tgz#3341547e14fe3c0f79f9c3a4c62dbc3fc977fd4a" 1566 | integrity sha512-RspXG2BQFDsZSRKGCT/NiNa8RkQ1iKAjrO0//soTMWx/QUt+OcxMqMSBxz23PYGqUuWm2+m2mNNsmj0eIoOaFg== 1567 | dependencies: 1568 | "@jest/test-result" "^29.3.1" 1569 | "@jest/types" "^29.3.1" 1570 | "@types/node" "*" 1571 | ansi-escapes "^4.2.1" 1572 | chalk "^4.0.0" 1573 | emittery "^0.13.1" 1574 | jest-util "^29.3.1" 1575 | string-length "^4.0.1" 1576 | 1577 | jest-worker@^29.3.1: 1578 | version "29.3.1" 1579 | resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.3.1.tgz#e9462161017a9bb176380d721cab022661da3d6b" 1580 | integrity sha512-lY4AnnmsEWeiXirAIA0c9SDPbuCBq8IYuDVL8PMm0MZ2PEs2yPvRA/J64QBXuZp7CYKrDM/rmNrc9/i3KJQncw== 1581 | dependencies: 1582 | "@types/node" "*" 1583 | jest-util "^29.3.1" 1584 | merge-stream "^2.0.0" 1585 | supports-color "^8.0.0" 1586 | 1587 | jest@^29.3.1: 1588 | version "29.3.1" 1589 | resolved "https://registry.yarnpkg.com/jest/-/jest-29.3.1.tgz#c130c0d551ae6b5459b8963747fed392ddbde122" 1590 | integrity sha512-6iWfL5DTT0Np6UYs/y5Niu7WIfNv/wRTtN5RSXt2DIEft3dx3zPuw/3WJQBCJfmEzvDiEKwoqMbGD9n49+qLSA== 1591 | dependencies: 1592 | "@jest/core" "^29.3.1" 1593 | "@jest/types" "^29.3.1" 1594 | import-local "^3.0.2" 1595 | jest-cli "^29.3.1" 1596 | 1597 | js-tokens@^4.0.0: 1598 | version "4.0.0" 1599 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" 1600 | integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== 1601 | 1602 | js-yaml@^3.13.1: 1603 | version "3.14.1" 1604 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" 1605 | integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== 1606 | dependencies: 1607 | argparse "^1.0.7" 1608 | esprima "^4.0.0" 1609 | 1610 | jsesc@^2.5.1: 1611 | version "2.5.2" 1612 | resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" 1613 | integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== 1614 | 1615 | json-parse-even-better-errors@^2.3.0: 1616 | version "2.3.1" 1617 | resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" 1618 | integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== 1619 | 1620 | json5@^2.2.1: 1621 | version "2.2.1" 1622 | resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" 1623 | integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== 1624 | 1625 | kleur@^3.0.3: 1626 | version "3.0.3" 1627 | resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" 1628 | integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== 1629 | 1630 | leven@^3.1.0: 1631 | version "3.1.0" 1632 | resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" 1633 | integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== 1634 | 1635 | lines-and-columns@^1.1.6: 1636 | version "1.2.4" 1637 | resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" 1638 | integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== 1639 | 1640 | locate-path@^5.0.0: 1641 | version "5.0.0" 1642 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" 1643 | integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== 1644 | dependencies: 1645 | p-locate "^4.1.0" 1646 | 1647 | lru-cache@^6.0.0: 1648 | version "6.0.0" 1649 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" 1650 | integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== 1651 | dependencies: 1652 | yallist "^4.0.0" 1653 | 1654 | make-dir@^3.0.0: 1655 | version "3.1.0" 1656 | resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" 1657 | integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== 1658 | dependencies: 1659 | semver "^6.0.0" 1660 | 1661 | makeerror@1.0.12: 1662 | version "1.0.12" 1663 | resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" 1664 | integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== 1665 | dependencies: 1666 | tmpl "1.0.5" 1667 | 1668 | merge-stream@^2.0.0: 1669 | version "2.0.0" 1670 | resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" 1671 | integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== 1672 | 1673 | micromatch@^4.0.4: 1674 | version "4.0.5" 1675 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" 1676 | integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== 1677 | dependencies: 1678 | braces "^3.0.2" 1679 | picomatch "^2.3.1" 1680 | 1681 | mimic-fn@^2.1.0: 1682 | version "2.1.0" 1683 | resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" 1684 | integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== 1685 | 1686 | minimatch@^3.0.4, minimatch@^3.1.1: 1687 | version "3.1.2" 1688 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" 1689 | integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== 1690 | dependencies: 1691 | brace-expansion "^1.1.7" 1692 | 1693 | ms@2.1.2: 1694 | version "2.1.2" 1695 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" 1696 | integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== 1697 | 1698 | natural-compare@^1.4.0: 1699 | version "1.4.0" 1700 | resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" 1701 | integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== 1702 | 1703 | node-int64@^0.4.0: 1704 | version "0.4.0" 1705 | resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" 1706 | integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== 1707 | 1708 | node-releases@^2.0.6: 1709 | version "2.0.6" 1710 | resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503" 1711 | integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== 1712 | 1713 | normalize-path@^3.0.0: 1714 | version "3.0.0" 1715 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" 1716 | integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== 1717 | 1718 | npm-run-path@^4.0.1: 1719 | version "4.0.1" 1720 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" 1721 | integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== 1722 | dependencies: 1723 | path-key "^3.0.0" 1724 | 1725 | once@^1.3.0: 1726 | version "1.4.0" 1727 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 1728 | integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== 1729 | dependencies: 1730 | wrappy "1" 1731 | 1732 | onetime@^5.1.2: 1733 | version "5.1.2" 1734 | resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" 1735 | integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== 1736 | dependencies: 1737 | mimic-fn "^2.1.0" 1738 | 1739 | p-limit@^2.2.0: 1740 | version "2.3.0" 1741 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" 1742 | integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== 1743 | dependencies: 1744 | p-try "^2.0.0" 1745 | 1746 | p-limit@^3.1.0: 1747 | version "3.1.0" 1748 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" 1749 | integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== 1750 | dependencies: 1751 | yocto-queue "^0.1.0" 1752 | 1753 | p-locate@^4.1.0: 1754 | version "4.1.0" 1755 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" 1756 | integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== 1757 | dependencies: 1758 | p-limit "^2.2.0" 1759 | 1760 | p-try@^2.0.0: 1761 | version "2.2.0" 1762 | resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" 1763 | integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== 1764 | 1765 | parse-json@^5.2.0: 1766 | version "5.2.0" 1767 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" 1768 | integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== 1769 | dependencies: 1770 | "@babel/code-frame" "^7.0.0" 1771 | error-ex "^1.3.1" 1772 | json-parse-even-better-errors "^2.3.0" 1773 | lines-and-columns "^1.1.6" 1774 | 1775 | path-exists@^4.0.0: 1776 | version "4.0.0" 1777 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" 1778 | integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== 1779 | 1780 | path-is-absolute@^1.0.0: 1781 | version "1.0.1" 1782 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 1783 | integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== 1784 | 1785 | path-key@^3.0.0, path-key@^3.1.0: 1786 | version "3.1.1" 1787 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" 1788 | integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== 1789 | 1790 | path-parse@^1.0.7: 1791 | version "1.0.7" 1792 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" 1793 | integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== 1794 | 1795 | picocolors@^1.0.0: 1796 | version "1.0.0" 1797 | resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" 1798 | integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== 1799 | 1800 | picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: 1801 | version "2.3.1" 1802 | resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" 1803 | integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== 1804 | 1805 | pirates@^4.0.4: 1806 | version "4.0.5" 1807 | resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" 1808 | integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== 1809 | 1810 | pkg-dir@^4.2.0: 1811 | version "4.2.0" 1812 | resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" 1813 | integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== 1814 | dependencies: 1815 | find-up "^4.0.0" 1816 | 1817 | pretty-format@^29.3.1: 1818 | version "29.3.1" 1819 | resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.3.1.tgz#1841cac822b02b4da8971dacb03e8a871b4722da" 1820 | integrity sha512-FyLnmb1cYJV8biEIiRyzRFvs2lry7PPIvOqKVe1GCUEYg4YGmlx1qG9EJNMxArYm7piII4qb8UV1Pncq5dxmcg== 1821 | dependencies: 1822 | "@jest/schemas" "^29.0.0" 1823 | ansi-styles "^5.0.0" 1824 | react-is "^18.0.0" 1825 | 1826 | prompts@^2.0.1: 1827 | version "2.4.2" 1828 | resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" 1829 | integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== 1830 | dependencies: 1831 | kleur "^3.0.3" 1832 | sisteransi "^1.0.5" 1833 | 1834 | react-is@^18.0.0: 1835 | version "18.2.0" 1836 | resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" 1837 | integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== 1838 | 1839 | require-directory@^2.1.1: 1840 | version "2.1.1" 1841 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 1842 | integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== 1843 | 1844 | resolve-cwd@^3.0.0: 1845 | version "3.0.0" 1846 | resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" 1847 | integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== 1848 | dependencies: 1849 | resolve-from "^5.0.0" 1850 | 1851 | resolve-from@^5.0.0: 1852 | version "5.0.0" 1853 | resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" 1854 | integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== 1855 | 1856 | resolve.exports@^1.1.0: 1857 | version "1.1.0" 1858 | resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9" 1859 | integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== 1860 | 1861 | resolve@^1.20.0: 1862 | version "1.22.1" 1863 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" 1864 | integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== 1865 | dependencies: 1866 | is-core-module "^2.9.0" 1867 | path-parse "^1.0.7" 1868 | supports-preserve-symlinks-flag "^1.0.0" 1869 | 1870 | semver@^6.0.0, semver@^6.3.0: 1871 | version "6.3.0" 1872 | resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" 1873 | integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== 1874 | 1875 | semver@^7.3.5: 1876 | version "7.3.8" 1877 | resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" 1878 | integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== 1879 | dependencies: 1880 | lru-cache "^6.0.0" 1881 | 1882 | shebang-command@^2.0.0: 1883 | version "2.0.0" 1884 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" 1885 | integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== 1886 | dependencies: 1887 | shebang-regex "^3.0.0" 1888 | 1889 | shebang-regex@^3.0.0: 1890 | version "3.0.0" 1891 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" 1892 | integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== 1893 | 1894 | signal-exit@^3.0.3, signal-exit@^3.0.7: 1895 | version "3.0.7" 1896 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" 1897 | integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== 1898 | 1899 | sisteransi@^1.0.5: 1900 | version "1.0.5" 1901 | resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" 1902 | integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== 1903 | 1904 | slash@^3.0.0: 1905 | version "3.0.0" 1906 | resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" 1907 | integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== 1908 | 1909 | source-map-support@0.5.13: 1910 | version "0.5.13" 1911 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" 1912 | integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== 1913 | dependencies: 1914 | buffer-from "^1.0.0" 1915 | source-map "^0.6.0" 1916 | 1917 | source-map@^0.6.0, source-map@^0.6.1: 1918 | version "0.6.1" 1919 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" 1920 | integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== 1921 | 1922 | sprintf-js@~1.0.2: 1923 | version "1.0.3" 1924 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 1925 | integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== 1926 | 1927 | stack-utils@^2.0.3: 1928 | version "2.0.6" 1929 | resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f" 1930 | integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ== 1931 | dependencies: 1932 | escape-string-regexp "^2.0.0" 1933 | 1934 | string-length@^4.0.1: 1935 | version "4.0.2" 1936 | resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" 1937 | integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== 1938 | dependencies: 1939 | char-regex "^1.0.2" 1940 | strip-ansi "^6.0.0" 1941 | 1942 | string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: 1943 | version "4.2.3" 1944 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" 1945 | integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== 1946 | dependencies: 1947 | emoji-regex "^8.0.0" 1948 | is-fullwidth-code-point "^3.0.0" 1949 | strip-ansi "^6.0.1" 1950 | 1951 | strip-ansi@^6.0.0, strip-ansi@^6.0.1: 1952 | version "6.0.1" 1953 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" 1954 | integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== 1955 | dependencies: 1956 | ansi-regex "^5.0.1" 1957 | 1958 | strip-bom@^4.0.0: 1959 | version "4.0.0" 1960 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" 1961 | integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== 1962 | 1963 | strip-final-newline@^2.0.0: 1964 | version "2.0.0" 1965 | resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" 1966 | integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== 1967 | 1968 | strip-json-comments@^3.1.1: 1969 | version "3.1.1" 1970 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" 1971 | integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== 1972 | 1973 | supports-color@^5.3.0: 1974 | version "5.5.0" 1975 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 1976 | integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== 1977 | dependencies: 1978 | has-flag "^3.0.0" 1979 | 1980 | supports-color@^7.1.0: 1981 | version "7.2.0" 1982 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" 1983 | integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== 1984 | dependencies: 1985 | has-flag "^4.0.0" 1986 | 1987 | supports-color@^8.0.0: 1988 | version "8.1.1" 1989 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" 1990 | integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== 1991 | dependencies: 1992 | has-flag "^4.0.0" 1993 | 1994 | supports-preserve-symlinks-flag@^1.0.0: 1995 | version "1.0.0" 1996 | resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" 1997 | integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== 1998 | 1999 | test-exclude@^6.0.0: 2000 | version "6.0.0" 2001 | resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" 2002 | integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== 2003 | dependencies: 2004 | "@istanbuljs/schema" "^0.1.2" 2005 | glob "^7.1.4" 2006 | minimatch "^3.0.4" 2007 | 2008 | tmpl@1.0.5: 2009 | version "1.0.5" 2010 | resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" 2011 | integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== 2012 | 2013 | to-fast-properties@^2.0.0: 2014 | version "2.0.0" 2015 | resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" 2016 | integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== 2017 | 2018 | to-regex-range@^5.0.1: 2019 | version "5.0.1" 2020 | resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" 2021 | integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== 2022 | dependencies: 2023 | is-number "^7.0.0" 2024 | 2025 | type-detect@4.0.8: 2026 | version "4.0.8" 2027 | resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" 2028 | integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== 2029 | 2030 | type-fest@^0.21.3: 2031 | version "0.21.3" 2032 | resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" 2033 | integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== 2034 | 2035 | update-browserslist-db@^1.0.9: 2036 | version "1.0.10" 2037 | resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" 2038 | integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ== 2039 | dependencies: 2040 | escalade "^3.1.1" 2041 | picocolors "^1.0.0" 2042 | 2043 | v8-to-istanbul@^9.0.1: 2044 | version "9.0.1" 2045 | resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz#b6f994b0b5d4ef255e17a0d17dc444a9f5132fa4" 2046 | integrity sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w== 2047 | dependencies: 2048 | "@jridgewell/trace-mapping" "^0.3.12" 2049 | "@types/istanbul-lib-coverage" "^2.0.1" 2050 | convert-source-map "^1.6.0" 2051 | 2052 | walker@^1.0.8: 2053 | version "1.0.8" 2054 | resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" 2055 | integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== 2056 | dependencies: 2057 | makeerror "1.0.12" 2058 | 2059 | which@^2.0.1: 2060 | version "2.0.2" 2061 | resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" 2062 | integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== 2063 | dependencies: 2064 | isexe "^2.0.0" 2065 | 2066 | wrap-ansi@^7.0.0: 2067 | version "7.0.0" 2068 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" 2069 | integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== 2070 | dependencies: 2071 | ansi-styles "^4.0.0" 2072 | string-width "^4.1.0" 2073 | strip-ansi "^6.0.0" 2074 | 2075 | wrappy@1: 2076 | version "1.0.2" 2077 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 2078 | integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== 2079 | 2080 | write-file-atomic@^4.0.1: 2081 | version "4.0.2" 2082 | resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.2.tgz#a9df01ae5b77858a027fd2e80768ee433555fcfd" 2083 | integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg== 2084 | dependencies: 2085 | imurmurhash "^0.1.4" 2086 | signal-exit "^3.0.7" 2087 | 2088 | y18n@^5.0.5: 2089 | version "5.0.8" 2090 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" 2091 | integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== 2092 | 2093 | yallist@^4.0.0: 2094 | version "4.0.0" 2095 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" 2096 | integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== 2097 | 2098 | yargs-parser@^21.1.1: 2099 | version "21.1.1" 2100 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" 2101 | integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== 2102 | 2103 | yargs@^17.3.1: 2104 | version "17.6.2" 2105 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.6.2.tgz#2e23f2944e976339a1ee00f18c77fedee8332541" 2106 | integrity sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw== 2107 | dependencies: 2108 | cliui "^8.0.1" 2109 | escalade "^3.1.1" 2110 | get-caller-file "^2.0.5" 2111 | require-directory "^2.1.1" 2112 | string-width "^4.2.3" 2113 | y18n "^5.0.5" 2114 | yargs-parser "^21.1.1" 2115 | 2116 | yocto-queue@^0.1.0: 2117 | version "0.1.0" 2118 | resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" 2119 | integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== 2120 | --------------------------------------------------------------------------------