├── .gitignore
├── DOCKER.md
├── Dockerfile
├── LICENSE
├── README.md
├── database
└── README.md
├── package-lock.json
├── package.json
├── queries
├── comment.sql
├── mention.sql
└── post.sql
├── src
├── db.ts
├── index.ts
├── parser.ts
└── schemas
│ ├── comment.json
│ ├── exception.json
│ ├── mention.json
│ └── post.json
└── tsconfig.json
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 | .pnpm-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | pids
15 | *.pid
16 | *.seed
17 | *.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | .grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | bower_components
34 |
35 | # node-waf configuration
36 | .lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | build/Release
40 |
41 | # Dependency directories
42 | node_modules/
43 | jspm_packages/
44 |
45 | # Snowpack dependency directory (https://snowpack.dev/)
46 | web_modules/
47 |
48 | # TypeScript cache
49 | *.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | .npm
53 |
54 | # Optional eslint cache
55 | .eslintcache
56 |
57 | # Optional stylelint cache
58 | .stylelintcache
59 |
60 | # Microbundle cache
61 | .rpt2_cache/
62 | .rts2_cache_cjs/
63 | .rts2_cache_es/
64 | .rts2_cache_umd/
65 |
66 | # Optional REPL history
67 | .node_repl_history
68 |
69 | # Output of 'npm pack'
70 | *.tgz
71 |
72 | # Yarn Integrity file
73 | .yarn-integrity
74 |
75 | # dotenv environment variable files
76 | .env
77 | .env.development.local
78 | .env.test.local
79 | .env.production.local
80 | .env.local
81 |
82 | # parcel-bundler cache (https://parceljs.org/)
83 | .cache
84 | .parcel-cache
85 |
86 | # Next.js build output
87 | .next
88 | out
89 |
90 | # Nuxt.js build / generate output
91 | .nuxt
92 | dist
93 |
94 | # Gatsby files
95 | .cache/
96 | # Comment in the public line in if your project uses Gatsby and not Next.js
97 | # https://nextjs.org/blog/next-9-1#public-directory-support
98 | # public
99 |
100 | # vuepress build output
101 | .vuepress/dist
102 |
103 | # vuepress v2.x temp and cache directory
104 | .temp
105 | .cache
106 |
107 | # Docusaurus cache and generated files
108 | .docusaurus
109 |
110 | # Serverless directories
111 | .serverless/
112 |
113 | # FuseBox cache
114 | .fusebox/
115 |
116 | # DynamoDB Local files
117 | .dynamodb/
118 |
119 | # TernJS port file
120 | .tern-port
121 |
122 | # Stores VSCode versions used for testing VSCode extensions
123 | .vscode-test
124 |
125 | # yarn v2
126 | .yarn/cache
127 | .yarn/unplugged
128 | .yarn/build-state.yml
129 | .yarn/install-state.gz
130 | .pnp.*
131 |
132 | /database/db.sqlite3
133 | /database/db.sqlite3-shm
134 | /database/db.sqlite3-wal
--------------------------------------------------------------------------------
/DOCKER.md:
--------------------------------------------------------------------------------
1 | Personal notes for publishing new versions of the bot with Docker:
2 |
3 | # Build new container
4 | `docker build -t ornatot/lemmy-automoderator .`
5 |
6 | # Publish image
7 | `docker login`
8 |
9 | `docker push ornatot/lemmy-automoderator`
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | # Use the official Node.js LTS image as the base image
2 | FROM node:18
3 |
4 | # Set the working directory for the app
5 | WORKDIR /usr/src/app
6 |
7 | # Copy package.json and package-lock.json
8 | COPY package*.json ./
9 |
10 | # Install app dependencies
11 | RUN npm install
12 |
13 | # Install better-sqlite3 separately
14 | RUN npm install better-sqlite3
15 |
16 | # Copy only the compiled .js files and node_modules directory
17 | COPY dist/*.js ./dist/
18 | COPY dist/schemas/*.json ./dist/schemas/
19 |
20 | # Expose port and start application
21 | EXPOSE 8080
22 | CMD [ "npm", "start" ]
23 |
--------------------------------------------------------------------------------
/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 | # Feature overview
2 | ## Moderation
3 |
4 | - **Automated removal**
5 | - of **posts**, based on their _titles_, _content_ or _link_
6 | - of **comments**, based on their _content_
7 | - configurable with either regular expressions or substrings
8 | - **User whitelisting** and **exceptions for moderators** to selectively lift some or all of the aforementioned rules.
9 | - Mention based **pinning** and **locking** of a post, through commands available exclusively to the mod team
10 |
11 | At the moment the AutoMod works solely on local communities. Support for federated communities might be added in future updates.
12 |
13 | ## Administration
14 |
15 | Optionally, the AutoMod may be appointed as an administrator in an instance. This will offer an additional feature:
16 | - Discord notifications for new **registration applications** through a webhook.
17 |
18 | # Installation
19 | There are three possible installation methods:
20 | - [Docker with docker-compose](https://github.com/ornato-t/lemmy-automoderator/wiki/Installation#lemmy-deployed-on-docker-with-docker-compose) (recommended)
21 | - [Docker as a standalone container](https://github.com/ornato-t/lemmy-automoderator/wiki/Installation#standalone-docker-container)
22 | - [Node script](https://github.com/ornato-t/lemmy-automoderator/wiki/Installation#node-script)
23 |
24 | The repository's wiki includes a brief guide on how to set up all of these deployments.
25 |
26 | # Configuration
27 | Once the AutoMod has been correctly installed on an instance, moderators will be able to add their custom configurations and rules.
28 |
29 | Configuration is done through direct messages between a moderator's account and the AutoMod's.
30 | AutoMod rules should be in the JSON format and follow the provided [schemas](https://github.com/ornato-t/lemmy-automoderator/tree/master/src/schemas).
31 |
32 | More detailed documentation on how to configure the AutoMod may be found in this repository's [wiki](https://github.com/ornato-t/lemmy-automoderator/wiki).
33 |
34 | # Roadmap
35 | Eventually, these features will be added to the AutoMod:
36 | - Automated resolving of reports for posts and comments created by whitelisted users.
37 |
38 | # Feature request
39 | If you have any ideas for additional features that you'd like to see in this bot, feel free to open an issue detailing your request.
--------------------------------------------------------------------------------
/database/README.md:
--------------------------------------------------------------------------------
1 | This directory will contain the Sqlite3 database for the AutoMod. Do not delete, or all configurations will be lost.
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lemmy-automoderator",
3 | "version": "1.0.0",
4 | "lockfileVersion": 2,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "version": "1.0.0",
9 | "dependencies": {
10 | "ajv": "^8.12.0",
11 | "ajv-formats": "^2.1.1",
12 | "better-sqlite3": "^8.4.0",
13 | "dotenv": "^16.3.1",
14 | "lemmy-bot": "^0.5.1"
15 | },
16 | "devDependencies": {
17 | "@types/better-sqlite3": "^7.6.4",
18 | "@types/node": "^20.3.1",
19 | "@types/node-cron": "^3.0.8",
20 | "typescript": "^5.1.3"
21 | }
22 | },
23 | "node_modules/@gar/promisify": {
24 | "version": "1.1.3",
25 | "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz",
26 | "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==",
27 | "optional": true
28 | },
29 | "node_modules/@mapbox/node-pre-gyp": {
30 | "version": "1.0.10",
31 | "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz",
32 | "integrity": "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==",
33 | "dependencies": {
34 | "detect-libc": "^2.0.0",
35 | "https-proxy-agent": "^5.0.0",
36 | "make-dir": "^3.1.0",
37 | "node-fetch": "^2.6.7",
38 | "nopt": "^5.0.0",
39 | "npmlog": "^5.0.1",
40 | "rimraf": "^3.0.2",
41 | "semver": "^7.3.5",
42 | "tar": "^6.1.11"
43 | },
44 | "bin": {
45 | "node-pre-gyp": "bin/node-pre-gyp"
46 | }
47 | },
48 | "node_modules/@npmcli/fs": {
49 | "version": "1.1.1",
50 | "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz",
51 | "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==",
52 | "optional": true,
53 | "dependencies": {
54 | "@gar/promisify": "^1.0.1",
55 | "semver": "^7.3.5"
56 | }
57 | },
58 | "node_modules/@npmcli/move-file": {
59 | "version": "1.1.2",
60 | "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz",
61 | "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==",
62 | "deprecated": "This functionality has been moved to @npmcli/fs",
63 | "optional": true,
64 | "dependencies": {
65 | "mkdirp": "^1.0.4",
66 | "rimraf": "^3.0.2"
67 | },
68 | "engines": {
69 | "node": ">=10"
70 | }
71 | },
72 | "node_modules/@tootallnate/once": {
73 | "version": "1.1.2",
74 | "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz",
75 | "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==",
76 | "optional": true,
77 | "engines": {
78 | "node": ">= 6"
79 | }
80 | },
81 | "node_modules/@types/better-sqlite3": {
82 | "version": "7.6.4",
83 | "resolved": "https://registry.npmjs.org/@types/better-sqlite3/-/better-sqlite3-7.6.4.tgz",
84 | "integrity": "sha512-dzrRZCYPXIXfSR1/surNbJ/grU3scTaygS0OMzjlGf71i9sc2fGyHPXXiXmEvNIoE0cGwsanEFMVJxPXmco9Eg==",
85 | "dev": true,
86 | "dependencies": {
87 | "@types/node": "*"
88 | }
89 | },
90 | "node_modules/@types/node": {
91 | "version": "20.3.1",
92 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz",
93 | "integrity": "sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==",
94 | "dev": true
95 | },
96 | "node_modules/@types/node-cron": {
97 | "version": "3.0.8",
98 | "resolved": "https://registry.npmjs.org/@types/node-cron/-/node-cron-3.0.8.tgz",
99 | "integrity": "sha512-+z5VrCvLwiJUohbRSgHdyZnHzAaLuD/E2bBANw+NQ1l05Crj8dIxb/kKK+OEqRitV2Wr/LYLuEBenGDsHZVV5Q==",
100 | "dev": true
101 | },
102 | "node_modules/abbrev": {
103 | "version": "1.1.1",
104 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
105 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
106 | },
107 | "node_modules/agent-base": {
108 | "version": "6.0.2",
109 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
110 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
111 | "dependencies": {
112 | "debug": "4"
113 | },
114 | "engines": {
115 | "node": ">= 6.0.0"
116 | }
117 | },
118 | "node_modules/agentkeepalive": {
119 | "version": "4.3.0",
120 | "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.3.0.tgz",
121 | "integrity": "sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==",
122 | "optional": true,
123 | "dependencies": {
124 | "debug": "^4.1.0",
125 | "depd": "^2.0.0",
126 | "humanize-ms": "^1.2.1"
127 | },
128 | "engines": {
129 | "node": ">= 8.0.0"
130 | }
131 | },
132 | "node_modules/aggregate-error": {
133 | "version": "3.1.0",
134 | "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",
135 | "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",
136 | "optional": true,
137 | "dependencies": {
138 | "clean-stack": "^2.0.0",
139 | "indent-string": "^4.0.0"
140 | },
141 | "engines": {
142 | "node": ">=8"
143 | }
144 | },
145 | "node_modules/ajv": {
146 | "version": "8.12.0",
147 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
148 | "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
149 | "dependencies": {
150 | "fast-deep-equal": "^3.1.1",
151 | "json-schema-traverse": "^1.0.0",
152 | "require-from-string": "^2.0.2",
153 | "uri-js": "^4.2.2"
154 | },
155 | "funding": {
156 | "type": "github",
157 | "url": "https://github.com/sponsors/epoberezkin"
158 | }
159 | },
160 | "node_modules/ajv-formats": {
161 | "version": "2.1.1",
162 | "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
163 | "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
164 | "dependencies": {
165 | "ajv": "^8.0.0"
166 | },
167 | "peerDependencies": {
168 | "ajv": "^8.0.0"
169 | },
170 | "peerDependenciesMeta": {
171 | "ajv": {
172 | "optional": true
173 | }
174 | }
175 | },
176 | "node_modules/ansi-regex": {
177 | "version": "5.0.1",
178 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
179 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
180 | "engines": {
181 | "node": ">=8"
182 | }
183 | },
184 | "node_modules/aproba": {
185 | "version": "2.0.0",
186 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
187 | "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ=="
188 | },
189 | "node_modules/are-we-there-yet": {
190 | "version": "2.0.0",
191 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
192 | "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
193 | "dependencies": {
194 | "delegates": "^1.0.0",
195 | "readable-stream": "^3.6.0"
196 | },
197 | "engines": {
198 | "node": ">=10"
199 | }
200 | },
201 | "node_modules/asynckit": {
202 | "version": "0.4.0",
203 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
204 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
205 | },
206 | "node_modules/balanced-match": {
207 | "version": "1.0.2",
208 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
209 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
210 | },
211 | "node_modules/base64-js": {
212 | "version": "1.5.1",
213 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
214 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
215 | "funding": [
216 | {
217 | "type": "github",
218 | "url": "https://github.com/sponsors/feross"
219 | },
220 | {
221 | "type": "patreon",
222 | "url": "https://www.patreon.com/feross"
223 | },
224 | {
225 | "type": "consulting",
226 | "url": "https://feross.org/support"
227 | }
228 | ]
229 | },
230 | "node_modules/better-sqlite3": {
231 | "version": "8.4.0",
232 | "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-8.4.0.tgz",
233 | "integrity": "sha512-NmsNW1CQvqMszu/CFAJ3pLct6NEFlNfuGM6vw72KHkjOD1UDnL96XNN1BMQc1hiHo8vE2GbOWQYIpZ+YM5wrZw==",
234 | "hasInstallScript": true,
235 | "dependencies": {
236 | "bindings": "^1.5.0",
237 | "prebuild-install": "^7.1.0"
238 | }
239 | },
240 | "node_modules/bindings": {
241 | "version": "1.5.0",
242 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
243 | "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
244 | "dependencies": {
245 | "file-uri-to-path": "1.0.0"
246 | }
247 | },
248 | "node_modules/bl": {
249 | "version": "4.1.0",
250 | "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
251 | "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
252 | "dependencies": {
253 | "buffer": "^5.5.0",
254 | "inherits": "^2.0.4",
255 | "readable-stream": "^3.4.0"
256 | }
257 | },
258 | "node_modules/brace-expansion": {
259 | "version": "1.1.11",
260 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
261 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
262 | "dependencies": {
263 | "balanced-match": "^1.0.0",
264 | "concat-map": "0.0.1"
265 | }
266 | },
267 | "node_modules/buffer": {
268 | "version": "5.7.1",
269 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
270 | "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
271 | "funding": [
272 | {
273 | "type": "github",
274 | "url": "https://github.com/sponsors/feross"
275 | },
276 | {
277 | "type": "patreon",
278 | "url": "https://www.patreon.com/feross"
279 | },
280 | {
281 | "type": "consulting",
282 | "url": "https://feross.org/support"
283 | }
284 | ],
285 | "dependencies": {
286 | "base64-js": "^1.3.1",
287 | "ieee754": "^1.1.13"
288 | }
289 | },
290 | "node_modules/cacache": {
291 | "version": "15.3.0",
292 | "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz",
293 | "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==",
294 | "optional": true,
295 | "dependencies": {
296 | "@npmcli/fs": "^1.0.0",
297 | "@npmcli/move-file": "^1.0.1",
298 | "chownr": "^2.0.0",
299 | "fs-minipass": "^2.0.0",
300 | "glob": "^7.1.4",
301 | "infer-owner": "^1.0.4",
302 | "lru-cache": "^6.0.0",
303 | "minipass": "^3.1.1",
304 | "minipass-collect": "^1.0.2",
305 | "minipass-flush": "^1.0.5",
306 | "minipass-pipeline": "^1.2.2",
307 | "mkdirp": "^1.0.3",
308 | "p-map": "^4.0.0",
309 | "promise-inflight": "^1.0.1",
310 | "rimraf": "^3.0.2",
311 | "ssri": "^8.0.1",
312 | "tar": "^6.0.2",
313 | "unique-filename": "^1.1.1"
314 | },
315 | "engines": {
316 | "node": ">= 10"
317 | }
318 | },
319 | "node_modules/chownr": {
320 | "version": "2.0.0",
321 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
322 | "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
323 | "engines": {
324 | "node": ">=10"
325 | }
326 | },
327 | "node_modules/clean-stack": {
328 | "version": "2.2.0",
329 | "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
330 | "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",
331 | "optional": true,
332 | "engines": {
333 | "node": ">=6"
334 | }
335 | },
336 | "node_modules/color-support": {
337 | "version": "1.1.3",
338 | "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
339 | "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
340 | "bin": {
341 | "color-support": "bin.js"
342 | }
343 | },
344 | "node_modules/combined-stream": {
345 | "version": "1.0.8",
346 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
347 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
348 | "dependencies": {
349 | "delayed-stream": "~1.0.0"
350 | },
351 | "engines": {
352 | "node": ">= 0.8"
353 | }
354 | },
355 | "node_modules/concat-map": {
356 | "version": "0.0.1",
357 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
358 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
359 | },
360 | "node_modules/console-control-strings": {
361 | "version": "1.1.0",
362 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
363 | "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
364 | },
365 | "node_modules/cross-fetch": {
366 | "version": "3.1.8",
367 | "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz",
368 | "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==",
369 | "dependencies": {
370 | "node-fetch": "^2.6.12"
371 | }
372 | },
373 | "node_modules/debug": {
374 | "version": "4.3.4",
375 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
376 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
377 | "dependencies": {
378 | "ms": "2.1.2"
379 | },
380 | "engines": {
381 | "node": ">=6.0"
382 | },
383 | "peerDependenciesMeta": {
384 | "supports-color": {
385 | "optional": true
386 | }
387 | }
388 | },
389 | "node_modules/decompress-response": {
390 | "version": "6.0.0",
391 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
392 | "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
393 | "dependencies": {
394 | "mimic-response": "^3.1.0"
395 | },
396 | "engines": {
397 | "node": ">=10"
398 | },
399 | "funding": {
400 | "url": "https://github.com/sponsors/sindresorhus"
401 | }
402 | },
403 | "node_modules/deep-extend": {
404 | "version": "0.6.0",
405 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
406 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
407 | "engines": {
408 | "node": ">=4.0.0"
409 | }
410 | },
411 | "node_modules/delayed-stream": {
412 | "version": "1.0.0",
413 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
414 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
415 | "engines": {
416 | "node": ">=0.4.0"
417 | }
418 | },
419 | "node_modules/delegates": {
420 | "version": "1.0.0",
421 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
422 | "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
423 | },
424 | "node_modules/depd": {
425 | "version": "2.0.0",
426 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
427 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
428 | "optional": true,
429 | "engines": {
430 | "node": ">= 0.8"
431 | }
432 | },
433 | "node_modules/detect-libc": {
434 | "version": "2.0.1",
435 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz",
436 | "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==",
437 | "engines": {
438 | "node": ">=8"
439 | }
440 | },
441 | "node_modules/dotenv": {
442 | "version": "16.3.1",
443 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",
444 | "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",
445 | "engines": {
446 | "node": ">=12"
447 | },
448 | "funding": {
449 | "url": "https://github.com/motdotla/dotenv?sponsor=1"
450 | }
451 | },
452 | "node_modules/emoji-regex": {
453 | "version": "8.0.0",
454 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
455 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
456 | },
457 | "node_modules/encoding": {
458 | "version": "0.1.13",
459 | "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",
460 | "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",
461 | "optional": true,
462 | "dependencies": {
463 | "iconv-lite": "^0.6.2"
464 | }
465 | },
466 | "node_modules/end-of-stream": {
467 | "version": "1.4.4",
468 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
469 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
470 | "dependencies": {
471 | "once": "^1.4.0"
472 | }
473 | },
474 | "node_modules/env-paths": {
475 | "version": "2.2.1",
476 | "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
477 | "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
478 | "optional": true,
479 | "engines": {
480 | "node": ">=6"
481 | }
482 | },
483 | "node_modules/err-code": {
484 | "version": "2.0.3",
485 | "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz",
486 | "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",
487 | "optional": true
488 | },
489 | "node_modules/expand-template": {
490 | "version": "2.0.3",
491 | "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
492 | "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
493 | "engines": {
494 | "node": ">=6"
495 | }
496 | },
497 | "node_modules/fast-deep-equal": {
498 | "version": "3.1.3",
499 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
500 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
501 | },
502 | "node_modules/file-uri-to-path": {
503 | "version": "1.0.0",
504 | "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
505 | "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="
506 | },
507 | "node_modules/form-data": {
508 | "version": "4.0.0",
509 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
510 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
511 | "dependencies": {
512 | "asynckit": "^0.4.0",
513 | "combined-stream": "^1.0.8",
514 | "mime-types": "^2.1.12"
515 | },
516 | "engines": {
517 | "node": ">= 6"
518 | }
519 | },
520 | "node_modules/fs-constants": {
521 | "version": "1.0.0",
522 | "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
523 | "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="
524 | },
525 | "node_modules/fs-minipass": {
526 | "version": "2.1.0",
527 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
528 | "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
529 | "dependencies": {
530 | "minipass": "^3.0.0"
531 | },
532 | "engines": {
533 | "node": ">= 8"
534 | }
535 | },
536 | "node_modules/fs.realpath": {
537 | "version": "1.0.0",
538 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
539 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
540 | },
541 | "node_modules/gauge": {
542 | "version": "3.0.2",
543 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
544 | "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
545 | "dependencies": {
546 | "aproba": "^1.0.3 || ^2.0.0",
547 | "color-support": "^1.1.2",
548 | "console-control-strings": "^1.0.0",
549 | "has-unicode": "^2.0.1",
550 | "object-assign": "^4.1.1",
551 | "signal-exit": "^3.0.0",
552 | "string-width": "^4.2.3",
553 | "strip-ansi": "^6.0.1",
554 | "wide-align": "^1.1.2"
555 | },
556 | "engines": {
557 | "node": ">=10"
558 | }
559 | },
560 | "node_modules/github-from-package": {
561 | "version": "0.0.0",
562 | "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
563 | "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw=="
564 | },
565 | "node_modules/glob": {
566 | "version": "7.2.3",
567 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
568 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
569 | "dependencies": {
570 | "fs.realpath": "^1.0.0",
571 | "inflight": "^1.0.4",
572 | "inherits": "2",
573 | "minimatch": "^3.1.1",
574 | "once": "^1.3.0",
575 | "path-is-absolute": "^1.0.0"
576 | },
577 | "engines": {
578 | "node": "*"
579 | },
580 | "funding": {
581 | "url": "https://github.com/sponsors/isaacs"
582 | }
583 | },
584 | "node_modules/graceful-fs": {
585 | "version": "4.2.11",
586 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
587 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
588 | "optional": true
589 | },
590 | "node_modules/has-unicode": {
591 | "version": "2.0.1",
592 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
593 | "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
594 | },
595 | "node_modules/http-cache-semantics": {
596 | "version": "4.1.1",
597 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz",
598 | "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==",
599 | "optional": true
600 | },
601 | "node_modules/http-proxy-agent": {
602 | "version": "4.0.1",
603 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz",
604 | "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==",
605 | "optional": true,
606 | "dependencies": {
607 | "@tootallnate/once": "1",
608 | "agent-base": "6",
609 | "debug": "4"
610 | },
611 | "engines": {
612 | "node": ">= 6"
613 | }
614 | },
615 | "node_modules/https-proxy-agent": {
616 | "version": "5.0.1",
617 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
618 | "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
619 | "dependencies": {
620 | "agent-base": "6",
621 | "debug": "4"
622 | },
623 | "engines": {
624 | "node": ">= 6"
625 | }
626 | },
627 | "node_modules/humanize-ms": {
628 | "version": "1.2.1",
629 | "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
630 | "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
631 | "optional": true,
632 | "dependencies": {
633 | "ms": "^2.0.0"
634 | }
635 | },
636 | "node_modules/iconv-lite": {
637 | "version": "0.6.3",
638 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
639 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
640 | "optional": true,
641 | "dependencies": {
642 | "safer-buffer": ">= 2.1.2 < 3.0.0"
643 | },
644 | "engines": {
645 | "node": ">=0.10.0"
646 | }
647 | },
648 | "node_modules/ieee754": {
649 | "version": "1.2.1",
650 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
651 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
652 | "funding": [
653 | {
654 | "type": "github",
655 | "url": "https://github.com/sponsors/feross"
656 | },
657 | {
658 | "type": "patreon",
659 | "url": "https://www.patreon.com/feross"
660 | },
661 | {
662 | "type": "consulting",
663 | "url": "https://feross.org/support"
664 | }
665 | ]
666 | },
667 | "node_modules/imurmurhash": {
668 | "version": "0.1.4",
669 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
670 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
671 | "optional": true,
672 | "engines": {
673 | "node": ">=0.8.19"
674 | }
675 | },
676 | "node_modules/indent-string": {
677 | "version": "4.0.0",
678 | "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
679 | "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
680 | "optional": true,
681 | "engines": {
682 | "node": ">=8"
683 | }
684 | },
685 | "node_modules/infer-owner": {
686 | "version": "1.0.4",
687 | "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz",
688 | "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==",
689 | "optional": true
690 | },
691 | "node_modules/inflight": {
692 | "version": "1.0.6",
693 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
694 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
695 | "dependencies": {
696 | "once": "^1.3.0",
697 | "wrappy": "1"
698 | }
699 | },
700 | "node_modules/inherits": {
701 | "version": "2.0.4",
702 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
703 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
704 | },
705 | "node_modules/ini": {
706 | "version": "1.3.8",
707 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
708 | "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
709 | },
710 | "node_modules/ip": {
711 | "version": "2.0.0",
712 | "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz",
713 | "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==",
714 | "optional": true
715 | },
716 | "node_modules/is-fullwidth-code-point": {
717 | "version": "3.0.0",
718 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
719 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
720 | "engines": {
721 | "node": ">=8"
722 | }
723 | },
724 | "node_modules/is-lambda": {
725 | "version": "1.0.1",
726 | "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz",
727 | "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==",
728 | "optional": true
729 | },
730 | "node_modules/isexe": {
731 | "version": "2.0.0",
732 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
733 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
734 | "optional": true
735 | },
736 | "node_modules/json-schema-traverse": {
737 | "version": "1.0.0",
738 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
739 | "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
740 | },
741 | "node_modules/lemmy-bot": {
742 | "version": "0.5.1",
743 | "resolved": "https://registry.npmjs.org/lemmy-bot/-/lemmy-bot-0.5.1.tgz",
744 | "integrity": "sha512-dRguH3qHLHRdnZzZ5MvguVy94k8rz/COvF+KJGkn0OOx/Qhzp/ByDv9vXZh0x9rzkddfVp4ODPZCgEDrDPbJog==",
745 | "dependencies": {
746 | "lemmy-js-client": "0.19.0",
747 | "node-cron": "^3.0.3",
748 | "sqlite3": "^5.1.6"
749 | },
750 | "engines": {
751 | "node": ">=18.0.0"
752 | }
753 | },
754 | "node_modules/lemmy-js-client": {
755 | "version": "0.19.0",
756 | "resolved": "https://registry.npmjs.org/lemmy-js-client/-/lemmy-js-client-0.19.0.tgz",
757 | "integrity": "sha512-h+E8wC9RKjlToWw9+kuGFAzk4Fiaf61KqAwzvoCDAfj2L1r+YNt5EDMOggGCoRx5PlqLuIVr7BNEU46KxJfmHA==",
758 | "dependencies": {
759 | "cross-fetch": "^3.1.5",
760 | "form-data": "^4.0.0"
761 | }
762 | },
763 | "node_modules/lru-cache": {
764 | "version": "6.0.0",
765 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
766 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
767 | "dependencies": {
768 | "yallist": "^4.0.0"
769 | },
770 | "engines": {
771 | "node": ">=10"
772 | }
773 | },
774 | "node_modules/make-dir": {
775 | "version": "3.1.0",
776 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
777 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
778 | "dependencies": {
779 | "semver": "^6.0.0"
780 | },
781 | "engines": {
782 | "node": ">=8"
783 | },
784 | "funding": {
785 | "url": "https://github.com/sponsors/sindresorhus"
786 | }
787 | },
788 | "node_modules/make-dir/node_modules/semver": {
789 | "version": "6.3.0",
790 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
791 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
792 | "bin": {
793 | "semver": "bin/semver.js"
794 | }
795 | },
796 | "node_modules/make-fetch-happen": {
797 | "version": "9.1.0",
798 | "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz",
799 | "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==",
800 | "optional": true,
801 | "dependencies": {
802 | "agentkeepalive": "^4.1.3",
803 | "cacache": "^15.2.0",
804 | "http-cache-semantics": "^4.1.0",
805 | "http-proxy-agent": "^4.0.1",
806 | "https-proxy-agent": "^5.0.0",
807 | "is-lambda": "^1.0.1",
808 | "lru-cache": "^6.0.0",
809 | "minipass": "^3.1.3",
810 | "minipass-collect": "^1.0.2",
811 | "minipass-fetch": "^1.3.2",
812 | "minipass-flush": "^1.0.5",
813 | "minipass-pipeline": "^1.2.4",
814 | "negotiator": "^0.6.2",
815 | "promise-retry": "^2.0.1",
816 | "socks-proxy-agent": "^6.0.0",
817 | "ssri": "^8.0.0"
818 | },
819 | "engines": {
820 | "node": ">= 10"
821 | }
822 | },
823 | "node_modules/mime-db": {
824 | "version": "1.52.0",
825 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
826 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
827 | "engines": {
828 | "node": ">= 0.6"
829 | }
830 | },
831 | "node_modules/mime-types": {
832 | "version": "2.1.35",
833 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
834 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
835 | "dependencies": {
836 | "mime-db": "1.52.0"
837 | },
838 | "engines": {
839 | "node": ">= 0.6"
840 | }
841 | },
842 | "node_modules/mimic-response": {
843 | "version": "3.1.0",
844 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
845 | "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
846 | "engines": {
847 | "node": ">=10"
848 | },
849 | "funding": {
850 | "url": "https://github.com/sponsors/sindresorhus"
851 | }
852 | },
853 | "node_modules/minimatch": {
854 | "version": "3.1.2",
855 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
856 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
857 | "dependencies": {
858 | "brace-expansion": "^1.1.7"
859 | },
860 | "engines": {
861 | "node": "*"
862 | }
863 | },
864 | "node_modules/minimist": {
865 | "version": "1.2.8",
866 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
867 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
868 | "funding": {
869 | "url": "https://github.com/sponsors/ljharb"
870 | }
871 | },
872 | "node_modules/minipass": {
873 | "version": "3.3.6",
874 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
875 | "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
876 | "dependencies": {
877 | "yallist": "^4.0.0"
878 | },
879 | "engines": {
880 | "node": ">=8"
881 | }
882 | },
883 | "node_modules/minipass-collect": {
884 | "version": "1.0.2",
885 | "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz",
886 | "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==",
887 | "optional": true,
888 | "dependencies": {
889 | "minipass": "^3.0.0"
890 | },
891 | "engines": {
892 | "node": ">= 8"
893 | }
894 | },
895 | "node_modules/minipass-fetch": {
896 | "version": "1.4.1",
897 | "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz",
898 | "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==",
899 | "optional": true,
900 | "dependencies": {
901 | "minipass": "^3.1.0",
902 | "minipass-sized": "^1.0.3",
903 | "minizlib": "^2.0.0"
904 | },
905 | "engines": {
906 | "node": ">=8"
907 | },
908 | "optionalDependencies": {
909 | "encoding": "^0.1.12"
910 | }
911 | },
912 | "node_modules/minipass-flush": {
913 | "version": "1.0.5",
914 | "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz",
915 | "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==",
916 | "optional": true,
917 | "dependencies": {
918 | "minipass": "^3.0.0"
919 | },
920 | "engines": {
921 | "node": ">= 8"
922 | }
923 | },
924 | "node_modules/minipass-pipeline": {
925 | "version": "1.2.4",
926 | "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz",
927 | "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==",
928 | "optional": true,
929 | "dependencies": {
930 | "minipass": "^3.0.0"
931 | },
932 | "engines": {
933 | "node": ">=8"
934 | }
935 | },
936 | "node_modules/minipass-sized": {
937 | "version": "1.0.3",
938 | "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz",
939 | "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==",
940 | "optional": true,
941 | "dependencies": {
942 | "minipass": "^3.0.0"
943 | },
944 | "engines": {
945 | "node": ">=8"
946 | }
947 | },
948 | "node_modules/minizlib": {
949 | "version": "2.1.2",
950 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
951 | "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
952 | "dependencies": {
953 | "minipass": "^3.0.0",
954 | "yallist": "^4.0.0"
955 | },
956 | "engines": {
957 | "node": ">= 8"
958 | }
959 | },
960 | "node_modules/mkdirp": {
961 | "version": "1.0.4",
962 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
963 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
964 | "bin": {
965 | "mkdirp": "bin/cmd.js"
966 | },
967 | "engines": {
968 | "node": ">=10"
969 | }
970 | },
971 | "node_modules/mkdirp-classic": {
972 | "version": "0.5.3",
973 | "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
974 | "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="
975 | },
976 | "node_modules/ms": {
977 | "version": "2.1.2",
978 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
979 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
980 | },
981 | "node_modules/napi-build-utils": {
982 | "version": "1.0.2",
983 | "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",
984 | "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg=="
985 | },
986 | "node_modules/negotiator": {
987 | "version": "0.6.3",
988 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
989 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
990 | "optional": true,
991 | "engines": {
992 | "node": ">= 0.6"
993 | }
994 | },
995 | "node_modules/node-abi": {
996 | "version": "3.45.0",
997 | "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.45.0.tgz",
998 | "integrity": "sha512-iwXuFrMAcFVi/ZoZiqq8BzAdsLw9kxDfTC0HMyjXfSL/6CSDAGD5UmR7azrAgWV1zKYq7dUUMj4owusBWKLsiQ==",
999 | "dependencies": {
1000 | "semver": "^7.3.5"
1001 | },
1002 | "engines": {
1003 | "node": ">=10"
1004 | }
1005 | },
1006 | "node_modules/node-addon-api": {
1007 | "version": "4.3.0",
1008 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz",
1009 | "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ=="
1010 | },
1011 | "node_modules/node-cron": {
1012 | "version": "3.0.3",
1013 | "resolved": "https://registry.npmjs.org/node-cron/-/node-cron-3.0.3.tgz",
1014 | "integrity": "sha512-dOal67//nohNgYWb+nWmg5dkFdIwDm8EpeGYMekPMrngV3637lqnX0lbUcCtgibHTz6SEz7DAIjKvKDFYCnO1A==",
1015 | "dependencies": {
1016 | "uuid": "8.3.2"
1017 | },
1018 | "engines": {
1019 | "node": ">=6.0.0"
1020 | }
1021 | },
1022 | "node_modules/node-fetch": {
1023 | "version": "2.7.0",
1024 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
1025 | "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
1026 | "dependencies": {
1027 | "whatwg-url": "^5.0.0"
1028 | },
1029 | "engines": {
1030 | "node": "4.x || >=6.0.0"
1031 | },
1032 | "peerDependencies": {
1033 | "encoding": "^0.1.0"
1034 | },
1035 | "peerDependenciesMeta": {
1036 | "encoding": {
1037 | "optional": true
1038 | }
1039 | }
1040 | },
1041 | "node_modules/node-gyp": {
1042 | "version": "8.4.1",
1043 | "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz",
1044 | "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==",
1045 | "optional": true,
1046 | "dependencies": {
1047 | "env-paths": "^2.2.0",
1048 | "glob": "^7.1.4",
1049 | "graceful-fs": "^4.2.6",
1050 | "make-fetch-happen": "^9.1.0",
1051 | "nopt": "^5.0.0",
1052 | "npmlog": "^6.0.0",
1053 | "rimraf": "^3.0.2",
1054 | "semver": "^7.3.5",
1055 | "tar": "^6.1.2",
1056 | "which": "^2.0.2"
1057 | },
1058 | "bin": {
1059 | "node-gyp": "bin/node-gyp.js"
1060 | },
1061 | "engines": {
1062 | "node": ">= 10.12.0"
1063 | }
1064 | },
1065 | "node_modules/node-gyp/node_modules/are-we-there-yet": {
1066 | "version": "3.0.1",
1067 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz",
1068 | "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==",
1069 | "optional": true,
1070 | "dependencies": {
1071 | "delegates": "^1.0.0",
1072 | "readable-stream": "^3.6.0"
1073 | },
1074 | "engines": {
1075 | "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
1076 | }
1077 | },
1078 | "node_modules/node-gyp/node_modules/gauge": {
1079 | "version": "4.0.4",
1080 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz",
1081 | "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==",
1082 | "optional": true,
1083 | "dependencies": {
1084 | "aproba": "^1.0.3 || ^2.0.0",
1085 | "color-support": "^1.1.3",
1086 | "console-control-strings": "^1.1.0",
1087 | "has-unicode": "^2.0.1",
1088 | "signal-exit": "^3.0.7",
1089 | "string-width": "^4.2.3",
1090 | "strip-ansi": "^6.0.1",
1091 | "wide-align": "^1.1.5"
1092 | },
1093 | "engines": {
1094 | "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
1095 | }
1096 | },
1097 | "node_modules/node-gyp/node_modules/npmlog": {
1098 | "version": "6.0.2",
1099 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz",
1100 | "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==",
1101 | "optional": true,
1102 | "dependencies": {
1103 | "are-we-there-yet": "^3.0.0",
1104 | "console-control-strings": "^1.1.0",
1105 | "gauge": "^4.0.3",
1106 | "set-blocking": "^2.0.0"
1107 | },
1108 | "engines": {
1109 | "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
1110 | }
1111 | },
1112 | "node_modules/nopt": {
1113 | "version": "5.0.0",
1114 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
1115 | "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
1116 | "dependencies": {
1117 | "abbrev": "1"
1118 | },
1119 | "bin": {
1120 | "nopt": "bin/nopt.js"
1121 | },
1122 | "engines": {
1123 | "node": ">=6"
1124 | }
1125 | },
1126 | "node_modules/npmlog": {
1127 | "version": "5.0.1",
1128 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
1129 | "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
1130 | "dependencies": {
1131 | "are-we-there-yet": "^2.0.0",
1132 | "console-control-strings": "^1.1.0",
1133 | "gauge": "^3.0.0",
1134 | "set-blocking": "^2.0.0"
1135 | }
1136 | },
1137 | "node_modules/object-assign": {
1138 | "version": "4.1.1",
1139 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
1140 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
1141 | "engines": {
1142 | "node": ">=0.10.0"
1143 | }
1144 | },
1145 | "node_modules/once": {
1146 | "version": "1.4.0",
1147 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1148 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
1149 | "dependencies": {
1150 | "wrappy": "1"
1151 | }
1152 | },
1153 | "node_modules/p-map": {
1154 | "version": "4.0.0",
1155 | "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",
1156 | "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",
1157 | "optional": true,
1158 | "dependencies": {
1159 | "aggregate-error": "^3.0.0"
1160 | },
1161 | "engines": {
1162 | "node": ">=10"
1163 | },
1164 | "funding": {
1165 | "url": "https://github.com/sponsors/sindresorhus"
1166 | }
1167 | },
1168 | "node_modules/path-is-absolute": {
1169 | "version": "1.0.1",
1170 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
1171 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
1172 | "engines": {
1173 | "node": ">=0.10.0"
1174 | }
1175 | },
1176 | "node_modules/prebuild-install": {
1177 | "version": "7.1.1",
1178 | "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz",
1179 | "integrity": "sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==",
1180 | "dependencies": {
1181 | "detect-libc": "^2.0.0",
1182 | "expand-template": "^2.0.3",
1183 | "github-from-package": "0.0.0",
1184 | "minimist": "^1.2.3",
1185 | "mkdirp-classic": "^0.5.3",
1186 | "napi-build-utils": "^1.0.1",
1187 | "node-abi": "^3.3.0",
1188 | "pump": "^3.0.0",
1189 | "rc": "^1.2.7",
1190 | "simple-get": "^4.0.0",
1191 | "tar-fs": "^2.0.0",
1192 | "tunnel-agent": "^0.6.0"
1193 | },
1194 | "bin": {
1195 | "prebuild-install": "bin.js"
1196 | },
1197 | "engines": {
1198 | "node": ">=10"
1199 | }
1200 | },
1201 | "node_modules/promise-inflight": {
1202 | "version": "1.0.1",
1203 | "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
1204 | "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==",
1205 | "optional": true
1206 | },
1207 | "node_modules/promise-retry": {
1208 | "version": "2.0.1",
1209 | "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz",
1210 | "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==",
1211 | "optional": true,
1212 | "dependencies": {
1213 | "err-code": "^2.0.2",
1214 | "retry": "^0.12.0"
1215 | },
1216 | "engines": {
1217 | "node": ">=10"
1218 | }
1219 | },
1220 | "node_modules/pump": {
1221 | "version": "3.0.0",
1222 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
1223 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
1224 | "dependencies": {
1225 | "end-of-stream": "^1.1.0",
1226 | "once": "^1.3.1"
1227 | }
1228 | },
1229 | "node_modules/punycode": {
1230 | "version": "2.3.0",
1231 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
1232 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
1233 | "engines": {
1234 | "node": ">=6"
1235 | }
1236 | },
1237 | "node_modules/rc": {
1238 | "version": "1.2.8",
1239 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
1240 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
1241 | "dependencies": {
1242 | "deep-extend": "^0.6.0",
1243 | "ini": "~1.3.0",
1244 | "minimist": "^1.2.0",
1245 | "strip-json-comments": "~2.0.1"
1246 | },
1247 | "bin": {
1248 | "rc": "cli.js"
1249 | }
1250 | },
1251 | "node_modules/readable-stream": {
1252 | "version": "3.6.2",
1253 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
1254 | "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
1255 | "dependencies": {
1256 | "inherits": "^2.0.3",
1257 | "string_decoder": "^1.1.1",
1258 | "util-deprecate": "^1.0.1"
1259 | },
1260 | "engines": {
1261 | "node": ">= 6"
1262 | }
1263 | },
1264 | "node_modules/require-from-string": {
1265 | "version": "2.0.2",
1266 | "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
1267 | "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
1268 | "engines": {
1269 | "node": ">=0.10.0"
1270 | }
1271 | },
1272 | "node_modules/retry": {
1273 | "version": "0.12.0",
1274 | "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",
1275 | "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",
1276 | "optional": true,
1277 | "engines": {
1278 | "node": ">= 4"
1279 | }
1280 | },
1281 | "node_modules/rimraf": {
1282 | "version": "3.0.2",
1283 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
1284 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
1285 | "dependencies": {
1286 | "glob": "^7.1.3"
1287 | },
1288 | "bin": {
1289 | "rimraf": "bin.js"
1290 | },
1291 | "funding": {
1292 | "url": "https://github.com/sponsors/isaacs"
1293 | }
1294 | },
1295 | "node_modules/safe-buffer": {
1296 | "version": "5.2.1",
1297 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
1298 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
1299 | "funding": [
1300 | {
1301 | "type": "github",
1302 | "url": "https://github.com/sponsors/feross"
1303 | },
1304 | {
1305 | "type": "patreon",
1306 | "url": "https://www.patreon.com/feross"
1307 | },
1308 | {
1309 | "type": "consulting",
1310 | "url": "https://feross.org/support"
1311 | }
1312 | ]
1313 | },
1314 | "node_modules/safer-buffer": {
1315 | "version": "2.1.2",
1316 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1317 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
1318 | "optional": true
1319 | },
1320 | "node_modules/semver": {
1321 | "version": "7.5.2",
1322 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz",
1323 | "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==",
1324 | "dependencies": {
1325 | "lru-cache": "^6.0.0"
1326 | },
1327 | "bin": {
1328 | "semver": "bin/semver.js"
1329 | },
1330 | "engines": {
1331 | "node": ">=10"
1332 | }
1333 | },
1334 | "node_modules/set-blocking": {
1335 | "version": "2.0.0",
1336 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
1337 | "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
1338 | },
1339 | "node_modules/signal-exit": {
1340 | "version": "3.0.7",
1341 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
1342 | "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
1343 | },
1344 | "node_modules/simple-concat": {
1345 | "version": "1.0.1",
1346 | "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
1347 | "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
1348 | "funding": [
1349 | {
1350 | "type": "github",
1351 | "url": "https://github.com/sponsors/feross"
1352 | },
1353 | {
1354 | "type": "patreon",
1355 | "url": "https://www.patreon.com/feross"
1356 | },
1357 | {
1358 | "type": "consulting",
1359 | "url": "https://feross.org/support"
1360 | }
1361 | ]
1362 | },
1363 | "node_modules/simple-get": {
1364 | "version": "4.0.1",
1365 | "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
1366 | "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
1367 | "funding": [
1368 | {
1369 | "type": "github",
1370 | "url": "https://github.com/sponsors/feross"
1371 | },
1372 | {
1373 | "type": "patreon",
1374 | "url": "https://www.patreon.com/feross"
1375 | },
1376 | {
1377 | "type": "consulting",
1378 | "url": "https://feross.org/support"
1379 | }
1380 | ],
1381 | "dependencies": {
1382 | "decompress-response": "^6.0.0",
1383 | "once": "^1.3.1",
1384 | "simple-concat": "^1.0.0"
1385 | }
1386 | },
1387 | "node_modules/smart-buffer": {
1388 | "version": "4.2.0",
1389 | "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
1390 | "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
1391 | "optional": true,
1392 | "engines": {
1393 | "node": ">= 6.0.0",
1394 | "npm": ">= 3.0.0"
1395 | }
1396 | },
1397 | "node_modules/socks": {
1398 | "version": "2.7.1",
1399 | "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz",
1400 | "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==",
1401 | "optional": true,
1402 | "dependencies": {
1403 | "ip": "^2.0.0",
1404 | "smart-buffer": "^4.2.0"
1405 | },
1406 | "engines": {
1407 | "node": ">= 10.13.0",
1408 | "npm": ">= 3.0.0"
1409 | }
1410 | },
1411 | "node_modules/socks-proxy-agent": {
1412 | "version": "6.2.1",
1413 | "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz",
1414 | "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==",
1415 | "optional": true,
1416 | "dependencies": {
1417 | "agent-base": "^6.0.2",
1418 | "debug": "^4.3.3",
1419 | "socks": "^2.6.2"
1420 | },
1421 | "engines": {
1422 | "node": ">= 10"
1423 | }
1424 | },
1425 | "node_modules/sqlite3": {
1426 | "version": "5.1.6",
1427 | "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.6.tgz",
1428 | "integrity": "sha512-olYkWoKFVNSSSQNvxVUfjiVbz3YtBwTJj+mfV5zpHmqW3sELx2Cf4QCdirMelhM5Zh+KDVaKgQHqCxrqiWHybw==",
1429 | "hasInstallScript": true,
1430 | "dependencies": {
1431 | "@mapbox/node-pre-gyp": "^1.0.0",
1432 | "node-addon-api": "^4.2.0",
1433 | "tar": "^6.1.11"
1434 | },
1435 | "optionalDependencies": {
1436 | "node-gyp": "8.x"
1437 | },
1438 | "peerDependencies": {
1439 | "node-gyp": "8.x"
1440 | },
1441 | "peerDependenciesMeta": {
1442 | "node-gyp": {
1443 | "optional": true
1444 | }
1445 | }
1446 | },
1447 | "node_modules/ssri": {
1448 | "version": "8.0.1",
1449 | "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
1450 | "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==",
1451 | "optional": true,
1452 | "dependencies": {
1453 | "minipass": "^3.1.1"
1454 | },
1455 | "engines": {
1456 | "node": ">= 8"
1457 | }
1458 | },
1459 | "node_modules/string_decoder": {
1460 | "version": "1.3.0",
1461 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
1462 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
1463 | "dependencies": {
1464 | "safe-buffer": "~5.2.0"
1465 | }
1466 | },
1467 | "node_modules/string-width": {
1468 | "version": "4.2.3",
1469 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
1470 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
1471 | "dependencies": {
1472 | "emoji-regex": "^8.0.0",
1473 | "is-fullwidth-code-point": "^3.0.0",
1474 | "strip-ansi": "^6.0.1"
1475 | },
1476 | "engines": {
1477 | "node": ">=8"
1478 | }
1479 | },
1480 | "node_modules/strip-ansi": {
1481 | "version": "6.0.1",
1482 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
1483 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1484 | "dependencies": {
1485 | "ansi-regex": "^5.0.1"
1486 | },
1487 | "engines": {
1488 | "node": ">=8"
1489 | }
1490 | },
1491 | "node_modules/strip-json-comments": {
1492 | "version": "2.0.1",
1493 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
1494 | "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
1495 | "engines": {
1496 | "node": ">=0.10.0"
1497 | }
1498 | },
1499 | "node_modules/tar": {
1500 | "version": "6.1.15",
1501 | "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz",
1502 | "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==",
1503 | "dependencies": {
1504 | "chownr": "^2.0.0",
1505 | "fs-minipass": "^2.0.0",
1506 | "minipass": "^5.0.0",
1507 | "minizlib": "^2.1.1",
1508 | "mkdirp": "^1.0.3",
1509 | "yallist": "^4.0.0"
1510 | },
1511 | "engines": {
1512 | "node": ">=10"
1513 | }
1514 | },
1515 | "node_modules/tar-fs": {
1516 | "version": "2.1.1",
1517 | "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
1518 | "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
1519 | "dependencies": {
1520 | "chownr": "^1.1.1",
1521 | "mkdirp-classic": "^0.5.2",
1522 | "pump": "^3.0.0",
1523 | "tar-stream": "^2.1.4"
1524 | }
1525 | },
1526 | "node_modules/tar-fs/node_modules/chownr": {
1527 | "version": "1.1.4",
1528 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
1529 | "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
1530 | },
1531 | "node_modules/tar-stream": {
1532 | "version": "2.2.0",
1533 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
1534 | "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
1535 | "dependencies": {
1536 | "bl": "^4.0.3",
1537 | "end-of-stream": "^1.4.1",
1538 | "fs-constants": "^1.0.0",
1539 | "inherits": "^2.0.3",
1540 | "readable-stream": "^3.1.1"
1541 | },
1542 | "engines": {
1543 | "node": ">=6"
1544 | }
1545 | },
1546 | "node_modules/tar/node_modules/minipass": {
1547 | "version": "5.0.0",
1548 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
1549 | "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
1550 | "engines": {
1551 | "node": ">=8"
1552 | }
1553 | },
1554 | "node_modules/tr46": {
1555 | "version": "0.0.3",
1556 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
1557 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
1558 | },
1559 | "node_modules/tunnel-agent": {
1560 | "version": "0.6.0",
1561 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
1562 | "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
1563 | "dependencies": {
1564 | "safe-buffer": "^5.0.1"
1565 | },
1566 | "engines": {
1567 | "node": "*"
1568 | }
1569 | },
1570 | "node_modules/typescript": {
1571 | "version": "5.1.3",
1572 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz",
1573 | "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==",
1574 | "dev": true,
1575 | "bin": {
1576 | "tsc": "bin/tsc",
1577 | "tsserver": "bin/tsserver"
1578 | },
1579 | "engines": {
1580 | "node": ">=14.17"
1581 | }
1582 | },
1583 | "node_modules/unique-filename": {
1584 | "version": "1.1.1",
1585 | "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
1586 | "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==",
1587 | "optional": true,
1588 | "dependencies": {
1589 | "unique-slug": "^2.0.0"
1590 | }
1591 | },
1592 | "node_modules/unique-slug": {
1593 | "version": "2.0.2",
1594 | "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz",
1595 | "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==",
1596 | "optional": true,
1597 | "dependencies": {
1598 | "imurmurhash": "^0.1.4"
1599 | }
1600 | },
1601 | "node_modules/uri-js": {
1602 | "version": "4.4.1",
1603 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
1604 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
1605 | "dependencies": {
1606 | "punycode": "^2.1.0"
1607 | }
1608 | },
1609 | "node_modules/util-deprecate": {
1610 | "version": "1.0.2",
1611 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1612 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
1613 | },
1614 | "node_modules/uuid": {
1615 | "version": "8.3.2",
1616 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
1617 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
1618 | "bin": {
1619 | "uuid": "dist/bin/uuid"
1620 | }
1621 | },
1622 | "node_modules/webidl-conversions": {
1623 | "version": "3.0.1",
1624 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
1625 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
1626 | },
1627 | "node_modules/whatwg-url": {
1628 | "version": "5.0.0",
1629 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
1630 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
1631 | "dependencies": {
1632 | "tr46": "~0.0.3",
1633 | "webidl-conversions": "^3.0.0"
1634 | }
1635 | },
1636 | "node_modules/which": {
1637 | "version": "2.0.2",
1638 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
1639 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
1640 | "optional": true,
1641 | "dependencies": {
1642 | "isexe": "^2.0.0"
1643 | },
1644 | "bin": {
1645 | "node-which": "bin/node-which"
1646 | },
1647 | "engines": {
1648 | "node": ">= 8"
1649 | }
1650 | },
1651 | "node_modules/wide-align": {
1652 | "version": "1.1.5",
1653 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
1654 | "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
1655 | "dependencies": {
1656 | "string-width": "^1.0.2 || 2 || 3 || 4"
1657 | }
1658 | },
1659 | "node_modules/wrappy": {
1660 | "version": "1.0.2",
1661 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1662 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
1663 | },
1664 | "node_modules/yallist": {
1665 | "version": "4.0.0",
1666 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
1667 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
1668 | }
1669 | },
1670 | "dependencies": {
1671 | "@gar/promisify": {
1672 | "version": "1.1.3",
1673 | "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz",
1674 | "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==",
1675 | "optional": true
1676 | },
1677 | "@mapbox/node-pre-gyp": {
1678 | "version": "1.0.10",
1679 | "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz",
1680 | "integrity": "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==",
1681 | "requires": {
1682 | "detect-libc": "^2.0.0",
1683 | "https-proxy-agent": "^5.0.0",
1684 | "make-dir": "^3.1.0",
1685 | "node-fetch": "^2.6.7",
1686 | "nopt": "^5.0.0",
1687 | "npmlog": "^5.0.1",
1688 | "rimraf": "^3.0.2",
1689 | "semver": "^7.3.5",
1690 | "tar": "^6.1.11"
1691 | }
1692 | },
1693 | "@npmcli/fs": {
1694 | "version": "1.1.1",
1695 | "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz",
1696 | "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==",
1697 | "optional": true,
1698 | "requires": {
1699 | "@gar/promisify": "^1.0.1",
1700 | "semver": "^7.3.5"
1701 | }
1702 | },
1703 | "@npmcli/move-file": {
1704 | "version": "1.1.2",
1705 | "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz",
1706 | "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==",
1707 | "optional": true,
1708 | "requires": {
1709 | "mkdirp": "^1.0.4",
1710 | "rimraf": "^3.0.2"
1711 | }
1712 | },
1713 | "@tootallnate/once": {
1714 | "version": "1.1.2",
1715 | "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz",
1716 | "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==",
1717 | "optional": true
1718 | },
1719 | "@types/better-sqlite3": {
1720 | "version": "7.6.4",
1721 | "resolved": "https://registry.npmjs.org/@types/better-sqlite3/-/better-sqlite3-7.6.4.tgz",
1722 | "integrity": "sha512-dzrRZCYPXIXfSR1/surNbJ/grU3scTaygS0OMzjlGf71i9sc2fGyHPXXiXmEvNIoE0cGwsanEFMVJxPXmco9Eg==",
1723 | "dev": true,
1724 | "requires": {
1725 | "@types/node": "*"
1726 | }
1727 | },
1728 | "@types/node": {
1729 | "version": "20.3.1",
1730 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz",
1731 | "integrity": "sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==",
1732 | "dev": true
1733 | },
1734 | "@types/node-cron": {
1735 | "version": "3.0.8",
1736 | "resolved": "https://registry.npmjs.org/@types/node-cron/-/node-cron-3.0.8.tgz",
1737 | "integrity": "sha512-+z5VrCvLwiJUohbRSgHdyZnHzAaLuD/E2bBANw+NQ1l05Crj8dIxb/kKK+OEqRitV2Wr/LYLuEBenGDsHZVV5Q==",
1738 | "dev": true
1739 | },
1740 | "abbrev": {
1741 | "version": "1.1.1",
1742 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
1743 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
1744 | },
1745 | "agent-base": {
1746 | "version": "6.0.2",
1747 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
1748 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
1749 | "requires": {
1750 | "debug": "4"
1751 | }
1752 | },
1753 | "agentkeepalive": {
1754 | "version": "4.3.0",
1755 | "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.3.0.tgz",
1756 | "integrity": "sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==",
1757 | "optional": true,
1758 | "requires": {
1759 | "debug": "^4.1.0",
1760 | "depd": "^2.0.0",
1761 | "humanize-ms": "^1.2.1"
1762 | }
1763 | },
1764 | "aggregate-error": {
1765 | "version": "3.1.0",
1766 | "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",
1767 | "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",
1768 | "optional": true,
1769 | "requires": {
1770 | "clean-stack": "^2.0.0",
1771 | "indent-string": "^4.0.0"
1772 | }
1773 | },
1774 | "ajv": {
1775 | "version": "8.12.0",
1776 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
1777 | "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
1778 | "requires": {
1779 | "fast-deep-equal": "^3.1.1",
1780 | "json-schema-traverse": "^1.0.0",
1781 | "require-from-string": "^2.0.2",
1782 | "uri-js": "^4.2.2"
1783 | }
1784 | },
1785 | "ajv-formats": {
1786 | "version": "2.1.1",
1787 | "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
1788 | "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
1789 | "requires": {
1790 | "ajv": "^8.0.0"
1791 | }
1792 | },
1793 | "ansi-regex": {
1794 | "version": "5.0.1",
1795 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
1796 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="
1797 | },
1798 | "aproba": {
1799 | "version": "2.0.0",
1800 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
1801 | "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ=="
1802 | },
1803 | "are-we-there-yet": {
1804 | "version": "2.0.0",
1805 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
1806 | "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
1807 | "requires": {
1808 | "delegates": "^1.0.0",
1809 | "readable-stream": "^3.6.0"
1810 | }
1811 | },
1812 | "asynckit": {
1813 | "version": "0.4.0",
1814 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
1815 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
1816 | },
1817 | "balanced-match": {
1818 | "version": "1.0.2",
1819 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
1820 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
1821 | },
1822 | "base64-js": {
1823 | "version": "1.5.1",
1824 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
1825 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
1826 | },
1827 | "better-sqlite3": {
1828 | "version": "8.4.0",
1829 | "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-8.4.0.tgz",
1830 | "integrity": "sha512-NmsNW1CQvqMszu/CFAJ3pLct6NEFlNfuGM6vw72KHkjOD1UDnL96XNN1BMQc1hiHo8vE2GbOWQYIpZ+YM5wrZw==",
1831 | "requires": {
1832 | "bindings": "^1.5.0",
1833 | "prebuild-install": "^7.1.0"
1834 | }
1835 | },
1836 | "bindings": {
1837 | "version": "1.5.0",
1838 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
1839 | "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
1840 | "requires": {
1841 | "file-uri-to-path": "1.0.0"
1842 | }
1843 | },
1844 | "bl": {
1845 | "version": "4.1.0",
1846 | "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
1847 | "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
1848 | "requires": {
1849 | "buffer": "^5.5.0",
1850 | "inherits": "^2.0.4",
1851 | "readable-stream": "^3.4.0"
1852 | }
1853 | },
1854 | "brace-expansion": {
1855 | "version": "1.1.11",
1856 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
1857 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
1858 | "requires": {
1859 | "balanced-match": "^1.0.0",
1860 | "concat-map": "0.0.1"
1861 | }
1862 | },
1863 | "buffer": {
1864 | "version": "5.7.1",
1865 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
1866 | "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
1867 | "requires": {
1868 | "base64-js": "^1.3.1",
1869 | "ieee754": "^1.1.13"
1870 | }
1871 | },
1872 | "cacache": {
1873 | "version": "15.3.0",
1874 | "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz",
1875 | "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==",
1876 | "optional": true,
1877 | "requires": {
1878 | "@npmcli/fs": "^1.0.0",
1879 | "@npmcli/move-file": "^1.0.1",
1880 | "chownr": "^2.0.0",
1881 | "fs-minipass": "^2.0.0",
1882 | "glob": "^7.1.4",
1883 | "infer-owner": "^1.0.4",
1884 | "lru-cache": "^6.0.0",
1885 | "minipass": "^3.1.1",
1886 | "minipass-collect": "^1.0.2",
1887 | "minipass-flush": "^1.0.5",
1888 | "minipass-pipeline": "^1.2.2",
1889 | "mkdirp": "^1.0.3",
1890 | "p-map": "^4.0.0",
1891 | "promise-inflight": "^1.0.1",
1892 | "rimraf": "^3.0.2",
1893 | "ssri": "^8.0.1",
1894 | "tar": "^6.0.2",
1895 | "unique-filename": "^1.1.1"
1896 | }
1897 | },
1898 | "chownr": {
1899 | "version": "2.0.0",
1900 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
1901 | "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="
1902 | },
1903 | "clean-stack": {
1904 | "version": "2.2.0",
1905 | "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
1906 | "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",
1907 | "optional": true
1908 | },
1909 | "color-support": {
1910 | "version": "1.1.3",
1911 | "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
1912 | "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg=="
1913 | },
1914 | "combined-stream": {
1915 | "version": "1.0.8",
1916 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
1917 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
1918 | "requires": {
1919 | "delayed-stream": "~1.0.0"
1920 | }
1921 | },
1922 | "concat-map": {
1923 | "version": "0.0.1",
1924 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
1925 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
1926 | },
1927 | "console-control-strings": {
1928 | "version": "1.1.0",
1929 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
1930 | "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
1931 | },
1932 | "cross-fetch": {
1933 | "version": "3.1.8",
1934 | "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz",
1935 | "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==",
1936 | "requires": {
1937 | "node-fetch": "^2.6.12"
1938 | }
1939 | },
1940 | "debug": {
1941 | "version": "4.3.4",
1942 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
1943 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
1944 | "requires": {
1945 | "ms": "2.1.2"
1946 | }
1947 | },
1948 | "decompress-response": {
1949 | "version": "6.0.0",
1950 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
1951 | "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
1952 | "requires": {
1953 | "mimic-response": "^3.1.0"
1954 | }
1955 | },
1956 | "deep-extend": {
1957 | "version": "0.6.0",
1958 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
1959 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="
1960 | },
1961 | "delayed-stream": {
1962 | "version": "1.0.0",
1963 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
1964 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
1965 | },
1966 | "delegates": {
1967 | "version": "1.0.0",
1968 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
1969 | "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
1970 | },
1971 | "depd": {
1972 | "version": "2.0.0",
1973 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
1974 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
1975 | "optional": true
1976 | },
1977 | "detect-libc": {
1978 | "version": "2.0.1",
1979 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz",
1980 | "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w=="
1981 | },
1982 | "dotenv": {
1983 | "version": "16.3.1",
1984 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",
1985 | "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ=="
1986 | },
1987 | "emoji-regex": {
1988 | "version": "8.0.0",
1989 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
1990 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
1991 | },
1992 | "encoding": {
1993 | "version": "0.1.13",
1994 | "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",
1995 | "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",
1996 | "optional": true,
1997 | "requires": {
1998 | "iconv-lite": "^0.6.2"
1999 | }
2000 | },
2001 | "end-of-stream": {
2002 | "version": "1.4.4",
2003 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
2004 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
2005 | "requires": {
2006 | "once": "^1.4.0"
2007 | }
2008 | },
2009 | "env-paths": {
2010 | "version": "2.2.1",
2011 | "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
2012 | "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
2013 | "optional": true
2014 | },
2015 | "err-code": {
2016 | "version": "2.0.3",
2017 | "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz",
2018 | "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",
2019 | "optional": true
2020 | },
2021 | "expand-template": {
2022 | "version": "2.0.3",
2023 | "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
2024 | "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg=="
2025 | },
2026 | "fast-deep-equal": {
2027 | "version": "3.1.3",
2028 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
2029 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
2030 | },
2031 | "file-uri-to-path": {
2032 | "version": "1.0.0",
2033 | "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
2034 | "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="
2035 | },
2036 | "form-data": {
2037 | "version": "4.0.0",
2038 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
2039 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
2040 | "requires": {
2041 | "asynckit": "^0.4.0",
2042 | "combined-stream": "^1.0.8",
2043 | "mime-types": "^2.1.12"
2044 | }
2045 | },
2046 | "fs-constants": {
2047 | "version": "1.0.0",
2048 | "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
2049 | "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow=="
2050 | },
2051 | "fs-minipass": {
2052 | "version": "2.1.0",
2053 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
2054 | "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
2055 | "requires": {
2056 | "minipass": "^3.0.0"
2057 | }
2058 | },
2059 | "fs.realpath": {
2060 | "version": "1.0.0",
2061 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
2062 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
2063 | },
2064 | "gauge": {
2065 | "version": "3.0.2",
2066 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
2067 | "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
2068 | "requires": {
2069 | "aproba": "^1.0.3 || ^2.0.0",
2070 | "color-support": "^1.1.2",
2071 | "console-control-strings": "^1.0.0",
2072 | "has-unicode": "^2.0.1",
2073 | "object-assign": "^4.1.1",
2074 | "signal-exit": "^3.0.0",
2075 | "string-width": "^4.2.3",
2076 | "strip-ansi": "^6.0.1",
2077 | "wide-align": "^1.1.2"
2078 | }
2079 | },
2080 | "github-from-package": {
2081 | "version": "0.0.0",
2082 | "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
2083 | "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw=="
2084 | },
2085 | "glob": {
2086 | "version": "7.2.3",
2087 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
2088 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
2089 | "requires": {
2090 | "fs.realpath": "^1.0.0",
2091 | "inflight": "^1.0.4",
2092 | "inherits": "2",
2093 | "minimatch": "^3.1.1",
2094 | "once": "^1.3.0",
2095 | "path-is-absolute": "^1.0.0"
2096 | }
2097 | },
2098 | "graceful-fs": {
2099 | "version": "4.2.11",
2100 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
2101 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
2102 | "optional": true
2103 | },
2104 | "has-unicode": {
2105 | "version": "2.0.1",
2106 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
2107 | "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
2108 | },
2109 | "http-cache-semantics": {
2110 | "version": "4.1.1",
2111 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz",
2112 | "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==",
2113 | "optional": true
2114 | },
2115 | "http-proxy-agent": {
2116 | "version": "4.0.1",
2117 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz",
2118 | "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==",
2119 | "optional": true,
2120 | "requires": {
2121 | "@tootallnate/once": "1",
2122 | "agent-base": "6",
2123 | "debug": "4"
2124 | }
2125 | },
2126 | "https-proxy-agent": {
2127 | "version": "5.0.1",
2128 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
2129 | "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
2130 | "requires": {
2131 | "agent-base": "6",
2132 | "debug": "4"
2133 | }
2134 | },
2135 | "humanize-ms": {
2136 | "version": "1.2.1",
2137 | "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
2138 | "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
2139 | "optional": true,
2140 | "requires": {
2141 | "ms": "^2.0.0"
2142 | }
2143 | },
2144 | "iconv-lite": {
2145 | "version": "0.6.3",
2146 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
2147 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
2148 | "optional": true,
2149 | "requires": {
2150 | "safer-buffer": ">= 2.1.2 < 3.0.0"
2151 | }
2152 | },
2153 | "ieee754": {
2154 | "version": "1.2.1",
2155 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
2156 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="
2157 | },
2158 | "imurmurhash": {
2159 | "version": "0.1.4",
2160 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
2161 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
2162 | "optional": true
2163 | },
2164 | "indent-string": {
2165 | "version": "4.0.0",
2166 | "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
2167 | "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
2168 | "optional": true
2169 | },
2170 | "infer-owner": {
2171 | "version": "1.0.4",
2172 | "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz",
2173 | "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==",
2174 | "optional": true
2175 | },
2176 | "inflight": {
2177 | "version": "1.0.6",
2178 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
2179 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
2180 | "requires": {
2181 | "once": "^1.3.0",
2182 | "wrappy": "1"
2183 | }
2184 | },
2185 | "inherits": {
2186 | "version": "2.0.4",
2187 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
2188 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
2189 | },
2190 | "ini": {
2191 | "version": "1.3.8",
2192 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
2193 | "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
2194 | },
2195 | "ip": {
2196 | "version": "2.0.0",
2197 | "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz",
2198 | "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==",
2199 | "optional": true
2200 | },
2201 | "is-fullwidth-code-point": {
2202 | "version": "3.0.0",
2203 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
2204 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="
2205 | },
2206 | "is-lambda": {
2207 | "version": "1.0.1",
2208 | "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz",
2209 | "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==",
2210 | "optional": true
2211 | },
2212 | "isexe": {
2213 | "version": "2.0.0",
2214 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
2215 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
2216 | "optional": true
2217 | },
2218 | "json-schema-traverse": {
2219 | "version": "1.0.0",
2220 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
2221 | "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
2222 | },
2223 | "lemmy-bot": {
2224 | "version": "0.5.1",
2225 | "resolved": "https://registry.npmjs.org/lemmy-bot/-/lemmy-bot-0.5.1.tgz",
2226 | "integrity": "sha512-dRguH3qHLHRdnZzZ5MvguVy94k8rz/COvF+KJGkn0OOx/Qhzp/ByDv9vXZh0x9rzkddfVp4ODPZCgEDrDPbJog==",
2227 | "requires": {
2228 | "lemmy-js-client": "0.19.0",
2229 | "node-cron": "^3.0.3",
2230 | "sqlite3": "^5.1.6"
2231 | }
2232 | },
2233 | "lemmy-js-client": {
2234 | "version": "0.19.0",
2235 | "resolved": "https://registry.npmjs.org/lemmy-js-client/-/lemmy-js-client-0.19.0.tgz",
2236 | "integrity": "sha512-h+E8wC9RKjlToWw9+kuGFAzk4Fiaf61KqAwzvoCDAfj2L1r+YNt5EDMOggGCoRx5PlqLuIVr7BNEU46KxJfmHA==",
2237 | "requires": {
2238 | "cross-fetch": "^3.1.5",
2239 | "form-data": "^4.0.0"
2240 | }
2241 | },
2242 | "lru-cache": {
2243 | "version": "6.0.0",
2244 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
2245 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
2246 | "requires": {
2247 | "yallist": "^4.0.0"
2248 | }
2249 | },
2250 | "make-dir": {
2251 | "version": "3.1.0",
2252 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
2253 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
2254 | "requires": {
2255 | "semver": "^6.0.0"
2256 | },
2257 | "dependencies": {
2258 | "semver": {
2259 | "version": "6.3.0",
2260 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
2261 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
2262 | }
2263 | }
2264 | },
2265 | "make-fetch-happen": {
2266 | "version": "9.1.0",
2267 | "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz",
2268 | "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==",
2269 | "optional": true,
2270 | "requires": {
2271 | "agentkeepalive": "^4.1.3",
2272 | "cacache": "^15.2.0",
2273 | "http-cache-semantics": "^4.1.0",
2274 | "http-proxy-agent": "^4.0.1",
2275 | "https-proxy-agent": "^5.0.0",
2276 | "is-lambda": "^1.0.1",
2277 | "lru-cache": "^6.0.0",
2278 | "minipass": "^3.1.3",
2279 | "minipass-collect": "^1.0.2",
2280 | "minipass-fetch": "^1.3.2",
2281 | "minipass-flush": "^1.0.5",
2282 | "minipass-pipeline": "^1.2.4",
2283 | "negotiator": "^0.6.2",
2284 | "promise-retry": "^2.0.1",
2285 | "socks-proxy-agent": "^6.0.0",
2286 | "ssri": "^8.0.0"
2287 | }
2288 | },
2289 | "mime-db": {
2290 | "version": "1.52.0",
2291 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
2292 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
2293 | },
2294 | "mime-types": {
2295 | "version": "2.1.35",
2296 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
2297 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
2298 | "requires": {
2299 | "mime-db": "1.52.0"
2300 | }
2301 | },
2302 | "mimic-response": {
2303 | "version": "3.1.0",
2304 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
2305 | "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ=="
2306 | },
2307 | "minimatch": {
2308 | "version": "3.1.2",
2309 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
2310 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
2311 | "requires": {
2312 | "brace-expansion": "^1.1.7"
2313 | }
2314 | },
2315 | "minimist": {
2316 | "version": "1.2.8",
2317 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
2318 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="
2319 | },
2320 | "minipass": {
2321 | "version": "3.3.6",
2322 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
2323 | "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
2324 | "requires": {
2325 | "yallist": "^4.0.0"
2326 | }
2327 | },
2328 | "minipass-collect": {
2329 | "version": "1.0.2",
2330 | "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz",
2331 | "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==",
2332 | "optional": true,
2333 | "requires": {
2334 | "minipass": "^3.0.0"
2335 | }
2336 | },
2337 | "minipass-fetch": {
2338 | "version": "1.4.1",
2339 | "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz",
2340 | "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==",
2341 | "optional": true,
2342 | "requires": {
2343 | "encoding": "^0.1.12",
2344 | "minipass": "^3.1.0",
2345 | "minipass-sized": "^1.0.3",
2346 | "minizlib": "^2.0.0"
2347 | }
2348 | },
2349 | "minipass-flush": {
2350 | "version": "1.0.5",
2351 | "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz",
2352 | "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==",
2353 | "optional": true,
2354 | "requires": {
2355 | "minipass": "^3.0.0"
2356 | }
2357 | },
2358 | "minipass-pipeline": {
2359 | "version": "1.2.4",
2360 | "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz",
2361 | "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==",
2362 | "optional": true,
2363 | "requires": {
2364 | "minipass": "^3.0.0"
2365 | }
2366 | },
2367 | "minipass-sized": {
2368 | "version": "1.0.3",
2369 | "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz",
2370 | "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==",
2371 | "optional": true,
2372 | "requires": {
2373 | "minipass": "^3.0.0"
2374 | }
2375 | },
2376 | "minizlib": {
2377 | "version": "2.1.2",
2378 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
2379 | "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
2380 | "requires": {
2381 | "minipass": "^3.0.0",
2382 | "yallist": "^4.0.0"
2383 | }
2384 | },
2385 | "mkdirp": {
2386 | "version": "1.0.4",
2387 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
2388 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="
2389 | },
2390 | "mkdirp-classic": {
2391 | "version": "0.5.3",
2392 | "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
2393 | "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="
2394 | },
2395 | "ms": {
2396 | "version": "2.1.2",
2397 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
2398 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
2399 | },
2400 | "napi-build-utils": {
2401 | "version": "1.0.2",
2402 | "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",
2403 | "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg=="
2404 | },
2405 | "negotiator": {
2406 | "version": "0.6.3",
2407 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
2408 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
2409 | "optional": true
2410 | },
2411 | "node-abi": {
2412 | "version": "3.45.0",
2413 | "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.45.0.tgz",
2414 | "integrity": "sha512-iwXuFrMAcFVi/ZoZiqq8BzAdsLw9kxDfTC0HMyjXfSL/6CSDAGD5UmR7azrAgWV1zKYq7dUUMj4owusBWKLsiQ==",
2415 | "requires": {
2416 | "semver": "^7.3.5"
2417 | }
2418 | },
2419 | "node-addon-api": {
2420 | "version": "4.3.0",
2421 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz",
2422 | "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ=="
2423 | },
2424 | "node-cron": {
2425 | "version": "3.0.3",
2426 | "resolved": "https://registry.npmjs.org/node-cron/-/node-cron-3.0.3.tgz",
2427 | "integrity": "sha512-dOal67//nohNgYWb+nWmg5dkFdIwDm8EpeGYMekPMrngV3637lqnX0lbUcCtgibHTz6SEz7DAIjKvKDFYCnO1A==",
2428 | "requires": {
2429 | "uuid": "8.3.2"
2430 | }
2431 | },
2432 | "node-fetch": {
2433 | "version": "2.7.0",
2434 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
2435 | "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
2436 | "requires": {
2437 | "whatwg-url": "^5.0.0"
2438 | }
2439 | },
2440 | "node-gyp": {
2441 | "version": "8.4.1",
2442 | "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz",
2443 | "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==",
2444 | "optional": true,
2445 | "requires": {
2446 | "env-paths": "^2.2.0",
2447 | "glob": "^7.1.4",
2448 | "graceful-fs": "^4.2.6",
2449 | "make-fetch-happen": "^9.1.0",
2450 | "nopt": "^5.0.0",
2451 | "npmlog": "^6.0.0",
2452 | "rimraf": "^3.0.2",
2453 | "semver": "^7.3.5",
2454 | "tar": "^6.1.2",
2455 | "which": "^2.0.2"
2456 | },
2457 | "dependencies": {
2458 | "are-we-there-yet": {
2459 | "version": "3.0.1",
2460 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz",
2461 | "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==",
2462 | "optional": true,
2463 | "requires": {
2464 | "delegates": "^1.0.0",
2465 | "readable-stream": "^3.6.0"
2466 | }
2467 | },
2468 | "gauge": {
2469 | "version": "4.0.4",
2470 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz",
2471 | "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==",
2472 | "optional": true,
2473 | "requires": {
2474 | "aproba": "^1.0.3 || ^2.0.0",
2475 | "color-support": "^1.1.3",
2476 | "console-control-strings": "^1.1.0",
2477 | "has-unicode": "^2.0.1",
2478 | "signal-exit": "^3.0.7",
2479 | "string-width": "^4.2.3",
2480 | "strip-ansi": "^6.0.1",
2481 | "wide-align": "^1.1.5"
2482 | }
2483 | },
2484 | "npmlog": {
2485 | "version": "6.0.2",
2486 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz",
2487 | "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==",
2488 | "optional": true,
2489 | "requires": {
2490 | "are-we-there-yet": "^3.0.0",
2491 | "console-control-strings": "^1.1.0",
2492 | "gauge": "^4.0.3",
2493 | "set-blocking": "^2.0.0"
2494 | }
2495 | }
2496 | }
2497 | },
2498 | "nopt": {
2499 | "version": "5.0.0",
2500 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
2501 | "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
2502 | "requires": {
2503 | "abbrev": "1"
2504 | }
2505 | },
2506 | "npmlog": {
2507 | "version": "5.0.1",
2508 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
2509 | "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
2510 | "requires": {
2511 | "are-we-there-yet": "^2.0.0",
2512 | "console-control-strings": "^1.1.0",
2513 | "gauge": "^3.0.0",
2514 | "set-blocking": "^2.0.0"
2515 | }
2516 | },
2517 | "object-assign": {
2518 | "version": "4.1.1",
2519 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
2520 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="
2521 | },
2522 | "once": {
2523 | "version": "1.4.0",
2524 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
2525 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
2526 | "requires": {
2527 | "wrappy": "1"
2528 | }
2529 | },
2530 | "p-map": {
2531 | "version": "4.0.0",
2532 | "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",
2533 | "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",
2534 | "optional": true,
2535 | "requires": {
2536 | "aggregate-error": "^3.0.0"
2537 | }
2538 | },
2539 | "path-is-absolute": {
2540 | "version": "1.0.1",
2541 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
2542 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg=="
2543 | },
2544 | "prebuild-install": {
2545 | "version": "7.1.1",
2546 | "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz",
2547 | "integrity": "sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==",
2548 | "requires": {
2549 | "detect-libc": "^2.0.0",
2550 | "expand-template": "^2.0.3",
2551 | "github-from-package": "0.0.0",
2552 | "minimist": "^1.2.3",
2553 | "mkdirp-classic": "^0.5.3",
2554 | "napi-build-utils": "^1.0.1",
2555 | "node-abi": "^3.3.0",
2556 | "pump": "^3.0.0",
2557 | "rc": "^1.2.7",
2558 | "simple-get": "^4.0.0",
2559 | "tar-fs": "^2.0.0",
2560 | "tunnel-agent": "^0.6.0"
2561 | }
2562 | },
2563 | "promise-inflight": {
2564 | "version": "1.0.1",
2565 | "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
2566 | "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==",
2567 | "optional": true
2568 | },
2569 | "promise-retry": {
2570 | "version": "2.0.1",
2571 | "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz",
2572 | "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==",
2573 | "optional": true,
2574 | "requires": {
2575 | "err-code": "^2.0.2",
2576 | "retry": "^0.12.0"
2577 | }
2578 | },
2579 | "pump": {
2580 | "version": "3.0.0",
2581 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
2582 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
2583 | "requires": {
2584 | "end-of-stream": "^1.1.0",
2585 | "once": "^1.3.1"
2586 | }
2587 | },
2588 | "punycode": {
2589 | "version": "2.3.0",
2590 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
2591 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA=="
2592 | },
2593 | "rc": {
2594 | "version": "1.2.8",
2595 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
2596 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
2597 | "requires": {
2598 | "deep-extend": "^0.6.0",
2599 | "ini": "~1.3.0",
2600 | "minimist": "^1.2.0",
2601 | "strip-json-comments": "~2.0.1"
2602 | }
2603 | },
2604 | "readable-stream": {
2605 | "version": "3.6.2",
2606 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
2607 | "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
2608 | "requires": {
2609 | "inherits": "^2.0.3",
2610 | "string_decoder": "^1.1.1",
2611 | "util-deprecate": "^1.0.1"
2612 | }
2613 | },
2614 | "require-from-string": {
2615 | "version": "2.0.2",
2616 | "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
2617 | "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="
2618 | },
2619 | "retry": {
2620 | "version": "0.12.0",
2621 | "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",
2622 | "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",
2623 | "optional": true
2624 | },
2625 | "rimraf": {
2626 | "version": "3.0.2",
2627 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
2628 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
2629 | "requires": {
2630 | "glob": "^7.1.3"
2631 | }
2632 | },
2633 | "safe-buffer": {
2634 | "version": "5.2.1",
2635 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
2636 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
2637 | },
2638 | "safer-buffer": {
2639 | "version": "2.1.2",
2640 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
2641 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
2642 | "optional": true
2643 | },
2644 | "semver": {
2645 | "version": "7.5.2",
2646 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz",
2647 | "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==",
2648 | "requires": {
2649 | "lru-cache": "^6.0.0"
2650 | }
2651 | },
2652 | "set-blocking": {
2653 | "version": "2.0.0",
2654 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
2655 | "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
2656 | },
2657 | "signal-exit": {
2658 | "version": "3.0.7",
2659 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
2660 | "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
2661 | },
2662 | "simple-concat": {
2663 | "version": "1.0.1",
2664 | "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
2665 | "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q=="
2666 | },
2667 | "simple-get": {
2668 | "version": "4.0.1",
2669 | "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
2670 | "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
2671 | "requires": {
2672 | "decompress-response": "^6.0.0",
2673 | "once": "^1.3.1",
2674 | "simple-concat": "^1.0.0"
2675 | }
2676 | },
2677 | "smart-buffer": {
2678 | "version": "4.2.0",
2679 | "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
2680 | "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
2681 | "optional": true
2682 | },
2683 | "socks": {
2684 | "version": "2.7.1",
2685 | "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz",
2686 | "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==",
2687 | "optional": true,
2688 | "requires": {
2689 | "ip": "^2.0.0",
2690 | "smart-buffer": "^4.2.0"
2691 | }
2692 | },
2693 | "socks-proxy-agent": {
2694 | "version": "6.2.1",
2695 | "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz",
2696 | "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==",
2697 | "optional": true,
2698 | "requires": {
2699 | "agent-base": "^6.0.2",
2700 | "debug": "^4.3.3",
2701 | "socks": "^2.6.2"
2702 | }
2703 | },
2704 | "sqlite3": {
2705 | "version": "5.1.6",
2706 | "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.6.tgz",
2707 | "integrity": "sha512-olYkWoKFVNSSSQNvxVUfjiVbz3YtBwTJj+mfV5zpHmqW3sELx2Cf4QCdirMelhM5Zh+KDVaKgQHqCxrqiWHybw==",
2708 | "requires": {
2709 | "@mapbox/node-pre-gyp": "^1.0.0",
2710 | "node-addon-api": "^4.2.0",
2711 | "node-gyp": "8.x",
2712 | "tar": "^6.1.11"
2713 | }
2714 | },
2715 | "ssri": {
2716 | "version": "8.0.1",
2717 | "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
2718 | "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==",
2719 | "optional": true,
2720 | "requires": {
2721 | "minipass": "^3.1.1"
2722 | }
2723 | },
2724 | "string_decoder": {
2725 | "version": "1.3.0",
2726 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
2727 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
2728 | "requires": {
2729 | "safe-buffer": "~5.2.0"
2730 | }
2731 | },
2732 | "string-width": {
2733 | "version": "4.2.3",
2734 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
2735 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
2736 | "requires": {
2737 | "emoji-regex": "^8.0.0",
2738 | "is-fullwidth-code-point": "^3.0.0",
2739 | "strip-ansi": "^6.0.1"
2740 | }
2741 | },
2742 | "strip-ansi": {
2743 | "version": "6.0.1",
2744 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
2745 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
2746 | "requires": {
2747 | "ansi-regex": "^5.0.1"
2748 | }
2749 | },
2750 | "strip-json-comments": {
2751 | "version": "2.0.1",
2752 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
2753 | "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ=="
2754 | },
2755 | "tar": {
2756 | "version": "6.1.15",
2757 | "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz",
2758 | "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==",
2759 | "requires": {
2760 | "chownr": "^2.0.0",
2761 | "fs-minipass": "^2.0.0",
2762 | "minipass": "^5.0.0",
2763 | "minizlib": "^2.1.1",
2764 | "mkdirp": "^1.0.3",
2765 | "yallist": "^4.0.0"
2766 | },
2767 | "dependencies": {
2768 | "minipass": {
2769 | "version": "5.0.0",
2770 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
2771 | "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ=="
2772 | }
2773 | }
2774 | },
2775 | "tar-fs": {
2776 | "version": "2.1.1",
2777 | "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
2778 | "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
2779 | "requires": {
2780 | "chownr": "^1.1.1",
2781 | "mkdirp-classic": "^0.5.2",
2782 | "pump": "^3.0.0",
2783 | "tar-stream": "^2.1.4"
2784 | },
2785 | "dependencies": {
2786 | "chownr": {
2787 | "version": "1.1.4",
2788 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
2789 | "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
2790 | }
2791 | }
2792 | },
2793 | "tar-stream": {
2794 | "version": "2.2.0",
2795 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
2796 | "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
2797 | "requires": {
2798 | "bl": "^4.0.3",
2799 | "end-of-stream": "^1.4.1",
2800 | "fs-constants": "^1.0.0",
2801 | "inherits": "^2.0.3",
2802 | "readable-stream": "^3.1.1"
2803 | }
2804 | },
2805 | "tr46": {
2806 | "version": "0.0.3",
2807 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
2808 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
2809 | },
2810 | "tunnel-agent": {
2811 | "version": "0.6.0",
2812 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
2813 | "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
2814 | "requires": {
2815 | "safe-buffer": "^5.0.1"
2816 | }
2817 | },
2818 | "typescript": {
2819 | "version": "5.1.3",
2820 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz",
2821 | "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==",
2822 | "dev": true
2823 | },
2824 | "unique-filename": {
2825 | "version": "1.1.1",
2826 | "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
2827 | "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==",
2828 | "optional": true,
2829 | "requires": {
2830 | "unique-slug": "^2.0.0"
2831 | }
2832 | },
2833 | "unique-slug": {
2834 | "version": "2.0.2",
2835 | "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz",
2836 | "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==",
2837 | "optional": true,
2838 | "requires": {
2839 | "imurmurhash": "^0.1.4"
2840 | }
2841 | },
2842 | "uri-js": {
2843 | "version": "4.4.1",
2844 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
2845 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
2846 | "requires": {
2847 | "punycode": "^2.1.0"
2848 | }
2849 | },
2850 | "util-deprecate": {
2851 | "version": "1.0.2",
2852 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
2853 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
2854 | },
2855 | "uuid": {
2856 | "version": "8.3.2",
2857 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
2858 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
2859 | },
2860 | "webidl-conversions": {
2861 | "version": "3.0.1",
2862 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
2863 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
2864 | },
2865 | "whatwg-url": {
2866 | "version": "5.0.0",
2867 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
2868 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
2869 | "requires": {
2870 | "tr46": "~0.0.3",
2871 | "webidl-conversions": "^3.0.0"
2872 | }
2873 | },
2874 | "which": {
2875 | "version": "2.0.2",
2876 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
2877 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
2878 | "optional": true,
2879 | "requires": {
2880 | "isexe": "^2.0.0"
2881 | }
2882 | },
2883 | "wide-align": {
2884 | "version": "1.1.5",
2885 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
2886 | "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
2887 | "requires": {
2888 | "string-width": "^1.0.2 || 2 || 3 || 4"
2889 | }
2890 | },
2891 | "wrappy": {
2892 | "version": "1.0.2",
2893 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
2894 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
2895 | },
2896 | "yallist": {
2897 | "version": "4.0.0",
2898 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
2899 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
2900 | }
2901 | }
2902 | }
2903 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0.1",
3 | "scripts": {
4 | "start": "node ./dist/index.js",
5 | "build": "tsc"
6 | },
7 | "devDependencies": {
8 | "@types/better-sqlite3": "^7.6.4",
9 | "@types/node": "^20.3.1",
10 | "@types/node-cron": "^3.0.8",
11 | "typescript": "^5.1.3"
12 | },
13 | "dependencies": {
14 | "ajv": "^8.12.0",
15 | "ajv-formats": "^2.1.1",
16 | "better-sqlite3": "^8.4.0",
17 | "dotenv": "^16.3.1",
18 | "lemmy-bot": "^0.5.1"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/queries/comment.sql:
--------------------------------------------------------------------------------
1 | -- If the user is not a mod:
2 |
3 | SELECT match, type, message, reason
4 | FROM automod_comment
5 | INNER JOIN automod_community ON automod_comment.community_id = automod_community.id
6 | WHERE automod_community.community_id = 3
7 | AND (
8 | CASE
9 | WHEN 'Nerd02' IN (
10 | SELECT user_actor_id
11 | FROM automod_exception
12 | WHERE community_id = automod_comment.community_id
13 | )
14 | THEN automod_comment.whitelist_exempt = 0
15 | ELSE 1
16 | END
17 | )
18 |
19 | -- If the user is a mod:
20 |
21 | SELECT match, type, message, reason
22 | FROM automod_comment
23 | INNER JOIN automod_community ON automod_comment.community_id = automod_community.id
24 | WHERE automod_community.community_id = 3
25 | AND automod_comment.mod_exempt = 0
26 | AND (
27 | CASE
28 | WHEN 'Nerd02' IN (
29 | SELECT user_actor_id
30 | FROM automod_exception
31 | WHERE community_id = automod_comment.community_id
32 | )
33 | THEN automod_comment.whitelist_exempt = 0
34 | ELSE 1
35 | END
36 | )
37 |
--------------------------------------------------------------------------------
/queries/mention.sql:
--------------------------------------------------------------------------------
1 | SELECT command, action, message
2 | FROM automod_mention
3 | INNER JOIN automod_community ON automod_mention.community_id = automod_community.id
4 | WHERE automod_community.community_id = 3
5 |
--------------------------------------------------------------------------------
/queries/post.sql:
--------------------------------------------------------------------------------
1 | -- If the user is not a mod:
2 |
3 | SELECT field, match, type, message, reason
4 | FROM automod_post
5 | INNER JOIN automod_community ON automod_post.community_id = automod_community.id
6 | WHERE automod_community.community_id = 3
7 | AND (
8 | CASE
9 | WHEN 'Nerd02' IN (
10 | SELECT user_actor_id
11 | FROM automod_exception
12 | WHERE community_id = automod_post.community_id
13 | )
14 | THEN automod_post.whitelist_exempt = 0
15 | ELSE 1
16 | END
17 | )
18 |
19 | -- If the user is a mod:
20 |
21 | SELECT field, match, type, message, reason
22 | FROM automod_post
23 | INNER JOIN automod_community ON automod_post.community_id = automod_community.id
24 | WHERE automod_community.community_id = 3
25 | AND automod_post.mod_exempt = 0
26 | AND (
27 | CASE
28 | WHEN 'Nerd02' IN (
29 | SELECT user_actor_id
30 | FROM automod_exception
31 | WHERE community_id = automod_post.community_id
32 | )
33 | THEN automod_post.whitelist_exempt = 0
34 | ELSE 1
35 | END
36 | )
37 |
--------------------------------------------------------------------------------
/src/db.ts:
--------------------------------------------------------------------------------
1 | import { Database } from 'better-sqlite3';
2 | import type { PostJson, CommentJson, MentionJson, ExceptionJson } from './parser';
3 |
4 | //Run the query creation tables if it's the first time the bot is being ran
5 | export function setUpDb(db: Database) {
6 | const commQuery = `
7 | CREATE TABLE IF NOT EXISTS automod_community (
8 | id INTEGER PRIMARY KEY,
9 | name TEXT,
10 | community_id NUMBER
11 | );`;
12 | //field: (title, body, link), type(regex/exact), whitelist (bool, false by default), mod_exempt(bool, true by default), message can be null, removal reason (posted in modlog) can be null
13 | const postQuery = `
14 | CREATE TABLE IF NOT EXISTS automod_post (
15 | field TEXT,
16 | match TEXT,
17 | type TEXT,
18 | community_id INTEGER,
19 | whitelist_exempt INTEGER NOT NULL,
20 | mod_exempt INTEGER NOT NULL,
21 | message TEXT,
22 | removal_reason TEXT,
23 | PRIMARY KEY(field, match, community_id),
24 | FOREIGN KEY(community_id) REFERENCES automod_community(id)
25 | );`;
26 | //type(regex/exact), whitelist (bool, false by default), mod_exempt(bool, true by default), message can be null, removal reason (posted in modlog) can be null
27 | const commentQuery = `
28 | CREATE TABLE IF NOT EXISTS automod_comment (
29 | match TEXT,
30 | type TEXT,
31 | community_id INTEGER,
32 | whitelist_exempt INTEGER NOT NULL,
33 | mod_exempt INTEGER NOT NULL,
34 | message TEXT,
35 | removal_reason TEXT,
36 | PRIMARY KEY(match, type, community_id),
37 | FOREIGN KEY(community_id) REFERENCES automod_community(id)
38 | );`;
39 | //action(pin/lock), message can be null
40 | const mentionQuery = `
41 | CREATE TABLE IF NOT EXISTS automod_mention (
42 | command TEXT NOT NULL,
43 | action TEXT NOT NULL,
44 | community_id INTEGER NOT NULL,
45 | message TEXT,
46 | PRIMARY KEY(command, action, community_id),
47 | FOREIGN KEY(community_id) REFERENCES automod_community(id)
48 | );`;
49 |
50 | const exceptionQuery = `
51 | CREATE TABLE IF NOT EXISTS automod_exception (
52 | user_actor_id TEXT,
53 | community_id INTEGER,
54 | PRIMARY KEY(user_actor_id, community_id),
55 | FOREIGN KEY(community_id) REFERENCES automod_community(id)
56 | );`;
57 |
58 | db.prepare(commQuery).run();
59 | db.prepare(postQuery).run();
60 | db.prepare(commentQuery).run();
61 | db.prepare(mentionQuery).run();
62 | db.prepare(exceptionQuery).run();
63 | }
64 |
65 | //Get an internal id from a community name and a community id
66 | //I am using a dedicated internal id because I'm not sure if the provided "community_id" is unique
67 | export function getCommunity(db: Database, name: string, community_id: number): number | null {
68 | const query = db.prepare(`SELECT id FROM automod_community WHERE name = ? AND community_id = ?`);
69 | const res = query.get(name, community_id) as { id: number } | undefined;
70 |
71 | if (res !== undefined) return res.id
72 |
73 | return null;
74 | }
75 |
76 | //Inserts a new community in the database
77 | export function addCommunity(db: Database, name: string, id: number) {
78 | const query = db.prepare(`INSERT INTO automod_community (name, community_id) VALUES (?, ?)`);
79 | query.run(name, id);
80 |
81 | return getCommunity(db, name, id) as number;
82 | }
83 |
84 | /* CONFIGURATION SETTERS */
85 |
86 | export function addPostRule(db: Database, rule: PostJson, community: number) {
87 | const rules = new Array();
88 |
89 | if (rule.field.includes('+')) { //Multiple fields, separated by + sign
90 | const fields = rule.field.split('+') as Array<"title" | "body" | "link">;
91 |
92 | for (const tmp of fields) {
93 | const field = tmp as "title" | "body" | "link"; //TS workaround
94 | console.log(tmp, field)
95 |
96 | rules.push({
97 | rule: 'post',
98 | field: field,
99 | community: rule.community,
100 | match: rule.match,
101 | message: rule.message,
102 | mod_exempt: rule.mod_exempt,
103 | removal_reason: rule.removal_reason,
104 | type: rule.type,
105 | whitelist_exempt: rule.whitelist_exempt,
106 | })
107 | }
108 | } else { //Single field
109 | rules.push(rule);
110 | }
111 |
112 | for (const rule of rules) {
113 | const query = db.prepare(`INSERT INTO automod_post (field,match,type,community_id,whitelist_exempt,mod_exempt,message,removal_reason) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`);
114 |
115 | query.run(rule.field, rule.match, rule.type, community, bool2int(rule.whitelist_exempt), bool2int(rule.mod_exempt), rule.message, rule.removal_reason);
116 | }
117 | }
118 |
119 | export function addCommentRule(db: Database, rule: CommentJson, community: number) {
120 | const query = db.prepare(`INSERT INTO automod_comment (match,type,community_id,whitelist_exempt,mod_exempt,message,removal_reason) VALUES (?, ?, ?, ?, ?, ?, ?)`);
121 |
122 | query.run(rule.match, rule.type, community, bool2int(rule.whitelist_exempt), bool2int(rule.mod_exempt), rule.message, rule.removal_reason);
123 | }
124 |
125 | export function addMentionRule(db: Database, rule: MentionJson, community: number) {
126 | const query = db.prepare(`INSERT INTO automod_mention (command,action,community_id,message) VALUES (?, ?, ?, ?)`);
127 |
128 | query.run(rule.command, rule.action, community, rule.message);
129 | }
130 |
131 | export function addExceptionRule(db: Database, rule: ExceptionJson, community: number) {
132 | const query = db.prepare(`INSERT INTO automod_exception (user_actor_id,community_id) VALUES (?, ?)`);
133 |
134 | query.run(rule.user_actor_id, community);
135 | }
136 |
137 | /* CONFIGURATION GETTERS */
138 |
139 | //Whitelist exceptions and moderator exceptions are handled by this function. The caller only has to pass the correct actor_id and the result of an isCommunityModerator() function
140 | export function getPostRules(db: Database, actorId: string, community: number, isModerator: boolean) {
141 | let query;
142 |
143 | if (isModerator) {
144 | query = db.prepare(`
145 | SELECT field, match, type, message, removal_reason
146 | FROM automod_post
147 | INNER JOIN automod_community ON automod_post.community_id = automod_community.id
148 | WHERE automod_community.community_id = ?
149 | AND automod_post.mod_exempt = 0
150 | AND (
151 | CASE
152 | WHEN ? IN (
153 | SELECT user_actor_id
154 | FROM automod_exception
155 | WHERE community_id = automod_post.community_id
156 | )
157 | THEN automod_post.whitelist_exempt = 0
158 | ELSE 1
159 | END
160 | )
161 | `);
162 | } else {
163 | query = db.prepare(`
164 | SELECT field, match, type, message, removal_reason
165 | FROM automod_post
166 | INNER JOIN automod_community ON automod_post.community_id = automod_community.id
167 | WHERE automod_community.community_id = ?
168 | AND (
169 | CASE
170 | WHEN ? IN (
171 | SELECT user_actor_id
172 | FROM automod_exception
173 | WHERE community_id = automod_post.community_id
174 | )
175 | THEN automod_post.whitelist_exempt = 0
176 | ELSE 1
177 | END
178 | )
179 | `);
180 | }
181 |
182 | return query.all(community, actorId) as Post[];
183 | }
184 |
185 | //Whitelist exceptions and moderator exceptions are handled by this function. The caller only has to pass the correct actor_id and the result of an isCommunityModerator() function
186 | export function getCommentRules(db: Database, actorId: string, community: number, isModerator: boolean) {
187 | let query;
188 |
189 | if (isModerator) {
190 | query = db.prepare(`
191 | SELECT match, type, message, removal_reason
192 | FROM automod_comment
193 | INNER JOIN automod_community ON automod_comment.community_id = automod_community.id
194 | WHERE automod_community.community_id = ?
195 | AND automod_comment.mod_exempt = 0
196 | AND (
197 | CASE
198 | WHEN ? IN (
199 | SELECT user_actor_id
200 | FROM automod_exception
201 | WHERE community_id = automod_comment.community_id
202 | )
203 | THEN automod_comment.whitelist_exempt = 0
204 | ELSE 1
205 | END
206 | )
207 | `);
208 | } else {
209 | query = db.prepare(`
210 | SELECT match, type, message, removal_reason
211 | FROM automod_comment
212 | INNER JOIN automod_community ON automod_comment.community_id = automod_community.id
213 | WHERE automod_community.community_id = ?
214 | AND (
215 | CASE
216 | WHEN ? IN (
217 | SELECT user_actor_id
218 | FROM automod_exception
219 | WHERE community_id = automod_comment.community_id
220 | )
221 | THEN automod_comment.whitelist_exempt = 0
222 | ELSE 1
223 | END
224 | )
225 | `);
226 | }
227 |
228 | return query.all(community, actorId) as Comment[];
229 | }
230 |
231 | export function getMentionRules(db: Database, community: number) {
232 | const query = db.prepare(`
233 | SELECT command, action, message
234 | FROM automod_mention
235 | INNER JOIN automod_community ON automod_mention.community_id = automod_community.id
236 | WHERE automod_community.community_id = ?
237 | `);
238 |
239 | return query.all(community) as Mention[];
240 | }
241 |
242 | //Checks whether a user is whitelisted for a certain community
243 | export function isWhitelisted(db: Database, actorId: string, community: number) {
244 | const query = db.prepare(`
245 | SELECT user_actor_id
246 | FROM automod_exception
247 | INNER JOIN automod_community ON automod_exception.community_id = automod_community.id
248 | WHERE automod_community.id = ?
249 | `);
250 |
251 | const users = query.all(community) as { user_actor_id: string }[];
252 |
253 | for (const user of users) {
254 | if (user.user_actor_id === actorId) return true;
255 | }
256 |
257 | return false;
258 | }
259 |
260 | /* UTILITY */
261 |
262 | //false -> 0; true -> 1. Just Javascript being Javascript
263 | function bool2int(value: boolean) {
264 | return value as unknown as number + 0;
265 | }
266 |
267 | /* TYPES */
268 |
269 | export interface Post {
270 | field: "title" | "body" | "link"
271 | match: string | RegExp
272 | type: "exact" | "regex"
273 | message: string | null
274 | removal_reason: string | null
275 | }
276 |
277 | export interface Comment {
278 | match: string | RegExp
279 | type: "exact" | "regex"
280 | message: string | null
281 | removal_reason: string | null
282 | }
283 |
284 | export interface Mention {
285 | command: string
286 | action: "pin" | "lock"
287 | message: string | null
288 | }
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | import 'dotenv/config';
2 | import LemmyBot from 'lemmy-bot';
3 | import Database from 'better-sqlite3';
4 | import {
5 | setUpDb, addCommunity, getCommunity,
6 | addPostRule, addCommentRule, addMentionRule, addExceptionRule,
7 | getPostRules, getCommentRules, getMentionRules, isWhitelisted
8 | } from './db';
9 | import { parse } from './parser';
10 |
11 | const USERNAME = process.env.LEMMY_USERNAME || '';
12 | const PASSWORD = process.env.LEMMY_PASSWORD || '';
13 | const INSTANCE = process.env.LEMMY_INSTANCE || '';
14 | const WEBHOOK = process.env.DISCORD_WEBHOOK_URL;
15 | const DATABASE = './database/db.sqlite3';
16 | const OWN_ACTOR_ID = `https://${INSTANCE}/u/${USERNAME}`;
17 |
18 | let ownId: number;
19 |
20 | const db = new Database(DATABASE);
21 | db.pragma('journal_mode = WAL');
22 |
23 | if (USERNAME === '' || PASSWORD === '' || INSTANCE === '') {
24 | throw new Error('Undefined username, password or instance. Check your .env file.');
25 | }
26 |
27 | const bot = new LemmyBot({
28 | credentials: { username: USERNAME, password: PASSWORD },
29 | connection: { secondsBetweenPolls: 2 },
30 | instance: INSTANCE,
31 | dbFile: DATABASE,
32 | federation: 'local',
33 | enableLogs: true,
34 | markAsBot: true,
35 | handlers: {
36 | privateMessage: async ({
37 | messageView: { private_message: { content }, creator: { id: creatorId, name } },
38 | botActions: { sendPrivateMessage, getCommunityId, isCommunityMod, getUserId },
39 | preventReprocess
40 | }) => {
41 | try {
42 | const userInput = parse(content);
43 | const errors = new Map();
44 | let i = 1;
45 | for (const rule of userInput) {
46 |
47 | //Check for schema matching
48 | if (rule === null) {
49 | errors.set(i++, 'Incorrect schema. The provided configuration doesn\'t match any known schema.');
50 | continue;
51 | }
52 |
53 | const communityName = rule.community;
54 | const communityId = await getCommunityId({ instance: INSTANCE, name: communityName });
55 |
56 | /* PRELIMINARY CHECKS */
57 |
58 | //Does the community exist?
59 | if (communityId == null) {
60 | errors.set(i++, `No community named "${communityName}" was found.`);
61 | console.log(`Denied: Unknown community: c/${communityName}`);
62 | continue;
63 | }
64 |
65 | //Is the requester a moderator in the community?
66 | if (!await isCommunityMod({ person_id: creatorId, community_id: communityId })) {
67 | errors.set(i++, `You aren't a moderator in "${communityName}". Only moderators can edit a community's AutoMod configuration.`);
68 | console.log(`Denied: User u/${name} is not a mod in c/${communityName}`);
69 | continue;
70 | }
71 |
72 | //Only runs on startup, fetch the bot's ID
73 | if (ownId === undefined) {
74 | ownId = await getUserId({ instance: INSTANCE, name: USERNAME }) as number;
75 | }
76 |
77 | /*
78 | NOTE:
79 | Currently there's no way of making an account a mod if it comments in the target community,
80 | so this check makes little sense.
81 | In the future, before failing, this should cause the bot to comment under the top post and reply with a link to said comment.
82 | */
83 |
84 | //Is the bot a moderator in the community?
85 | if (!await isCommunityMod({ person_id: ownId, community_id: communityId })) {
86 | errors.set(i++, `AutoMod is not a moderator in "${communityName}". AutoMod can only be enabled in communities where it is a mod.`);
87 | console.log(`Denied: AutoMod not activated in c/${communityName}`);
88 | continue;
89 | }
90 |
91 | //Check if the bot is already monitoring the community, if not add it to the database
92 | let communityInternalId = getCommunity(db, communityName, communityId);
93 | if (communityInternalId === null) {
94 | communityInternalId = addCommunity(db, communityName, communityId);
95 | }
96 |
97 | /* CHECKS PASSED, CONFIGURATION CAN BE INSERTED */
98 |
99 | if (rule.rule === 'post') {
100 | addPostRule(db, rule, communityInternalId);
101 | console.log(`Success: post rule in c/${communityName}`);
102 | } else if (rule.rule === 'comment') {
103 | addCommentRule(db, rule, communityInternalId);
104 | console.log(`Success: comment rule in c/${communityName}`);
105 | } else if (rule.rule === 'mention') {
106 | addMentionRule(db, rule, communityInternalId);
107 | console.log(`Success: mention rule in c/${communityName}`);
108 | } else if (rule.rule === 'exception') {
109 | addExceptionRule(db, rule, communityInternalId);
110 | console.log(`Success: exception rule in c/${communityName}`);
111 | }
112 |
113 | i++;
114 | }
115 |
116 | //Report results to user with a PM
117 | if (errors.size === 0 && userInput.length === 1) {
118 | await sendPrivateMessage({ content: 'Rule successfully added.', recipient_id: creatorId });
119 |
120 | } else if (errors.size === 0) {
121 | await sendPrivateMessage({ content: 'Rules successfully added.', recipient_id: creatorId });
122 |
123 | } else if (errors.size === userInput.length) {
124 | if (userInput.length === 1) {
125 | let errorMessage = `\n\nError: `;
126 |
127 | for (const [key, value] of errors) {
128 | errorMessage += `${value}`;
129 | }
130 |
131 | await sendPrivateMessage({ content: 'The rule wasn\'t added, the provided configuration is invalid. Make sure to consult the bot\'s documentation to avoid any mistakes.' + errorMessage, recipient_id: creatorId });
132 |
133 | } else {
134 | let errorMessage = `\n\nErrors:`;
135 |
136 | for (const [key, value] of errors) {
137 | errorMessage += `\n\n- Rule ${key}: ${value}`;
138 | }
139 |
140 | await sendPrivateMessage({ content: 'No rules were added, all of the provided configurations are invalid. Make sure to consult the bot\'s documentation to avoid any mistakes.' + errorMessage, recipient_id: creatorId });
141 |
142 | }
143 | } else {
144 | let errorMessage = `\n\nErrors:`;
145 |
146 | for (const [key, value] of errors) {
147 | errorMessage += `\n\n- Rule ${key}: ${value}`;
148 | }
149 |
150 | await sendPrivateMessage({ content: `Rules partially added. Some of the provided configurations were invalid. Make sure to consult the bot\'s documentation to avoid any mistakes. \n\nThe remaining rules were succesfully added.` + errorMessage, recipient_id: creatorId });
151 |
152 | }
153 | } catch (e) {
154 | await sendPrivateMessage({ content: `Error while processing AutoMod configuration, please try again. If the issue persists, consider reporting this to the developer.\n\nError code: ${e}`, recipient_id: creatorId });
155 | console.log(e);
156 |
157 | } finally {
158 | preventReprocess()
159 | }
160 | },
161 |
162 | mention: async ({
163 | mentionView: { creator: { id, name: userName, actor_id: actorId }, community: { id: communityId, name: communityName }, comment: { content, id: commentId }, post: { id: postId } },
164 | botActions: { createComment, featurePost, lockPost, isCommunityMod },
165 | preventReprocess
166 | }) => {
167 | if (actorId === OWN_ACTOR_ID) return;
168 | if (!await isCommunityMod({ person_id: id, community_id: communityId })) return;
169 |
170 | const rules = getMentionRules(db, communityId);
171 |
172 | for (const rule of rules) {
173 | if (content.includes(rule.command)) {
174 | if (rule.message !== null) {
175 | try {
176 | await createComment({ content: rule.message, post_id: postId, parent_id: commentId });
177 | } catch (e) { console.log(e) }
178 | }
179 |
180 | if (rule.action === 'lock') {
181 | lockPost({ locked: true, post_id: postId });
182 | console.log(`Received lock request in c/${communityName} by ${userName}`);
183 |
184 | } else if (rule.action === 'pin') {
185 | featurePost({ feature_type: 'Community', featured: true, post_id: postId });
186 | console.log(`Received pin request in c/${communityName} by ${userName}`);
187 |
188 | }
189 |
190 | break;
191 | }
192 | }
193 |
194 | preventReprocess();
195 | },
196 |
197 | comment: async ({
198 | commentView: {
199 | comment: { id, content: body },
200 | community: { id: communityId, name: communityName },
201 | post: { id: postId },
202 | creator: { actor_id: actorId, id: personId }
203 | },
204 | botActions: { createComment, removeComment, isCommunityMod },
205 | preventReprocess
206 | }) => {
207 | if (actorId === OWN_ACTOR_ID) return;
208 | const isPosterMod = await isCommunityMod({ community_id: communityId, person_id: personId });
209 | const rules = getCommentRules(db, actorId, communityId, isPosterMod);
210 |
211 | for (const rule of rules) {
212 | if (rule.type === 'exact' && body.includes(rule.match as string)) {
213 | removeComment({ comment_id: id, reason: rule.removal_reason !== null ? rule.removal_reason : undefined });
214 |
215 | if (rule.message !== null) {
216 | createComment({ post_id: postId, content: rule.message, parent_id: id });
217 | }
218 |
219 | console.log(`Removing comment in c/${communityName} by ${actorId}. Reason: ${rule.removal_reason}`);
220 |
221 | break;
222 | } else if (rule.type === 'regex' && new RegExp(rule.match).test(body)) {
223 | removeComment({ comment_id: id, reason: rule.removal_reason !== null ? rule.removal_reason : undefined });
224 |
225 | if (rule.message !== null) {
226 | createComment({ post_id: postId, content: rule.message, parent_id: id });
227 | }
228 |
229 | console.log(`Removing comment in c/${communityName} by ${actorId}. Reason: ${rule.removal_reason}`);
230 |
231 | break;
232 | }
233 | }
234 |
235 | preventReprocess();
236 | },
237 |
238 | post: async ({
239 | postView: {
240 | post: { id, body, name: title, url },
241 | community: { id: communityId, name: communityName },
242 | creator: { actor_id: actorId, id: personId }
243 | },
244 | botActions: { createComment, removePost, isCommunityMod },
245 | preventReprocess
246 | }) => {
247 | if (actorId === OWN_ACTOR_ID) return;
248 | const isPosterMod = await isCommunityMod({ community_id: communityId, person_id: personId });
249 | const rules = getPostRules(db, actorId, communityId, isPosterMod);
250 |
251 | for (const rule of rules) {
252 | //Field to be checked: body | url | title
253 | const field = (() => {
254 | if (rule.field === 'body') return body;
255 | else if (rule.field === 'link') return url;
256 | if (rule.field === 'title') return title;
257 | })();
258 |
259 | if (field !== undefined) {
260 | if (rule.type === 'exact' && field.includes(rule.match as string)) {
261 | if (rule.message !== null) {
262 | await createComment({ post_id: id, content: rule.message });
263 | }
264 |
265 | removePost({ post_id: id, reason: rule.removal_reason !== null ? rule.removal_reason : undefined });
266 |
267 | console.log(`Removing post in c/${communityName} by ${actorId}. Reason: ${rule.removal_reason}`);
268 |
269 | break;
270 | } else if (rule.type === 'regex' && new RegExp(rule.match).test(field)) {
271 | if (rule.message !== null) {
272 | await createComment({ post_id: id, content: rule.message });
273 | }
274 |
275 | removePost({ post_id: id, reason: rule.removal_reason !== null ? rule.removal_reason : undefined });
276 |
277 | console.log(`Removing post in c/${communityName} by ${actorId}. Reason: ${rule.removal_reason}`);
278 |
279 | break;
280 | }
281 | }
282 | }
283 |
284 | preventReprocess();
285 | },
286 |
287 | //Send a ping to a Discord webhook upon receiving a subscription application. Note: this requires the automod to be an admin
288 | registrationApplication: async ({
289 | applicationView: { creator, registration_application: application },
290 | }) => {
291 | if (WEBHOOK === undefined) return;
292 |
293 | console.log('Sending webhook for registration application');
294 |
295 | //Trim application text down to MAX_MESSAGE characters at most
296 | const MAX_MESSAGE = 750;
297 | let answer = application.answer;
298 | if (answer.length > MAX_MESSAGE) {
299 | answer = application.answer.substring(0, MAX_MESSAGE);
300 | answer += '...';
301 | }
302 |
303 | const body = {
304 | username: creator.name,
305 | embeds: [{
306 | color: 4241744,
307 | title: 'New registration application!',
308 | description: answer,
309 | url: `https://${INSTANCE}/registration_applications`,
310 | fields: []
311 | }],
312 | };
313 |
314 | try {
315 | const res = await fetch(WEBHOOK, {
316 | method: 'POST',
317 | headers: { 'Content-Type': 'application/json' },
318 | body: JSON.stringify(body),
319 | });
320 |
321 | if (!res.ok) throw new Error(res.status + ' ' + res.statusText);
322 | } catch (e) {
323 | console.log(e);
324 | }
325 | },
326 |
327 | //This doesn't work
328 |
329 | // commentReport: async ({
330 | // reportView: { creator: reportCreator, comment_creator: commentCreator, comment_report: report, community },
331 | // botActions: { resolveCommentReport },
332 | // preventReprocess
333 | // }) => {
334 | // const whitelisted = isWhitelisted(db, commentCreator.actor_id, community.id);
335 |
336 | // if (whitelisted) {
337 | // await resolveCommentReport(report.id);
338 |
339 | // console.log(`Resolving report to comment by whitelisted user ${commentCreator.actor_id} in c/${community.name}. Reported by ${reportCreator.actor_id}`);
340 | // }
341 |
342 | // preventReprocess();
343 | // },
344 |
345 | // postReport: async ({
346 | // reportView: { creator: reportCreator, post_creator: postCreator, post_report: report, community },
347 | // botActions: { resolvePostReport },
348 | // preventReprocess
349 | // }) => {
350 | // const whitelisted = isWhitelisted(db, postCreator.actor_id, community.id);
351 |
352 | // if (whitelisted) {
353 | // await resolvePostReport(report.id);
354 |
355 | // console.log(`Resolving report to post by whitelisted user ${postCreator.actor_id} in c/${community.name}. Reported by ${reportCreator.actor_id}`);
356 | // }
357 |
358 | // preventReprocess();
359 | // },
360 | },
361 | });
362 |
363 | try {
364 | setUpDb(db);
365 | bot.start();
366 | } catch (e) {
367 | console.log(e);
368 | }
--------------------------------------------------------------------------------
/src/parser.ts:
--------------------------------------------------------------------------------
1 | import Ajv, { ValidateFunction } from 'ajv';
2 | import addFormats from 'ajv-formats';
3 | import type { Comment, Mention } from './db'
4 |
5 | // Load schemas
6 | import postSchema from './schemas/post.json';
7 | import commentSchema from './schemas/comment.json';
8 | import mentionSchema from './schemas/mention.json';
9 | import exceptionSchema from './schemas/exception.json';
10 |
11 | // Parses a JSON document against the known schemas, returns the apropriate object
12 | export function parse(data: string): Array {
13 | const ajv = new Ajv();
14 | addFormats(ajv);
15 |
16 | const validatePost = ajv.compile(postSchema);
17 | const validateComment = ajv.compile(commentSchema);
18 | const validateMention = ajv.compile(mentionSchema);
19 | const validateException = ajv.compile(exceptionSchema);
20 |
21 | const jsonData = JSON.parse(data) as any | any[];
22 |
23 | if (Array.isArray(jsonData)) {
24 | const output = new Array();
25 |
26 | for (const rule of jsonData) {
27 | output.push(validate(rule, validatePost, validateComment, validateMention, validateException));
28 | }
29 |
30 | return output;
31 |
32 | } else {
33 | return [validate(jsonData, validatePost, validateComment, validateMention, validateException)];
34 |
35 | }
36 | }
37 |
38 | // Validate a single JSON rule, return the parsed object or an error if the schema doesn't match
39 | function validate(data: any, validatePost: ValidateFunction, validateComment: ValidateFunction, validateMention: ValidateFunction, validateException: ValidateFunction): PostJson | CommentJson | MentionJson | ExceptionJson | null {
40 | if (validatePost(data)) {
41 | return data as unknown as PostJson;
42 |
43 | } else if (validateComment(data)) {
44 | return data as unknown as CommentJson;
45 |
46 | } else if (validateMention(data)) {
47 | return data as unknown as MentionJson;
48 |
49 | } else if (validateException(data)) {
50 | return data as unknown as ExceptionJson;
51 |
52 | } else {
53 | return null;
54 |
55 | }
56 | }
57 |
58 | export interface PostJson {
59 | rule: "post"
60 | community: string
61 | field: "title" | "body" | "link" | "title+body" | "title+link" | "body+title" | "body+link" | "link+title" | "link+body" | "title+body+link" | "title+link+body" | "body+title+link" | "body+link+title" | "link+title+body" | "link+body+title"
62 | match: string
63 | type: "exact" | "regex"
64 | whitelist_exempt: boolean
65 | mod_exempt: boolean
66 | message: string | null
67 | removal_reason: string | null
68 | }
69 |
70 | export interface CommentJson extends Comment {
71 | rule: "comment"
72 | community: string
73 | match: string
74 | type: "exact" | "regex"
75 | whitelist_exempt: boolean
76 | mod_exempt: boolean
77 | message: string | null
78 | removal_reason: string | null
79 | }
80 |
81 | export interface MentionJson extends Mention {
82 | rule: "mention"
83 | command: string
84 | action: "pin" | "lock"
85 | community: string
86 | message: string | null
87 | }
88 |
89 | export interface ExceptionJson {
90 | rule: "exception"
91 | community: string
92 | user_actor_id: string
93 | }
94 |
--------------------------------------------------------------------------------
/src/schemas/comment.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/draft-07/schema#",
3 | "type": "object",
4 | "properties": {
5 | "rule": {
6 | "type": "string",
7 | "const": "comment"
8 | },
9 | "community": {
10 | "type": "string"
11 | },
12 | "match": {
13 | "type": "string"
14 | },
15 | "type": {
16 | "type": "string",
17 | "enum": [
18 | "exact",
19 | "regex"
20 | ]
21 | },
22 | "whitelist_exempt": {
23 | "type": "boolean"
24 | },
25 | "mod_exempt": {
26 | "type": "boolean"
27 | },
28 | "message": {
29 | "type": [
30 | "string",
31 | "null"
32 | ]
33 | },
34 | "removal_reason": {
35 | "type": [
36 | "string",
37 | "null"
38 | ]
39 | }
40 | },
41 | "required": [
42 | "rule",
43 | "community",
44 | "match",
45 | "type",
46 | "whitelist_exempt",
47 | "mod_exempt",
48 | "message",
49 | "removal_reason"
50 | ]
51 | }
--------------------------------------------------------------------------------
/src/schemas/exception.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/draft-07/schema#",
3 | "type": "object",
4 | "properties": {
5 | "rule": {
6 | "type": "string",
7 | "const": "exception"
8 | },
9 | "community": {
10 | "type": "string"
11 | },
12 | "user_actor_id": {
13 | "type": "string"
14 | }
15 | },
16 | "required": [
17 | "rule",
18 | "community",
19 | "user_actor_id"
20 | ]
21 | }
--------------------------------------------------------------------------------
/src/schemas/mention.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/draft-07/schema#",
3 | "type": "object",
4 | "properties": {
5 | "rule": {
6 | "type": "string",
7 | "const": "mention"
8 | },
9 | "community": {
10 | "type": "string"
11 | },
12 | "command": {
13 | "type": [
14 | "string"
15 | ]
16 | },
17 | "action": {
18 | "type": "string",
19 | "enum": [
20 | "pin",
21 | "lock"
22 | ]
23 | },
24 | "message": {
25 | "type": [
26 | "string",
27 | "null"
28 | ]
29 | }
30 | },
31 | "required": [
32 | "rule",
33 | "community",
34 | "command",
35 | "action",
36 | "message"
37 | ]
38 | }
--------------------------------------------------------------------------------
/src/schemas/post.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/draft-07/schema#",
3 | "type": "object",
4 | "properties": {
5 | "rule": {
6 | "type": "string",
7 | "const": "post"
8 | },
9 | "community": {
10 | "type": "string"
11 | },
12 | "field": {
13 | "type": "string",
14 | "enum": [
15 | "title",
16 | "body",
17 | "link",
18 | "title+body",
19 | "title+link",
20 | "body+title",
21 | "body+link",
22 | "link+title",
23 | "link+body",
24 | "title+body+link",
25 | "title+link+body",
26 | "body+title+link",
27 | "body+link+title",
28 | "link+title+body",
29 | "link+body+title"
30 | ]
31 | },
32 | "match": {
33 | "type": "string"
34 | },
35 | "type": {
36 | "type": "string",
37 | "enum": [
38 | "exact",
39 | "regex"
40 | ]
41 | },
42 | "whitelist_exempt": {
43 | "type": "boolean"
44 | },
45 | "mod_exempt": {
46 | "type": "boolean"
47 | },
48 | "message": {
49 | "type": [
50 | "string",
51 | "null"
52 | ]
53 | },
54 | "removal_reason": {
55 | "type": [
56 | "string",
57 | "null"
58 | ]
59 | }
60 | },
61 | "required": [
62 | "rule",
63 | "community",
64 | "field",
65 | "match",
66 | "type",
67 | "whitelist_exempt",
68 | "mod_exempt",
69 | "message",
70 | "removal_reason"
71 | ]
72 | }
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | /* Visit https://aka.ms/tsconfig to read more about this file */
4 | /* Projects */
5 | // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
6 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
7 | // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
8 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
9 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
10 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
11 | /* Language and Environment */
12 | "target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
13 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
14 | // "jsx": "preserve", /* Specify what JSX code is generated. */
15 | // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
16 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
17 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
18 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
19 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
20 | // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
21 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
22 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
23 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
24 | /* Modules */
25 | "module": "NodeNext", /* Specify what module code is generated. */
26 | "rootDir": "./src", /* Specify the root folder within your source files. */
27 | "moduleResolution": "NodeNext", /* Specify how TypeScript looks up a file from a given module specifier. */
28 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
29 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
30 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
31 | // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
32 | // "types": [], /* Specify type package names to be included without being referenced in a source file. */
33 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
34 | // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
35 | // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
36 | // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
37 | // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
38 | // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
39 | "resolveJsonModule": true, /* Enable importing .json files. */
40 | // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
41 | // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */
42 | /* JavaScript Support */
43 | // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
44 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
45 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
46 | /* Emit */
47 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
48 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */
49 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
50 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
51 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
52 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
53 | "outDir": "./dist", /* Specify an output folder for all emitted files. */
54 | // "removeComments": true, /* Disable emitting comments. */
55 | // "noEmit": true, /* Disable emitting files from a compilation. */
56 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
57 | // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
58 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
59 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
60 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
61 | // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
62 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
63 | // "newLine": "crlf", /* Set the newline character for emitting files. */
64 | // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
65 | // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
66 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
67 | // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
68 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
69 | // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
70 | /* Interop Constraints */
71 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
72 | // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
73 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
74 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
75 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
76 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
77 | /* Type Checking */
78 | "strict": true, /* Enable all strict type-checking options. */
79 | // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
80 | // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
81 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
82 | // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
83 | // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
84 | // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
85 | // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
86 | // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
87 | // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
88 | // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
89 | // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
90 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
91 | // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
92 | // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
93 | // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
94 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
95 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
96 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
97 | /* Completeness */
98 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
99 | "skipLibCheck": true /* Skip type checking all .d.ts files. */
100 | }
101 | }
--------------------------------------------------------------------------------