├── .eslintrc.json
├── .github
└── workflows
│ └── ci.yml
├── .gitignore
├── .mocharc.json
├── .prettierignore
├── .prettierrc
├── LICENSE
├── README.md
├── mocha.setup.ts
├── package.json
├── pnpm-lock.yaml
├── renovate.json
├── src
├── errors.ts
├── index.ts
├── ip
│ ├── index.ts
│ ├── link.ts
│ └── route.ts
├── netstat
│ └── index.ts
└── utils
│ ├── array.ts
│ └── exec-shell.ts
├── tests
├── ip
│ ├── index.test.ts
│ ├── link.test.ts
│ └── route.test.ts
└── netstat
│ └── index.test.ts
├── tsconfig.json
└── tsup.config.ts
/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/eslintrc.json",
3 | "env": {
4 | "es2021": true,
5 | "node": true
6 | },
7 | "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
8 | "parserOptions": {
9 | "ecmaVersion": "latest",
10 | "sourceType": "module"
11 | },
12 | "rules": {
13 | "no-console": "error",
14 | "@typescript-eslint/semi": "off",
15 | "@typescript-eslint/no-explicit-any": "off"
16 | },
17 | "ignorePatterns": ["dist", "node_modules"]
18 | }
19 |
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 |
3 | on:
4 | push:
5 | branches:
6 | - canary
7 | pull_request:
8 |
9 | concurrency:
10 | group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
11 | cancel-in-progress: true
12 |
13 | jobs:
14 | format:
15 | runs-on: ubuntu-latest
16 | steps:
17 | - uses: actions/checkout@v4
18 | - uses: pnpm/action-setup@v2
19 | with:
20 | version: 8
21 | - uses: actions/setup-node@v4
22 | with:
23 | node-version: 18
24 | cache: 'pnpm'
25 |
26 | - run: pnpm install --frozen-lockfile
27 | - run: pnpm format:check
28 |
29 | lint:
30 | runs-on: ubuntu-latest
31 | steps:
32 | - uses: actions/checkout@v4
33 | - uses: pnpm/action-setup@v2
34 | with:
35 | version: 8
36 | - uses: actions/setup-node@v4
37 | with:
38 | node-version: 18
39 | cache: 'pnpm'
40 |
41 | - run: pnpm install --frozen-lockfile
42 | - run: pnpm lint
43 |
44 | tests:
45 | runs-on: ubuntu-latest
46 | strategy:
47 | matrix:
48 | node-version: [16, 18, 20]
49 | name: node ${{ matrix.node-version }}
50 | steps:
51 | - uses: actions/checkout@v4
52 | - uses: pnpm/action-setup@v2
53 | with:
54 | version: 8
55 | - uses: actions/setup-node@v4
56 | with:
57 | node-version: ${{ matrix.node-version }}
58 | cache: 'pnpm'
59 |
60 | - run: pnpm install --frozen-lockfile
61 | - run: pnpm build
62 | - run: pnpm test
63 |
--------------------------------------------------------------------------------
/.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 | .idea
--------------------------------------------------------------------------------
/.mocharc.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/mocharc.json",
3 | "require": ["tsx", "chai/register-expect", "mocha.setup.ts"],
4 | "timeout": 10000,
5 | "parallel": false
6 | }
7 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /build
4 | /.svelte-kit
5 | /package
6 | .env
7 | .env.*
8 | !.env.example
9 |
10 | # Ignore files for PNPM, NPM and YARN
11 | pnpm-lock.yaml
12 | package-lock.json
13 | yarn.lock
14 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/prettierrc",
3 | "useTabs": false,
4 | "semi": true,
5 | "singleQuote": true,
6 | "trailingComma": "es5",
7 | "printWidth": 100,
8 | "overrides": [
9 | {
10 | "files": "*.md",
11 | "options": {
12 | "parser": "markdown",
13 | "printWidth": 79
14 | }
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/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 | # node-netkit
2 |
3 | This package is designed for use with Node.js and provides tools for managing networks on Linux.
4 |
5 | ### Installation
6 |
7 | ##### Prerequisites
8 |
9 | - [net-tools](https://sourceforge.net/projects/net-tools)
10 |
11 | ```bash
12 | npm install node-netkit
13 | ```
14 |
15 | ### License
16 |
17 | [GPL-3.0](/LICENSE) © [Shahrad Elahi](https://github.com/shahradelahi)
18 |
--------------------------------------------------------------------------------
/mocha.setup.ts:
--------------------------------------------------------------------------------
1 | process.env.NODE_ENV = 'test';
2 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "node-netkit",
3 | "description": "Awesome utilities for working with network on Linux",
4 | "version": "0.1.0-canary.3",
5 | "scripts": {
6 | "dev": "tsup --watch",
7 | "build": "tsup",
8 | "test": "mocha \"**/*.test.ts\" --retries 2",
9 | "lint": "eslint .",
10 | "lint:fix": "eslint --fix .",
11 | "format:check": "prettier --check .",
12 | "format": "prettier --write .",
13 | "check": "pnpm lint && pnpm format:check",
14 | "prepublishOnly": "pnpm test && pnpm check && pnpm build"
15 | },
16 | "type": "module",
17 | "packageManager": "pnpm@8.15.0",
18 | "dependencies": {
19 | "execa": "^8.0.1",
20 | "p-safe": "^0.1.0"
21 | },
22 | "devDependencies": {
23 | "@types/chai": "^4.3.14",
24 | "@types/mocha": "^10.0.6",
25 | "@types/node": "^20.12.7",
26 | "@typescript-eslint/eslint-plugin": "^7.7.0",
27 | "chai": "^5.1.0",
28 | "eslint": "^8.57.0",
29 | "mocha": "^10.4.0",
30 | "prettier": "^3.2.5",
31 | "tsup": "^8.0.2",
32 | "tsx": "^4.7.2",
33 | "typescript": "^5.4.5"
34 | },
35 | "main": "dist/index.cjs",
36 | "module": "dist/index.js",
37 | "types": "dist/index.d.cts",
38 | "files": [
39 | "dist/**"
40 | ],
41 | "exports": {
42 | ".": {
43 | "import": {
44 | "types": "./dist/index.d.ts",
45 | "default": "./dist/index.js"
46 | },
47 | "require": {
48 | "types": "./dist/index.d.cts",
49 | "default": "./dist/index.cjs"
50 | }
51 | },
52 | "./ip": {
53 | "import": {
54 | "types": "./dist/ip/index.d.ts",
55 | "default": "./dist/ip/index.js"
56 | },
57 | "require": {
58 | "types": "./dist/ip/index.d.cts",
59 | "default": "./dist/ip/index.cjs"
60 | }
61 | },
62 | "./netstat": {
63 | "import": {
64 | "types": "./dist/netstat/index.d.ts",
65 | "default": "./dist/netstat/index.js"
66 | },
67 | "require": {
68 | "types": "./dist/netstat/index.d.cts",
69 | "default": "./dist/netstat/index.cjs"
70 | }
71 | }
72 | },
73 | "author": "Shahrad Elahi (https://github.com/shahradelahi)",
74 | "repository": {
75 | "type": "git",
76 | "url": "https://github.com/shahradelahi/node-netkit.git"
77 | },
78 | "license": "GPL-3.0",
79 | "keywords": [
80 | "network",
81 | "ip",
82 | "tun",
83 | "route",
84 | "linux",
85 | "toolkit",
86 | "node"
87 | ],
88 | "publishConfig": {
89 | "access": "public"
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/pnpm-lock.yaml:
--------------------------------------------------------------------------------
1 | lockfileVersion: '6.0'
2 |
3 | settings:
4 | autoInstallPeers: true
5 | excludeLinksFromLockfile: false
6 |
7 | dependencies:
8 | execa:
9 | specifier: ^8.0.1
10 | version: 8.0.1
11 | p-safe:
12 | specifier: ^0.1.0
13 | version: 0.1.0
14 |
15 | devDependencies:
16 | '@types/chai':
17 | specifier: ^4.3.14
18 | version: 4.3.14
19 | '@types/mocha':
20 | specifier: ^10.0.6
21 | version: 10.0.6
22 | '@types/node':
23 | specifier: ^20.12.7
24 | version: 20.12.7
25 | '@typescript-eslint/eslint-plugin':
26 | specifier: ^7.7.0
27 | version: 7.7.0(@typescript-eslint/parser@7.4.0)(eslint@8.57.0)(typescript@5.4.5)
28 | chai:
29 | specifier: ^5.1.0
30 | version: 5.1.0
31 | eslint:
32 | specifier: ^8.57.0
33 | version: 8.57.0
34 | mocha:
35 | specifier: ^10.4.0
36 | version: 10.4.0
37 | prettier:
38 | specifier: ^3.2.5
39 | version: 3.2.5
40 | tsup:
41 | specifier: ^8.0.2
42 | version: 8.0.2(typescript@5.4.5)
43 | tsx:
44 | specifier: ^4.7.2
45 | version: 4.7.2
46 | typescript:
47 | specifier: ^5.4.5
48 | version: 5.4.5
49 |
50 | packages:
51 |
52 | /@aashutoshrathi/word-wrap@1.2.6:
53 | resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==}
54 | engines: {node: '>=0.10.0'}
55 | dev: true
56 |
57 | /@esbuild/aix-ppc64@0.19.10:
58 | resolution: {integrity: sha512-Q+mk96KJ+FZ30h9fsJl+67IjNJm3x2eX+GBWGmocAKgzp27cowCOOqSdscX80s0SpdFXZnIv/+1xD1EctFx96Q==}
59 | engines: {node: '>=12'}
60 | cpu: [ppc64]
61 | os: [aix]
62 | requiresBuild: true
63 | dev: true
64 | optional: true
65 |
66 | /@esbuild/android-arm64@0.19.10:
67 | resolution: {integrity: sha512-1X4CClKhDgC3by7k8aOWZeBXQX8dHT5QAMCAQDArCLaYfkppoARvh0fit3X2Qs+MXDngKcHv6XXyQCpY0hkK1Q==}
68 | engines: {node: '>=12'}
69 | cpu: [arm64]
70 | os: [android]
71 | requiresBuild: true
72 | dev: true
73 | optional: true
74 |
75 | /@esbuild/android-arm@0.19.10:
76 | resolution: {integrity: sha512-7W0bK7qfkw1fc2viBfrtAEkDKHatYfHzr/jKAHNr9BvkYDXPcC6bodtm8AyLJNNuqClLNaeTLuwURt4PRT9d7w==}
77 | engines: {node: '>=12'}
78 | cpu: [arm]
79 | os: [android]
80 | requiresBuild: true
81 | dev: true
82 | optional: true
83 |
84 | /@esbuild/android-x64@0.19.10:
85 | resolution: {integrity: sha512-O/nO/g+/7NlitUxETkUv/IvADKuZXyH4BHf/g/7laqKC4i/7whLpB0gvpPc2zpF0q9Q6FXS3TS75QHac9MvVWw==}
86 | engines: {node: '>=12'}
87 | cpu: [x64]
88 | os: [android]
89 | requiresBuild: true
90 | dev: true
91 | optional: true
92 |
93 | /@esbuild/darwin-arm64@0.19.10:
94 | resolution: {integrity: sha512-YSRRs2zOpwypck+6GL3wGXx2gNP7DXzetmo5pHXLrY/VIMsS59yKfjPizQ4lLt5vEI80M41gjm2BxrGZ5U+VMA==}
95 | engines: {node: '>=12'}
96 | cpu: [arm64]
97 | os: [darwin]
98 | requiresBuild: true
99 | dev: true
100 | optional: true
101 |
102 | /@esbuild/darwin-x64@0.19.10:
103 | resolution: {integrity: sha512-alfGtT+IEICKtNE54hbvPg13xGBe4GkVxyGWtzr+yHO7HIiRJppPDhOKq3zstTcVf8msXb/t4eavW3jCDpMSmA==}
104 | engines: {node: '>=12'}
105 | cpu: [x64]
106 | os: [darwin]
107 | requiresBuild: true
108 | dev: true
109 | optional: true
110 |
111 | /@esbuild/freebsd-arm64@0.19.10:
112 | resolution: {integrity: sha512-dMtk1wc7FSH8CCkE854GyGuNKCewlh+7heYP/sclpOG6Cectzk14qdUIY5CrKDbkA/OczXq9WesqnPl09mj5dg==}
113 | engines: {node: '>=12'}
114 | cpu: [arm64]
115 | os: [freebsd]
116 | requiresBuild: true
117 | dev: true
118 | optional: true
119 |
120 | /@esbuild/freebsd-x64@0.19.10:
121 | resolution: {integrity: sha512-G5UPPspryHu1T3uX8WiOEUa6q6OlQh6gNl4CO4Iw5PS+Kg5bVggVFehzXBJY6X6RSOMS8iXDv2330VzaObm4Ag==}
122 | engines: {node: '>=12'}
123 | cpu: [x64]
124 | os: [freebsd]
125 | requiresBuild: true
126 | dev: true
127 | optional: true
128 |
129 | /@esbuild/linux-arm64@0.19.10:
130 | resolution: {integrity: sha512-QxaouHWZ+2KWEj7cGJmvTIHVALfhpGxo3WLmlYfJ+dA5fJB6lDEIg+oe/0//FuyVHuS3l79/wyBxbHr0NgtxJQ==}
131 | engines: {node: '>=12'}
132 | cpu: [arm64]
133 | os: [linux]
134 | requiresBuild: true
135 | dev: true
136 | optional: true
137 |
138 | /@esbuild/linux-arm@0.19.10:
139 | resolution: {integrity: sha512-j6gUW5aAaPgD416Hk9FHxn27On28H4eVI9rJ4az7oCGTFW48+LcgNDBN+9f8rKZz7EEowo889CPKyeaD0iw9Kg==}
140 | engines: {node: '>=12'}
141 | cpu: [arm]
142 | os: [linux]
143 | requiresBuild: true
144 | dev: true
145 | optional: true
146 |
147 | /@esbuild/linux-ia32@0.19.10:
148 | resolution: {integrity: sha512-4ub1YwXxYjj9h1UIZs2hYbnTZBtenPw5NfXCRgEkGb0b6OJ2gpkMvDqRDYIDRjRdWSe/TBiZltm3Y3Q8SN1xNg==}
149 | engines: {node: '>=12'}
150 | cpu: [ia32]
151 | os: [linux]
152 | requiresBuild: true
153 | dev: true
154 | optional: true
155 |
156 | /@esbuild/linux-loong64@0.19.10:
157 | resolution: {integrity: sha512-lo3I9k+mbEKoxtoIbM0yC/MZ1i2wM0cIeOejlVdZ3D86LAcFXFRdeuZmh91QJvUTW51bOK5W2BznGNIl4+mDaA==}
158 | engines: {node: '>=12'}
159 | cpu: [loong64]
160 | os: [linux]
161 | requiresBuild: true
162 | dev: true
163 | optional: true
164 |
165 | /@esbuild/linux-mips64el@0.19.10:
166 | resolution: {integrity: sha512-J4gH3zhHNbdZN0Bcr1QUGVNkHTdpijgx5VMxeetSk6ntdt+vR1DqGmHxQYHRmNb77tP6GVvD+K0NyO4xjd7y4A==}
167 | engines: {node: '>=12'}
168 | cpu: [mips64el]
169 | os: [linux]
170 | requiresBuild: true
171 | dev: true
172 | optional: true
173 |
174 | /@esbuild/linux-ppc64@0.19.10:
175 | resolution: {integrity: sha512-tgT/7u+QhV6ge8wFMzaklOY7KqiyitgT1AUHMApau32ZlvTB/+efeCtMk4eXS+uEymYK249JsoiklZN64xt6oQ==}
176 | engines: {node: '>=12'}
177 | cpu: [ppc64]
178 | os: [linux]
179 | requiresBuild: true
180 | dev: true
181 | optional: true
182 |
183 | /@esbuild/linux-riscv64@0.19.10:
184 | resolution: {integrity: sha512-0f/spw0PfBMZBNqtKe5FLzBDGo0SKZKvMl5PHYQr3+eiSscfJ96XEknCe+JoOayybWUFQbcJTrk946i3j9uYZA==}
185 | engines: {node: '>=12'}
186 | cpu: [riscv64]
187 | os: [linux]
188 | requiresBuild: true
189 | dev: true
190 | optional: true
191 |
192 | /@esbuild/linux-s390x@0.19.10:
193 | resolution: {integrity: sha512-pZFe0OeskMHzHa9U38g+z8Yx5FNCLFtUnJtQMpwhS+r4S566aK2ci3t4NCP4tjt6d5j5uo4h7tExZMjeKoehAA==}
194 | engines: {node: '>=12'}
195 | cpu: [s390x]
196 | os: [linux]
197 | requiresBuild: true
198 | dev: true
199 | optional: true
200 |
201 | /@esbuild/linux-x64@0.19.10:
202 | resolution: {integrity: sha512-SpYNEqg/6pZYoc+1zLCjVOYvxfZVZj6w0KROZ3Fje/QrM3nfvT2llI+wmKSrWuX6wmZeTapbarvuNNK/qepSgA==}
203 | engines: {node: '>=12'}
204 | cpu: [x64]
205 | os: [linux]
206 | requiresBuild: true
207 | dev: true
208 | optional: true
209 |
210 | /@esbuild/netbsd-x64@0.19.10:
211 | resolution: {integrity: sha512-ACbZ0vXy9zksNArWlk2c38NdKg25+L9pr/mVaj9SUq6lHZu/35nx2xnQVRGLrC1KKQqJKRIB0q8GspiHI3J80Q==}
212 | engines: {node: '>=12'}
213 | cpu: [x64]
214 | os: [netbsd]
215 | requiresBuild: true
216 | dev: true
217 | optional: true
218 |
219 | /@esbuild/openbsd-x64@0.19.10:
220 | resolution: {integrity: sha512-PxcgvjdSjtgPMiPQrM3pwSaG4kGphP+bLSb+cihuP0LYdZv1epbAIecHVl5sD3npkfYBZ0ZnOjR878I7MdJDFg==}
221 | engines: {node: '>=12'}
222 | cpu: [x64]
223 | os: [openbsd]
224 | requiresBuild: true
225 | dev: true
226 | optional: true
227 |
228 | /@esbuild/sunos-x64@0.19.10:
229 | resolution: {integrity: sha512-ZkIOtrRL8SEJjr+VHjmW0znkPs+oJXhlJbNwfI37rvgeMtk3sxOQevXPXjmAPZPigVTncvFqLMd+uV0IBSEzqA==}
230 | engines: {node: '>=12'}
231 | cpu: [x64]
232 | os: [sunos]
233 | requiresBuild: true
234 | dev: true
235 | optional: true
236 |
237 | /@esbuild/win32-arm64@0.19.10:
238 | resolution: {integrity: sha512-+Sa4oTDbpBfGpl3Hn3XiUe4f8TU2JF7aX8cOfqFYMMjXp6ma6NJDztl5FDG8Ezx0OjwGikIHw+iA54YLDNNVfw==}
239 | engines: {node: '>=12'}
240 | cpu: [arm64]
241 | os: [win32]
242 | requiresBuild: true
243 | dev: true
244 | optional: true
245 |
246 | /@esbuild/win32-ia32@0.19.10:
247 | resolution: {integrity: sha512-EOGVLK1oWMBXgfttJdPHDTiivYSjX6jDNaATeNOaCOFEVcfMjtbx7WVQwPSE1eIfCp/CaSF2nSrDtzc4I9f8TQ==}
248 | engines: {node: '>=12'}
249 | cpu: [ia32]
250 | os: [win32]
251 | requiresBuild: true
252 | dev: true
253 | optional: true
254 |
255 | /@esbuild/win32-x64@0.19.10:
256 | resolution: {integrity: sha512-whqLG6Sc70AbU73fFYvuYzaE4MNMBIlR1Y/IrUeOXFrWHxBEjjbZaQ3IXIQS8wJdAzue2GwYZCjOrgrU1oUHoA==}
257 | engines: {node: '>=12'}
258 | cpu: [x64]
259 | os: [win32]
260 | requiresBuild: true
261 | dev: true
262 | optional: true
263 |
264 | /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0):
265 | resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
266 | engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
267 | peerDependencies:
268 | eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
269 | dependencies:
270 | eslint: 8.57.0
271 | eslint-visitor-keys: 3.4.3
272 | dev: true
273 |
274 | /@eslint-community/regexpp@4.10.0:
275 | resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==}
276 | engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
277 | dev: true
278 |
279 | /@eslint/eslintrc@2.1.4:
280 | resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==}
281 | engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
282 | dependencies:
283 | ajv: 6.12.6
284 | debug: 4.3.4(supports-color@8.1.1)
285 | espree: 9.6.1
286 | globals: 13.24.0
287 | ignore: 5.3.0
288 | import-fresh: 3.3.0
289 | js-yaml: 4.1.0
290 | minimatch: 3.1.2
291 | strip-json-comments: 3.1.1
292 | transitivePeerDependencies:
293 | - supports-color
294 | dev: true
295 |
296 | /@eslint/js@8.57.0:
297 | resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==}
298 | engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
299 | dev: true
300 |
301 | /@humanwhocodes/config-array@0.11.14:
302 | resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==}
303 | engines: {node: '>=10.10.0'}
304 | dependencies:
305 | '@humanwhocodes/object-schema': 2.0.2
306 | debug: 4.3.4(supports-color@8.1.1)
307 | minimatch: 3.1.2
308 | transitivePeerDependencies:
309 | - supports-color
310 | dev: true
311 |
312 | /@humanwhocodes/module-importer@1.0.1:
313 | resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
314 | engines: {node: '>=12.22'}
315 | dev: true
316 |
317 | /@humanwhocodes/object-schema@2.0.2:
318 | resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==}
319 | dev: true
320 |
321 | /@jridgewell/gen-mapping@0.3.3:
322 | resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==}
323 | engines: {node: '>=6.0.0'}
324 | dependencies:
325 | '@jridgewell/set-array': 1.1.2
326 | '@jridgewell/sourcemap-codec': 1.4.15
327 | '@jridgewell/trace-mapping': 0.3.20
328 | dev: true
329 |
330 | /@jridgewell/resolve-uri@3.1.1:
331 | resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==}
332 | engines: {node: '>=6.0.0'}
333 | dev: true
334 |
335 | /@jridgewell/set-array@1.1.2:
336 | resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
337 | engines: {node: '>=6.0.0'}
338 | dev: true
339 |
340 | /@jridgewell/sourcemap-codec@1.4.15:
341 | resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
342 | dev: true
343 |
344 | /@jridgewell/trace-mapping@0.3.20:
345 | resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==}
346 | dependencies:
347 | '@jridgewell/resolve-uri': 3.1.1
348 | '@jridgewell/sourcemap-codec': 1.4.15
349 | dev: true
350 |
351 | /@nodelib/fs.scandir@2.1.5:
352 | resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
353 | engines: {node: '>= 8'}
354 | dependencies:
355 | '@nodelib/fs.stat': 2.0.5
356 | run-parallel: 1.2.0
357 | dev: true
358 |
359 | /@nodelib/fs.stat@2.0.5:
360 | resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
361 | engines: {node: '>= 8'}
362 | dev: true
363 |
364 | /@nodelib/fs.walk@1.2.8:
365 | resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
366 | engines: {node: '>= 8'}
367 | dependencies:
368 | '@nodelib/fs.scandir': 2.1.5
369 | fastq: 1.16.0
370 | dev: true
371 |
372 | /@rollup/rollup-android-arm-eabi@4.9.1:
373 | resolution: {integrity: sha512-6vMdBZqtq1dVQ4CWdhFwhKZL6E4L1dV6jUjuBvsavvNJSppzi6dLBbuV+3+IyUREaj9ZFvQefnQm28v4OCXlig==}
374 | cpu: [arm]
375 | os: [android]
376 | requiresBuild: true
377 | dev: true
378 | optional: true
379 |
380 | /@rollup/rollup-android-arm64@4.9.1:
381 | resolution: {integrity: sha512-Jto9Fl3YQ9OLsTDWtLFPtaIMSL2kwGyGoVCmPC8Gxvym9TCZm4Sie+cVeblPO66YZsYH8MhBKDMGZ2NDxuk/XQ==}
382 | cpu: [arm64]
383 | os: [android]
384 | requiresBuild: true
385 | dev: true
386 | optional: true
387 |
388 | /@rollup/rollup-darwin-arm64@4.9.1:
389 | resolution: {integrity: sha512-LtYcLNM+bhsaKAIGwVkh5IOWhaZhjTfNOkGzGqdHvhiCUVuJDalvDxEdSnhFzAn+g23wgsycmZk1vbnaibZwwA==}
390 | cpu: [arm64]
391 | os: [darwin]
392 | requiresBuild: true
393 | dev: true
394 | optional: true
395 |
396 | /@rollup/rollup-darwin-x64@4.9.1:
397 | resolution: {integrity: sha512-KyP/byeXu9V+etKO6Lw3E4tW4QdcnzDG/ake031mg42lob5tN+5qfr+lkcT/SGZaH2PdW4Z1NX9GHEkZ8xV7og==}
398 | cpu: [x64]
399 | os: [darwin]
400 | requiresBuild: true
401 | dev: true
402 | optional: true
403 |
404 | /@rollup/rollup-linux-arm-gnueabihf@4.9.1:
405 | resolution: {integrity: sha512-Yqz/Doumf3QTKplwGNrCHe/B2p9xqDghBZSlAY0/hU6ikuDVQuOUIpDP/YcmoT+447tsZTmirmjgG3znvSCR0Q==}
406 | cpu: [arm]
407 | os: [linux]
408 | requiresBuild: true
409 | dev: true
410 | optional: true
411 |
412 | /@rollup/rollup-linux-arm64-gnu@4.9.1:
413 | resolution: {integrity: sha512-u3XkZVvxcvlAOlQJ3UsD1rFvLWqu4Ef/Ggl40WAVCuogf4S1nJPHh5RTgqYFpCOvuGJ7H5yGHabjFKEZGExk5Q==}
414 | cpu: [arm64]
415 | os: [linux]
416 | requiresBuild: true
417 | dev: true
418 | optional: true
419 |
420 | /@rollup/rollup-linux-arm64-musl@4.9.1:
421 | resolution: {integrity: sha512-0XSYN/rfWShW+i+qjZ0phc6vZ7UWI8XWNz4E/l+6edFt+FxoEghrJHjX1EY/kcUGCnZzYYRCl31SNdfOi450Aw==}
422 | cpu: [arm64]
423 | os: [linux]
424 | requiresBuild: true
425 | dev: true
426 | optional: true
427 |
428 | /@rollup/rollup-linux-riscv64-gnu@4.9.1:
429 | resolution: {integrity: sha512-LmYIO65oZVfFt9t6cpYkbC4d5lKHLYv5B4CSHRpnANq0VZUQXGcCPXHzbCXCz4RQnx7jvlYB1ISVNCE/omz5cw==}
430 | cpu: [riscv64]
431 | os: [linux]
432 | requiresBuild: true
433 | dev: true
434 | optional: true
435 |
436 | /@rollup/rollup-linux-x64-gnu@4.9.1:
437 | resolution: {integrity: sha512-kr8rEPQ6ns/Lmr/hiw8sEVj9aa07gh1/tQF2Y5HrNCCEPiCBGnBUt9tVusrcBBiJfIt1yNaXN6r1CCmpbFEDpg==}
438 | cpu: [x64]
439 | os: [linux]
440 | requiresBuild: true
441 | dev: true
442 | optional: true
443 |
444 | /@rollup/rollup-linux-x64-musl@4.9.1:
445 | resolution: {integrity: sha512-t4QSR7gN+OEZLG0MiCgPqMWZGwmeHhsM4AkegJ0Kiy6TnJ9vZ8dEIwHw1LcZKhbHxTY32hp9eVCMdR3/I8MGRw==}
446 | cpu: [x64]
447 | os: [linux]
448 | requiresBuild: true
449 | dev: true
450 | optional: true
451 |
452 | /@rollup/rollup-win32-arm64-msvc@4.9.1:
453 | resolution: {integrity: sha512-7XI4ZCBN34cb+BH557FJPmh0kmNz2c25SCQeT9OiFWEgf8+dL6ZwJ8f9RnUIit+j01u07Yvrsuu1rZGxJCc51g==}
454 | cpu: [arm64]
455 | os: [win32]
456 | requiresBuild: true
457 | dev: true
458 | optional: true
459 |
460 | /@rollup/rollup-win32-ia32-msvc@4.9.1:
461 | resolution: {integrity: sha512-yE5c2j1lSWOH5jp+Q0qNL3Mdhr8WuqCNVjc6BxbVfS5cAS6zRmdiw7ktb8GNpDCEUJphILY6KACoFoRtKoqNQg==}
462 | cpu: [ia32]
463 | os: [win32]
464 | requiresBuild: true
465 | dev: true
466 | optional: true
467 |
468 | /@rollup/rollup-win32-x64-msvc@4.9.1:
469 | resolution: {integrity: sha512-PyJsSsafjmIhVgaI1Zdj7m8BB8mMckFah/xbpplObyHfiXzKcI5UOUXRyOdHW7nz4DpMCuzLnF7v5IWHenCwYA==}
470 | cpu: [x64]
471 | os: [win32]
472 | requiresBuild: true
473 | dev: true
474 | optional: true
475 |
476 | /@types/chai@4.3.14:
477 | resolution: {integrity: sha512-Wj71sXE4Q4AkGdG9Tvq1u/fquNz9EdG4LIJMwVVII7ashjD/8cf8fyIfJAjRr6YcsXnSE8cOGQPq1gqeR8z+3w==}
478 | dev: true
479 |
480 | /@types/json-schema@7.0.15:
481 | resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
482 | dev: true
483 |
484 | /@types/mocha@10.0.6:
485 | resolution: {integrity: sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==}
486 | dev: true
487 |
488 | /@types/node@20.12.7:
489 | resolution: {integrity: sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==}
490 | dependencies:
491 | undici-types: 5.26.5
492 | dev: true
493 |
494 | /@types/semver@7.5.8:
495 | resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==}
496 | dev: true
497 |
498 | /@typescript-eslint/eslint-plugin@7.7.0(@typescript-eslint/parser@7.4.0)(eslint@8.57.0)(typescript@5.4.5):
499 | resolution: {integrity: sha512-GJWR0YnfrKnsRoluVO3PRb9r5aMZriiMMM/RHj5nnTrBy1/wIgk76XCtCKcnXGjpZQJQRFtGV9/0JJ6n30uwpQ==}
500 | engines: {node: ^18.18.0 || >=20.0.0}
501 | peerDependencies:
502 | '@typescript-eslint/parser': ^7.0.0
503 | eslint: ^8.56.0
504 | typescript: '*'
505 | peerDependenciesMeta:
506 | typescript:
507 | optional: true
508 | dependencies:
509 | '@eslint-community/regexpp': 4.10.0
510 | '@typescript-eslint/parser': 7.4.0(eslint@8.57.0)(typescript@5.4.5)
511 | '@typescript-eslint/scope-manager': 7.7.0
512 | '@typescript-eslint/type-utils': 7.7.0(eslint@8.57.0)(typescript@5.4.5)
513 | '@typescript-eslint/utils': 7.7.0(eslint@8.57.0)(typescript@5.4.5)
514 | '@typescript-eslint/visitor-keys': 7.7.0
515 | debug: 4.3.4(supports-color@8.1.1)
516 | eslint: 8.57.0
517 | graphemer: 1.4.0
518 | ignore: 5.3.1
519 | natural-compare: 1.4.0
520 | semver: 7.6.0
521 | ts-api-utils: 1.3.0(typescript@5.4.5)
522 | typescript: 5.4.5
523 | transitivePeerDependencies:
524 | - supports-color
525 | dev: true
526 |
527 | /@typescript-eslint/parser@7.4.0(eslint@8.57.0)(typescript@5.4.5):
528 | resolution: {integrity: sha512-ZvKHxHLusweEUVwrGRXXUVzFgnWhigo4JurEj0dGF1tbcGh6buL+ejDdjxOQxv6ytcY1uhun1p2sm8iWStlgLQ==}
529 | engines: {node: ^18.18.0 || >=20.0.0}
530 | peerDependencies:
531 | eslint: ^8.56.0
532 | typescript: '*'
533 | peerDependenciesMeta:
534 | typescript:
535 | optional: true
536 | dependencies:
537 | '@typescript-eslint/scope-manager': 7.4.0
538 | '@typescript-eslint/types': 7.4.0
539 | '@typescript-eslint/typescript-estree': 7.4.0(typescript@5.4.5)
540 | '@typescript-eslint/visitor-keys': 7.4.0
541 | debug: 4.3.4(supports-color@8.1.1)
542 | eslint: 8.57.0
543 | typescript: 5.4.5
544 | transitivePeerDependencies:
545 | - supports-color
546 | dev: true
547 |
548 | /@typescript-eslint/scope-manager@7.4.0:
549 | resolution: {integrity: sha512-68VqENG5HK27ypafqLVs8qO+RkNc7TezCduYrx8YJpXq2QGZ30vmNZGJJJC48+MVn4G2dCV8m5ZTVnzRexTVtw==}
550 | engines: {node: ^18.18.0 || >=20.0.0}
551 | dependencies:
552 | '@typescript-eslint/types': 7.4.0
553 | '@typescript-eslint/visitor-keys': 7.4.0
554 | dev: true
555 |
556 | /@typescript-eslint/scope-manager@7.7.0:
557 | resolution: {integrity: sha512-/8INDn0YLInbe9Wt7dK4cXLDYp0fNHP5xKLHvZl3mOT5X17rK/YShXaiNmorl+/U4VKCVIjJnx4Ri5b0y+HClw==}
558 | engines: {node: ^18.18.0 || >=20.0.0}
559 | dependencies:
560 | '@typescript-eslint/types': 7.7.0
561 | '@typescript-eslint/visitor-keys': 7.7.0
562 | dev: true
563 |
564 | /@typescript-eslint/type-utils@7.7.0(eslint@8.57.0)(typescript@5.4.5):
565 | resolution: {integrity: sha512-bOp3ejoRYrhAlnT/bozNQi3nio9tIgv3U5C0mVDdZC7cpcQEDZXvq8inrHYghLVwuNABRqrMW5tzAv88Vy77Sg==}
566 | engines: {node: ^18.18.0 || >=20.0.0}
567 | peerDependencies:
568 | eslint: ^8.56.0
569 | typescript: '*'
570 | peerDependenciesMeta:
571 | typescript:
572 | optional: true
573 | dependencies:
574 | '@typescript-eslint/typescript-estree': 7.7.0(typescript@5.4.5)
575 | '@typescript-eslint/utils': 7.7.0(eslint@8.57.0)(typescript@5.4.5)
576 | debug: 4.3.4(supports-color@8.1.1)
577 | eslint: 8.57.0
578 | ts-api-utils: 1.3.0(typescript@5.4.5)
579 | typescript: 5.4.5
580 | transitivePeerDependencies:
581 | - supports-color
582 | dev: true
583 |
584 | /@typescript-eslint/types@7.4.0:
585 | resolution: {integrity: sha512-mjQopsbffzJskos5B4HmbsadSJQWaRK0UxqQ7GuNA9Ga4bEKeiO6b2DnB6cM6bpc8lemaPseh0H9B/wyg+J7rw==}
586 | engines: {node: ^18.18.0 || >=20.0.0}
587 | dev: true
588 |
589 | /@typescript-eslint/types@7.7.0:
590 | resolution: {integrity: sha512-G01YPZ1Bd2hn+KPpIbrAhEWOn5lQBrjxkzHkWvP6NucMXFtfXoevK82hzQdpfuQYuhkvFDeQYbzXCjR1z9Z03w==}
591 | engines: {node: ^18.18.0 || >=20.0.0}
592 | dev: true
593 |
594 | /@typescript-eslint/typescript-estree@7.4.0(typescript@5.4.5):
595 | resolution: {integrity: sha512-A99j5AYoME/UBQ1ucEbbMEmGkN7SE0BvZFreSnTd1luq7yulcHdyGamZKizU7canpGDWGJ+Q6ZA9SyQobipePg==}
596 | engines: {node: ^18.18.0 || >=20.0.0}
597 | peerDependencies:
598 | typescript: '*'
599 | peerDependenciesMeta:
600 | typescript:
601 | optional: true
602 | dependencies:
603 | '@typescript-eslint/types': 7.4.0
604 | '@typescript-eslint/visitor-keys': 7.4.0
605 | debug: 4.3.4(supports-color@8.1.1)
606 | globby: 11.1.0
607 | is-glob: 4.0.3
608 | minimatch: 9.0.3
609 | semver: 7.6.0
610 | ts-api-utils: 1.3.0(typescript@5.4.5)
611 | typescript: 5.4.5
612 | transitivePeerDependencies:
613 | - supports-color
614 | dev: true
615 |
616 | /@typescript-eslint/typescript-estree@7.7.0(typescript@5.4.5):
617 | resolution: {integrity: sha512-8p71HQPE6CbxIBy2kWHqM1KGrC07pk6RJn40n0DSc6bMOBBREZxSDJ+BmRzc8B5OdaMh1ty3mkuWRg4sCFiDQQ==}
618 | engines: {node: ^18.18.0 || >=20.0.0}
619 | peerDependencies:
620 | typescript: '*'
621 | peerDependenciesMeta:
622 | typescript:
623 | optional: true
624 | dependencies:
625 | '@typescript-eslint/types': 7.7.0
626 | '@typescript-eslint/visitor-keys': 7.7.0
627 | debug: 4.3.4(supports-color@8.1.1)
628 | globby: 11.1.0
629 | is-glob: 4.0.3
630 | minimatch: 9.0.4
631 | semver: 7.6.0
632 | ts-api-utils: 1.3.0(typescript@5.4.5)
633 | typescript: 5.4.5
634 | transitivePeerDependencies:
635 | - supports-color
636 | dev: true
637 |
638 | /@typescript-eslint/utils@7.7.0(eslint@8.57.0)(typescript@5.4.5):
639 | resolution: {integrity: sha512-LKGAXMPQs8U/zMRFXDZOzmMKgFv3COlxUQ+2NMPhbqgVm6R1w+nU1i4836Pmxu9jZAuIeyySNrN/6Rc657ggig==}
640 | engines: {node: ^18.18.0 || >=20.0.0}
641 | peerDependencies:
642 | eslint: ^8.56.0
643 | dependencies:
644 | '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0)
645 | '@types/json-schema': 7.0.15
646 | '@types/semver': 7.5.8
647 | '@typescript-eslint/scope-manager': 7.7.0
648 | '@typescript-eslint/types': 7.7.0
649 | '@typescript-eslint/typescript-estree': 7.7.0(typescript@5.4.5)
650 | eslint: 8.57.0
651 | semver: 7.6.0
652 | transitivePeerDependencies:
653 | - supports-color
654 | - typescript
655 | dev: true
656 |
657 | /@typescript-eslint/visitor-keys@7.4.0:
658 | resolution: {integrity: sha512-0zkC7YM0iX5Y41homUUeW1CHtZR01K3ybjM1l6QczoMuay0XKtrb93kv95AxUGwdjGr64nNqnOCwmEl616N8CA==}
659 | engines: {node: ^18.18.0 || >=20.0.0}
660 | dependencies:
661 | '@typescript-eslint/types': 7.4.0
662 | eslint-visitor-keys: 3.4.3
663 | dev: true
664 |
665 | /@typescript-eslint/visitor-keys@7.7.0:
666 | resolution: {integrity: sha512-h0WHOj8MhdhY8YWkzIF30R379y0NqyOHExI9N9KCzvmu05EgG4FumeYa3ccfKUSphyWkWQE1ybVrgz/Pbam6YA==}
667 | engines: {node: ^18.18.0 || >=20.0.0}
668 | dependencies:
669 | '@typescript-eslint/types': 7.7.0
670 | eslint-visitor-keys: 3.4.3
671 | dev: true
672 |
673 | /@ungap/structured-clone@1.2.0:
674 | resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
675 | dev: true
676 |
677 | /acorn-jsx@5.3.2(acorn@8.11.3):
678 | resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
679 | peerDependencies:
680 | acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
681 | dependencies:
682 | acorn: 8.11.3
683 | dev: true
684 |
685 | /acorn@8.11.3:
686 | resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}
687 | engines: {node: '>=0.4.0'}
688 | hasBin: true
689 | dev: true
690 |
691 | /ajv@6.12.6:
692 | resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
693 | dependencies:
694 | fast-deep-equal: 3.1.3
695 | fast-json-stable-stringify: 2.1.0
696 | json-schema-traverse: 0.4.1
697 | uri-js: 4.4.1
698 | dev: true
699 |
700 | /ansi-colors@4.1.1:
701 | resolution: {integrity: sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==}
702 | engines: {node: '>=6'}
703 | dev: true
704 |
705 | /ansi-regex@5.0.1:
706 | resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
707 | engines: {node: '>=8'}
708 | dev: true
709 |
710 | /ansi-styles@4.3.0:
711 | resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
712 | engines: {node: '>=8'}
713 | dependencies:
714 | color-convert: 2.0.1
715 | dev: true
716 |
717 | /any-promise@1.3.0:
718 | resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
719 | dev: true
720 |
721 | /anymatch@3.1.3:
722 | resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
723 | engines: {node: '>= 8'}
724 | dependencies:
725 | normalize-path: 3.0.0
726 | picomatch: 2.3.1
727 | dev: true
728 |
729 | /argparse@2.0.1:
730 | resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
731 | dev: true
732 |
733 | /array-union@2.1.0:
734 | resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==}
735 | engines: {node: '>=8'}
736 | dev: true
737 |
738 | /assertion-error@2.0.1:
739 | resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
740 | engines: {node: '>=12'}
741 | dev: true
742 |
743 | /balanced-match@1.0.2:
744 | resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
745 | dev: true
746 |
747 | /binary-extensions@2.2.0:
748 | resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==}
749 | engines: {node: '>=8'}
750 | dev: true
751 |
752 | /brace-expansion@1.1.11:
753 | resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
754 | dependencies:
755 | balanced-match: 1.0.2
756 | concat-map: 0.0.1
757 | dev: true
758 |
759 | /brace-expansion@2.0.1:
760 | resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==}
761 | dependencies:
762 | balanced-match: 1.0.2
763 | dev: true
764 |
765 | /braces@3.0.2:
766 | resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==}
767 | engines: {node: '>=8'}
768 | dependencies:
769 | fill-range: 7.0.1
770 | dev: true
771 |
772 | /browser-stdout@1.3.1:
773 | resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==}
774 | dev: true
775 |
776 | /bundle-require@4.0.2(esbuild@0.19.10):
777 | resolution: {integrity: sha512-jwzPOChofl67PSTW2SGubV9HBQAhhR2i6nskiOThauo9dzwDUgOWQScFVaJkjEfYX+UXiD+LEx8EblQMc2wIag==}
778 | engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
779 | peerDependencies:
780 | esbuild: '>=0.17'
781 | dependencies:
782 | esbuild: 0.19.10
783 | load-tsconfig: 0.2.5
784 | dev: true
785 |
786 | /cac@6.7.14:
787 | resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
788 | engines: {node: '>=8'}
789 | dev: true
790 |
791 | /callsites@3.1.0:
792 | resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
793 | engines: {node: '>=6'}
794 | dev: true
795 |
796 | /camelcase@6.3.0:
797 | resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
798 | engines: {node: '>=10'}
799 | dev: true
800 |
801 | /chai@5.1.0:
802 | resolution: {integrity: sha512-kDZ7MZyM6Q1DhR9jy7dalKohXQ2yrlXkk59CR52aRKxJrobmlBNqnFQxX9xOX8w+4mz8SYlKJa/7D7ddltFXCw==}
803 | engines: {node: '>=12'}
804 | dependencies:
805 | assertion-error: 2.0.1
806 | check-error: 2.0.0
807 | deep-eql: 5.0.1
808 | loupe: 3.1.0
809 | pathval: 2.0.0
810 | dev: true
811 |
812 | /chalk@4.1.2:
813 | resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
814 | engines: {node: '>=10'}
815 | dependencies:
816 | ansi-styles: 4.3.0
817 | supports-color: 7.2.0
818 | dev: true
819 |
820 | /check-error@2.0.0:
821 | resolution: {integrity: sha512-tjLAOBHKVxtPoHe/SA7kNOMvhCRdCJ3vETdeY0RuAc9popf+hyaSV6ZEg9hr4cpWF7jmo/JSWEnLDrnijS9Tog==}
822 | engines: {node: '>= 16'}
823 | dev: true
824 |
825 | /chokidar@3.5.3:
826 | resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==}
827 | engines: {node: '>= 8.10.0'}
828 | dependencies:
829 | anymatch: 3.1.3
830 | braces: 3.0.2
831 | glob-parent: 5.1.2
832 | is-binary-path: 2.1.0
833 | is-glob: 4.0.3
834 | normalize-path: 3.0.0
835 | readdirp: 3.6.0
836 | optionalDependencies:
837 | fsevents: 2.3.3
838 | dev: true
839 |
840 | /cliui@7.0.4:
841 | resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}
842 | dependencies:
843 | string-width: 4.2.3
844 | strip-ansi: 6.0.1
845 | wrap-ansi: 7.0.0
846 | dev: true
847 |
848 | /color-convert@2.0.1:
849 | resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
850 | engines: {node: '>=7.0.0'}
851 | dependencies:
852 | color-name: 1.1.4
853 | dev: true
854 |
855 | /color-name@1.1.4:
856 | resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
857 | dev: true
858 |
859 | /commander@4.1.1:
860 | resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
861 | engines: {node: '>= 6'}
862 | dev: true
863 |
864 | /concat-map@0.0.1:
865 | resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
866 | dev: true
867 |
868 | /cross-spawn@7.0.3:
869 | resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
870 | engines: {node: '>= 8'}
871 | dependencies:
872 | path-key: 3.1.1
873 | shebang-command: 2.0.0
874 | which: 2.0.2
875 |
876 | /debug@4.3.4(supports-color@8.1.1):
877 | resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
878 | engines: {node: '>=6.0'}
879 | peerDependencies:
880 | supports-color: '*'
881 | peerDependenciesMeta:
882 | supports-color:
883 | optional: true
884 | dependencies:
885 | ms: 2.1.2
886 | supports-color: 8.1.1
887 | dev: true
888 |
889 | /decamelize@4.0.0:
890 | resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==}
891 | engines: {node: '>=10'}
892 | dev: true
893 |
894 | /deep-eql@5.0.1:
895 | resolution: {integrity: sha512-nwQCf6ne2gez3o1MxWifqkciwt0zhl0LO1/UwVu4uMBuPmflWM4oQ70XMqHqnBJA+nhzncaqL9HVL6KkHJ28lw==}
896 | engines: {node: '>=6'}
897 | dev: true
898 |
899 | /deep-is@0.1.4:
900 | resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
901 | dev: true
902 |
903 | /diff@5.0.0:
904 | resolution: {integrity: sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==}
905 | engines: {node: '>=0.3.1'}
906 | dev: true
907 |
908 | /dir-glob@3.0.1:
909 | resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}
910 | engines: {node: '>=8'}
911 | dependencies:
912 | path-type: 4.0.0
913 | dev: true
914 |
915 | /doctrine@3.0.0:
916 | resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==}
917 | engines: {node: '>=6.0.0'}
918 | dependencies:
919 | esutils: 2.0.3
920 | dev: true
921 |
922 | /emoji-regex@8.0.0:
923 | resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
924 | dev: true
925 |
926 | /esbuild@0.19.10:
927 | resolution: {integrity: sha512-S1Y27QGt/snkNYrRcswgRFqZjaTG5a5xM3EQo97uNBnH505pdzSNe/HLBq1v0RO7iK/ngdbhJB6mDAp0OK+iUA==}
928 | engines: {node: '>=12'}
929 | hasBin: true
930 | requiresBuild: true
931 | optionalDependencies:
932 | '@esbuild/aix-ppc64': 0.19.10
933 | '@esbuild/android-arm': 0.19.10
934 | '@esbuild/android-arm64': 0.19.10
935 | '@esbuild/android-x64': 0.19.10
936 | '@esbuild/darwin-arm64': 0.19.10
937 | '@esbuild/darwin-x64': 0.19.10
938 | '@esbuild/freebsd-arm64': 0.19.10
939 | '@esbuild/freebsd-x64': 0.19.10
940 | '@esbuild/linux-arm': 0.19.10
941 | '@esbuild/linux-arm64': 0.19.10
942 | '@esbuild/linux-ia32': 0.19.10
943 | '@esbuild/linux-loong64': 0.19.10
944 | '@esbuild/linux-mips64el': 0.19.10
945 | '@esbuild/linux-ppc64': 0.19.10
946 | '@esbuild/linux-riscv64': 0.19.10
947 | '@esbuild/linux-s390x': 0.19.10
948 | '@esbuild/linux-x64': 0.19.10
949 | '@esbuild/netbsd-x64': 0.19.10
950 | '@esbuild/openbsd-x64': 0.19.10
951 | '@esbuild/sunos-x64': 0.19.10
952 | '@esbuild/win32-arm64': 0.19.10
953 | '@esbuild/win32-ia32': 0.19.10
954 | '@esbuild/win32-x64': 0.19.10
955 | dev: true
956 |
957 | /escalade@3.1.1:
958 | resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
959 | engines: {node: '>=6'}
960 | dev: true
961 |
962 | /escape-string-regexp@4.0.0:
963 | resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
964 | engines: {node: '>=10'}
965 | dev: true
966 |
967 | /eslint-scope@7.2.2:
968 | resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==}
969 | engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
970 | dependencies:
971 | esrecurse: 4.3.0
972 | estraverse: 5.3.0
973 | dev: true
974 |
975 | /eslint-visitor-keys@3.4.3:
976 | resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
977 | engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
978 | dev: true
979 |
980 | /eslint@8.57.0:
981 | resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==}
982 | engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
983 | hasBin: true
984 | dependencies:
985 | '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0)
986 | '@eslint-community/regexpp': 4.10.0
987 | '@eslint/eslintrc': 2.1.4
988 | '@eslint/js': 8.57.0
989 | '@humanwhocodes/config-array': 0.11.14
990 | '@humanwhocodes/module-importer': 1.0.1
991 | '@nodelib/fs.walk': 1.2.8
992 | '@ungap/structured-clone': 1.2.0
993 | ajv: 6.12.6
994 | chalk: 4.1.2
995 | cross-spawn: 7.0.3
996 | debug: 4.3.4(supports-color@8.1.1)
997 | doctrine: 3.0.0
998 | escape-string-regexp: 4.0.0
999 | eslint-scope: 7.2.2
1000 | eslint-visitor-keys: 3.4.3
1001 | espree: 9.6.1
1002 | esquery: 1.5.0
1003 | esutils: 2.0.3
1004 | fast-deep-equal: 3.1.3
1005 | file-entry-cache: 6.0.1
1006 | find-up: 5.0.0
1007 | glob-parent: 6.0.2
1008 | globals: 13.24.0
1009 | graphemer: 1.4.0
1010 | ignore: 5.3.0
1011 | imurmurhash: 0.1.4
1012 | is-glob: 4.0.3
1013 | is-path-inside: 3.0.3
1014 | js-yaml: 4.1.0
1015 | json-stable-stringify-without-jsonify: 1.0.1
1016 | levn: 0.4.1
1017 | lodash.merge: 4.6.2
1018 | minimatch: 3.1.2
1019 | natural-compare: 1.4.0
1020 | optionator: 0.9.3
1021 | strip-ansi: 6.0.1
1022 | text-table: 0.2.0
1023 | transitivePeerDependencies:
1024 | - supports-color
1025 | dev: true
1026 |
1027 | /espree@9.6.1:
1028 | resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==}
1029 | engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
1030 | dependencies:
1031 | acorn: 8.11.3
1032 | acorn-jsx: 5.3.2(acorn@8.11.3)
1033 | eslint-visitor-keys: 3.4.3
1034 | dev: true
1035 |
1036 | /esquery@1.5.0:
1037 | resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==}
1038 | engines: {node: '>=0.10'}
1039 | dependencies:
1040 | estraverse: 5.3.0
1041 | dev: true
1042 |
1043 | /esrecurse@4.3.0:
1044 | resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
1045 | engines: {node: '>=4.0'}
1046 | dependencies:
1047 | estraverse: 5.3.0
1048 | dev: true
1049 |
1050 | /estraverse@5.3.0:
1051 | resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
1052 | engines: {node: '>=4.0'}
1053 | dev: true
1054 |
1055 | /esutils@2.0.3:
1056 | resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
1057 | engines: {node: '>=0.10.0'}
1058 | dev: true
1059 |
1060 | /execa@5.1.1:
1061 | resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
1062 | engines: {node: '>=10'}
1063 | dependencies:
1064 | cross-spawn: 7.0.3
1065 | get-stream: 6.0.1
1066 | human-signals: 2.1.0
1067 | is-stream: 2.0.1
1068 | merge-stream: 2.0.0
1069 | npm-run-path: 4.0.1
1070 | onetime: 5.1.2
1071 | signal-exit: 3.0.7
1072 | strip-final-newline: 2.0.0
1073 | dev: true
1074 |
1075 | /execa@8.0.1:
1076 | resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==}
1077 | engines: {node: '>=16.17'}
1078 | dependencies:
1079 | cross-spawn: 7.0.3
1080 | get-stream: 8.0.1
1081 | human-signals: 5.0.0
1082 | is-stream: 3.0.0
1083 | merge-stream: 2.0.0
1084 | npm-run-path: 5.1.0
1085 | onetime: 6.0.0
1086 | signal-exit: 4.1.0
1087 | strip-final-newline: 3.0.0
1088 | dev: false
1089 |
1090 | /fast-deep-equal@3.1.3:
1091 | resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
1092 | dev: true
1093 |
1094 | /fast-glob@3.3.2:
1095 | resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}
1096 | engines: {node: '>=8.6.0'}
1097 | dependencies:
1098 | '@nodelib/fs.stat': 2.0.5
1099 | '@nodelib/fs.walk': 1.2.8
1100 | glob-parent: 5.1.2
1101 | merge2: 1.4.1
1102 | micromatch: 4.0.5
1103 | dev: true
1104 |
1105 | /fast-json-stable-stringify@2.1.0:
1106 | resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
1107 | dev: true
1108 |
1109 | /fast-levenshtein@2.0.6:
1110 | resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
1111 | dev: true
1112 |
1113 | /fastq@1.16.0:
1114 | resolution: {integrity: sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==}
1115 | dependencies:
1116 | reusify: 1.0.4
1117 | dev: true
1118 |
1119 | /file-entry-cache@6.0.1:
1120 | resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}
1121 | engines: {node: ^10.12.0 || >=12.0.0}
1122 | dependencies:
1123 | flat-cache: 3.2.0
1124 | dev: true
1125 |
1126 | /fill-range@7.0.1:
1127 | resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==}
1128 | engines: {node: '>=8'}
1129 | dependencies:
1130 | to-regex-range: 5.0.1
1131 | dev: true
1132 |
1133 | /find-up@5.0.0:
1134 | resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
1135 | engines: {node: '>=10'}
1136 | dependencies:
1137 | locate-path: 6.0.0
1138 | path-exists: 4.0.0
1139 | dev: true
1140 |
1141 | /flat-cache@3.2.0:
1142 | resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==}
1143 | engines: {node: ^10.12.0 || >=12.0.0}
1144 | dependencies:
1145 | flatted: 3.3.1
1146 | keyv: 4.5.4
1147 | rimraf: 3.0.2
1148 | dev: true
1149 |
1150 | /flat@5.0.2:
1151 | resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==}
1152 | hasBin: true
1153 | dev: true
1154 |
1155 | /flatted@3.3.1:
1156 | resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==}
1157 | dev: true
1158 |
1159 | /fs.realpath@1.0.0:
1160 | resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
1161 | dev: true
1162 |
1163 | /fsevents@2.3.3:
1164 | resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
1165 | engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
1166 | os: [darwin]
1167 | requiresBuild: true
1168 | dev: true
1169 | optional: true
1170 |
1171 | /get-caller-file@2.0.5:
1172 | resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
1173 | engines: {node: 6.* || 8.* || >= 10.*}
1174 | dev: true
1175 |
1176 | /get-func-name@2.0.2:
1177 | resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==}
1178 | dev: true
1179 |
1180 | /get-stream@6.0.1:
1181 | resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
1182 | engines: {node: '>=10'}
1183 | dev: true
1184 |
1185 | /get-stream@8.0.1:
1186 | resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==}
1187 | engines: {node: '>=16'}
1188 | dev: false
1189 |
1190 | /get-tsconfig@4.7.2:
1191 | resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==}
1192 | dependencies:
1193 | resolve-pkg-maps: 1.0.0
1194 | dev: true
1195 |
1196 | /glob-parent@5.1.2:
1197 | resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
1198 | engines: {node: '>= 6'}
1199 | dependencies:
1200 | is-glob: 4.0.3
1201 | dev: true
1202 |
1203 | /glob-parent@6.0.2:
1204 | resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
1205 | engines: {node: '>=10.13.0'}
1206 | dependencies:
1207 | is-glob: 4.0.3
1208 | dev: true
1209 |
1210 | /glob@7.1.6:
1211 | resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==}
1212 | dependencies:
1213 | fs.realpath: 1.0.0
1214 | inflight: 1.0.6
1215 | inherits: 2.0.4
1216 | minimatch: 3.1.2
1217 | once: 1.4.0
1218 | path-is-absolute: 1.0.1
1219 | dev: true
1220 |
1221 | /glob@8.1.0:
1222 | resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==}
1223 | engines: {node: '>=12'}
1224 | dependencies:
1225 | fs.realpath: 1.0.0
1226 | inflight: 1.0.6
1227 | inherits: 2.0.4
1228 | minimatch: 5.0.1
1229 | once: 1.4.0
1230 | dev: true
1231 |
1232 | /globals@13.24.0:
1233 | resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==}
1234 | engines: {node: '>=8'}
1235 | dependencies:
1236 | type-fest: 0.20.2
1237 | dev: true
1238 |
1239 | /globby@11.1.0:
1240 | resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}
1241 | engines: {node: '>=10'}
1242 | dependencies:
1243 | array-union: 2.1.0
1244 | dir-glob: 3.0.1
1245 | fast-glob: 3.3.2
1246 | ignore: 5.3.0
1247 | merge2: 1.4.1
1248 | slash: 3.0.0
1249 | dev: true
1250 |
1251 | /graphemer@1.4.0:
1252 | resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==}
1253 | dev: true
1254 |
1255 | /has-flag@4.0.0:
1256 | resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
1257 | engines: {node: '>=8'}
1258 | dev: true
1259 |
1260 | /he@1.2.0:
1261 | resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
1262 | hasBin: true
1263 | dev: true
1264 |
1265 | /human-signals@2.1.0:
1266 | resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
1267 | engines: {node: '>=10.17.0'}
1268 | dev: true
1269 |
1270 | /human-signals@5.0.0:
1271 | resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}
1272 | engines: {node: '>=16.17.0'}
1273 | dev: false
1274 |
1275 | /ignore@5.3.0:
1276 | resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==}
1277 | engines: {node: '>= 4'}
1278 | dev: true
1279 |
1280 | /ignore@5.3.1:
1281 | resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==}
1282 | engines: {node: '>= 4'}
1283 | dev: true
1284 |
1285 | /import-fresh@3.3.0:
1286 | resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}
1287 | engines: {node: '>=6'}
1288 | dependencies:
1289 | parent-module: 1.0.1
1290 | resolve-from: 4.0.0
1291 | dev: true
1292 |
1293 | /imurmurhash@0.1.4:
1294 | resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
1295 | engines: {node: '>=0.8.19'}
1296 | dev: true
1297 |
1298 | /inflight@1.0.6:
1299 | resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
1300 | dependencies:
1301 | once: 1.4.0
1302 | wrappy: 1.0.2
1303 | dev: true
1304 |
1305 | /inherits@2.0.4:
1306 | resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
1307 | dev: true
1308 |
1309 | /is-binary-path@2.1.0:
1310 | resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
1311 | engines: {node: '>=8'}
1312 | dependencies:
1313 | binary-extensions: 2.2.0
1314 | dev: true
1315 |
1316 | /is-extglob@2.1.1:
1317 | resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
1318 | engines: {node: '>=0.10.0'}
1319 | dev: true
1320 |
1321 | /is-fullwidth-code-point@3.0.0:
1322 | resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
1323 | engines: {node: '>=8'}
1324 | dev: true
1325 |
1326 | /is-glob@4.0.3:
1327 | resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
1328 | engines: {node: '>=0.10.0'}
1329 | dependencies:
1330 | is-extglob: 2.1.1
1331 | dev: true
1332 |
1333 | /is-number@7.0.0:
1334 | resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
1335 | engines: {node: '>=0.12.0'}
1336 | dev: true
1337 |
1338 | /is-path-inside@3.0.3:
1339 | resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}
1340 | engines: {node: '>=8'}
1341 | dev: true
1342 |
1343 | /is-plain-obj@2.1.0:
1344 | resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==}
1345 | engines: {node: '>=8'}
1346 | dev: true
1347 |
1348 | /is-stream@2.0.1:
1349 | resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
1350 | engines: {node: '>=8'}
1351 | dev: true
1352 |
1353 | /is-stream@3.0.0:
1354 | resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}
1355 | engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
1356 | dev: false
1357 |
1358 | /is-unicode-supported@0.1.0:
1359 | resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==}
1360 | engines: {node: '>=10'}
1361 | dev: true
1362 |
1363 | /isexe@2.0.0:
1364 | resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
1365 |
1366 | /joycon@3.1.1:
1367 | resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}
1368 | engines: {node: '>=10'}
1369 | dev: true
1370 |
1371 | /js-yaml@4.1.0:
1372 | resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}
1373 | hasBin: true
1374 | dependencies:
1375 | argparse: 2.0.1
1376 | dev: true
1377 |
1378 | /json-buffer@3.0.1:
1379 | resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
1380 | dev: true
1381 |
1382 | /json-schema-traverse@0.4.1:
1383 | resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
1384 | dev: true
1385 |
1386 | /json-stable-stringify-without-jsonify@1.0.1:
1387 | resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
1388 | dev: true
1389 |
1390 | /keyv@4.5.4:
1391 | resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
1392 | dependencies:
1393 | json-buffer: 3.0.1
1394 | dev: true
1395 |
1396 | /levn@0.4.1:
1397 | resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
1398 | engines: {node: '>= 0.8.0'}
1399 | dependencies:
1400 | prelude-ls: 1.2.1
1401 | type-check: 0.4.0
1402 | dev: true
1403 |
1404 | /lilconfig@3.0.0:
1405 | resolution: {integrity: sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==}
1406 | engines: {node: '>=14'}
1407 | dev: true
1408 |
1409 | /lines-and-columns@1.2.4:
1410 | resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
1411 | dev: true
1412 |
1413 | /load-tsconfig@0.2.5:
1414 | resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}
1415 | engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
1416 | dev: true
1417 |
1418 | /locate-path@6.0.0:
1419 | resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
1420 | engines: {node: '>=10'}
1421 | dependencies:
1422 | p-locate: 5.0.0
1423 | dev: true
1424 |
1425 | /lodash.merge@4.6.2:
1426 | resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
1427 | dev: true
1428 |
1429 | /lodash.sortby@4.7.0:
1430 | resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==}
1431 | dev: true
1432 |
1433 | /log-symbols@4.1.0:
1434 | resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}
1435 | engines: {node: '>=10'}
1436 | dependencies:
1437 | chalk: 4.1.2
1438 | is-unicode-supported: 0.1.0
1439 | dev: true
1440 |
1441 | /loupe@3.1.0:
1442 | resolution: {integrity: sha512-qKl+FrLXUhFuHUoDJG7f8P8gEMHq9NFS0c6ghXG1J0rldmZFQZoNVv/vyirE9qwCIhWZDsvEFd1sbFu3GvRQFg==}
1443 | dependencies:
1444 | get-func-name: 2.0.2
1445 | dev: true
1446 |
1447 | /lru-cache@6.0.0:
1448 | resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}
1449 | engines: {node: '>=10'}
1450 | dependencies:
1451 | yallist: 4.0.0
1452 | dev: true
1453 |
1454 | /merge-stream@2.0.0:
1455 | resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
1456 |
1457 | /merge2@1.4.1:
1458 | resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
1459 | engines: {node: '>= 8'}
1460 | dev: true
1461 |
1462 | /micromatch@4.0.5:
1463 | resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==}
1464 | engines: {node: '>=8.6'}
1465 | dependencies:
1466 | braces: 3.0.2
1467 | picomatch: 2.3.1
1468 | dev: true
1469 |
1470 | /mimic-fn@2.1.0:
1471 | resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
1472 | engines: {node: '>=6'}
1473 | dev: true
1474 |
1475 | /mimic-fn@4.0.0:
1476 | resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
1477 | engines: {node: '>=12'}
1478 | dev: false
1479 |
1480 | /minimatch@3.1.2:
1481 | resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
1482 | dependencies:
1483 | brace-expansion: 1.1.11
1484 | dev: true
1485 |
1486 | /minimatch@5.0.1:
1487 | resolution: {integrity: sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==}
1488 | engines: {node: '>=10'}
1489 | dependencies:
1490 | brace-expansion: 2.0.1
1491 | dev: true
1492 |
1493 | /minimatch@9.0.3:
1494 | resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
1495 | engines: {node: '>=16 || 14 >=14.17'}
1496 | dependencies:
1497 | brace-expansion: 2.0.1
1498 | dev: true
1499 |
1500 | /minimatch@9.0.4:
1501 | resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==}
1502 | engines: {node: '>=16 || 14 >=14.17'}
1503 | dependencies:
1504 | brace-expansion: 2.0.1
1505 | dev: true
1506 |
1507 | /mocha@10.4.0:
1508 | resolution: {integrity: sha512-eqhGB8JKapEYcC4ytX/xrzKforgEc3j1pGlAXVy3eRwrtAy5/nIfT1SvgGzfN0XZZxeLq0aQWkOUAmqIJiv+bA==}
1509 | engines: {node: '>= 14.0.0'}
1510 | hasBin: true
1511 | dependencies:
1512 | ansi-colors: 4.1.1
1513 | browser-stdout: 1.3.1
1514 | chokidar: 3.5.3
1515 | debug: 4.3.4(supports-color@8.1.1)
1516 | diff: 5.0.0
1517 | escape-string-regexp: 4.0.0
1518 | find-up: 5.0.0
1519 | glob: 8.1.0
1520 | he: 1.2.0
1521 | js-yaml: 4.1.0
1522 | log-symbols: 4.1.0
1523 | minimatch: 5.0.1
1524 | ms: 2.1.3
1525 | serialize-javascript: 6.0.0
1526 | strip-json-comments: 3.1.1
1527 | supports-color: 8.1.1
1528 | workerpool: 6.2.1
1529 | yargs: 16.2.0
1530 | yargs-parser: 20.2.4
1531 | yargs-unparser: 2.0.0
1532 | dev: true
1533 |
1534 | /ms@2.1.2:
1535 | resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
1536 | dev: true
1537 |
1538 | /ms@2.1.3:
1539 | resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
1540 | dev: true
1541 |
1542 | /mz@2.7.0:
1543 | resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}
1544 | dependencies:
1545 | any-promise: 1.3.0
1546 | object-assign: 4.1.1
1547 | thenify-all: 1.6.0
1548 | dev: true
1549 |
1550 | /natural-compare@1.4.0:
1551 | resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
1552 | dev: true
1553 |
1554 | /normalize-path@3.0.0:
1555 | resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
1556 | engines: {node: '>=0.10.0'}
1557 | dev: true
1558 |
1559 | /npm-run-path@4.0.1:
1560 | resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
1561 | engines: {node: '>=8'}
1562 | dependencies:
1563 | path-key: 3.1.1
1564 | dev: true
1565 |
1566 | /npm-run-path@5.1.0:
1567 | resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==}
1568 | engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
1569 | dependencies:
1570 | path-key: 4.0.0
1571 | dev: false
1572 |
1573 | /object-assign@4.1.1:
1574 | resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
1575 | engines: {node: '>=0.10.0'}
1576 | dev: true
1577 |
1578 | /once@1.4.0:
1579 | resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
1580 | dependencies:
1581 | wrappy: 1.0.2
1582 | dev: true
1583 |
1584 | /onetime@5.1.2:
1585 | resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
1586 | engines: {node: '>=6'}
1587 | dependencies:
1588 | mimic-fn: 2.1.0
1589 | dev: true
1590 |
1591 | /onetime@6.0.0:
1592 | resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
1593 | engines: {node: '>=12'}
1594 | dependencies:
1595 | mimic-fn: 4.0.0
1596 | dev: false
1597 |
1598 | /optionator@0.9.3:
1599 | resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==}
1600 | engines: {node: '>= 0.8.0'}
1601 | dependencies:
1602 | '@aashutoshrathi/word-wrap': 1.2.6
1603 | deep-is: 0.1.4
1604 | fast-levenshtein: 2.0.6
1605 | levn: 0.4.1
1606 | prelude-ls: 1.2.1
1607 | type-check: 0.4.0
1608 | dev: true
1609 |
1610 | /p-limit@3.1.0:
1611 | resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
1612 | engines: {node: '>=10'}
1613 | dependencies:
1614 | yocto-queue: 0.1.0
1615 | dev: true
1616 |
1617 | /p-locate@5.0.0:
1618 | resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
1619 | engines: {node: '>=10'}
1620 | dependencies:
1621 | p-limit: 3.1.0
1622 | dev: true
1623 |
1624 | /p-safe@0.1.0:
1625 | resolution: {integrity: sha512-A3YWGGaKK++7P6zYbT6UeQOKrsmUVv8ypLTsKOPdBTEK7T7+yzJSjeiwreVPa9eH1XfRu+dvacvde5w7UslNcw==}
1626 | dev: false
1627 |
1628 | /parent-module@1.0.1:
1629 | resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
1630 | engines: {node: '>=6'}
1631 | dependencies:
1632 | callsites: 3.1.0
1633 | dev: true
1634 |
1635 | /path-exists@4.0.0:
1636 | resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
1637 | engines: {node: '>=8'}
1638 | dev: true
1639 |
1640 | /path-is-absolute@1.0.1:
1641 | resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
1642 | engines: {node: '>=0.10.0'}
1643 | dev: true
1644 |
1645 | /path-key@3.1.1:
1646 | resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
1647 | engines: {node: '>=8'}
1648 |
1649 | /path-key@4.0.0:
1650 | resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}
1651 | engines: {node: '>=12'}
1652 | dev: false
1653 |
1654 | /path-type@4.0.0:
1655 | resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
1656 | engines: {node: '>=8'}
1657 | dev: true
1658 |
1659 | /pathval@2.0.0:
1660 | resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}
1661 | engines: {node: '>= 14.16'}
1662 | dev: true
1663 |
1664 | /picomatch@2.3.1:
1665 | resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
1666 | engines: {node: '>=8.6'}
1667 | dev: true
1668 |
1669 | /pirates@4.0.6:
1670 | resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}
1671 | engines: {node: '>= 6'}
1672 | dev: true
1673 |
1674 | /postcss-load-config@4.0.2:
1675 | resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}
1676 | engines: {node: '>= 14'}
1677 | peerDependencies:
1678 | postcss: '>=8.0.9'
1679 | ts-node: '>=9.0.0'
1680 | peerDependenciesMeta:
1681 | postcss:
1682 | optional: true
1683 | ts-node:
1684 | optional: true
1685 | dependencies:
1686 | lilconfig: 3.0.0
1687 | yaml: 2.3.4
1688 | dev: true
1689 |
1690 | /prelude-ls@1.2.1:
1691 | resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
1692 | engines: {node: '>= 0.8.0'}
1693 | dev: true
1694 |
1695 | /prettier@3.2.5:
1696 | resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==}
1697 | engines: {node: '>=14'}
1698 | hasBin: true
1699 | dev: true
1700 |
1701 | /punycode@2.3.1:
1702 | resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
1703 | engines: {node: '>=6'}
1704 | dev: true
1705 |
1706 | /queue-microtask@1.2.3:
1707 | resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
1708 | dev: true
1709 |
1710 | /randombytes@2.1.0:
1711 | resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==}
1712 | dependencies:
1713 | safe-buffer: 5.2.1
1714 | dev: true
1715 |
1716 | /readdirp@3.6.0:
1717 | resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
1718 | engines: {node: '>=8.10.0'}
1719 | dependencies:
1720 | picomatch: 2.3.1
1721 | dev: true
1722 |
1723 | /require-directory@2.1.1:
1724 | resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
1725 | engines: {node: '>=0.10.0'}
1726 | dev: true
1727 |
1728 | /resolve-from@4.0.0:
1729 | resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
1730 | engines: {node: '>=4'}
1731 | dev: true
1732 |
1733 | /resolve-from@5.0.0:
1734 | resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}
1735 | engines: {node: '>=8'}
1736 | dev: true
1737 |
1738 | /resolve-pkg-maps@1.0.0:
1739 | resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
1740 | dev: true
1741 |
1742 | /reusify@1.0.4:
1743 | resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
1744 | engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
1745 | dev: true
1746 |
1747 | /rimraf@3.0.2:
1748 | resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
1749 | hasBin: true
1750 | dependencies:
1751 | glob: 7.1.6
1752 | dev: true
1753 |
1754 | /rollup@4.9.1:
1755 | resolution: {integrity: sha512-pgPO9DWzLoW/vIhlSoDByCzcpX92bKEorbgXuZrqxByte3JFk2xSW2JEeAcyLc9Ru9pqcNNW+Ob7ntsk2oT/Xw==}
1756 | engines: {node: '>=18.0.0', npm: '>=8.0.0'}
1757 | hasBin: true
1758 | optionalDependencies:
1759 | '@rollup/rollup-android-arm-eabi': 4.9.1
1760 | '@rollup/rollup-android-arm64': 4.9.1
1761 | '@rollup/rollup-darwin-arm64': 4.9.1
1762 | '@rollup/rollup-darwin-x64': 4.9.1
1763 | '@rollup/rollup-linux-arm-gnueabihf': 4.9.1
1764 | '@rollup/rollup-linux-arm64-gnu': 4.9.1
1765 | '@rollup/rollup-linux-arm64-musl': 4.9.1
1766 | '@rollup/rollup-linux-riscv64-gnu': 4.9.1
1767 | '@rollup/rollup-linux-x64-gnu': 4.9.1
1768 | '@rollup/rollup-linux-x64-musl': 4.9.1
1769 | '@rollup/rollup-win32-arm64-msvc': 4.9.1
1770 | '@rollup/rollup-win32-ia32-msvc': 4.9.1
1771 | '@rollup/rollup-win32-x64-msvc': 4.9.1
1772 | fsevents: 2.3.3
1773 | dev: true
1774 |
1775 | /run-parallel@1.2.0:
1776 | resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
1777 | dependencies:
1778 | queue-microtask: 1.2.3
1779 | dev: true
1780 |
1781 | /safe-buffer@5.2.1:
1782 | resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
1783 | dev: true
1784 |
1785 | /semver@7.6.0:
1786 | resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==}
1787 | engines: {node: '>=10'}
1788 | hasBin: true
1789 | dependencies:
1790 | lru-cache: 6.0.0
1791 | dev: true
1792 |
1793 | /serialize-javascript@6.0.0:
1794 | resolution: {integrity: sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==}
1795 | dependencies:
1796 | randombytes: 2.1.0
1797 | dev: true
1798 |
1799 | /shebang-command@2.0.0:
1800 | resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
1801 | engines: {node: '>=8'}
1802 | dependencies:
1803 | shebang-regex: 3.0.0
1804 |
1805 | /shebang-regex@3.0.0:
1806 | resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
1807 | engines: {node: '>=8'}
1808 |
1809 | /signal-exit@3.0.7:
1810 | resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
1811 | dev: true
1812 |
1813 | /signal-exit@4.1.0:
1814 | resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
1815 | engines: {node: '>=14'}
1816 | dev: false
1817 |
1818 | /slash@3.0.0:
1819 | resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
1820 | engines: {node: '>=8'}
1821 | dev: true
1822 |
1823 | /source-map@0.8.0-beta.0:
1824 | resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}
1825 | engines: {node: '>= 8'}
1826 | dependencies:
1827 | whatwg-url: 7.1.0
1828 | dev: true
1829 |
1830 | /string-width@4.2.3:
1831 | resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
1832 | engines: {node: '>=8'}
1833 | dependencies:
1834 | emoji-regex: 8.0.0
1835 | is-fullwidth-code-point: 3.0.0
1836 | strip-ansi: 6.0.1
1837 | dev: true
1838 |
1839 | /strip-ansi@6.0.1:
1840 | resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
1841 | engines: {node: '>=8'}
1842 | dependencies:
1843 | ansi-regex: 5.0.1
1844 | dev: true
1845 |
1846 | /strip-final-newline@2.0.0:
1847 | resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}
1848 | engines: {node: '>=6'}
1849 | dev: true
1850 |
1851 | /strip-final-newline@3.0.0:
1852 | resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}
1853 | engines: {node: '>=12'}
1854 | dev: false
1855 |
1856 | /strip-json-comments@3.1.1:
1857 | resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
1858 | engines: {node: '>=8'}
1859 | dev: true
1860 |
1861 | /sucrase@3.34.0:
1862 | resolution: {integrity: sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==}
1863 | engines: {node: '>=8'}
1864 | hasBin: true
1865 | dependencies:
1866 | '@jridgewell/gen-mapping': 0.3.3
1867 | commander: 4.1.1
1868 | glob: 7.1.6
1869 | lines-and-columns: 1.2.4
1870 | mz: 2.7.0
1871 | pirates: 4.0.6
1872 | ts-interface-checker: 0.1.13
1873 | dev: true
1874 |
1875 | /supports-color@7.2.0:
1876 | resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
1877 | engines: {node: '>=8'}
1878 | dependencies:
1879 | has-flag: 4.0.0
1880 | dev: true
1881 |
1882 | /supports-color@8.1.1:
1883 | resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
1884 | engines: {node: '>=10'}
1885 | dependencies:
1886 | has-flag: 4.0.0
1887 | dev: true
1888 |
1889 | /text-table@0.2.0:
1890 | resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}
1891 | dev: true
1892 |
1893 | /thenify-all@1.6.0:
1894 | resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
1895 | engines: {node: '>=0.8'}
1896 | dependencies:
1897 | thenify: 3.3.1
1898 | dev: true
1899 |
1900 | /thenify@3.3.1:
1901 | resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
1902 | dependencies:
1903 | any-promise: 1.3.0
1904 | dev: true
1905 |
1906 | /to-regex-range@5.0.1:
1907 | resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
1908 | engines: {node: '>=8.0'}
1909 | dependencies:
1910 | is-number: 7.0.0
1911 | dev: true
1912 |
1913 | /tr46@1.0.1:
1914 | resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==}
1915 | dependencies:
1916 | punycode: 2.3.1
1917 | dev: true
1918 |
1919 | /tree-kill@1.2.2:
1920 | resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
1921 | hasBin: true
1922 | dev: true
1923 |
1924 | /ts-api-utils@1.3.0(typescript@5.4.5):
1925 | resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==}
1926 | engines: {node: '>=16'}
1927 | peerDependencies:
1928 | typescript: '>=4.2.0'
1929 | dependencies:
1930 | typescript: 5.4.5
1931 | dev: true
1932 |
1933 | /ts-interface-checker@0.1.13:
1934 | resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
1935 | dev: true
1936 |
1937 | /tsup@8.0.2(typescript@5.4.5):
1938 | resolution: {integrity: sha512-NY8xtQXdH7hDUAZwcQdY/Vzlw9johQsaqf7iwZ6g1DOUlFYQ5/AtVAjTvihhEyeRlGo4dLRVHtrRaL35M1daqQ==}
1939 | engines: {node: '>=18'}
1940 | hasBin: true
1941 | peerDependencies:
1942 | '@microsoft/api-extractor': ^7.36.0
1943 | '@swc/core': ^1
1944 | postcss: ^8.4.12
1945 | typescript: '>=4.5.0'
1946 | peerDependenciesMeta:
1947 | '@microsoft/api-extractor':
1948 | optional: true
1949 | '@swc/core':
1950 | optional: true
1951 | postcss:
1952 | optional: true
1953 | typescript:
1954 | optional: true
1955 | dependencies:
1956 | bundle-require: 4.0.2(esbuild@0.19.10)
1957 | cac: 6.7.14
1958 | chokidar: 3.5.3
1959 | debug: 4.3.4(supports-color@8.1.1)
1960 | esbuild: 0.19.10
1961 | execa: 5.1.1
1962 | globby: 11.1.0
1963 | joycon: 3.1.1
1964 | postcss-load-config: 4.0.2
1965 | resolve-from: 5.0.0
1966 | rollup: 4.9.1
1967 | source-map: 0.8.0-beta.0
1968 | sucrase: 3.34.0
1969 | tree-kill: 1.2.2
1970 | typescript: 5.4.5
1971 | transitivePeerDependencies:
1972 | - supports-color
1973 | - ts-node
1974 | dev: true
1975 |
1976 | /tsx@4.7.2:
1977 | resolution: {integrity: sha512-BCNd4kz6fz12fyrgCTEdZHGJ9fWTGeUzXmQysh0RVocDY3h4frk05ZNCXSy4kIenF7y/QnrdiVpTsyNRn6vlAw==}
1978 | engines: {node: '>=18.0.0'}
1979 | hasBin: true
1980 | dependencies:
1981 | esbuild: 0.19.10
1982 | get-tsconfig: 4.7.2
1983 | optionalDependencies:
1984 | fsevents: 2.3.3
1985 | dev: true
1986 |
1987 | /type-check@0.4.0:
1988 | resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
1989 | engines: {node: '>= 0.8.0'}
1990 | dependencies:
1991 | prelude-ls: 1.2.1
1992 | dev: true
1993 |
1994 | /type-fest@0.20.2:
1995 | resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==}
1996 | engines: {node: '>=10'}
1997 | dev: true
1998 |
1999 | /typescript@5.4.5:
2000 | resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==}
2001 | engines: {node: '>=14.17'}
2002 | hasBin: true
2003 | dev: true
2004 |
2005 | /undici-types@5.26.5:
2006 | resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
2007 | dev: true
2008 |
2009 | /uri-js@4.4.1:
2010 | resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
2011 | dependencies:
2012 | punycode: 2.3.1
2013 | dev: true
2014 |
2015 | /webidl-conversions@4.0.2:
2016 | resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==}
2017 | dev: true
2018 |
2019 | /whatwg-url@7.1.0:
2020 | resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==}
2021 | dependencies:
2022 | lodash.sortby: 4.7.0
2023 | tr46: 1.0.1
2024 | webidl-conversions: 4.0.2
2025 | dev: true
2026 |
2027 | /which@2.0.2:
2028 | resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
2029 | engines: {node: '>= 8'}
2030 | hasBin: true
2031 | dependencies:
2032 | isexe: 2.0.0
2033 |
2034 | /workerpool@6.2.1:
2035 | resolution: {integrity: sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==}
2036 | dev: true
2037 |
2038 | /wrap-ansi@7.0.0:
2039 | resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
2040 | engines: {node: '>=10'}
2041 | dependencies:
2042 | ansi-styles: 4.3.0
2043 | string-width: 4.2.3
2044 | strip-ansi: 6.0.1
2045 | dev: true
2046 |
2047 | /wrappy@1.0.2:
2048 | resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
2049 | dev: true
2050 |
2051 | /y18n@5.0.8:
2052 | resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
2053 | engines: {node: '>=10'}
2054 | dev: true
2055 |
2056 | /yallist@4.0.0:
2057 | resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
2058 | dev: true
2059 |
2060 | /yaml@2.3.4:
2061 | resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==}
2062 | engines: {node: '>= 14'}
2063 | dev: true
2064 |
2065 | /yargs-parser@20.2.4:
2066 | resolution: {integrity: sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==}
2067 | engines: {node: '>=10'}
2068 | dev: true
2069 |
2070 | /yargs-unparser@2.0.0:
2071 | resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==}
2072 | engines: {node: '>=10'}
2073 | dependencies:
2074 | camelcase: 6.3.0
2075 | decamelize: 4.0.0
2076 | flat: 5.0.2
2077 | is-plain-obj: 2.1.0
2078 | dev: true
2079 |
2080 | /yargs@16.2.0:
2081 | resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==}
2082 | engines: {node: '>=10'}
2083 | dependencies:
2084 | cliui: 7.0.4
2085 | escalade: 3.1.1
2086 | get-caller-file: 2.0.5
2087 | require-directory: 2.1.1
2088 | string-width: 4.2.3
2089 | y18n: 5.0.8
2090 | yargs-parser: 20.2.4
2091 | dev: true
2092 |
2093 | /yocto-queue@0.1.0:
2094 | resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
2095 | engines: {node: '>=10'}
2096 | dev: true
2097 |
--------------------------------------------------------------------------------
/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3 | "extends": ["config:recommended"]
4 | }
5 |
--------------------------------------------------------------------------------
/src/errors.ts:
--------------------------------------------------------------------------------
1 | export class ShellError extends Error {
2 | readonly exitCode: number;
3 |
4 | constructor(message: string, exitCode: number) {
5 | super(message);
6 | this.exitCode = exitCode;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | export * as ip from './ip';
2 | export * as netstat from './netstat';
3 |
--------------------------------------------------------------------------------
/src/ip/index.ts:
--------------------------------------------------------------------------------
1 | import { del as linkDel } from './link';
2 |
3 | // ------------------------
4 |
5 | export * as route from './route';
6 | export * as link from './link';
7 |
8 | // ------------------------
9 |
10 | /**
11 | * Drop Device
12 | *
13 | * Example:
14 | * ```javascript
15 | * await dropDevice('tun0');
16 | * ```
17 | *
18 | * @param name "DEVICE_NAME" or "dev NAME" or "group NAME"
19 | */
20 | export async function dropDevice(name: string) {
21 | const { error } = await linkDel({
22 | name,
23 | });
24 |
25 | if (error) {
26 | throw error;
27 | }
28 | }
29 |
30 | // ------------------------
31 |
32 | export type IPFamily = 'IPv4' | 'IPv6';
33 |
34 | export const IPV4_REGEX = /^(\d{1,3}\.){3}\d{1,3}$/;
35 | export const IPV6_REGEX = /^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;
36 |
37 | export const MAC_REGEX = /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/;
38 |
39 | export function isValidIP(ip: string) {
40 | return isValidIPv4(ip) || isValidIPv6(ip);
41 | }
42 |
43 | export function isValidIPv4(ip: string) {
44 | return IPV4_REGEX.test(ip);
45 | }
46 |
47 | export function isValidIPv6(ip: string) {
48 | return IPV6_REGEX.test(ip);
49 | }
50 |
51 | export function isValidCIDR(cidr: string) {
52 | const parts = cidr.split('/');
53 | return isValidIP(parts[0]) && parts[1] && !isNaN(+parts[1]);
54 | }
55 |
56 | export function parseCIDR(cidr: string) {
57 | if (!isValidCIDR(cidr)) {
58 | throw new Error(`Invalid CIDR: ${cidr}`);
59 | }
60 | const parts = cidr.split('/');
61 | return {
62 | ip: parts[0],
63 | mask: +parts[1],
64 | };
65 | }
66 |
67 | export function getIPFamily(ip: string): IPFamily {
68 | if (ip.includes('/')) {
69 | const { ip: ipPart } = parseCIDR(ip);
70 | ip = ipPart;
71 | }
72 |
73 | if (isValidIPv4(ip)) {
74 | return 'IPv4';
75 | }
76 |
77 | if (isValidIPv6(ip)) {
78 | return 'IPv6';
79 | }
80 |
81 | throw new Error(`Not a valid IP address: ${ip}`);
82 | }
83 |
84 | export function getIPVersion(ip: string) {
85 | return getIPFamily(ip) === 'IPv4' ? 4 : 6;
86 | }
87 |
88 | export function isLoopback(addr: string) {
89 | // Yanked from https://github.com/indutny/node-ip/blob/3b0994a74eca51df01f08c40d6a65ba0e1845d04/lib/ip.js#L346-L352
90 | return (
91 | /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(addr) ||
92 | /^0177\./.test(addr) ||
93 | /^0x7f\./i.test(addr) ||
94 | /^fe80::1$/i.test(addr) ||
95 | /^::1(\/[0-9]{1,3})?$/.test(addr) ||
96 | /^::$/.test(addr)
97 | );
98 | }
99 |
100 | /**
101 | * Private IP Address Identifier in Regular Expression
102 | *
103 | * 127.0.0.0 – 127.255.255.255 127.0.0.0 /8
104 | * 10.0.0.0 – 10.255.255.255 10.0.0.0 /8
105 | * 172.16.0.0 – 172. 31.255.255 172.16.0.0 /12
106 | * 192.168.0.0 – 192.168.255.255 192.168.0.0 /16
107 | */
108 | export function isPrivateIP(addr: string) {
109 | if (isLoopback(addr)) {
110 | return true;
111 | }
112 |
113 | if (addr.includes('/')) {
114 | addr = parseCIDR(addr).ip;
115 | }
116 |
117 | const version = getIPVersion(addr);
118 | if (version === 4) {
119 | return /^(127\.)|(10\.)|(172\.1[6-9]\.)|(172\.2[0-9]\.)|(172\.3[0-1]\.)|(192\.168\.)/.test(
120 | addr
121 | );
122 | }
123 |
124 | // Yanked from https://github.com/indutny/node-ip/blob/3b0994a74eca51df01f08c40d6a65ba0e1845d04/lib/ip.js#L325-L333
125 | return (
126 | /^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) ||
127 | /^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) ||
128 | /^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) ||
129 | /^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) ||
130 | /^f[cd][0-9a-f]{2}:/i.test(addr) ||
131 | /^fe80:/i.test(addr) ||
132 | /^::1$/.test(addr) ||
133 | /^::$/.test(addr)
134 | );
135 | }
136 |
137 | export function isPublicIP(addr: string) {
138 | return !isPrivateIP(addr);
139 | }
140 |
141 | // Helper function to convert IP to number
142 | export function toLong(ip: string): number {
143 | return ip
144 | .split('.')
145 | .reduce((acc, octet, index) => acc + parseInt(octet, 10) * 256 ** (3 - index), 0);
146 | }
147 |
148 | // Helper function to convert number to IP
149 | export function fromLong(num: number): string {
150 | const octets = [];
151 | for (let i = 3; i >= 0; i--) {
152 | octets.push(Math.floor(num / 256 ** i));
153 | num %= 256 ** i;
154 | }
155 | return octets.join('.');
156 | }
157 |
158 | /**
159 | * const generator = generateIPs('127.0.0.1/24');
160 | * console.log(Array.from(generator)); // ['127.0.0.1', '127.0.0.2', ...]
161 | *
162 | * @param cidr
163 | */
164 | export function* generateIP(cidr: string): Generator {
165 | const { ip: baseIP, mask } = parseCIDR(cidr);
166 | if (mask === 32) {
167 | yield baseIP;
168 | return;
169 | }
170 |
171 | const hostBits = 32 - mask;
172 | const maxHosts = 2 ** hostBits;
173 |
174 | // Convert the base IP to a number
175 | const currentIP = toLong(baseIP);
176 |
177 | // Generate IPs
178 | for (let i = 1; i < maxHosts - 1; i++) {
179 | yield fromLong(currentIP + i);
180 | }
181 | }
182 |
183 | export function isValidMacAddress(mac: string) {
184 | return MAC_REGEX.test(mac);
185 | }
186 |
--------------------------------------------------------------------------------
/src/ip/link.ts:
--------------------------------------------------------------------------------
1 | import { execShell } from '@/utils/exec-shell';
2 | import { isValidMacAddress } from '@/ip/index';
3 |
4 | const LINK_TYPES = [
5 | 'amt',
6 | 'bareudp',
7 | 'bond',
8 | 'bond_slave',
9 | 'bridge',
10 | 'bridge_slave',
11 | 'dsa',
12 | 'dummy',
13 | 'erspan',
14 | 'geneve',
15 | 'gre',
16 | 'gretap',
17 | 'gtp',
18 | 'ifb',
19 | 'ip6erspan',
20 | 'ip6gre',
21 | 'ip6gretap',
22 | 'ip6tnl',
23 | 'ipip',
24 | 'ipoib',
25 | ];
26 |
27 | export type LinkType = (typeof LINK_TYPES)[number];
28 |
29 | export type AddParams = Record & {
30 | type?: LinkType;
31 | name?: string;
32 | txqueuelen?: number;
33 | address?: string;
34 | broadcast?: string;
35 | mtu?: number;
36 | numtxqueues?: number;
37 | numrxqueues?: number;
38 | netns?: string;
39 | };
40 |
41 | export async function add(params: AddParams) {
42 | const args = [
43 | 'ip',
44 | 'link',
45 | 'add',
46 | ...Object.entries(params).map(([key, value]) => `${key.toLowerCase()} ${value}`),
47 | ];
48 | return execShell(args);
49 | }
50 |
51 | export type DelParams = Record & {
52 | name?: string;
53 | type?: LinkType;
54 | };
55 |
56 | export async function del(params: DelParams) {
57 | const args = [
58 | 'ip',
59 | 'link',
60 | 'delete',
61 | ...Object.entries(params).map(([key, value]) => `${key.toLowerCase()} ${value}`),
62 | ];
63 | return execShell(args);
64 | }
65 |
66 | export type ListParams = Record & {
67 | name?: string;
68 | type?: LinkType;
69 | };
70 |
71 | export type Link = {
72 | name: string;
73 | flags: string[];
74 | qdisc: string;
75 | state: string;
76 | mode: string;
77 | group: string;
78 | qlen?: number;
79 | mtu: number;
80 | address?: string;
81 | broadcast?: string;
82 | };
83 |
84 | export async function list(params: ListParams = {}): Promise {
85 | const args = [
86 | 'ip',
87 | 'link',
88 | 'show',
89 | ...Object.entries(params).map(([key, value]) => `${key.toLowerCase()} ${value}`),
90 | ];
91 |
92 | const { error, data } = await execShell(args);
93 |
94 | if (error) {
95 | throw error;
96 | }
97 |
98 | const lines = data.output.match(/^\d+:(.*|(?:\n\s)+)+/gm)!;
99 | const links: Link[] = [];
100 |
101 | for (const line of lines) {
102 | const link = parseLink(line);
103 | if (link) {
104 | links.push(link);
105 | }
106 | }
107 |
108 | return links;
109 | }
110 |
111 | function parseLink(line: string) {
112 | if (!line) {
113 | return undefined;
114 | }
115 |
116 | const parts = line.replace(/\n$/, ' ').split(/\s+/).slice(1);
117 | if (parts.length < 6) {
118 | return undefined;
119 | }
120 |
121 | const link: Link = {
122 | name: parts[0].slice(0, -1),
123 | flags: parts[1].slice(1, -1).split(','),
124 | qdisc: '',
125 | state: '',
126 | mode: '',
127 | group: '',
128 | qlen: undefined,
129 | mtu: -1,
130 | address: undefined,
131 | broadcast: undefined,
132 | };
133 |
134 | for (const part of parts.slice(2)) {
135 | const next = parts[parts.indexOf(part) + 1];
136 | if (part in link) {
137 | // @ts-expect-error Type 'string' is not assignable to type 'Link[keyof Link]'.
138 | link[part] = next.match(/^\d+$/) ? +next : next;
139 | }
140 |
141 | if (part.startsWith('link/') && isValidMacAddress(next)) {
142 | link.address = next;
143 | }
144 |
145 | if (part === 'brd') {
146 | link.broadcast = next;
147 | }
148 | }
149 |
150 | return link;
151 | }
152 |
--------------------------------------------------------------------------------
/src/ip/route.ts:
--------------------------------------------------------------------------------
1 | import { execShell } from '@/utils/exec-shell';
2 |
3 | interface RoutingTableEntry {
4 | destination: string; // e.g., "default" or "192.168.1.0/24"
5 | via: string | null; // e.g., "192.168.1.1" (for default route)
6 | dev: string; // e.g., "wlp3s0"
7 | proto: string; // e.g., "dhcp" or "kernel"
8 | src: string; // e.g., "192.168.1.102"
9 | metric: number; // e.g., 600
10 | scope: string | null; // e.g., "link"
11 | }
12 |
13 | export async function list() {
14 | const { error, data } = await execShell(['ip', 'route', 'list']);
15 | if (error) {
16 | throw error;
17 | }
18 |
19 | const lines = data.output.split('\n');
20 | const routes: RoutingTableEntry[] = [];
21 |
22 | for (const line of lines) {
23 | const route = parseRoute(line);
24 | if (route) {
25 | routes.push(route);
26 | }
27 | }
28 |
29 | return routes;
30 | }
31 |
32 | export async function defaultRoute() {
33 | const routes = await list();
34 | return routes.find((r) => r.destination === 'default');
35 | }
36 |
37 | function parseRoute(line: string): RoutingTableEntry | undefined {
38 | const parts = line.trim().split(' ');
39 |
40 | // if there are less than 2 parts, then this is not a valid route
41 | if (parts.length < 2) {
42 | return undefined;
43 | }
44 |
45 | const route: RoutingTableEntry = {
46 | destination: '',
47 | via: null,
48 | dev: '',
49 | proto: '',
50 | src: '',
51 | metric: 0,
52 | scope: null,
53 | };
54 |
55 | if (parts[0] === 'default') {
56 | route.destination = parts[0];
57 | parts.splice(0, 1);
58 | }
59 |
60 | // regex: /
61 | if (parts[0].match(/^\d+\.\d+\.\d+\.\d+\/\d+$/)) {
62 | route.destination = parts[0];
63 | parts.shift();
64 | }
65 |
66 | if (parts[0] === 'via') {
67 | route.via = parts[1];
68 | parts.splice(0, 2);
69 | }
70 |
71 | if (parts[0] === 'dev') {
72 | route.dev = parts[1];
73 | parts.splice(0, 2);
74 | }
75 |
76 | if (parts[0] === 'proto') {
77 | route.proto = parts[1];
78 | parts.splice(0, 2);
79 | }
80 |
81 | if (parts[0] === 'scope') {
82 | route.scope = parts[1];
83 | parts.splice(0, 2);
84 | }
85 |
86 | if (parts[0] === 'src') {
87 | route.src = parts[1];
88 | parts.splice(0, 2);
89 | }
90 |
91 | if (parts[0] === 'metric') {
92 | route.metric = parseInt(parts[1], 10);
93 | parts.splice(0, 2);
94 | }
95 |
96 | return route;
97 | }
98 |
--------------------------------------------------------------------------------
/src/netstat/index.ts:
--------------------------------------------------------------------------------
1 | import { execShell } from '@/utils/exec-shell';
2 | import { removeDuplicate } from '@/utils/array';
3 |
4 | // ------------------------
5 |
6 | export interface ActiveConnection {
7 | protocol: string;
8 | program?: string;
9 | recvQ: number;
10 | sendQ: number;
11 | address: string;
12 | port: number;
13 | state?: string;
14 | }
15 |
16 | export async function activeConnections(): Promise {
17 | const { error, data } = await execShell(['netstat', '-tuapn']);
18 | if (error) {
19 | throw error;
20 | }
21 |
22 | const lines = data.output.split('\n');
23 | const ports: ActiveConnection[] = [];
24 | for (const line of lines) {
25 | const match =
26 | /^(\w+)\s+(\d+)\s+(\d+)\s+((?:::)?(?:(?:(?:\d{1,3}\.){3}(?:\d{1,3}){1})?[0-9a-f]{0,4}:{0,2}){1,8}(?:::)?)\s+((?:::)?(?:(?:(?:\d{1,3}\.){3}(?:\d{1,3}){1})?[0-9a-f]{0,4}:{0,2}){1,8}(?:::)?\*?)\s+(\w+)?\s+(.*)$/.exec(
27 | line
28 | );
29 | if (match) {
30 | const port = match[4].split(':').at(-1);
31 | const address = match[4].replace(`:${port}`, '');
32 | const connection: ActiveConnection = {
33 | protocol: match[1],
34 | recvQ: Number(match[2]),
35 | sendQ: Number(match[3]),
36 | address: address,
37 | port: Number(port),
38 | state: match[6] ? match[6].trim() : undefined,
39 | program: match[7].trim(),
40 | };
41 | ports.push(connection);
42 | }
43 | }
44 |
45 | return ports;
46 | }
47 |
48 | export async function allocatedPorts(): Promise {
49 | const cns = await activeConnections();
50 | return removeDuplicate(cns.map((cn) => cn.port));
51 | }
52 |
--------------------------------------------------------------------------------
/src/utils/array.ts:
--------------------------------------------------------------------------------
1 | export function removeDuplicate(d: T[]): T[] {
2 | const final: T[] = [];
3 | for (const item of d) {
4 | if (!final.includes(item)) {
5 | final.push(item);
6 | }
7 | }
8 | return final;
9 | }
10 |
--------------------------------------------------------------------------------
/src/utils/exec-shell.ts:
--------------------------------------------------------------------------------
1 | import { trySafe } from 'p-safe';
2 | import { ShellError } from '@/errors';
3 |
4 | export async function execShell(cmd: string[]) {
5 | return trySafe(async () => {
6 | const { execa } = await import('execa');
7 |
8 | const res = await execa(cmd.join(' '), {
9 | shell: true,
10 | });
11 |
12 | const success = res.exitCode === 0;
13 | const [stdout, stderr] = [res.stdout, res.stderr].map((s) => s.trim());
14 |
15 | if (success || (stdout && stdout !== '')) {
16 | return {
17 | data: {
18 | output: stdout,
19 | exitCode: res.exitCode,
20 | },
21 | };
22 | }
23 |
24 | return { error: new ShellError(stderr, res.exitCode) };
25 | });
26 | }
27 |
28 | export interface ShellResult {
29 | output: string;
30 | exitCode: number;
31 | }
32 |
--------------------------------------------------------------------------------
/tests/ip/index.test.ts:
--------------------------------------------------------------------------------
1 | import { expect } from 'chai';
2 | import { fromLong, generateIP, isLoopback, toLong } from '@/ip';
3 |
4 | describe('Long and Normalize', () => {
5 | // 127.0.0.1 => 2130706433
6 | // 255.255.255.255 => 4294967295
7 |
8 | it('should convert IPv4 to long', () => {
9 | expect(toLong('127.0.0.1')).to.equal(2130706433);
10 | expect(toLong('255.255.255.255')).to.equal(4294967295);
11 | });
12 |
13 | it('should convert long to IPv4', () => {
14 | expect(fromLong(2130706433)).to.equal('127.0.0.1');
15 | expect(fromLong(4294967295)).to.equal('255.255.255.255');
16 | });
17 | });
18 |
19 | describe('Loopback', () => {
20 | it('should detect IPv4 loopback', () => {
21 | expect(isLoopback('127.0.0.1')).to.be.true;
22 | expect(isLoopback('127.0.0.1/32')).to.be.true;
23 | });
24 |
25 | it('should detect IPv6 loopback', () => {
26 | expect(isLoopback('::1')).to.be.true;
27 | expect(isLoopback('::1/128')).to.be.true;
28 | });
29 | });
30 |
31 | describe('Generate IP', () => {
32 | it('should get ips from "192.168.1.0/24"', () => {
33 | const generator = generateIP('192.168.1.0/24');
34 |
35 | const ips = Array.from(generator);
36 |
37 | expect(ips).to.have.lengthOf(254);
38 | expect(ips[0]).to.equal('192.168.1.1');
39 | });
40 |
41 | it('should get ips from "127.0.0.1/32"', () => {
42 | const generator = generateIP('127.0.0.1/32');
43 |
44 | const ips = Array.from(generator);
45 |
46 | expect(ips).to.have.lengthOf(1);
47 | expect(ips[0]).to.equal('127.0.0.1');
48 | });
49 | });
50 |
--------------------------------------------------------------------------------
/tests/ip/link.test.ts:
--------------------------------------------------------------------------------
1 | import { link } from 'node-netkit/ip';
2 | import { expect } from 'chai';
3 |
4 | describe('Link', () => {
5 | it('should list links and locate loopback', async () => {
6 | const links = await link.list();
7 |
8 | expect(links).to.be.an('array');
9 | expect(links.length).to.be.greaterThan(0);
10 |
11 | expect(links[0]).to.have.property('name');
12 | expect(links[0]).to.have.property('flags');
13 | expect(links[0]).to.have.property('qdisc');
14 | expect(links[0]).to.have.property('state');
15 | expect(links[0]).to.have.property('mode');
16 | expect(links[0]).to.have.property('group');
17 | expect(links[0]).to.have.property('qlen');
18 | expect(links[0]).to.have.property('mtu');
19 | expect(links[0]).to.have.property('address');
20 | expect(links[0]).to.have.property('broadcast');
21 |
22 | const loopback = links.find((l) => l.name === 'lo');
23 | expect(loopback).to.be.an('object');
24 | expect(loopback).to.have.property('address', '00:00:00:00:00:00');
25 | expect(loopback).to.have.property('broadcast', '00:00:00:00:00:00');
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/tests/ip/route.test.ts:
--------------------------------------------------------------------------------
1 | import { expect } from 'chai';
2 | import { route } from '@/ip';
3 |
4 | describe('List', () => {
5 | it('should get the default route', async () => {
6 | const routes = await route.list();
7 | expect(routes).to.be.an('array');
8 |
9 | const defaultRoute = routes.find((r) => r.destination === 'default');
10 |
11 | expect(defaultRoute).to.be.an('object');
12 | expect(defaultRoute).to.have.property('via');
13 | });
14 | });
15 |
--------------------------------------------------------------------------------
/tests/netstat/index.test.ts:
--------------------------------------------------------------------------------
1 | import { expect } from 'chai';
2 | import { IPV4_REGEX } from '@/ip';
3 | import { activeConnections, allocatedPorts } from 'node-netkit/netstat';
4 |
5 | describe('Active Connections', () => {
6 | it('should get active connections', async () => {
7 | const connections = await activeConnections();
8 | expect(connections).to.be.an('array');
9 | expect(connections.length).to.have.greaterThan(0);
10 |
11 | expect(Object.keys(connections[0])).to.have.lengthOf(7);
12 | expect(connections[0].address).to.match(IPV4_REGEX);
13 | });
14 |
15 | it('should get allocated ports', async () => {
16 | for (const p of await allocatedPorts()) {
17 | expect(p).to.be.greaterThan(0);
18 | expect(p).to.be.lessThan(65535);
19 | }
20 | });
21 | });
22 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "lib": ["ESNext"],
4 | "module": "esnext",
5 | "target": "esnext",
6 | "moduleResolution": "node",
7 | "moduleDetection": "force",
8 | "strict": true,
9 | "skipLibCheck": true,
10 | "declaration": true,
11 | "declarationMap": true,
12 | "esModuleInterop": true,
13 | "isolatedModules": true,
14 | "noUnusedLocals": false,
15 | "noUnusedParameters": false,
16 | "strictNullChecks": true,
17 | "allowSyntheticDefaultImports": true,
18 | "forceConsistentCasingInFileNames": true,
19 | "allowJs": true,
20 | "baseUrl": ".",
21 | "paths": {
22 | "@/*": ["src/*"],
23 | "node-netkit/*": ["dist/*"],
24 | "node-netkit": ["dist/index.js"]
25 | },
26 | "outDir": "build"
27 | },
28 | "include": ["**/*.ts"],
29 | "exclude": ["node_modules", "build"]
30 | }
31 |
--------------------------------------------------------------------------------
/tsup.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'tsup';
2 |
3 | export default defineConfig({
4 | clean: true,
5 | dts: true,
6 | entry: ['src/index.ts', 'src/ip/index.ts', 'src/netstat/index.ts'],
7 | format: ['cjs', 'esm'],
8 | target: 'esnext',
9 | outDir: 'dist',
10 | });
11 |
--------------------------------------------------------------------------------