├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── index.ts ├── lib ├── deleteUnusedM2OItems.ts ├── deletingM2AItems.ts ├── replaceDeletedUserReferences.ts ├── resetFieldsHiddenByOption.ts ├── setProjectSettingsFromEnvVars.ts └── types.ts ├── package-lock.json ├── package.json └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | dist -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Directus Hook Library 2 | 3 | [![NPM version](https://img.shields.io/npm/v/directus-hook-library)](https://www.npmjs.com/package/directus-hook-library) 4 | 5 | A collection of customizable hooks for Directus. This is not an extension, but a library of scripts that could be used inside a Directus hook extension. 6 | 7 | ## Installation & Usage 8 | 9 | First [create a Directus Extension](https://docs.directus.io/extensions/creating-extensions.html) and during setup choose the extension type `hook`. 10 | 11 | Inside the extension folder install `directus-hook-library`: 12 | 13 | ```sh 14 | npm install directus-hook-library 15 | ``` 16 | 17 | Import it in `src/index.ts`, like: 18 | 19 | ```js 20 | import { setProjectSettingsFromEnvVars } from "directus-hook-library"; 21 | ``` 22 | 23 | Have a look at the examples below. 24 | 25 | > _Tip:_ You can use multiple of these hook scripts inside the same Directus hook. 26 | 27 | ## Hooks & Examples 28 | 29 | ### `deleteUnusedM2OItems` 30 | 31 | Used to delete related M2O items that loose their relation and should not be kept, which is not possible via directus itself. This makes sense for a M2O relation that is used like a O2O relation. 32 | 33 | Delete all `oneCollection` items that loose their relationship to a `manyCollections` item. 34 | 35 | **(!) Important**: You have to specify a (hidden) reverse relationship `O2M` in your `oneCollection` inside Directus to make this work. 36 | 37 |
Example 38 | 39 | ```ts 40 | // src/index.ts 41 | import { defineHook } from "@directus/extensions-sdk"; 42 | import { deleteUnusedM2OItems } from "directus-hook-library"; 43 | 44 | export default defineHook((register, context) => { 45 | deleteUnusedM2OItems(register, context, { 46 | oneCollection: "meta_infos", 47 | manyCollections: { 48 | pages: "pages", 49 | posts: "posts", 50 | }, 51 | }); 52 | }); 53 | ``` 54 | 55 |
56 | 57 | ### `deleteUnusedM2AItems` 58 | 59 | Used to delete related M2A items that loose their relation and should not be kept, which is not possible via directus itself. 60 | 61 | Goes through all `junctionCollections` and stores the keys for each found `anyCollection` item. Then deletes all `anyCollections` items that are not included in the stored keys. 62 | 63 |
Example 64 | 65 | ```ts 66 | // src/index.ts 67 | import { defineHook } from "@directus/extensions-sdk"; 68 | import { 69 | toJunctionCollectionM2A, 70 | toAnyCollectionM2A, 71 | deleteUnusedM2AItems, 72 | } from "directus-hook-library"; 73 | 74 | export default defineHook((register, context) => { 75 | deleteUnusedM2AItems(register, context, { 76 | anyCollections: [ 77 | "gallery", 78 | "video", 79 | "definition_list", 80 | "related_content", 81 | ].map(toAnyCollectionM2A), 82 | junctionCollections: ["page_editor_nodes", "post_editor_nodes"].map( 83 | toJunctionCollectionM2A 84 | ), 85 | }); 86 | }); 87 | ``` 88 | 89 | **`toAnyCollectionM2A`** ... maps the array elements to objects of type `AnyCollection` with a default `key` field of `“id”`. 90 | 91 | **`toJunctionCollectionM2A`** ... maps the array elements to objects of type `JunctionCollection` with a default `foreignKey` field of `“item”` and a default `foreignCollection` field of `“collection”` 92 | 93 |
94 | 95 | ### `preventDeletingM2AItems` 96 | 97 | Used for M2A items to prevent their deletion, which is not possible via directus itself. 98 | 99 | Goes through all `junctionCollections` and searches for the `relatedCollection` items to delete. If found, prevents deletion. 100 | 101 | > Find M2A items by searching the schema for `“one_allowed_collections”` and look for collections that are deletable/reachable by the app/user (`many_collection` goes to the `junctionCollections`) 102 | 103 |
Example 104 | 105 | ```ts 106 | // src/index.ts 107 | import { defineHook } from "@directus/extensions-sdk"; 108 | import { 109 | toJunctionCollectionM2A, 110 | preventDeletingM2AItems, 111 | } from "directus-hook-library"; 112 | 113 | export default defineHook((register, context) => { 114 | preventDeletingM2AItems(register, context, { 115 | relatedCollections: ["video"], 116 | junctionCollections: ["page_editor_nodes", "post_editor_nodes"].map( 117 | toJunctionCollectionM2A 118 | ), 119 | }); 120 | }); 121 | ``` 122 | 123 | **`toJunctionCollectionM2A`** ... maps the array elements to objects of type `JunctionCollection` with a default `foreignKey` field of `“item”` and a default `foreignCollection` field of `“collection”` 124 | 125 |
126 | 127 | ### `replaceDeletedUserReferences` 128 | 129 | This replaces the reference to a deleted user with a reference to the current user in the directus_files collection. 130 | 131 |
Example 132 | 133 | ```ts 134 | // src/index.ts 135 | import { defineHook } from "@directus/extensions-sdk"; 136 | import { replaceDeletedUserReferences } from "directus-hook-library"; 137 | 138 | export default defineHook((register, context) => { 139 | replaceDeletedUserReferences(register, context); 140 | }); 141 | ``` 142 | 143 |
144 | 145 | ### `resetFieldsHiddenByOption` 146 | 147 | Set fields to null that have a value but are hidden by a condition. 148 | 149 |
Example 150 | 151 | ```ts 152 | // src/index.ts 153 | import { defineHook } from "@directus/extensions-sdk"; 154 | import { resetFieldsHiddenByOption } from "directus-hook-library"; 155 | 156 | export default defineHook((register, context) => { 157 | resetFieldsHiddenByOption(register, context, { 158 | collection: "conditional", 159 | optionsField: "detail", 160 | resetGroups: [ 161 | { 162 | not: ["yes"], 163 | nullify: ["title", "description"], 164 | }, 165 | { 166 | not: ["no"], 167 | nullify: ["external_link"], 168 | }, 169 | ], 170 | }); 171 | }); 172 | ``` 173 | 174 |
175 | 176 | ### `setProjectSettingsFromEnvVars` 177 | 178 | Used for setting project settings from ENV vars like, `PROJECT_URL`. 179 | 180 | This overwrites the values for `settings` in the Project Settings when starting Directus. 181 | 182 |
Example 183 | 184 | ```ts 185 | // src/index.ts 186 | import { defineHook } from "@directus/extensions-sdk"; 187 | import { setProjectSettingsFromEnvVars } from "directus-hook-library"; 188 | 189 | export default defineHook((register, context) => { 190 | setProjectSettingsFromEnvVars(register, context, [ 191 | "project_name", 192 | "project_descriptor", 193 | "project_url", 194 | ]); 195 | }); 196 | ``` 197 | 198 | For ENV variables like: 199 | 200 | ```.env 201 | PROJECT_NAME=Directus 202 | PROJECT_DESCRIPTOR=Hook 203 | PROJECT_URL=http://localhost:3000 204 | ``` 205 | 206 |
207 | -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- 1 | import deleteUnusedM2OItems from "./lib/deleteUnusedM2OItems"; 2 | import { 3 | toJunctionCollectionM2A, 4 | preventDeletingM2AItems, 5 | deleteUnusedM2AItems, 6 | toAnyCollectionM2A, 7 | } from "./lib/deletingM2AItems"; 8 | import replaceDeletedUserReferences from "./lib/replaceDeletedUserReferences"; 9 | import resetFieldsHiddenByOption from "./lib/resetFieldsHiddenByOption"; 10 | import setProjectSettingsFromEnvVars from "./lib/setProjectSettingsFromEnvVars"; 11 | 12 | export { 13 | deleteUnusedM2OItems, 14 | toJunctionCollectionM2A, 15 | preventDeletingM2AItems, 16 | deleteUnusedM2AItems, 17 | toAnyCollectionM2A, 18 | replaceDeletedUserReferences, 19 | resetFieldsHiddenByOption, 20 | setProjectSettingsFromEnvVars, 21 | }; 22 | -------------------------------------------------------------------------------- /lib/deleteUnusedM2OItems.ts: -------------------------------------------------------------------------------- 1 | // This deletes all items from a collection `oneCollection`, where all (reverse) related fields `manyField of manyCollections` are null 2 | // This makes sense for a M2O relation that is used like a O2O relation 3 | 4 | import type { HookExtensionContext } from "@directus/extensions"; 5 | import type { EventContext } from "@directus/types"; 6 | import type { RegisterFunctions } from "./types"; 7 | 8 | type ManyField = string; 9 | 10 | type ManyCollection = string; 11 | 12 | type O2MContext = { 13 | /** collection that potentially have unused items */ 14 | oneCollection: string; 15 | /** collections and their reverse key field, that are related to the `oneCollection` item */ 16 | manyCollections: { 17 | [key: ManyField]: ManyCollection; 18 | }; 19 | }; 20 | 21 | /** 22 | * Delete all `oneCollection` items that loose their relationship to a `manyCollections` item. 23 | * 24 | * Used to delete related M2O items that should not be kept, which is not possible via directus itself. 25 | * 26 | * _Note_: You have to specify a (hidden) reverse relationship `O2M` in your `oneCollection` inside Directus to make this work. 27 | */ 28 | export default function ( 29 | { action }: RegisterFunctions, 30 | { services, getSchema }: HookExtensionContext, 31 | { oneCollection, manyCollections }: O2MContext 32 | ) { 33 | action("items.update", handler); 34 | action("items.delete", handler); 35 | 36 | async function handler(meta: Record, context: EventContext) { 37 | const _manyCollections = Object.values(manyCollections); 38 | if (!_manyCollections.includes(meta.collection)) return; 39 | 40 | const _manyFields = Object.keys(manyCollections); 41 | 42 | const { ItemsService } = services; 43 | const itemsService = new ItemsService(oneCollection, { 44 | ...context, 45 | schema: await getSchema(), 46 | }); 47 | 48 | await itemsService.deleteByQuery({ 49 | limit: -1, 50 | filter: { 51 | _and: _manyFields.map((field) => ({ 52 | [field]: { _null: true }, 53 | })), 54 | }, 55 | }); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /lib/deletingM2AItems.ts: -------------------------------------------------------------------------------- 1 | import { createError } from "@directus/errors"; 2 | import type { HookExtensionContext } from "@directus/extensions"; 3 | import type { EventContext, PrimaryKey } from "@directus/types"; 4 | import type { RegisterFunctions } from "./types"; 5 | 6 | type JunctionCollection = { 7 | name: string; 8 | foreignKey: string; 9 | foreignCollection: string; 10 | }; 11 | 12 | type AnyCollection = { 13 | name: string; 14 | key: string; 15 | }; 16 | 17 | type ContextPreventDeletion = { 18 | /** collections which items should not be deleted, if they are related to a junctionCollection */ 19 | relatedCollections: string[]; 20 | /** collections to search in */ 21 | junctionCollections: JunctionCollection[]; 22 | }; 23 | 24 | type ContextReallyDeleteUnused = { 25 | /** collections to search in */ 26 | junctionCollections: JunctionCollection[]; 27 | /** collections that potentially have unused items */ 28 | anyCollections: AnyCollection[]; 29 | }; 30 | 31 | /** maps the array elements to objects of type JunctionCollection with a default `foreignKey` field of `“item”` and a default `foreignCollection` field of `“collection”` */ 32 | export const toJunctionCollectionM2A = (name: string): JunctionCollection => ({ 33 | name, 34 | foreignKey: "item", 35 | foreignCollection: "collection", 36 | }); 37 | 38 | /** maps the array elements to objects of type AnyCollection with a default `key` field of `“id”` */ 39 | export const toAnyCollectionM2A = (name: string): AnyCollection => ({ 40 | name, 41 | key: "id", 42 | }); 43 | 44 | /** 45 | * Go through all `junctionCollections` and search for the `relatedCollection` items to delete. If found, prevent deletion. 46 | * 47 | * Used for M2A items to prevent their deletion, which is not possible via directus itself. 48 | * 49 | * Find M2A items by searching the schema for `“one_allowed_collections”` and look for collections that are deletable/reachable by the app/user (`many_collection` goes to the `junctionCollections`) 50 | */ 51 | export const preventDeletingM2AItems = ( 52 | { filter }: RegisterFunctions, 53 | { services, getSchema }: HookExtensionContext, 54 | { relatedCollections, junctionCollections }: ContextPreventDeletion 55 | ) => { 56 | const { ItemsService } = services; 57 | 58 | for (const collection of relatedCollections) { 59 | filter(`${collection}.items.delete`, handler); 60 | } 61 | 62 | async function handler( 63 | itemsToDelete: any, 64 | meta: Record, 65 | context: EventContext 66 | ) { 67 | for (const itemToDelete of itemsToDelete) { 68 | for (const junctionCollection of junctionCollections) { 69 | const itemsService = new ItemsService(junctionCollection.name, { 70 | ...context, 71 | schema: await getSchema(), 72 | }); 73 | 74 | const relatedItems = await itemsService.readByQuery({ 75 | limit: -1, 76 | filter: { 77 | _and: [ 78 | { 79 | [junctionCollection.foreignKey]: { 80 | _eq: itemToDelete, 81 | }, 82 | }, 83 | { 84 | [junctionCollection.foreignCollection!]: { 85 | _eq: meta.collection, 86 | }, 87 | }, 88 | ], 89 | }, 90 | fields: [], 91 | }); 92 | 93 | if (relatedItems?.length) { 94 | const InvalidDeletionException = createError( 95 | "InvalidDeletionException", 96 | `This item is related to “${junctionCollection.name}” and therefore cannot be deleted!` 97 | ); 98 | throw new InvalidDeletionException(); 99 | } 100 | } 101 | } 102 | 103 | return itemsToDelete; 104 | } 105 | }; 106 | 107 | /** 108 | * Go through all `junctionCollections` and store the keys for each found `anyCollection` item. Then delete all `anyCollections` items that are not included in the stored keys. 109 | * 110 | * Used to delete related M2A items that should not be kept, which is not possible via directus itself. 111 | */ 112 | export const deleteUnusedM2AItems = ( 113 | { action }: RegisterFunctions, 114 | { services, getSchema }: HookExtensionContext, 115 | { anyCollections, junctionCollections }: ContextReallyDeleteUnused 116 | ) => { 117 | const { ItemsService } = services; 118 | 119 | action("items.delete", handler); 120 | 121 | async function handler(meta: Record, context: EventContext) { 122 | for (const anyCollection of anyCollections) { 123 | const usedAnyCollectionItems = await _getUsedAnyCollectionItems( 124 | anyCollection 125 | ); 126 | 127 | const anyItemsService = new ItemsService(anyCollection.name, { 128 | ...context, 129 | schema: await getSchema(), 130 | }); 131 | 132 | await anyItemsService.deleteByQuery({ 133 | limit: -1, 134 | filter: { 135 | [anyCollection.key]: { 136 | _nin: usedAnyCollectionItems, 137 | }, 138 | }, 139 | }); 140 | } 141 | 142 | async function _getUsedAnyCollectionItems( 143 | anyCollection: AnyCollection 144 | ) { 145 | const usedItems: PrimaryKey[] = []; 146 | 147 | for (const junctionCollection of junctionCollections) { 148 | const junctionItemsService = new ItemsService( 149 | junctionCollection.name, 150 | { 151 | ...context, 152 | schema: await getSchema(), 153 | } 154 | ); 155 | 156 | const anyCollectionItems = 157 | await junctionItemsService.readByQuery({ 158 | limit: -1, 159 | filter: { 160 | [junctionCollection.foreignCollection!]: { 161 | _eq: anyCollection.name, 162 | }, 163 | }, 164 | fields: [junctionCollection.foreignKey], 165 | }); 166 | 167 | anyCollectionItems.forEach((item: any) => { 168 | const id = item[junctionCollection.foreignKey]; 169 | if (!id) return; 170 | 171 | usedItems.push(id); 172 | }); 173 | } 174 | 175 | return usedItems; 176 | } 177 | } 178 | }; 179 | -------------------------------------------------------------------------------- /lib/replaceDeletedUserReferences.ts: -------------------------------------------------------------------------------- 1 | // This replaces the reference to a deleted user with a reference to the current user in the directus_files collection. 2 | 3 | import type { HookExtensionContext } from "@directus/extensions"; 4 | import type { RegisterFunctions } from "./types"; 5 | 6 | export default function ( 7 | { filter }: RegisterFunctions, 8 | { services, getSchema }: HookExtensionContext 9 | ) { 10 | const { FilesService } = services; 11 | 12 | filter("users.delete", async (input, meta, context) => { 13 | const usersToDelete = input; 14 | const { 15 | accountability: { user }, 16 | } = context as any; 17 | const filesService = new FilesService({ 18 | ...context, 19 | schema: await getSchema(), 20 | }); 21 | 22 | await filesService.updateByQuery( 23 | { 24 | limit: -1, 25 | filter: { uploaded_by: { _in: usersToDelete } }, 26 | }, 27 | { uploaded_by: user } 28 | ); 29 | await filesService.updateByQuery( 30 | { 31 | limit: -1, 32 | filter: { modified_by: { _in: usersToDelete } }, 33 | }, 34 | { modified_by: user } 35 | ); 36 | 37 | return input; 38 | }); 39 | } 40 | -------------------------------------------------------------------------------- /lib/resetFieldsHiddenByOption.ts: -------------------------------------------------------------------------------- 1 | import type { RegisterFunctions } from "./types"; 2 | import type { HookExtensionContext } from "@directus/extensions"; 3 | 4 | type ResetGroup = { 5 | not: string[]; 6 | nullify: string[]; 7 | }; 8 | 9 | type ResetContext = { 10 | collection: string; 11 | optionsField: string; 12 | resetGroups: ResetGroup[]; 13 | }; 14 | 15 | export default function ( 16 | { filter }: RegisterFunctions, 17 | context: HookExtensionContext, 18 | { collection, optionsField, resetGroups }: ResetContext 19 | ) { 20 | filter(`${collection}.items.create`, handler); 21 | filter(`${collection}.items.update`, handler); 22 | 23 | async function handler(input: any) { 24 | if (input.hasOwnProperty(optionsField)) { 25 | _resetBySelectedOption(input[optionsField]); 26 | return input; 27 | } 28 | 29 | return input; 30 | 31 | function _resetBySelectedOption(selectedOption: string) { 32 | resetGroups.forEach((resetGroup) => { 33 | if (!resetGroup.not.includes(selectedOption)) { 34 | resetGroup.nullify.forEach( 35 | (field) => (input[field] = null) 36 | ); 37 | } 38 | }); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/setProjectSettingsFromEnvVars.ts: -------------------------------------------------------------------------------- 1 | // This overwrites the values for `settings` in the Project Settings when starting Directus 2 | 3 | import type { HookExtensionContext } from "@directus/extensions"; 4 | import type { RegisterFunctions } from "./types"; 5 | 6 | export default function ( 7 | { action }: RegisterFunctions, 8 | { services, getSchema }: HookExtensionContext, 9 | settings: string[] 10 | ) { 11 | const { SettingsService } = services; 12 | const upsert: Record = {}; 13 | 14 | settings.forEach((prop) => { 15 | const envProp = prop.toUpperCase(); 16 | if (process.env[envProp]) upsert[prop] = process.env[envProp] as string; 17 | }); 18 | 19 | action("server.start", async (_server, context) => { 20 | const settingsService = new SettingsService({ 21 | ...context, 22 | schema: await getSchema(), 23 | }); 24 | await settingsService.upsertSingleton(upsert); 25 | }); 26 | } 27 | -------------------------------------------------------------------------------- /lib/types.ts: -------------------------------------------------------------------------------- 1 | import type { 2 | FilterHandler, 3 | ActionHandler, 4 | InitHandler, 5 | ScheduleHandler, 6 | EmbedHandler, 7 | } from "@directus/types"; 8 | 9 | // Copied from @directus/types/hooks.d.ts 10 | export type RegisterFunctions = { 11 | filter: (event: string, handler: FilterHandler) => void; 12 | action: (event: string, handler: ActionHandler) => void; 13 | init: (event: string, handler: InitHandler) => void; 14 | schedule: (cron: string, handler: ScheduleHandler) => void; 15 | embed: (position: "head" | "body", code: string | EmbedHandler) => void; 16 | }; 17 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "directus-hook-library", 3 | "version": "0.0.5", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "directus-hook-library", 9 | "version": "0.0.5", 10 | "license": "GPL-3.0", 11 | "dependencies": { 12 | "@directus/errors": "^0.2.0", 13 | "@directus/extensions": "^0.1.0", 14 | "@directus/types": "^11.0.1", 15 | "@types/node": "^20.8.9", 16 | "typescript": "^5.2.2" 17 | } 18 | }, 19 | "node_modules/@babel/parser": { 20 | "version": "7.23.0", 21 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", 22 | "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", 23 | "bin": { 24 | "parser": "bin/babel-parser.js" 25 | }, 26 | "engines": { 27 | "node": ">=6.0.0" 28 | } 29 | }, 30 | "node_modules/@babel/runtime": { 31 | "version": "7.23.2", 32 | "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz", 33 | "integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==", 34 | "dependencies": { 35 | "regenerator-runtime": "^0.14.0" 36 | }, 37 | "engines": { 38 | "node": ">=6.9.0" 39 | } 40 | }, 41 | "node_modules/@directus/constants": { 42 | "version": "11.0.1", 43 | "resolved": "https://registry.npmjs.org/@directus/constants/-/constants-11.0.1.tgz", 44 | "integrity": "sha512-/VulX3IJyXJHJKYh4VUrrYlIwBpjJdt1lRh9Y/4khyANbtq88gQuzLah1GLzG0yffRRipBkdWJd2EUo+oC/f1A==", 45 | "dependencies": { 46 | "zod": "3.22.4" 47 | }, 48 | "funding": { 49 | "url": "https://github.com/directus/directus?sponsor=1" 50 | } 51 | }, 52 | "node_modules/@directus/errors": { 53 | "version": "0.2.0", 54 | "resolved": "https://registry.npmjs.org/@directus/errors/-/errors-0.2.0.tgz", 55 | "integrity": "sha512-PQmR4G7+dQ/ID6FatPL//o++J3FdjY/mc/p/EcaYsX+6DYVLyQSaJhA8/o55W0i8WRRinqrXy+K3IB0j3ZdU1A==", 56 | "dependencies": { 57 | "@directus/storage": "10.0.7", 58 | "ms": "2.1.3" 59 | }, 60 | "funding": { 61 | "url": "https://github.com/directus/directus?sponsor=1" 62 | } 63 | }, 64 | "node_modules/@directus/extensions": { 65 | "version": "0.1.0", 66 | "resolved": "https://registry.npmjs.org/@directus/extensions/-/extensions-0.1.0.tgz", 67 | "integrity": "sha512-E7NKG53oRDXomWbeHNDlyesGcbYTckoqB0prtZax770Lc2/eia8tXpLmGgj97KgdfSo2Waazc0GriCIEupUItg==", 68 | "dependencies": { 69 | "@directus/utils": "11.0.1", 70 | "fs-extra": "11.1.1", 71 | "lodash-es": "4.17.21", 72 | "tmp": "0.2.1", 73 | "zod": "3.22.4" 74 | }, 75 | "funding": { 76 | "url": "https://github.com/directus/directus?sponsor=1" 77 | } 78 | }, 79 | "node_modules/@directus/schema": { 80 | "version": "11.0.0", 81 | "resolved": "https://registry.npmjs.org/@directus/schema/-/schema-11.0.0.tgz", 82 | "integrity": "sha512-4YkutVuMr62nRZeoWylExOlC6l0TxmB1hQ4ZaNgKe5j4CWHX/lO2xrTc2BuA4QBdSgTp/qOdCdIbMXTkedou7Q==", 83 | "dependencies": { 84 | "knex": "2.4.2" 85 | }, 86 | "funding": { 87 | "url": "https://github.com/directus/directus?sponsor=1" 88 | } 89 | }, 90 | "node_modules/@directus/storage": { 91 | "version": "10.0.7", 92 | "resolved": "https://registry.npmjs.org/@directus/storage/-/storage-10.0.7.tgz", 93 | "integrity": "sha512-dS3NjnQGR42XfgdprxMVUnoGO55F2jfVoshXFt7j56TDHirGODdogvypKbGm+1OM3VTD+s84GSXfh7RjtlLJHg==", 94 | "funding": { 95 | "url": "https://github.com/directus/directus?sponsor=1" 96 | } 97 | }, 98 | "node_modules/@directus/types": { 99 | "version": "11.0.1", 100 | "resolved": "https://registry.npmjs.org/@directus/types/-/types-11.0.1.tgz", 101 | "integrity": "sha512-cs0DsVH3hsFQ5SVbO7acFSNMHzRSWUpVsLQr3gQAMDievRHKqeRwA/6CCnHBPLxfrQ2gS1befPr+jRDyXqKkWw==", 102 | "dependencies": { 103 | "@directus/constants": "11.0.1", 104 | "@directus/schema": "11.0.0", 105 | "@types/express": "4.17.17", 106 | "@types/geojson": "7946.0.10", 107 | "express": "4.18.2", 108 | "geojson": "0.5.0", 109 | "knex": "2.4.2", 110 | "pino": "8.14.1", 111 | "vue": "3.3.4", 112 | "vue-router": "4.2.0", 113 | "zod": "3.22.4" 114 | }, 115 | "funding": { 116 | "url": "https://github.com/directus/directus?sponsor=1" 117 | } 118 | }, 119 | "node_modules/@directus/utils": { 120 | "version": "11.0.1", 121 | "resolved": "https://registry.npmjs.org/@directus/utils/-/utils-11.0.1.tgz", 122 | "integrity": "sha512-I1cpMf2fxh8Cv8XeyYUOXH//teeNyEZ3loqHBTIV0m8TlBxdIeWqND8Bqm1AFcep3r6Adolx3vCp/9OvUH0aBg==", 123 | "dependencies": { 124 | "@directus/constants": "11.0.1", 125 | "date-fns": "2.30.0", 126 | "fs-extra": "11.1.1", 127 | "joi": "17.9.2", 128 | "lodash-es": "4.17.21", 129 | "micromustache": "8.0.3", 130 | "tmp": "0.2.1" 131 | }, 132 | "funding": { 133 | "url": "https://github.com/directus/directus?sponsor=1" 134 | }, 135 | "peerDependencies": { 136 | "vue": "3.3.4" 137 | }, 138 | "peerDependenciesMeta": { 139 | "vue": { 140 | "optional": true 141 | } 142 | } 143 | }, 144 | "node_modules/@hapi/hoek": { 145 | "version": "9.3.0", 146 | "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", 147 | "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" 148 | }, 149 | "node_modules/@hapi/topo": { 150 | "version": "5.1.0", 151 | "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", 152 | "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", 153 | "dependencies": { 154 | "@hapi/hoek": "^9.0.0" 155 | } 156 | }, 157 | "node_modules/@jridgewell/sourcemap-codec": { 158 | "version": "1.4.15", 159 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 160 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" 161 | }, 162 | "node_modules/@sideway/address": { 163 | "version": "4.1.4", 164 | "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.4.tgz", 165 | "integrity": "sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==", 166 | "dependencies": { 167 | "@hapi/hoek": "^9.0.0" 168 | } 169 | }, 170 | "node_modules/@sideway/formula": { 171 | "version": "3.0.1", 172 | "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz", 173 | "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==" 174 | }, 175 | "node_modules/@sideway/pinpoint": { 176 | "version": "2.0.0", 177 | "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", 178 | "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" 179 | }, 180 | "node_modules/@types/body-parser": { 181 | "version": "1.19.4", 182 | "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.4.tgz", 183 | "integrity": "sha512-N7UDG0/xiPQa2D/XrVJXjkWbpqHCd2sBaB32ggRF2l83RhPfamgKGF8gwwqyksS95qUS5ZYF9aF+lLPRlwI2UA==", 184 | "dependencies": { 185 | "@types/connect": "*", 186 | "@types/node": "*" 187 | } 188 | }, 189 | "node_modules/@types/connect": { 190 | "version": "3.4.37", 191 | "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.37.tgz", 192 | "integrity": "sha512-zBUSRqkfZ59OcwXon4HVxhx5oWCJmc0OtBTK05M+p0dYjgN6iTwIL2T/WbsQZrEsdnwaF9cWQ+azOnpPvIqY3Q==", 193 | "dependencies": { 194 | "@types/node": "*" 195 | } 196 | }, 197 | "node_modules/@types/express": { 198 | "version": "4.17.17", 199 | "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", 200 | "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", 201 | "dependencies": { 202 | "@types/body-parser": "*", 203 | "@types/express-serve-static-core": "^4.17.33", 204 | "@types/qs": "*", 205 | "@types/serve-static": "*" 206 | } 207 | }, 208 | "node_modules/@types/express-serve-static-core": { 209 | "version": "4.17.39", 210 | "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.39.tgz", 211 | "integrity": "sha512-BiEUfAiGCOllomsRAZOiMFP7LAnrifHpt56pc4Z7l9K6ACyN06Ns1JLMBxwkfLOjJRlSf06NwWsT7yzfpaVpyQ==", 212 | "dependencies": { 213 | "@types/node": "*", 214 | "@types/qs": "*", 215 | "@types/range-parser": "*", 216 | "@types/send": "*" 217 | } 218 | }, 219 | "node_modules/@types/geojson": { 220 | "version": "7946.0.10", 221 | "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.10.tgz", 222 | "integrity": "sha512-Nmh0K3iWQJzniTuPRcJn5hxXkfB1T1pgB89SBig5PlJQU5yocazeu4jATJlaA0GYFKWMqDdvYemoSnF2pXgLVA==" 223 | }, 224 | "node_modules/@types/http-errors": { 225 | "version": "2.0.3", 226 | "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.3.tgz", 227 | "integrity": "sha512-pP0P/9BnCj1OVvQR2lF41EkDG/lWWnDyA203b/4Fmi2eTyORnBtcDoKDwjWQthELrBvWkMOrvSOnZ8OVlW6tXA==" 228 | }, 229 | "node_modules/@types/mime": { 230 | "version": "1.3.4", 231 | "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.4.tgz", 232 | "integrity": "sha512-1Gjee59G25MrQGk8bsNvC6fxNiRgUlGn2wlhGf95a59DrprnnHk80FIMMFG9XHMdrfsuA119ht06QPDXA1Z7tw==" 233 | }, 234 | "node_modules/@types/node": { 235 | "version": "20.8.9", 236 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.9.tgz", 237 | "integrity": "sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg==", 238 | "dependencies": { 239 | "undici-types": "~5.26.4" 240 | } 241 | }, 242 | "node_modules/@types/qs": { 243 | "version": "6.9.9", 244 | "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.9.tgz", 245 | "integrity": "sha512-wYLxw35euwqGvTDx6zfY1vokBFnsK0HNrzc6xNHchxfO2hpuRg74GbkEW7e3sSmPvj0TjCDT1VCa6OtHXnubsg==" 246 | }, 247 | "node_modules/@types/range-parser": { 248 | "version": "1.2.6", 249 | "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.6.tgz", 250 | "integrity": "sha512-+0autS93xyXizIYiyL02FCY8N+KkKPhILhcUSA276HxzreZ16kl+cmwvV2qAM/PuCCwPXzOXOWhiPcw20uSFcA==" 251 | }, 252 | "node_modules/@types/send": { 253 | "version": "0.17.3", 254 | "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.3.tgz", 255 | "integrity": "sha512-/7fKxvKUoETxjFUsuFlPB9YndePpxxRAOfGC/yJdc9kTjTeP5kRCTzfnE8kPUKCeyiyIZu0YQ76s50hCedI1ug==", 256 | "dependencies": { 257 | "@types/mime": "^1", 258 | "@types/node": "*" 259 | } 260 | }, 261 | "node_modules/@types/serve-static": { 262 | "version": "1.15.4", 263 | "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.4.tgz", 264 | "integrity": "sha512-aqqNfs1XTF0HDrFdlY//+SGUxmdSUbjeRXb5iaZc3x0/vMbYmdw9qvOgHWOyyLFxSSRnUuP5+724zBgfw8/WAw==", 265 | "dependencies": { 266 | "@types/http-errors": "*", 267 | "@types/mime": "*", 268 | "@types/node": "*" 269 | } 270 | }, 271 | "node_modules/@vue/compiler-core": { 272 | "version": "3.3.4", 273 | "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.4.tgz", 274 | "integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==", 275 | "dependencies": { 276 | "@babel/parser": "^7.21.3", 277 | "@vue/shared": "3.3.4", 278 | "estree-walker": "^2.0.2", 279 | "source-map-js": "^1.0.2" 280 | } 281 | }, 282 | "node_modules/@vue/compiler-dom": { 283 | "version": "3.3.4", 284 | "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz", 285 | "integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==", 286 | "dependencies": { 287 | "@vue/compiler-core": "3.3.4", 288 | "@vue/shared": "3.3.4" 289 | } 290 | }, 291 | "node_modules/@vue/compiler-sfc": { 292 | "version": "3.3.4", 293 | "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz", 294 | "integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==", 295 | "dependencies": { 296 | "@babel/parser": "^7.20.15", 297 | "@vue/compiler-core": "3.3.4", 298 | "@vue/compiler-dom": "3.3.4", 299 | "@vue/compiler-ssr": "3.3.4", 300 | "@vue/reactivity-transform": "3.3.4", 301 | "@vue/shared": "3.3.4", 302 | "estree-walker": "^2.0.2", 303 | "magic-string": "^0.30.0", 304 | "postcss": "^8.1.10", 305 | "source-map-js": "^1.0.2" 306 | } 307 | }, 308 | "node_modules/@vue/compiler-ssr": { 309 | "version": "3.3.4", 310 | "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz", 311 | "integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==", 312 | "dependencies": { 313 | "@vue/compiler-dom": "3.3.4", 314 | "@vue/shared": "3.3.4" 315 | } 316 | }, 317 | "node_modules/@vue/devtools-api": { 318 | "version": "6.5.1", 319 | "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.5.1.tgz", 320 | "integrity": "sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==" 321 | }, 322 | "node_modules/@vue/reactivity": { 323 | "version": "3.3.4", 324 | "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.3.4.tgz", 325 | "integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==", 326 | "dependencies": { 327 | "@vue/shared": "3.3.4" 328 | } 329 | }, 330 | "node_modules/@vue/reactivity-transform": { 331 | "version": "3.3.4", 332 | "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz", 333 | "integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==", 334 | "dependencies": { 335 | "@babel/parser": "^7.20.15", 336 | "@vue/compiler-core": "3.3.4", 337 | "@vue/shared": "3.3.4", 338 | "estree-walker": "^2.0.2", 339 | "magic-string": "^0.30.0" 340 | } 341 | }, 342 | "node_modules/@vue/runtime-core": { 343 | "version": "3.3.4", 344 | "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.3.4.tgz", 345 | "integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==", 346 | "dependencies": { 347 | "@vue/reactivity": "3.3.4", 348 | "@vue/shared": "3.3.4" 349 | } 350 | }, 351 | "node_modules/@vue/runtime-dom": { 352 | "version": "3.3.4", 353 | "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz", 354 | "integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==", 355 | "dependencies": { 356 | "@vue/runtime-core": "3.3.4", 357 | "@vue/shared": "3.3.4", 358 | "csstype": "^3.1.1" 359 | } 360 | }, 361 | "node_modules/@vue/server-renderer": { 362 | "version": "3.3.4", 363 | "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.3.4.tgz", 364 | "integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==", 365 | "dependencies": { 366 | "@vue/compiler-ssr": "3.3.4", 367 | "@vue/shared": "3.3.4" 368 | }, 369 | "peerDependencies": { 370 | "vue": "3.3.4" 371 | } 372 | }, 373 | "node_modules/@vue/shared": { 374 | "version": "3.3.4", 375 | "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.3.4.tgz", 376 | "integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==" 377 | }, 378 | "node_modules/abort-controller": { 379 | "version": "3.0.0", 380 | "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", 381 | "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", 382 | "dependencies": { 383 | "event-target-shim": "^5.0.0" 384 | }, 385 | "engines": { 386 | "node": ">=6.5" 387 | } 388 | }, 389 | "node_modules/accepts": { 390 | "version": "1.3.8", 391 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 392 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 393 | "dependencies": { 394 | "mime-types": "~2.1.34", 395 | "negotiator": "0.6.3" 396 | }, 397 | "engines": { 398 | "node": ">= 0.6" 399 | } 400 | }, 401 | "node_modules/array-flatten": { 402 | "version": "1.1.1", 403 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 404 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" 405 | }, 406 | "node_modules/atomic-sleep": { 407 | "version": "1.0.0", 408 | "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", 409 | "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", 410 | "engines": { 411 | "node": ">=8.0.0" 412 | } 413 | }, 414 | "node_modules/balanced-match": { 415 | "version": "1.0.2", 416 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 417 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 418 | }, 419 | "node_modules/base64-js": { 420 | "version": "1.5.1", 421 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 422 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", 423 | "funding": [ 424 | { 425 | "type": "github", 426 | "url": "https://github.com/sponsors/feross" 427 | }, 428 | { 429 | "type": "patreon", 430 | "url": "https://www.patreon.com/feross" 431 | }, 432 | { 433 | "type": "consulting", 434 | "url": "https://feross.org/support" 435 | } 436 | ] 437 | }, 438 | "node_modules/body-parser": { 439 | "version": "1.20.1", 440 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", 441 | "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", 442 | "dependencies": { 443 | "bytes": "3.1.2", 444 | "content-type": "~1.0.4", 445 | "debug": "2.6.9", 446 | "depd": "2.0.0", 447 | "destroy": "1.2.0", 448 | "http-errors": "2.0.0", 449 | "iconv-lite": "0.4.24", 450 | "on-finished": "2.4.1", 451 | "qs": "6.11.0", 452 | "raw-body": "2.5.1", 453 | "type-is": "~1.6.18", 454 | "unpipe": "1.0.0" 455 | }, 456 | "engines": { 457 | "node": ">= 0.8", 458 | "npm": "1.2.8000 || >= 1.4.16" 459 | } 460 | }, 461 | "node_modules/brace-expansion": { 462 | "version": "1.1.11", 463 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 464 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 465 | "dependencies": { 466 | "balanced-match": "^1.0.0", 467 | "concat-map": "0.0.1" 468 | } 469 | }, 470 | "node_modules/buffer": { 471 | "version": "6.0.3", 472 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", 473 | "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", 474 | "funding": [ 475 | { 476 | "type": "github", 477 | "url": "https://github.com/sponsors/feross" 478 | }, 479 | { 480 | "type": "patreon", 481 | "url": "https://www.patreon.com/feross" 482 | }, 483 | { 484 | "type": "consulting", 485 | "url": "https://feross.org/support" 486 | } 487 | ], 488 | "dependencies": { 489 | "base64-js": "^1.3.1", 490 | "ieee754": "^1.2.1" 491 | } 492 | }, 493 | "node_modules/bytes": { 494 | "version": "3.1.2", 495 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 496 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 497 | "engines": { 498 | "node": ">= 0.8" 499 | } 500 | }, 501 | "node_modules/call-bind": { 502 | "version": "1.0.5", 503 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", 504 | "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", 505 | "dependencies": { 506 | "function-bind": "^1.1.2", 507 | "get-intrinsic": "^1.2.1", 508 | "set-function-length": "^1.1.1" 509 | }, 510 | "funding": { 511 | "url": "https://github.com/sponsors/ljharb" 512 | } 513 | }, 514 | "node_modules/colorette": { 515 | "version": "2.0.19", 516 | "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", 517 | "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==" 518 | }, 519 | "node_modules/commander": { 520 | "version": "9.5.0", 521 | "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", 522 | "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", 523 | "engines": { 524 | "node": "^12.20.0 || >=14" 525 | } 526 | }, 527 | "node_modules/concat-map": { 528 | "version": "0.0.1", 529 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 530 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" 531 | }, 532 | "node_modules/content-disposition": { 533 | "version": "0.5.4", 534 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 535 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 536 | "dependencies": { 537 | "safe-buffer": "5.2.1" 538 | }, 539 | "engines": { 540 | "node": ">= 0.6" 541 | } 542 | }, 543 | "node_modules/content-type": { 544 | "version": "1.0.5", 545 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 546 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 547 | "engines": { 548 | "node": ">= 0.6" 549 | } 550 | }, 551 | "node_modules/cookie": { 552 | "version": "0.5.0", 553 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", 554 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", 555 | "engines": { 556 | "node": ">= 0.6" 557 | } 558 | }, 559 | "node_modules/cookie-signature": { 560 | "version": "1.0.6", 561 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 562 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" 563 | }, 564 | "node_modules/csstype": { 565 | "version": "3.1.2", 566 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", 567 | "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" 568 | }, 569 | "node_modules/date-fns": { 570 | "version": "2.30.0", 571 | "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz", 572 | "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", 573 | "dependencies": { 574 | "@babel/runtime": "^7.21.0" 575 | }, 576 | "engines": { 577 | "node": ">=0.11" 578 | }, 579 | "funding": { 580 | "type": "opencollective", 581 | "url": "https://opencollective.com/date-fns" 582 | } 583 | }, 584 | "node_modules/debug": { 585 | "version": "2.6.9", 586 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 587 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 588 | "dependencies": { 589 | "ms": "2.0.0" 590 | } 591 | }, 592 | "node_modules/debug/node_modules/ms": { 593 | "version": "2.0.0", 594 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 595 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 596 | }, 597 | "node_modules/define-data-property": { 598 | "version": "1.1.1", 599 | "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", 600 | "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", 601 | "dependencies": { 602 | "get-intrinsic": "^1.2.1", 603 | "gopd": "^1.0.1", 604 | "has-property-descriptors": "^1.0.0" 605 | }, 606 | "engines": { 607 | "node": ">= 0.4" 608 | } 609 | }, 610 | "node_modules/depd": { 611 | "version": "2.0.0", 612 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 613 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 614 | "engines": { 615 | "node": ">= 0.8" 616 | } 617 | }, 618 | "node_modules/destroy": { 619 | "version": "1.2.0", 620 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 621 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 622 | "engines": { 623 | "node": ">= 0.8", 624 | "npm": "1.2.8000 || >= 1.4.16" 625 | } 626 | }, 627 | "node_modules/ee-first": { 628 | "version": "1.1.1", 629 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 630 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 631 | }, 632 | "node_modules/encodeurl": { 633 | "version": "1.0.2", 634 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 635 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 636 | "engines": { 637 | "node": ">= 0.8" 638 | } 639 | }, 640 | "node_modules/escalade": { 641 | "version": "3.1.1", 642 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 643 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 644 | "engines": { 645 | "node": ">=6" 646 | } 647 | }, 648 | "node_modules/escape-html": { 649 | "version": "1.0.3", 650 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 651 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 652 | }, 653 | "node_modules/esm": { 654 | "version": "3.2.25", 655 | "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", 656 | "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", 657 | "engines": { 658 | "node": ">=6" 659 | } 660 | }, 661 | "node_modules/estree-walker": { 662 | "version": "2.0.2", 663 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 664 | "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" 665 | }, 666 | "node_modules/etag": { 667 | "version": "1.8.1", 668 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 669 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 670 | "engines": { 671 | "node": ">= 0.6" 672 | } 673 | }, 674 | "node_modules/event-target-shim": { 675 | "version": "5.0.1", 676 | "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", 677 | "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", 678 | "engines": { 679 | "node": ">=6" 680 | } 681 | }, 682 | "node_modules/events": { 683 | "version": "3.3.0", 684 | "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", 685 | "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", 686 | "engines": { 687 | "node": ">=0.8.x" 688 | } 689 | }, 690 | "node_modules/express": { 691 | "version": "4.18.2", 692 | "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", 693 | "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", 694 | "dependencies": { 695 | "accepts": "~1.3.8", 696 | "array-flatten": "1.1.1", 697 | "body-parser": "1.20.1", 698 | "content-disposition": "0.5.4", 699 | "content-type": "~1.0.4", 700 | "cookie": "0.5.0", 701 | "cookie-signature": "1.0.6", 702 | "debug": "2.6.9", 703 | "depd": "2.0.0", 704 | "encodeurl": "~1.0.2", 705 | "escape-html": "~1.0.3", 706 | "etag": "~1.8.1", 707 | "finalhandler": "1.2.0", 708 | "fresh": "0.5.2", 709 | "http-errors": "2.0.0", 710 | "merge-descriptors": "1.0.1", 711 | "methods": "~1.1.2", 712 | "on-finished": "2.4.1", 713 | "parseurl": "~1.3.3", 714 | "path-to-regexp": "0.1.7", 715 | "proxy-addr": "~2.0.7", 716 | "qs": "6.11.0", 717 | "range-parser": "~1.2.1", 718 | "safe-buffer": "5.2.1", 719 | "send": "0.18.0", 720 | "serve-static": "1.15.0", 721 | "setprototypeof": "1.2.0", 722 | "statuses": "2.0.1", 723 | "type-is": "~1.6.18", 724 | "utils-merge": "1.0.1", 725 | "vary": "~1.1.2" 726 | }, 727 | "engines": { 728 | "node": ">= 0.10.0" 729 | } 730 | }, 731 | "node_modules/fast-redact": { 732 | "version": "3.3.0", 733 | "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", 734 | "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==", 735 | "engines": { 736 | "node": ">=6" 737 | } 738 | }, 739 | "node_modules/finalhandler": { 740 | "version": "1.2.0", 741 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", 742 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", 743 | "dependencies": { 744 | "debug": "2.6.9", 745 | "encodeurl": "~1.0.2", 746 | "escape-html": "~1.0.3", 747 | "on-finished": "2.4.1", 748 | "parseurl": "~1.3.3", 749 | "statuses": "2.0.1", 750 | "unpipe": "~1.0.0" 751 | }, 752 | "engines": { 753 | "node": ">= 0.8" 754 | } 755 | }, 756 | "node_modules/forwarded": { 757 | "version": "0.2.0", 758 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 759 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 760 | "engines": { 761 | "node": ">= 0.6" 762 | } 763 | }, 764 | "node_modules/fresh": { 765 | "version": "0.5.2", 766 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 767 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 768 | "engines": { 769 | "node": ">= 0.6" 770 | } 771 | }, 772 | "node_modules/fs-extra": { 773 | "version": "11.1.1", 774 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", 775 | "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", 776 | "dependencies": { 777 | "graceful-fs": "^4.2.0", 778 | "jsonfile": "^6.0.1", 779 | "universalify": "^2.0.0" 780 | }, 781 | "engines": { 782 | "node": ">=14.14" 783 | } 784 | }, 785 | "node_modules/fs.realpath": { 786 | "version": "1.0.0", 787 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 788 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" 789 | }, 790 | "node_modules/function-bind": { 791 | "version": "1.1.2", 792 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 793 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 794 | "funding": { 795 | "url": "https://github.com/sponsors/ljharb" 796 | } 797 | }, 798 | "node_modules/geojson": { 799 | "version": "0.5.0", 800 | "resolved": "https://registry.npmjs.org/geojson/-/geojson-0.5.0.tgz", 801 | "integrity": "sha512-/Bx5lEn+qRF4TfQ5aLu6NH+UKtvIv7Lhc487y/c8BdludrCTpiWf9wyI0RTyqg49MFefIAvFDuEi5Dfd/zgNxQ==", 802 | "engines": { 803 | "node": ">= 0.10" 804 | } 805 | }, 806 | "node_modules/get-intrinsic": { 807 | "version": "1.2.2", 808 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", 809 | "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", 810 | "dependencies": { 811 | "function-bind": "^1.1.2", 812 | "has-proto": "^1.0.1", 813 | "has-symbols": "^1.0.3", 814 | "hasown": "^2.0.0" 815 | }, 816 | "funding": { 817 | "url": "https://github.com/sponsors/ljharb" 818 | } 819 | }, 820 | "node_modules/get-package-type": { 821 | "version": "0.1.0", 822 | "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", 823 | "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", 824 | "engines": { 825 | "node": ">=8.0.0" 826 | } 827 | }, 828 | "node_modules/getopts": { 829 | "version": "2.3.0", 830 | "resolved": "https://registry.npmjs.org/getopts/-/getopts-2.3.0.tgz", 831 | "integrity": "sha512-5eDf9fuSXwxBL6q5HX+dhDj+dslFGWzU5thZ9kNKUkcPtaPdatmUFKwHFrLb/uf/WpA4BHET+AX3Scl56cAjpA==" 832 | }, 833 | "node_modules/glob": { 834 | "version": "7.2.3", 835 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 836 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 837 | "dependencies": { 838 | "fs.realpath": "^1.0.0", 839 | "inflight": "^1.0.4", 840 | "inherits": "2", 841 | "minimatch": "^3.1.1", 842 | "once": "^1.3.0", 843 | "path-is-absolute": "^1.0.0" 844 | }, 845 | "engines": { 846 | "node": "*" 847 | }, 848 | "funding": { 849 | "url": "https://github.com/sponsors/isaacs" 850 | } 851 | }, 852 | "node_modules/gopd": { 853 | "version": "1.0.1", 854 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", 855 | "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", 856 | "dependencies": { 857 | "get-intrinsic": "^1.1.3" 858 | }, 859 | "funding": { 860 | "url": "https://github.com/sponsors/ljharb" 861 | } 862 | }, 863 | "node_modules/graceful-fs": { 864 | "version": "4.2.11", 865 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 866 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" 867 | }, 868 | "node_modules/has-property-descriptors": { 869 | "version": "1.0.1", 870 | "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", 871 | "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", 872 | "dependencies": { 873 | "get-intrinsic": "^1.2.2" 874 | }, 875 | "funding": { 876 | "url": "https://github.com/sponsors/ljharb" 877 | } 878 | }, 879 | "node_modules/has-proto": { 880 | "version": "1.0.1", 881 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", 882 | "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", 883 | "engines": { 884 | "node": ">= 0.4" 885 | }, 886 | "funding": { 887 | "url": "https://github.com/sponsors/ljharb" 888 | } 889 | }, 890 | "node_modules/has-symbols": { 891 | "version": "1.0.3", 892 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 893 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 894 | "engines": { 895 | "node": ">= 0.4" 896 | }, 897 | "funding": { 898 | "url": "https://github.com/sponsors/ljharb" 899 | } 900 | }, 901 | "node_modules/hasown": { 902 | "version": "2.0.0", 903 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", 904 | "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", 905 | "dependencies": { 906 | "function-bind": "^1.1.2" 907 | }, 908 | "engines": { 909 | "node": ">= 0.4" 910 | } 911 | }, 912 | "node_modules/http-errors": { 913 | "version": "2.0.0", 914 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 915 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 916 | "dependencies": { 917 | "depd": "2.0.0", 918 | "inherits": "2.0.4", 919 | "setprototypeof": "1.2.0", 920 | "statuses": "2.0.1", 921 | "toidentifier": "1.0.1" 922 | }, 923 | "engines": { 924 | "node": ">= 0.8" 925 | } 926 | }, 927 | "node_modules/iconv-lite": { 928 | "version": "0.4.24", 929 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 930 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 931 | "dependencies": { 932 | "safer-buffer": ">= 2.1.2 < 3" 933 | }, 934 | "engines": { 935 | "node": ">=0.10.0" 936 | } 937 | }, 938 | "node_modules/ieee754": { 939 | "version": "1.2.1", 940 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 941 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", 942 | "funding": [ 943 | { 944 | "type": "github", 945 | "url": "https://github.com/sponsors/feross" 946 | }, 947 | { 948 | "type": "patreon", 949 | "url": "https://www.patreon.com/feross" 950 | }, 951 | { 952 | "type": "consulting", 953 | "url": "https://feross.org/support" 954 | } 955 | ] 956 | }, 957 | "node_modules/inflight": { 958 | "version": "1.0.6", 959 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 960 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 961 | "dependencies": { 962 | "once": "^1.3.0", 963 | "wrappy": "1" 964 | } 965 | }, 966 | "node_modules/inherits": { 967 | "version": "2.0.4", 968 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 969 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 970 | }, 971 | "node_modules/interpret": { 972 | "version": "2.2.0", 973 | "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", 974 | "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", 975 | "engines": { 976 | "node": ">= 0.10" 977 | } 978 | }, 979 | "node_modules/ipaddr.js": { 980 | "version": "1.9.1", 981 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 982 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 983 | "engines": { 984 | "node": ">= 0.10" 985 | } 986 | }, 987 | "node_modules/is-core-module": { 988 | "version": "2.13.1", 989 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", 990 | "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", 991 | "dependencies": { 992 | "hasown": "^2.0.0" 993 | }, 994 | "funding": { 995 | "url": "https://github.com/sponsors/ljharb" 996 | } 997 | }, 998 | "node_modules/joi": { 999 | "version": "17.9.2", 1000 | "resolved": "https://registry.npmjs.org/joi/-/joi-17.9.2.tgz", 1001 | "integrity": "sha512-Itk/r+V4Dx0V3c7RLFdRh12IOjySm2/WGPMubBT92cQvRfYZhPM2W0hZlctjj72iES8jsRCwp7S/cRmWBnJ4nw==", 1002 | "dependencies": { 1003 | "@hapi/hoek": "^9.0.0", 1004 | "@hapi/topo": "^5.0.0", 1005 | "@sideway/address": "^4.1.3", 1006 | "@sideway/formula": "^3.0.1", 1007 | "@sideway/pinpoint": "^2.0.0" 1008 | } 1009 | }, 1010 | "node_modules/jsonfile": { 1011 | "version": "6.1.0", 1012 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", 1013 | "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", 1014 | "dependencies": { 1015 | "universalify": "^2.0.0" 1016 | }, 1017 | "optionalDependencies": { 1018 | "graceful-fs": "^4.1.6" 1019 | } 1020 | }, 1021 | "node_modules/knex": { 1022 | "version": "2.4.2", 1023 | "resolved": "https://registry.npmjs.org/knex/-/knex-2.4.2.tgz", 1024 | "integrity": "sha512-tMI1M7a+xwHhPxjbl/H9K1kHX+VncEYcvCx5K00M16bWvpYPKAZd6QrCu68PtHAdIZNQPWZn0GVhqVBEthGWCg==", 1025 | "dependencies": { 1026 | "colorette": "2.0.19", 1027 | "commander": "^9.1.0", 1028 | "debug": "4.3.4", 1029 | "escalade": "^3.1.1", 1030 | "esm": "^3.2.25", 1031 | "get-package-type": "^0.1.0", 1032 | "getopts": "2.3.0", 1033 | "interpret": "^2.2.0", 1034 | "lodash": "^4.17.21", 1035 | "pg-connection-string": "2.5.0", 1036 | "rechoir": "^0.8.0", 1037 | "resolve-from": "^5.0.0", 1038 | "tarn": "^3.0.2", 1039 | "tildify": "2.0.0" 1040 | }, 1041 | "bin": { 1042 | "knex": "bin/cli.js" 1043 | }, 1044 | "engines": { 1045 | "node": ">=12" 1046 | }, 1047 | "peerDependenciesMeta": { 1048 | "better-sqlite3": { 1049 | "optional": true 1050 | }, 1051 | "mysql": { 1052 | "optional": true 1053 | }, 1054 | "mysql2": { 1055 | "optional": true 1056 | }, 1057 | "pg": { 1058 | "optional": true 1059 | }, 1060 | "pg-native": { 1061 | "optional": true 1062 | }, 1063 | "sqlite3": { 1064 | "optional": true 1065 | }, 1066 | "tedious": { 1067 | "optional": true 1068 | } 1069 | } 1070 | }, 1071 | "node_modules/knex/node_modules/debug": { 1072 | "version": "4.3.4", 1073 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 1074 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 1075 | "dependencies": { 1076 | "ms": "2.1.2" 1077 | }, 1078 | "engines": { 1079 | "node": ">=6.0" 1080 | }, 1081 | "peerDependenciesMeta": { 1082 | "supports-color": { 1083 | "optional": true 1084 | } 1085 | } 1086 | }, 1087 | "node_modules/knex/node_modules/ms": { 1088 | "version": "2.1.2", 1089 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1090 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1091 | }, 1092 | "node_modules/lodash": { 1093 | "version": "4.17.21", 1094 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 1095 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 1096 | }, 1097 | "node_modules/lodash-es": { 1098 | "version": "4.17.21", 1099 | "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", 1100 | "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" 1101 | }, 1102 | "node_modules/magic-string": { 1103 | "version": "0.30.5", 1104 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz", 1105 | "integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==", 1106 | "dependencies": { 1107 | "@jridgewell/sourcemap-codec": "^1.4.15" 1108 | }, 1109 | "engines": { 1110 | "node": ">=12" 1111 | } 1112 | }, 1113 | "node_modules/media-typer": { 1114 | "version": "0.3.0", 1115 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1116 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 1117 | "engines": { 1118 | "node": ">= 0.6" 1119 | } 1120 | }, 1121 | "node_modules/merge-descriptors": { 1122 | "version": "1.0.1", 1123 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1124 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" 1125 | }, 1126 | "node_modules/methods": { 1127 | "version": "1.1.2", 1128 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1129 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 1130 | "engines": { 1131 | "node": ">= 0.6" 1132 | } 1133 | }, 1134 | "node_modules/micromustache": { 1135 | "version": "8.0.3", 1136 | "resolved": "https://registry.npmjs.org/micromustache/-/micromustache-8.0.3.tgz", 1137 | "integrity": "sha512-SXjrEPuYNtWq0reR9LR2nHdzdQx/3re9HPcDGjm00L7hi2RsH5KMRBhYEBvPdyQC51RW/2TznjwX/sQLPPyHNw==", 1138 | "engines": { 1139 | "node": ">=8" 1140 | }, 1141 | "funding": { 1142 | "url": "https://github.com/userpixel/micromustache/blob/master/.github/FUNDING.yml" 1143 | } 1144 | }, 1145 | "node_modules/mime": { 1146 | "version": "1.6.0", 1147 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1148 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 1149 | "bin": { 1150 | "mime": "cli.js" 1151 | }, 1152 | "engines": { 1153 | "node": ">=4" 1154 | } 1155 | }, 1156 | "node_modules/mime-db": { 1157 | "version": "1.52.0", 1158 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 1159 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 1160 | "engines": { 1161 | "node": ">= 0.6" 1162 | } 1163 | }, 1164 | "node_modules/mime-types": { 1165 | "version": "2.1.35", 1166 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 1167 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 1168 | "dependencies": { 1169 | "mime-db": "1.52.0" 1170 | }, 1171 | "engines": { 1172 | "node": ">= 0.6" 1173 | } 1174 | }, 1175 | "node_modules/minimatch": { 1176 | "version": "3.1.2", 1177 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1178 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1179 | "dependencies": { 1180 | "brace-expansion": "^1.1.7" 1181 | }, 1182 | "engines": { 1183 | "node": "*" 1184 | } 1185 | }, 1186 | "node_modules/ms": { 1187 | "version": "2.1.3", 1188 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1189 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 1190 | }, 1191 | "node_modules/nanoid": { 1192 | "version": "3.3.6", 1193 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", 1194 | "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", 1195 | "funding": [ 1196 | { 1197 | "type": "github", 1198 | "url": "https://github.com/sponsors/ai" 1199 | } 1200 | ], 1201 | "bin": { 1202 | "nanoid": "bin/nanoid.cjs" 1203 | }, 1204 | "engines": { 1205 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1206 | } 1207 | }, 1208 | "node_modules/negotiator": { 1209 | "version": "0.6.3", 1210 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 1211 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 1212 | "engines": { 1213 | "node": ">= 0.6" 1214 | } 1215 | }, 1216 | "node_modules/object-inspect": { 1217 | "version": "1.13.1", 1218 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", 1219 | "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", 1220 | "funding": { 1221 | "url": "https://github.com/sponsors/ljharb" 1222 | } 1223 | }, 1224 | "node_modules/on-exit-leak-free": { 1225 | "version": "2.1.2", 1226 | "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", 1227 | "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", 1228 | "engines": { 1229 | "node": ">=14.0.0" 1230 | } 1231 | }, 1232 | "node_modules/on-finished": { 1233 | "version": "2.4.1", 1234 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 1235 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 1236 | "dependencies": { 1237 | "ee-first": "1.1.1" 1238 | }, 1239 | "engines": { 1240 | "node": ">= 0.8" 1241 | } 1242 | }, 1243 | "node_modules/once": { 1244 | "version": "1.4.0", 1245 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1246 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1247 | "dependencies": { 1248 | "wrappy": "1" 1249 | } 1250 | }, 1251 | "node_modules/parseurl": { 1252 | "version": "1.3.3", 1253 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1254 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1255 | "engines": { 1256 | "node": ">= 0.8" 1257 | } 1258 | }, 1259 | "node_modules/path-is-absolute": { 1260 | "version": "1.0.1", 1261 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1262 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1263 | "engines": { 1264 | "node": ">=0.10.0" 1265 | } 1266 | }, 1267 | "node_modules/path-parse": { 1268 | "version": "1.0.7", 1269 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1270 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" 1271 | }, 1272 | "node_modules/path-to-regexp": { 1273 | "version": "0.1.7", 1274 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1275 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" 1276 | }, 1277 | "node_modules/pg-connection-string": { 1278 | "version": "2.5.0", 1279 | "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.5.0.tgz", 1280 | "integrity": "sha512-r5o/V/ORTA6TmUnyWZR9nCj1klXCO2CEKNRlVuJptZe85QuhFayC7WeMic7ndayT5IRIR0S0xFxFi2ousartlQ==" 1281 | }, 1282 | "node_modules/picocolors": { 1283 | "version": "1.0.0", 1284 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 1285 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 1286 | }, 1287 | "node_modules/pino": { 1288 | "version": "8.14.1", 1289 | "resolved": "https://registry.npmjs.org/pino/-/pino-8.14.1.tgz", 1290 | "integrity": "sha512-8LYNv7BKWXSfS+k6oEc6occy5La+q2sPwU3q2ljTX5AZk7v+5kND2o5W794FyRaqha6DJajmkNRsWtPpFyMUdw==", 1291 | "dependencies": { 1292 | "atomic-sleep": "^1.0.0", 1293 | "fast-redact": "^3.1.1", 1294 | "on-exit-leak-free": "^2.1.0", 1295 | "pino-abstract-transport": "v1.0.0", 1296 | "pino-std-serializers": "^6.0.0", 1297 | "process-warning": "^2.0.0", 1298 | "quick-format-unescaped": "^4.0.3", 1299 | "real-require": "^0.2.0", 1300 | "safe-stable-stringify": "^2.3.1", 1301 | "sonic-boom": "^3.1.0", 1302 | "thread-stream": "^2.0.0" 1303 | }, 1304 | "bin": { 1305 | "pino": "bin.js" 1306 | } 1307 | }, 1308 | "node_modules/pino-abstract-transport": { 1309 | "version": "1.0.0", 1310 | "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.0.0.tgz", 1311 | "integrity": "sha512-c7vo5OpW4wIS42hUVcT5REsL8ZljsUfBjqV/e2sFxmFEFZiq1XLUp5EYLtuDH6PEHq9W1egWqRbnLUP5FuZmOA==", 1312 | "dependencies": { 1313 | "readable-stream": "^4.0.0", 1314 | "split2": "^4.0.0" 1315 | } 1316 | }, 1317 | "node_modules/pino-std-serializers": { 1318 | "version": "6.2.2", 1319 | "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", 1320 | "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" 1321 | }, 1322 | "node_modules/postcss": { 1323 | "version": "8.4.31", 1324 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", 1325 | "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", 1326 | "funding": [ 1327 | { 1328 | "type": "opencollective", 1329 | "url": "https://opencollective.com/postcss/" 1330 | }, 1331 | { 1332 | "type": "tidelift", 1333 | "url": "https://tidelift.com/funding/github/npm/postcss" 1334 | }, 1335 | { 1336 | "type": "github", 1337 | "url": "https://github.com/sponsors/ai" 1338 | } 1339 | ], 1340 | "dependencies": { 1341 | "nanoid": "^3.3.6", 1342 | "picocolors": "^1.0.0", 1343 | "source-map-js": "^1.0.2" 1344 | }, 1345 | "engines": { 1346 | "node": "^10 || ^12 || >=14" 1347 | } 1348 | }, 1349 | "node_modules/process": { 1350 | "version": "0.11.10", 1351 | "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", 1352 | "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", 1353 | "engines": { 1354 | "node": ">= 0.6.0" 1355 | } 1356 | }, 1357 | "node_modules/process-warning": { 1358 | "version": "2.2.0", 1359 | "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-2.2.0.tgz", 1360 | "integrity": "sha512-/1WZ8+VQjR6avWOgHeEPd7SDQmFQ1B5mC1eRXsCm5TarlNmx/wCsa5GEaxGm05BORRtyG/Ex/3xq3TuRvq57qg==" 1361 | }, 1362 | "node_modules/proxy-addr": { 1363 | "version": "2.0.7", 1364 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 1365 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 1366 | "dependencies": { 1367 | "forwarded": "0.2.0", 1368 | "ipaddr.js": "1.9.1" 1369 | }, 1370 | "engines": { 1371 | "node": ">= 0.10" 1372 | } 1373 | }, 1374 | "node_modules/qs": { 1375 | "version": "6.11.0", 1376 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", 1377 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", 1378 | "dependencies": { 1379 | "side-channel": "^1.0.4" 1380 | }, 1381 | "engines": { 1382 | "node": ">=0.6" 1383 | }, 1384 | "funding": { 1385 | "url": "https://github.com/sponsors/ljharb" 1386 | } 1387 | }, 1388 | "node_modules/quick-format-unescaped": { 1389 | "version": "4.0.4", 1390 | "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", 1391 | "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" 1392 | }, 1393 | "node_modules/range-parser": { 1394 | "version": "1.2.1", 1395 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1396 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1397 | "engines": { 1398 | "node": ">= 0.6" 1399 | } 1400 | }, 1401 | "node_modules/raw-body": { 1402 | "version": "2.5.1", 1403 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", 1404 | "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", 1405 | "dependencies": { 1406 | "bytes": "3.1.2", 1407 | "http-errors": "2.0.0", 1408 | "iconv-lite": "0.4.24", 1409 | "unpipe": "1.0.0" 1410 | }, 1411 | "engines": { 1412 | "node": ">= 0.8" 1413 | } 1414 | }, 1415 | "node_modules/readable-stream": { 1416 | "version": "4.4.2", 1417 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.2.tgz", 1418 | "integrity": "sha512-Lk/fICSyIhodxy1IDK2HazkeGjSmezAWX2egdtJnYhtzKEsBPJowlI6F6LPb5tqIQILrMbx22S5o3GuJavPusA==", 1419 | "dependencies": { 1420 | "abort-controller": "^3.0.0", 1421 | "buffer": "^6.0.3", 1422 | "events": "^3.3.0", 1423 | "process": "^0.11.10", 1424 | "string_decoder": "^1.3.0" 1425 | }, 1426 | "engines": { 1427 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1428 | } 1429 | }, 1430 | "node_modules/real-require": { 1431 | "version": "0.2.0", 1432 | "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", 1433 | "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", 1434 | "engines": { 1435 | "node": ">= 12.13.0" 1436 | } 1437 | }, 1438 | "node_modules/rechoir": { 1439 | "version": "0.8.0", 1440 | "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", 1441 | "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", 1442 | "dependencies": { 1443 | "resolve": "^1.20.0" 1444 | }, 1445 | "engines": { 1446 | "node": ">= 10.13.0" 1447 | } 1448 | }, 1449 | "node_modules/regenerator-runtime": { 1450 | "version": "0.14.0", 1451 | "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", 1452 | "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==" 1453 | }, 1454 | "node_modules/resolve": { 1455 | "version": "1.22.8", 1456 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", 1457 | "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", 1458 | "dependencies": { 1459 | "is-core-module": "^2.13.0", 1460 | "path-parse": "^1.0.7", 1461 | "supports-preserve-symlinks-flag": "^1.0.0" 1462 | }, 1463 | "bin": { 1464 | "resolve": "bin/resolve" 1465 | }, 1466 | "funding": { 1467 | "url": "https://github.com/sponsors/ljharb" 1468 | } 1469 | }, 1470 | "node_modules/resolve-from": { 1471 | "version": "5.0.0", 1472 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", 1473 | "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", 1474 | "engines": { 1475 | "node": ">=8" 1476 | } 1477 | }, 1478 | "node_modules/rimraf": { 1479 | "version": "3.0.2", 1480 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1481 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1482 | "dependencies": { 1483 | "glob": "^7.1.3" 1484 | }, 1485 | "bin": { 1486 | "rimraf": "bin.js" 1487 | }, 1488 | "funding": { 1489 | "url": "https://github.com/sponsors/isaacs" 1490 | } 1491 | }, 1492 | "node_modules/safe-buffer": { 1493 | "version": "5.2.1", 1494 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1495 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1496 | "funding": [ 1497 | { 1498 | "type": "github", 1499 | "url": "https://github.com/sponsors/feross" 1500 | }, 1501 | { 1502 | "type": "patreon", 1503 | "url": "https://www.patreon.com/feross" 1504 | }, 1505 | { 1506 | "type": "consulting", 1507 | "url": "https://feross.org/support" 1508 | } 1509 | ] 1510 | }, 1511 | "node_modules/safe-stable-stringify": { 1512 | "version": "2.4.3", 1513 | "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", 1514 | "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", 1515 | "engines": { 1516 | "node": ">=10" 1517 | } 1518 | }, 1519 | "node_modules/safer-buffer": { 1520 | "version": "2.1.2", 1521 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1522 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1523 | }, 1524 | "node_modules/send": { 1525 | "version": "0.18.0", 1526 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", 1527 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", 1528 | "dependencies": { 1529 | "debug": "2.6.9", 1530 | "depd": "2.0.0", 1531 | "destroy": "1.2.0", 1532 | "encodeurl": "~1.0.2", 1533 | "escape-html": "~1.0.3", 1534 | "etag": "~1.8.1", 1535 | "fresh": "0.5.2", 1536 | "http-errors": "2.0.0", 1537 | "mime": "1.6.0", 1538 | "ms": "2.1.3", 1539 | "on-finished": "2.4.1", 1540 | "range-parser": "~1.2.1", 1541 | "statuses": "2.0.1" 1542 | }, 1543 | "engines": { 1544 | "node": ">= 0.8.0" 1545 | } 1546 | }, 1547 | "node_modules/serve-static": { 1548 | "version": "1.15.0", 1549 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", 1550 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", 1551 | "dependencies": { 1552 | "encodeurl": "~1.0.2", 1553 | "escape-html": "~1.0.3", 1554 | "parseurl": "~1.3.3", 1555 | "send": "0.18.0" 1556 | }, 1557 | "engines": { 1558 | "node": ">= 0.8.0" 1559 | } 1560 | }, 1561 | "node_modules/set-function-length": { 1562 | "version": "1.1.1", 1563 | "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", 1564 | "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", 1565 | "dependencies": { 1566 | "define-data-property": "^1.1.1", 1567 | "get-intrinsic": "^1.2.1", 1568 | "gopd": "^1.0.1", 1569 | "has-property-descriptors": "^1.0.0" 1570 | }, 1571 | "engines": { 1572 | "node": ">= 0.4" 1573 | } 1574 | }, 1575 | "node_modules/setprototypeof": { 1576 | "version": "1.2.0", 1577 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 1578 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 1579 | }, 1580 | "node_modules/side-channel": { 1581 | "version": "1.0.4", 1582 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", 1583 | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", 1584 | "dependencies": { 1585 | "call-bind": "^1.0.0", 1586 | "get-intrinsic": "^1.0.2", 1587 | "object-inspect": "^1.9.0" 1588 | }, 1589 | "funding": { 1590 | "url": "https://github.com/sponsors/ljharb" 1591 | } 1592 | }, 1593 | "node_modules/sonic-boom": { 1594 | "version": "3.7.0", 1595 | "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.7.0.tgz", 1596 | "integrity": "sha512-IudtNvSqA/ObjN97tfgNmOKyDOs4dNcg4cUUsHDebqsgb8wGBBwb31LIgShNO8fye0dFI52X1+tFoKKI6Rq1Gg==", 1597 | "dependencies": { 1598 | "atomic-sleep": "^1.0.0" 1599 | } 1600 | }, 1601 | "node_modules/source-map-js": { 1602 | "version": "1.0.2", 1603 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 1604 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 1605 | "engines": { 1606 | "node": ">=0.10.0" 1607 | } 1608 | }, 1609 | "node_modules/split2": { 1610 | "version": "4.2.0", 1611 | "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", 1612 | "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", 1613 | "engines": { 1614 | "node": ">= 10.x" 1615 | } 1616 | }, 1617 | "node_modules/statuses": { 1618 | "version": "2.0.1", 1619 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 1620 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 1621 | "engines": { 1622 | "node": ">= 0.8" 1623 | } 1624 | }, 1625 | "node_modules/string_decoder": { 1626 | "version": "1.3.0", 1627 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 1628 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 1629 | "dependencies": { 1630 | "safe-buffer": "~5.2.0" 1631 | } 1632 | }, 1633 | "node_modules/supports-preserve-symlinks-flag": { 1634 | "version": "1.0.0", 1635 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1636 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1637 | "engines": { 1638 | "node": ">= 0.4" 1639 | }, 1640 | "funding": { 1641 | "url": "https://github.com/sponsors/ljharb" 1642 | } 1643 | }, 1644 | "node_modules/tarn": { 1645 | "version": "3.0.2", 1646 | "resolved": "https://registry.npmjs.org/tarn/-/tarn-3.0.2.tgz", 1647 | "integrity": "sha512-51LAVKUSZSVfI05vjPESNc5vwqqZpbXCsU+/+wxlOrUjk2SnFTt97v9ZgQrD4YmxYW1Px6w2KjaDitCfkvgxMQ==", 1648 | "engines": { 1649 | "node": ">=8.0.0" 1650 | } 1651 | }, 1652 | "node_modules/thread-stream": { 1653 | "version": "2.4.1", 1654 | "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.4.1.tgz", 1655 | "integrity": "sha512-d/Ex2iWd1whipbT681JmTINKw0ZwOUBZm7+Gjs64DHuX34mmw8vJL2bFAaNacaW72zYiTJxSHi5abUuOi5nsfg==", 1656 | "dependencies": { 1657 | "real-require": "^0.2.0" 1658 | } 1659 | }, 1660 | "node_modules/tildify": { 1661 | "version": "2.0.0", 1662 | "resolved": "https://registry.npmjs.org/tildify/-/tildify-2.0.0.tgz", 1663 | "integrity": "sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==", 1664 | "engines": { 1665 | "node": ">=8" 1666 | } 1667 | }, 1668 | "node_modules/tmp": { 1669 | "version": "0.2.1", 1670 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", 1671 | "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", 1672 | "dependencies": { 1673 | "rimraf": "^3.0.0" 1674 | }, 1675 | "engines": { 1676 | "node": ">=8.17.0" 1677 | } 1678 | }, 1679 | "node_modules/toidentifier": { 1680 | "version": "1.0.1", 1681 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 1682 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 1683 | "engines": { 1684 | "node": ">=0.6" 1685 | } 1686 | }, 1687 | "node_modules/type-is": { 1688 | "version": "1.6.18", 1689 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1690 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1691 | "dependencies": { 1692 | "media-typer": "0.3.0", 1693 | "mime-types": "~2.1.24" 1694 | }, 1695 | "engines": { 1696 | "node": ">= 0.6" 1697 | } 1698 | }, 1699 | "node_modules/typescript": { 1700 | "version": "5.2.2", 1701 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", 1702 | "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", 1703 | "bin": { 1704 | "tsc": "bin/tsc", 1705 | "tsserver": "bin/tsserver" 1706 | }, 1707 | "engines": { 1708 | "node": ">=14.17" 1709 | } 1710 | }, 1711 | "node_modules/undici-types": { 1712 | "version": "5.26.5", 1713 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", 1714 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" 1715 | }, 1716 | "node_modules/universalify": { 1717 | "version": "2.0.0", 1718 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", 1719 | "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", 1720 | "engines": { 1721 | "node": ">= 10.0.0" 1722 | } 1723 | }, 1724 | "node_modules/unpipe": { 1725 | "version": "1.0.0", 1726 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1727 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 1728 | "engines": { 1729 | "node": ">= 0.8" 1730 | } 1731 | }, 1732 | "node_modules/utils-merge": { 1733 | "version": "1.0.1", 1734 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1735 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 1736 | "engines": { 1737 | "node": ">= 0.4.0" 1738 | } 1739 | }, 1740 | "node_modules/vary": { 1741 | "version": "1.1.2", 1742 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1743 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 1744 | "engines": { 1745 | "node": ">= 0.8" 1746 | } 1747 | }, 1748 | "node_modules/vue": { 1749 | "version": "3.3.4", 1750 | "resolved": "https://registry.npmjs.org/vue/-/vue-3.3.4.tgz", 1751 | "integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==", 1752 | "dependencies": { 1753 | "@vue/compiler-dom": "3.3.4", 1754 | "@vue/compiler-sfc": "3.3.4", 1755 | "@vue/runtime-dom": "3.3.4", 1756 | "@vue/server-renderer": "3.3.4", 1757 | "@vue/shared": "3.3.4" 1758 | } 1759 | }, 1760 | "node_modules/vue-router": { 1761 | "version": "4.2.0", 1762 | "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.2.0.tgz", 1763 | "integrity": "sha512-c+usESa6ZoWsm4PPdzRSyenp5A4dsUtnDJnrI03fY1IpIihA9TK3x5ffgkFDpjhLJZewsXoKURapNLFdZjuqTg==", 1764 | "dependencies": { 1765 | "@vue/devtools-api": "^6.5.0" 1766 | }, 1767 | "funding": { 1768 | "url": "https://github.com/sponsors/posva" 1769 | }, 1770 | "peerDependencies": { 1771 | "vue": "^3.2.0" 1772 | } 1773 | }, 1774 | "node_modules/wrappy": { 1775 | "version": "1.0.2", 1776 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1777 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 1778 | }, 1779 | "node_modules/zod": { 1780 | "version": "3.22.4", 1781 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", 1782 | "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", 1783 | "funding": { 1784 | "url": "https://github.com/sponsors/colinhacks" 1785 | } 1786 | } 1787 | } 1788 | } 1789 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "directus-hook-library", 3 | "version": "1.0.2", 4 | "description": "A collection of customizable hooks for Directus", 5 | "license": "GPL-3.0", 6 | "author": { 7 | "email": "dev@formfcw.com", 8 | "name": "formfcw" 9 | }, 10 | "main": "dist/index.js", 11 | "types": "dist/index.d.ts", 12 | "repository": { 13 | "type": "git", 14 | "url": "git+https://github.com/formfcw/directus-hook-library.git" 15 | }, 16 | "keywords": [ 17 | "directus", 18 | "directus-extension", 19 | "hook", 20 | "library", 21 | "project-settings", 22 | "env-settings", 23 | "cascade", 24 | "M2O", 25 | "delete-unused", 26 | "reset-hidden-fields", 27 | "replace-deleted-user-references" 28 | ], 29 | "bugs": { 30 | "url": "https://github.com/formfcw/directus-hook-library/issues" 31 | }, 32 | "homepage": "https://github.com/formfcw/directus-hook-library#readme", 33 | "scripts": { 34 | "build-and-publish": "tsc && npm publish", 35 | "build": "tsc" 36 | }, 37 | "dependencies": { 38 | "@directus/errors": "^0.2.0", 39 | "@directus/extensions": "^0.1.0", 40 | "@directus/types": "^11.0.1", 41 | "@types/node": "^20.8.9", 42 | "typescript": "^5.2.2" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2019", 4 | "lib": ["ES2019", "DOM"], 5 | "moduleResolution": "node", 6 | "strict": true, 7 | "noFallthroughCasesInSwitch": true, 8 | "esModuleInterop": true, 9 | "noImplicitAny": true, 10 | "noImplicitThis": true, 11 | "noImplicitReturns": true, 12 | "noUnusedLocals": true, 13 | "noUncheckedIndexedAccess": true, 14 | "noUnusedParameters": false, 15 | "alwaysStrict": true, 16 | "strictNullChecks": true, 17 | "strictFunctionTypes": true, 18 | "strictBindCallApply": true, 19 | "strictPropertyInitialization": true, 20 | "resolveJsonModule": false, 21 | "skipLibCheck": true, 22 | "forceConsistentCasingInFileNames": true, 23 | "allowSyntheticDefaultImports": true, 24 | "isolatedModules": true, 25 | "rootDir": "./", 26 | "outDir": "dist", 27 | "declaration": true 28 | }, 29 | "include": ["./**/*.ts"] 30 | } 31 | --------------------------------------------------------------------------------