Leon4gr45 commited on
Commit
c8439d9
·
verified ·
1 Parent(s): 3f36202

Include updated package-lock.json (part 14)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. node_modules/@types/supercluster/LICENSE +21 -0
  2. node_modules/@types/supercluster/README.md +15 -0
  3. node_modules/@types/supercluster/index.d.ts +185 -0
  4. node_modules/@types/supercluster/package.json +32 -0
  5. node_modules/@types/supertest/LICENSE +21 -0
  6. node_modules/@types/supertest/README.md +15 -0
  7. node_modules/@types/supertest/index.d.ts +38 -0
  8. node_modules/@types/supertest/lib/agent.d.ts +152 -0
  9. node_modules/@types/supertest/lib/test.d.ts +22 -0
  10. node_modules/@types/supertest/package.json +39 -0
  11. node_modules/@types/supertest/types.d.ts +17 -0
  12. node_modules/@types/trusted-types/LICENSE +21 -0
  13. node_modules/@types/trusted-types/README.md +15 -0
  14. node_modules/@types/trusted-types/index.d.ts +53 -0
  15. node_modules/@types/trusted-types/lib/index.d.ts +64 -0
  16. node_modules/@types/trusted-types/package.json +45 -0
  17. node_modules/@types/unist/LICENSE +21 -0
  18. node_modules/@types/unist/README.md +15 -0
  19. node_modules/@types/unist/index.d.ts +119 -0
  20. node_modules/@types/unist/package.json +60 -0
  21. node_modules/@types/unzipper/LICENSE +21 -0
  22. node_modules/@types/unzipper/README.md +15 -0
  23. node_modules/@types/unzipper/index.d.ts +128 -0
  24. node_modules/@types/unzipper/package.json +38 -0
  25. node_modules/@types/uuid/LICENSE +21 -0
  26. node_modules/@types/uuid/README.md +15 -0
  27. node_modules/@types/uuid/index.d.mts +19 -0
  28. node_modules/@types/uuid/index.d.ts +113 -0
  29. node_modules/@types/uuid/package.json +54 -0
  30. node_modules/@types/ws/LICENSE +21 -0
  31. node_modules/@types/ws/README.md +15 -0
  32. node_modules/@types/ws/index.d.mts +451 -0
  33. node_modules/@types/ws/index.d.ts +445 -0
  34. node_modules/@types/ws/package.json +72 -0
  35. node_modules/@typescript-eslint/eslint-plugin/LICENSE +21 -0
  36. node_modules/@typescript-eslint/eslint-plugin/README.md +12 -0
  37. node_modules/@typescript-eslint/eslint-plugin/index.d.ts +13 -0
  38. node_modules/@typescript-eslint/eslint-plugin/package.json +126 -0
  39. node_modules/@typescript-eslint/eslint-plugin/raw-plugin.d.ts +25 -0
  40. node_modules/@typescript-eslint/eslint-plugin/rules.d.ts +87 -0
  41. node_modules/@typescript-eslint/parser/LICENSE +21 -0
  42. node_modules/@typescript-eslint/parser/README.md +12 -0
  43. node_modules/@typescript-eslint/parser/package.json +86 -0
  44. node_modules/@typescript-eslint/project-service/LICENSE +21 -0
  45. node_modules/@typescript-eslint/project-service/README.md +12 -0
  46. node_modules/@typescript-eslint/project-service/package.json +83 -0
  47. node_modules/@typescript-eslint/scope-manager/LICENSE +21 -0
  48. node_modules/@typescript-eslint/scope-manager/README.md +10 -0
  49. node_modules/@typescript-eslint/scope-manager/package.json +82 -0
  50. node_modules/@typescript-eslint/tsconfig-utils/LICENSE +21 -0
node_modules/@types/supercluster/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
node_modules/@types/supercluster/README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+ > `npm install --save @types/supercluster`
3
+
4
+ # Summary
5
+ This package contains type definitions for supercluster (https://github.com/mapbox/supercluster).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/supercluster.
9
+
10
+ ### Additional Details
11
+ * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
12
+ * Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson)
13
+
14
+ # Credits
15
+ These definitions were written by [Denis Carriere](https://github.com/DenisCarriere), and [Nick Zahn](https://github.com/Manc).
node_modules/@types/supercluster/index.d.ts ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as GeoJSON from "geojson";
2
+
3
+ export as namespace supercluster;
4
+
5
+ declare namespace Supercluster {
6
+ interface Options<P, C> {
7
+ /**
8
+ * Minimum zoom level at which clusters are generated.
9
+ *
10
+ * @default 0
11
+ */
12
+ minZoom?: number | undefined;
13
+
14
+ /**
15
+ * Maximum zoom level at which clusters are generated.
16
+ *
17
+ * @default 16
18
+ */
19
+ maxZoom?: number | undefined;
20
+
21
+ /**
22
+ * Minimum number of points to form a cluster.
23
+ *
24
+ * @default 2
25
+ */
26
+ minPoints?: number | undefined;
27
+
28
+ /**
29
+ * Cluster radius, in pixels.
30
+ *
31
+ * @default 40
32
+ */
33
+ radius?: number | undefined;
34
+
35
+ /**
36
+ * (Tiles) Tile extent. Radius is calculated relative to this value.
37
+ *
38
+ * @default 512
39
+ */
40
+ extent?: number | undefined;
41
+
42
+ /**
43
+ * Size of the KD-tree leaf node. Affects performance.
44
+ *
45
+ * @default 64
46
+ */
47
+ nodeSize?: number | undefined;
48
+
49
+ /**
50
+ * Whether timing info should be logged.
51
+ *
52
+ * @default false
53
+ */
54
+ log?: boolean | undefined;
55
+
56
+ /**
57
+ * Whether to generate ids for input features in vector tiles.
58
+ *
59
+ * @default false
60
+ */
61
+ generateId?: boolean | undefined;
62
+
63
+ /**
64
+ * A function that returns cluster properties corresponding to a single point.
65
+ *
66
+ * @example
67
+ * (props) => ({sum: props.myValue})
68
+ */
69
+ map?: ((props: P) => C) | undefined;
70
+
71
+ /**
72
+ * A reduce function that merges properties of two clusters into one.
73
+ *
74
+ * @example
75
+ * (accumulated, props) => { accumulated.sum += props.sum; }
76
+ */
77
+ reduce?: ((accumulated: C, props: Readonly<C>) => void) | undefined;
78
+ }
79
+
80
+ /**
81
+ * Default properties type, allowing any properties.
82
+ * Try to avoid this for better typesafety by using proper types.
83
+ */
84
+ interface AnyProps {
85
+ [name: string]: any;
86
+ }
87
+
88
+ /**
89
+ * [GeoJSON Feature](https://tools.ietf.org/html/rfc7946#section-3.2),
90
+ * with the geometry being a
91
+ * [GeoJSON Point](https://tools.ietf.org/html/rfc7946#section-3.1.2).
92
+ */
93
+ type PointFeature<P> = GeoJSON.Feature<GeoJSON.Point, P>;
94
+
95
+ interface ClusterProperties {
96
+ /**
97
+ * Always `true` to indicate that the Feature is a Cluster and not
98
+ * an individual point.
99
+ */
100
+ cluster: true;
101
+ /** Cluster ID */
102
+ cluster_id: number;
103
+ /** Number of points in the cluster. */
104
+ point_count: number;
105
+ /**
106
+ * Abbreviated number of points in the cluster as string if the number
107
+ * is 1000 or greater (e.g. `1.3k` if the number is 1298).
108
+ *
109
+ * For less than 1000 points it is the same value as `point_count`.
110
+ */
111
+ point_count_abbreviated: string | number;
112
+ }
113
+
114
+ type ClusterFeature<C> = PointFeature<ClusterProperties & C>;
115
+
116
+ interface TileFeature<C, P> {
117
+ type: 1;
118
+ geometry: Array<[number, number]>;
119
+ tags: (ClusterProperties & C) | P;
120
+ }
121
+
122
+ interface Tile<C, P> {
123
+ features: Array<TileFeature<C, P>>;
124
+ }
125
+ }
126
+
127
+ /**
128
+ * A very fast geospatial point clustering library for browsers and Node.
129
+ */
130
+ declare class Supercluster<
131
+ P extends GeoJSON.GeoJsonProperties = Supercluster.AnyProps,
132
+ C extends GeoJSON.GeoJsonProperties = Supercluster.AnyProps,
133
+ > {
134
+ constructor(options?: Supercluster.Options<P, C>);
135
+
136
+ /**
137
+ * Loads an array of GeoJSON Feature objects. Each feature's geometry
138
+ * must be a GeoJSON Point. Once loaded, index is immutable.
139
+ *
140
+ * @param points Array of GeoJSON Features, the geometries being GeoJSON Points.
141
+ */
142
+ load(points: Array<Supercluster.PointFeature<P>>): Supercluster<P, C>;
143
+
144
+ /**
145
+ * Returns an array of clusters and points as `GeoJSON.Feature` objects
146
+ * for the given bounding box (`bbox`) and zoom level (`zoom`).
147
+ *
148
+ * @param bbox Bounding box (`[westLng, southLat, eastLng, northLat]`).
149
+ * @param zoom Zoom level.
150
+ */
151
+ getClusters(bbox: GeoJSON.BBox, zoom: number): Array<Supercluster.ClusterFeature<C> | Supercluster.PointFeature<P>>;
152
+
153
+ /**
154
+ * For a given zoom and x/y coordinates, returns a
155
+ * [geojson-vt](https://github.com/mapbox/geojson-vt)-compatible JSON
156
+ * tile object with cluster any point features.
157
+ */
158
+ getTile(zoom: number, x: number, y: number): Supercluster.Tile<C, P> | null;
159
+
160
+ /**
161
+ * Returns the children of a cluster (on the next zoom level).
162
+ *
163
+ * @param clusterId Cluster ID (`cluster_id` value from feature properties).
164
+ * @throws {Error} If `clusterId` does not exist.
165
+ */
166
+ getChildren(clusterId: number): Array<Supercluster.ClusterFeature<C> | Supercluster.PointFeature<P>>;
167
+
168
+ /**
169
+ * Returns all the points of a cluster (with pagination support).
170
+ *
171
+ * @param clusterId Cluster ID (`cluster_id` value from feature properties).
172
+ * @param limit The number of points to return (set to `Infinity` for all points).
173
+ * @param offset The amount of points to skip (for pagination).
174
+ */
175
+ getLeaves(clusterId: number, limit?: number, offset?: number): Array<Supercluster.PointFeature<P>>;
176
+
177
+ /**
178
+ * Returns the zoom level on which the cluster expands into several
179
+ * children (useful for "click to zoom" feature).
180
+ *
181
+ * @param clusterId Cluster ID (`cluster_id` value from feature properties).
182
+ */
183
+ getClusterExpansionZoom(clusterId: number): number;
184
+ }
185
+ export = Supercluster;
node_modules/@types/supercluster/package.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@types/supercluster",
3
+ "version": "7.1.3",
4
+ "description": "TypeScript definitions for supercluster",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/supercluster",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "Denis Carriere",
10
+ "githubUsername": "DenisCarriere",
11
+ "url": "https://github.com/DenisCarriere"
12
+ },
13
+ {
14
+ "name": "Nick Zahn",
15
+ "githubUsername": "Manc",
16
+ "url": "https://github.com/Manc"
17
+ }
18
+ ],
19
+ "main": "",
20
+ "types": "index.d.ts",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
24
+ "directory": "types/supercluster"
25
+ },
26
+ "scripts": {},
27
+ "dependencies": {
28
+ "@types/geojson": "*"
29
+ },
30
+ "typesPublisherContentHash": "883fb7311fcd4f97d0f1472bc6b1c31899cd1888f8ba52ccc2a2e4022ca85d22",
31
+ "typeScriptVersion": "4.5"
32
+ }
node_modules/@types/supertest/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
node_modules/@types/supertest/README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+ > `npm install --save @types/supertest`
3
+
4
+ # Summary
5
+ This package contains type definitions for supertest (https://github.com/visionmedia/supertest).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/supertest.
9
+
10
+ ### Additional Details
11
+ * Last updated: Mon, 24 Mar 2025 14:36:45 GMT
12
+ * Dependencies: [@types/methods](https://npmjs.com/package/@types/methods), [@types/superagent](https://npmjs.com/package/@types/superagent)
13
+
14
+ # Credits
15
+ These definitions were written by [Alex Varju](https://github.com/varju), [Petteri Parkkila](https://github.com/pietu), and [David Tanner](https://github.com/DavidTanner).
node_modules/@types/supertest/index.d.ts ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import superagent = require("superagent");
2
+ import stAgent = require("./lib/agent");
3
+ import STest = require("./lib/test");
4
+ import { AgentOptions as STAgentOptions, App } from "./types";
5
+
6
+ declare const supertest: supertest.SuperTestStatic;
7
+
8
+ declare namespace supertest {
9
+ type Response = superagent.Response;
10
+
11
+ type Request = superagent.SuperAgentRequest;
12
+
13
+ type CallbackHandler = superagent.CallbackHandler;
14
+
15
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
16
+ interface Test extends STest {}
17
+
18
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
19
+ interface Agent extends stAgent {}
20
+
21
+ interface Options {
22
+ http2?: boolean;
23
+ }
24
+
25
+ type AgentOptions = STAgentOptions;
26
+
27
+ type SuperTest<Req extends Test = Test> = superagent.SuperAgent<Req>;
28
+
29
+ type SuperAgentTest = SuperTest<Test>;
30
+
31
+ interface SuperTestStatic {
32
+ (app: App, options?: STAgentOptions): stAgent;
33
+ Test: typeof STest;
34
+ agent: typeof stAgent & ((app?: App, options?: STAgentOptions) => InstanceType<typeof stAgent>);
35
+ }
36
+ }
37
+
38
+ export = supertest;
node_modules/@types/supertest/lib/agent.d.ts ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import superagent = require("superagent");
2
+ import { Test } from "../index";
3
+ import { AgentOptions, App } from "../types";
4
+
5
+ declare class TestAgent<Req extends Test = Test> extends superagent.agent<Req> {
6
+ constructor(
7
+ app?: App,
8
+ options?: AgentOptions,
9
+ );
10
+
11
+ host(host: string): this;
12
+
13
+ "M-SEARCH"(url: string): Req;
14
+
15
+ "m-search"(url: string): Req;
16
+
17
+ ACL(url: string): Req;
18
+
19
+ BIND(url: string): Req;
20
+
21
+ CHECKOUT(url: string): Req;
22
+
23
+ CONNECT(url: string): Req;
24
+
25
+ COPY(url: string): Req;
26
+
27
+ DELETE(url: string): Req;
28
+
29
+ GET(url: string): Req;
30
+
31
+ HEAD(url: string): Req;
32
+
33
+ LINK(url: string): Req;
34
+
35
+ LOCK(url: string): Req;
36
+
37
+ MERGE(url: string): Req;
38
+
39
+ MKACTIVITY(url: string): Req;
40
+
41
+ MKCALENDAR(url: string): Req;
42
+
43
+ MKCOL(url: string): Req;
44
+
45
+ MOVE(url: string): Req;
46
+
47
+ NOTIFY(url: string): Req;
48
+
49
+ OPTIONS(url: string): Req;
50
+
51
+ PATCH(url: string): Req;
52
+
53
+ POST(url: string): Req;
54
+
55
+ PROPFIND(url: string): Req;
56
+
57
+ PROPPATCH(url: string): Req;
58
+
59
+ PURGE(url: string): Req;
60
+
61
+ PUT(url: string): Req;
62
+
63
+ REBIND(url: string): Req;
64
+
65
+ REPORT(url: string): Req;
66
+
67
+ SEARCH(url: string): Req;
68
+
69
+ SOURCE(url: string): Req;
70
+
71
+ SUBSCRIBE(url: string): Req;
72
+
73
+ TRACE(url: string): Req;
74
+
75
+ UNBIND(url: string): Req;
76
+
77
+ UNLINK(url: string): Req;
78
+
79
+ UNLOCK(url: string): Req;
80
+
81
+ UNSUBSCRIBE(url: string): Req;
82
+
83
+ acl(url: string): Req;
84
+
85
+ bind(url: string): Req;
86
+
87
+ checkout(url: string): Req;
88
+
89
+ connect(url: string): Req;
90
+
91
+ copy(url: string): Req;
92
+
93
+ del(url: string): Req;
94
+
95
+ delete(url: string): Req;
96
+
97
+ get(url: string): Req;
98
+
99
+ head(url: string): Req;
100
+
101
+ link(url: string): Req;
102
+
103
+ lock(url: string): Req;
104
+
105
+ merge(url: string): Req;
106
+
107
+ mkactivity(url: string): Req;
108
+
109
+ mkcalendar(url: string): Req;
110
+
111
+ mkcol(url: string): Req;
112
+
113
+ move(url: string): Req;
114
+
115
+ notify(url: string): Req;
116
+
117
+ options(url: string): Req;
118
+
119
+ patch(url: string): Req;
120
+
121
+ post(url: string): Req;
122
+
123
+ propfind(url: string): Req;
124
+
125
+ proppatch(url: string): Req;
126
+
127
+ purge(url: string): Req;
128
+
129
+ put(url: string): Req;
130
+
131
+ rebind(url: string): Req;
132
+
133
+ report(url: string): Req;
134
+
135
+ search(url: string): Req;
136
+
137
+ source(url: string): Req;
138
+
139
+ subscribe(url: string): Req;
140
+
141
+ trace(url: string): Req;
142
+
143
+ unbind(url: string): Req;
144
+
145
+ unlink(url: string): Req;
146
+
147
+ unlock(url: string): Req;
148
+
149
+ unsubscribe(url: string): Req;
150
+ }
151
+
152
+ export = TestAgent;
node_modules/@types/supertest/lib/test.d.ts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { CallbackHandler, Request, Response } from "superagent";
2
+ import { App } from "../types";
3
+
4
+ declare class Test extends Request {
5
+ constructor(app: App, method: string, path: string);
6
+ app: App;
7
+ url: string;
8
+
9
+ serverAddress(app: App, path: string): string;
10
+
11
+ expect(status: number, callback?: CallbackHandler): this;
12
+ expect(status: number, body: any, callback?: CallbackHandler): this;
13
+ expect(checker: (res: Response) => any, callback?: CallbackHandler): this;
14
+ expect(body: string, callback?: CallbackHandler): this;
15
+ expect(body: RegExp, callback?: CallbackHandler): this;
16
+ expect(body: object, callback?: CallbackHandler): this;
17
+ expect(field: string, val: string, callback?: CallbackHandler): this;
18
+ expect(field: string, val: RegExp, callback?: CallbackHandler): this;
19
+ end(callback?: CallbackHandler): this;
20
+ }
21
+
22
+ export = Test;
node_modules/@types/supertest/package.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@types/supertest",
3
+ "version": "6.0.3",
4
+ "description": "TypeScript definitions for supertest",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/supertest",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "Alex Varju",
10
+ "githubUsername": "varju",
11
+ "url": "https://github.com/varju"
12
+ },
13
+ {
14
+ "name": "Petteri Parkkila",
15
+ "githubUsername": "pietu",
16
+ "url": "https://github.com/pietu"
17
+ },
18
+ {
19
+ "name": "David Tanner",
20
+ "githubUsername": "DavidTanner",
21
+ "url": "https://github.com/DavidTanner"
22
+ }
23
+ ],
24
+ "main": "",
25
+ "types": "index.d.ts",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
29
+ "directory": "types/supertest"
30
+ },
31
+ "scripts": {},
32
+ "dependencies": {
33
+ "@types/methods": "^1.1.4",
34
+ "@types/superagent": "^8.1.0"
35
+ },
36
+ "peerDependencies": {},
37
+ "typesPublisherContentHash": "af2a0cb3057b367259b4ef29c5307e259132de91fa0cd17d5d2910051690bdc4",
38
+ "typeScriptVersion": "5.0"
39
+ }
node_modules/@types/supertest/types.d.ts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { AgentOptions as SAgentOptions } from "superagent";
2
+ import methods = require("methods");
3
+ import { IncomingMessage, RequestListener, ServerResponse } from "http";
4
+ import { Http2ServerRequest, Http2ServerResponse } from "http2";
5
+ import { Server } from "net";
6
+
7
+ export type App =
8
+ | Server
9
+ | RequestListener<typeof IncomingMessage, typeof ServerResponse>
10
+ | ((request: Http2ServerRequest, response: Http2ServerResponse) => void | Promise<void>)
11
+ | string;
12
+
13
+ export interface AgentOptions extends SAgentOptions {
14
+ http2?: boolean;
15
+ }
16
+
17
+ export type AllMethods = typeof methods[number] | "del";
node_modules/@types/trusted-types/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
node_modules/@types/trusted-types/README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+ > `npm install --save @types/trusted-types`
3
+
4
+ # Summary
5
+ This package contains type definitions for trusted-types (https://github.com/WICG/trusted-types).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trusted-types.
9
+
10
+ ### Additional Details
11
+ * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
12
+ * Dependencies: none
13
+
14
+ # Credits
15
+ These definitions were written by [Jakub Vrana](https://github.com/vrana), [Damien Engels](https://github.com/engelsdamien), [Emanuel Tesar](https://github.com/siegrift), [Bjarki](https://github.com/bjarkler), and [Sebastian Silbermann](https://github.com/eps1lon).
node_modules/@types/trusted-types/index.d.ts ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as lib from "./lib";
2
+
3
+ // Re-export the type definitions globally.
4
+ declare global {
5
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface -- interface to allow module augmentation
6
+ interface TrustedHTML extends lib.TrustedHTML {}
7
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface -- interface to allow module augmentation
8
+ interface TrustedScript extends lib.TrustedScript {}
9
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface -- interface to allow module augmentation
10
+ interface TrustedScriptURL extends lib.TrustedScriptURL {}
11
+
12
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface -- interface to allow module augmentation
13
+ interface TrustedTypePolicy extends lib.TrustedTypePolicy {}
14
+
15
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface -- interface to allow module augmentation
16
+ interface TrustedTypePolicyFactory extends lib.TrustedTypePolicyFactory {}
17
+
18
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface -- interface to allow module augmentation
19
+ interface TrustedTypePolicyOptions extends lib.TrustedTypePolicyOptions {}
20
+
21
+ // Attach the relevant Trusted Types properties to the Window object.
22
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface -- interface to allow module augmentation
23
+ interface Window extends lib.TrustedTypesWindow {}
24
+ }
25
+
26
+ // These are the available exports when using the polyfill as npm package (e.g. in nodejs)
27
+ interface InternalTrustedTypePolicyFactory extends lib.TrustedTypePolicyFactory {
28
+ TrustedHTML: typeof lib.TrustedHTML;
29
+ TrustedScript: typeof lib.TrustedScript;
30
+ TrustedScriptURL: typeof lib.TrustedScriptURL;
31
+ }
32
+
33
+ declare const trustedTypes: InternalTrustedTypePolicyFactory;
34
+
35
+ declare class TrustedTypesEnforcer {
36
+ constructor(config: TrustedTypeConfig);
37
+ install: () => void;
38
+ uninstall: () => void;
39
+ }
40
+
41
+ // tslint:disable-next-line no-unnecessary-class
42
+ declare class TrustedTypeConfig {
43
+ constructor(
44
+ isLoggingEnabled: boolean,
45
+ isEnforcementEnabled: boolean,
46
+ allowedPolicyNames: string[],
47
+ allowDuplicates: boolean,
48
+ cspString?: string | null,
49
+ windowObject?: Window,
50
+ );
51
+ }
52
+
53
+ export { TrustedTypeConfig, TrustedTypePolicy, TrustedTypePolicyFactory, trustedTypes, TrustedTypesEnforcer };
node_modules/@types/trusted-types/lib/index.d.ts ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // The main type definitions. Packages that do not want to pollute the global
2
+ // scope with Trusted Types (e.g. libraries whose users may not be using Trusted
3
+ // Types) can import the types directly from 'trusted-types/lib'.
4
+
5
+ export type FnNames = keyof TrustedTypePolicyOptions;
6
+ export type Args<Options extends TrustedTypePolicyOptions, K extends FnNames> = Parameters<NonNullable<Options[K]>>;
7
+
8
+ export class TrustedHTML {
9
+ private constructor(); // To prevent instantiting with 'new'.
10
+ private brand: true; // To prevent structural typing.
11
+ }
12
+
13
+ export class TrustedScript {
14
+ private constructor(); // To prevent instantiting with 'new'.
15
+ private brand: true; // To prevent structural typing.
16
+ }
17
+
18
+ export class TrustedScriptURL {
19
+ private constructor(); // To prevent instantiting with 'new'.
20
+ private brand: true; // To prevent structural typing.
21
+ }
22
+
23
+ export abstract class TrustedTypePolicyFactory {
24
+ createPolicy<Options extends TrustedTypePolicyOptions>(
25
+ policyName: string,
26
+ policyOptions?: Options,
27
+ ): Pick<TrustedTypePolicy<Options>, "name" | Extract<keyof Options, FnNames>>;
28
+ isHTML(value: unknown): value is TrustedHTML;
29
+ isScript(value: unknown): value is TrustedScript;
30
+ isScriptURL(value: unknown): value is TrustedScriptURL;
31
+ readonly emptyHTML: TrustedHTML;
32
+ readonly emptyScript: TrustedScript;
33
+ getAttributeType(tagName: string, attribute: string, elementNs?: string, attrNs?: string): string | null;
34
+ getPropertyType(tagName: string, property: string, elementNs?: string): string | null;
35
+ readonly defaultPolicy: TrustedTypePolicy | null;
36
+ }
37
+
38
+ export abstract class TrustedTypePolicy<Options extends TrustedTypePolicyOptions = TrustedTypePolicyOptions> {
39
+ readonly name: string;
40
+ createHTML(...args: Args<Options, "createHTML">): TrustedHTML;
41
+ createScript(...args: Args<Options, "createScript">): TrustedScript;
42
+ createScriptURL(...args: Args<Options, "createScriptURL">): TrustedScriptURL;
43
+ }
44
+
45
+ export interface TrustedTypePolicyOptions {
46
+ createHTML?: ((input: string, ...arguments: any[]) => string) | undefined;
47
+ createScript?: ((input: string, ...arguments: any[]) => string) | undefined;
48
+ createScriptURL?: ((input: string, ...arguments: any[]) => string) | undefined;
49
+ }
50
+
51
+ // The Window object is augmented with the following properties in browsers that
52
+ // support Trusted Types. Users of the 'trusted-types/lib' entrypoint can cast
53
+ // window as TrustedTypesWindow to access these properties.
54
+ export interface TrustedTypesWindow {
55
+ // `trustedTypes` is left intentionally optional to make sure that
56
+ // people handle the case when their code is running in a browser not
57
+ // supporting trustedTypes.
58
+ trustedTypes?: TrustedTypePolicyFactory | undefined;
59
+ TrustedHTML: typeof TrustedHTML;
60
+ TrustedScript: typeof TrustedScript;
61
+ TrustedScriptURL: typeof TrustedScriptURL;
62
+ TrustedTypePolicyFactory: typeof TrustedTypePolicyFactory;
63
+ TrustedTypePolicy: typeof TrustedTypePolicy;
64
+ }
node_modules/@types/trusted-types/package.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@types/trusted-types",
3
+ "version": "2.0.7",
4
+ "description": "TypeScript definitions for trusted-types",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trusted-types",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "Jakub Vrana",
10
+ "githubUsername": "vrana",
11
+ "url": "https://github.com/vrana"
12
+ },
13
+ {
14
+ "name": "Damien Engels",
15
+ "githubUsername": "engelsdamien",
16
+ "url": "https://github.com/engelsdamien"
17
+ },
18
+ {
19
+ "name": "Emanuel Tesar",
20
+ "githubUsername": "siegrift",
21
+ "url": "https://github.com/siegrift"
22
+ },
23
+ {
24
+ "name": "Bjarki",
25
+ "githubUsername": "bjarkler",
26
+ "url": "https://github.com/bjarkler"
27
+ },
28
+ {
29
+ "name": "Sebastian Silbermann",
30
+ "githubUsername": "eps1lon",
31
+ "url": "https://github.com/eps1lon"
32
+ }
33
+ ],
34
+ "main": "",
35
+ "types": "index.d.ts",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
39
+ "directory": "types/trusted-types"
40
+ },
41
+ "scripts": {},
42
+ "dependencies": {},
43
+ "typesPublisherContentHash": "20982c5e0452e662515e29b41f7be5a3c69e5918a9228929a563d9f1dfdfbbc5",
44
+ "typeScriptVersion": "4.5"
45
+ }
node_modules/@types/unist/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
node_modules/@types/unist/README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+ > `npm install --save @types/unist`
3
+
4
+ # Summary
5
+ This package contains type definitions for unist (https://github.com/syntax-tree/unist).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unist.
9
+
10
+ ### Additional Details
11
+ * Last updated: Thu, 15 Aug 2024 02:18:53 GMT
12
+ * Dependencies: none
13
+
14
+ # Credits
15
+ These definitions were written by [bizen241](https://github.com/bizen241), [Jun Lu](https://github.com/lujun2), [Hernan Rajchert](https://github.com/hrajchert), [Titus Wormer](https://github.com/wooorm), [Junyoung Choi](https://github.com/rokt33r), [Ben Moon](https://github.com/GuiltyDolphin), [JounQin](https://github.com/JounQin), and [Remco Haszing](https://github.com/remcohaszing).
node_modules/@types/unist/index.d.ts ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // ## Interfaces
2
+
3
+ /**
4
+ * Info associated with nodes by the ecosystem.
5
+ *
6
+ * This space is guaranteed to never be specified by unist or specifications
7
+ * implementing unist.
8
+ * But you can use it in utilities and plugins to store data.
9
+ *
10
+ * This type can be augmented to register custom data.
11
+ * For example:
12
+ *
13
+ * ```ts
14
+ * declare module 'unist' {
15
+ * interface Data {
16
+ * // `someNode.data.myId` is typed as `number | undefined`
17
+ * myId?: number | undefined
18
+ * }
19
+ * }
20
+ * ```
21
+ */
22
+ export interface Data {}
23
+
24
+ /**
25
+ * One place in a source file.
26
+ */
27
+ export interface Point {
28
+ /**
29
+ * Line in a source file (1-indexed integer).
30
+ */
31
+ line: number;
32
+
33
+ /**
34
+ * Column in a source file (1-indexed integer).
35
+ */
36
+ column: number;
37
+ /**
38
+ * Character in a source file (0-indexed integer).
39
+ */
40
+ offset?: number | undefined;
41
+ }
42
+
43
+ /**
44
+ * Position of a node in a source document.
45
+ *
46
+ * A position is a range between two points.
47
+ */
48
+ export interface Position {
49
+ /**
50
+ * Place of the first character of the parsed source region.
51
+ */
52
+ start: Point;
53
+
54
+ /**
55
+ * Place of the first character after the parsed source region.
56
+ */
57
+ end: Point;
58
+ }
59
+
60
+ // ## Abstract nodes
61
+
62
+ /**
63
+ * Abstract unist node that contains the smallest possible value.
64
+ *
65
+ * This interface is supposed to be extended.
66
+ *
67
+ * For example, in HTML, a `text` node is a leaf that contains text.
68
+ */
69
+ export interface Literal extends Node {
70
+ /**
71
+ * Plain value.
72
+ */
73
+ value: unknown;
74
+ }
75
+
76
+ /**
77
+ * Abstract unist node.
78
+ *
79
+ * The syntactic unit in unist syntax trees are called nodes.
80
+ *
81
+ * This interface is supposed to be extended.
82
+ * If you can use {@link Literal} or {@link Parent}, you should.
83
+ * But for example in markdown, a `thematicBreak` (`***`), is neither literal
84
+ * nor parent, but still a node.
85
+ */
86
+ export interface Node {
87
+ /**
88
+ * Node type.
89
+ */
90
+ type: string;
91
+
92
+ /**
93
+ * Info from the ecosystem.
94
+ */
95
+ data?: Data | undefined;
96
+
97
+ /**
98
+ * Position of a node in a source document.
99
+ *
100
+ * Nodes that are generated (not in the original source document) must not
101
+ * have a position.
102
+ */
103
+ position?: Position | undefined;
104
+ }
105
+
106
+ /**
107
+ * Abstract unist node that contains other nodes (*children*).
108
+ *
109
+ * This interface is supposed to be extended.
110
+ *
111
+ * For example, in XML, an element is a parent of different things, such as
112
+ * comments, text, and further elements.
113
+ */
114
+ export interface Parent extends Node {
115
+ /**
116
+ * List of children.
117
+ */
118
+ children: Node[];
119
+ }
node_modules/@types/unist/package.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@types/unist",
3
+ "version": "3.0.3",
4
+ "description": "TypeScript definitions for unist",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unist",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "bizen241",
10
+ "githubUsername": "bizen241",
11
+ "url": "https://github.com/bizen241"
12
+ },
13
+ {
14
+ "name": "Jun Lu",
15
+ "githubUsername": "lujun2",
16
+ "url": "https://github.com/lujun2"
17
+ },
18
+ {
19
+ "name": "Hernan Rajchert",
20
+ "githubUsername": "hrajchert",
21
+ "url": "https://github.com/hrajchert"
22
+ },
23
+ {
24
+ "name": "Titus Wormer",
25
+ "githubUsername": "wooorm",
26
+ "url": "https://github.com/wooorm"
27
+ },
28
+ {
29
+ "name": "Junyoung Choi",
30
+ "githubUsername": "rokt33r",
31
+ "url": "https://github.com/rokt33r"
32
+ },
33
+ {
34
+ "name": "Ben Moon",
35
+ "githubUsername": "GuiltyDolphin",
36
+ "url": "https://github.com/GuiltyDolphin"
37
+ },
38
+ {
39
+ "name": "JounQin",
40
+ "githubUsername": "JounQin",
41
+ "url": "https://github.com/JounQin"
42
+ },
43
+ {
44
+ "name": "Remco Haszing",
45
+ "githubUsername": "remcohaszing",
46
+ "url": "https://github.com/remcohaszing"
47
+ }
48
+ ],
49
+ "main": "",
50
+ "types": "index.d.ts",
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
54
+ "directory": "types/unist"
55
+ },
56
+ "scripts": {},
57
+ "dependencies": {},
58
+ "typesPublisherContentHash": "7f3d5ce8d56003f3583a5317f98d444bdc99910c7b486c6b10af4f38694e61fe",
59
+ "typeScriptVersion": "4.8"
60
+ }
node_modules/@types/unzipper/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
node_modules/@types/unzipper/README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+ > `npm install --save @types/unzipper`
3
+
4
+ # Summary
5
+ This package contains type definitions for unzipper (https://github.com/ZJONSSON/node-unzipper#readme).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unzipper.
9
+
10
+ ### Additional Details
11
+ * Last updated: Fri, 28 Feb 2025 17:33:47 GMT
12
+ * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
13
+
14
+ # Credits
15
+ These definitions were written by [s73obrien](https://github.com/s73obrien), [Bart](https://github.com/bartje321), and [Ken Human](https://github.com/kenhuman).
node_modules/@types/unzipper/index.d.ts ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /// <reference types="node" />
2
+
3
+ import { ClientRequest, RequestOptions } from "http";
4
+ import { Duplex, PassThrough, Readable, Stream, Transform } from "stream";
5
+
6
+ export interface PullStream extends Duplex {
7
+ stream(eof: number | string, includeEof: boolean): PassThrough;
8
+ pull(eof: number | string, includeEof: boolean): Promise<Buffer>;
9
+ }
10
+
11
+ export interface Entry extends PassThrough {
12
+ autodrain(): Transform & {
13
+ promise(): Promise<void>;
14
+ };
15
+ buffer(): Promise<Buffer>;
16
+ path: string;
17
+
18
+ props: {
19
+ path: string;
20
+ };
21
+
22
+ type: string;
23
+ vars: {
24
+ signature?: number | undefined;
25
+ versionsNeededToExtract: number;
26
+ flags: number;
27
+ compressionMethod: number;
28
+ lastModifiedTime: number;
29
+ crc32: number;
30
+ compressedSize: number;
31
+ fileNameLength: number;
32
+ extraFieldLength: number;
33
+ };
34
+
35
+ extra: {
36
+ signature: number;
37
+ partsize: number;
38
+ uncompressedSize: number;
39
+ compressedSize: number;
40
+ offset: number;
41
+ disknum: number;
42
+ };
43
+ }
44
+
45
+ export function unzip(
46
+ source: {
47
+ stream: Readable;
48
+ size: () => Promise<number>;
49
+ },
50
+ offset: number,
51
+ _password: string,
52
+ ): Entry;
53
+
54
+ export namespace Open {
55
+ function buffer(data: Buffer): Promise<CentralDirectory>;
56
+ function file(filename: string): Promise<CentralDirectory>;
57
+ function url(
58
+ request: ClientRequest,
59
+ opt: string | RequestOptions,
60
+ ): Promise<CentralDirectory>;
61
+ function s3(client: any, params: any): Promise<CentralDirectory>;
62
+ function s3_v3(client: any, params: any): Promise<CentralDirectory>;
63
+ function custom(
64
+ source: {
65
+ size: () => Promise<number>;
66
+ stream: (offset: number, length: number) => Readable;
67
+ },
68
+ ): Promise<CentralDirectory>;
69
+ }
70
+
71
+ export function BufferStream(entry: Entry): Promise<Buffer>;
72
+
73
+ export interface CentralDirectory {
74
+ signature: number;
75
+ diskNumber: number;
76
+ diskStart: number;
77
+ numberOfRecordsOnDisk: number;
78
+ numberOfRecords: number;
79
+ sizeOfCentralDirectory: number;
80
+ offsetToStartOfCentralDirectory: number;
81
+ commentLength: number;
82
+ files: File[];
83
+ extract: (opts: ParseOptions) => Promise<void>;
84
+ }
85
+
86
+ export interface File {
87
+ signature: number;
88
+ versionMadeBy: number;
89
+ versionsNeededToExtract: number;
90
+ flags: number;
91
+ compressionMethod: number;
92
+ lastModifiedTime: number;
93
+ lastModifiedDate: number;
94
+ lastModifiedDateTime: Date;
95
+ crc32: number;
96
+ compressedSize: number;
97
+ uncompressedSize: number;
98
+ fileNameLength: number;
99
+ extraFieldLength: number;
100
+ fileCommentLength: number;
101
+ diskNumber: number;
102
+ internalFileAttributes: number;
103
+ externalFileAttributes: number;
104
+ offsetToLocalFileHeader: number;
105
+ pathBuffer: Buffer;
106
+ path: string;
107
+ isUnicode: number;
108
+ extra: any;
109
+ type: "Directory" | "File";
110
+ comment: string;
111
+ stream: (password?: string) => Entry;
112
+ buffer: (password?: string) => Promise<Buffer>;
113
+ }
114
+
115
+ export interface ParseOptions {
116
+ verbose?: boolean | undefined;
117
+ path?: string | undefined;
118
+ concurrency?: number | undefined;
119
+ forceStream?: boolean | undefined;
120
+ }
121
+
122
+ export type ParseStream = PullStream & {
123
+ promise(): Promise<void>;
124
+ };
125
+
126
+ export function Parse(opts?: ParseOptions): ParseStream;
127
+ export function ParseOne(match?: RegExp, opts?: ParseOptions): Duplex;
128
+ export function Extract(opts?: ParseOptions): ParseStream;
node_modules/@types/unzipper/package.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@types/unzipper",
3
+ "version": "0.10.11",
4
+ "description": "TypeScript definitions for unzipper",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unzipper",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "s73obrien",
10
+ "githubUsername": "s73obrien",
11
+ "url": "https://github.com/s73obrien"
12
+ },
13
+ {
14
+ "name": "Bart",
15
+ "githubUsername": "bartje321",
16
+ "url": "https://github.com/bartje321"
17
+ },
18
+ {
19
+ "name": "Ken Human",
20
+ "githubUsername": "kenhuman",
21
+ "url": "https://github.com/kenhuman"
22
+ }
23
+ ],
24
+ "main": "",
25
+ "types": "index.d.ts",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
29
+ "directory": "types/unzipper"
30
+ },
31
+ "scripts": {},
32
+ "dependencies": {
33
+ "@types/node": "*"
34
+ },
35
+ "peerDependencies": {},
36
+ "typesPublisherContentHash": "7412f33ee3fbe532f1ae06c8958ef493820d6cde131f124c0e0484f57b3fb6e0",
37
+ "typeScriptVersion": "5.0"
38
+ }
node_modules/@types/uuid/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
node_modules/@types/uuid/README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+ > `npm install --save @types/uuid`
3
+
4
+ # Summary
5
+ This package contains type definitions for uuid (https://github.com/uuidjs/uuid).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid.
9
+
10
+ ### Additional Details
11
+ * Last updated: Thu, 20 Jun 2024 21:07:25 GMT
12
+ * Dependencies: none
13
+
14
+ # Credits
15
+ These definitions were written by [Oliver Hoffmann](https://github.com/iamolivinius), [Felipe Ochoa](https://github.com/felipeochoa), [Chris Barth](https://github.com/cjbarth), [Linus Unnebäck](https://github.com/LinusU), and [Christoph Tavan](https://github.com/ctavan).
node_modules/@types/uuid/index.d.mts ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import uuid from "./index.js";
2
+ export import v1 = uuid.v1;
3
+ export import v1ToV6 = uuid.v1ToV6;
4
+ export import v3 = uuid.v3;
5
+ export import v4 = uuid.v4;
6
+ export import v5 = uuid.v5;
7
+ export import v6 = uuid.v6;
8
+ export import v6ToV1 = uuid.v6ToV1;
9
+ export import v7 = uuid.v7;
10
+ export import NIL = uuid.NIL;
11
+ export import MAX = uuid.MAX;
12
+ export import version = uuid.version;
13
+ export import validate = uuid.validate;
14
+ export import stringify = uuid.stringify;
15
+ export import parse = uuid.parse;
16
+ export import V1Options = uuid.V1Options;
17
+ export import V4Options = uuid.V4Options;
18
+ export import V6Options = uuid.V6Options;
19
+ export import V7Options = uuid.V7Options;
node_modules/@types/uuid/index.d.ts ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // disable automatic export
2
+ export {};
3
+
4
+ // Uses ArrayLike to admit Uint8 and co.
5
+ type OutputBuffer = ArrayLike<number>;
6
+ type InputBuffer = ArrayLike<number>;
7
+
8
+ interface RandomOptions {
9
+ /** `Array` of 16 random bytes (0-255) */
10
+ random?: InputBuffer | undefined;
11
+ }
12
+ interface RngOptions {
13
+ /** Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) */
14
+ rng?: (() => InputBuffer) | undefined;
15
+ }
16
+
17
+ interface V1BaseOptions {
18
+ /** RFC "node" field as an `Array[6]` of byte values (per 4.1.6) */
19
+ node?: InputBuffer | undefined;
20
+ /** RFC "clock sequence" as a `Number` between 0 - 0x3fff */
21
+ clockseq?: number | undefined;
22
+ /** RFC "timestamp" field (`Number` of milliseconds, unix epoch) */
23
+ msecs?: number | Date | undefined;
24
+ /** RFC "timestamp" field (`Number` of nanoseconds to add to msecs, should be 0-10,000) */
25
+ nsecs?: number | undefined;
26
+ }
27
+ interface V1RandomOptions extends V1BaseOptions, RandomOptions {}
28
+ interface V1RngOptions extends V1BaseOptions, RngOptions {}
29
+
30
+ export type V1Options = V1RandomOptions | V1RngOptions;
31
+ export type V4Options = RandomOptions | RngOptions;
32
+ export type V6Options = V1Options;
33
+
34
+ interface V7BaseOptions {
35
+ msecs?: number | Date | undefined;
36
+ seq?: number;
37
+ }
38
+ export type V7Options = (RandomOptions | RngOptions) & V7BaseOptions;
39
+
40
+ type VToV = ((uuid: string) => string) & ((uuid: OutputBuffer) => Uint8Array);
41
+
42
+ type v1String = (options?: V1Options) => string;
43
+ type v1Buffer = <T extends OutputBuffer>(options: V1Options | null | undefined, buffer: T, offset?: number) => T;
44
+ type v1 = v1Buffer & v1String;
45
+
46
+ type v1ToV6 = VToV;
47
+
48
+ type v4String = (options?: V4Options) => string;
49
+ type v4Buffer = <T extends OutputBuffer>(options: V4Options | null | undefined, buffer: T, offset?: number) => T;
50
+ type v4 = v4Buffer & v4String;
51
+
52
+ type v3String = (name: string | InputBuffer, namespace: string | InputBuffer) => string;
53
+ type v3Buffer = <T extends OutputBuffer>(
54
+ name: string | InputBuffer,
55
+ namespace: string | InputBuffer,
56
+ buffer: T,
57
+ offset?: number,
58
+ ) => T;
59
+ interface v3Static {
60
+ // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L16
61
+ DNS: string;
62
+ // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L17
63
+ URL: string;
64
+ }
65
+ type v3 = v3Buffer & v3String & v3Static;
66
+
67
+ type v5String = (name: string | InputBuffer, namespace: string | InputBuffer) => string;
68
+ type v5Buffer = <T extends OutputBuffer>(
69
+ name: string | InputBuffer,
70
+ namespace: string | InputBuffer,
71
+ buffer: T,
72
+ offset?: number,
73
+ ) => T;
74
+ interface v5Static {
75
+ // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L16
76
+ DNS: string;
77
+ // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L17
78
+ URL: string;
79
+ }
80
+ type v5 = v5Buffer & v5String & v5Static;
81
+
82
+ type v6String = (options?: V6Options) => string;
83
+ type v6Buffer = <T extends OutputBuffer>(options: V6Options | null | undefined, buffer: T, offset?: number) => T;
84
+ type v6 = v6Buffer & v6String;
85
+
86
+ type v6ToV1 = VToV;
87
+
88
+ type v7String = (options?: V7Options) => string;
89
+ type v7Buffer = <T extends OutputBuffer>(options: V7Options | null | undefined, buffer: T, offset?: number) => T;
90
+ type v7 = v7Buffer & v7String;
91
+
92
+ type NIL = string;
93
+ type MAX = string;
94
+
95
+ type parse = (uuid: string) => Uint8Array;
96
+ type stringify = (buffer: InputBuffer, offset?: number) => string;
97
+ type validate = (uuid: string) => boolean;
98
+ type version = (uuid: string) => number;
99
+
100
+ export const NIL: NIL;
101
+ export const MAX: MAX;
102
+ export const parse: parse;
103
+ export const stringify: stringify;
104
+ export const v1: v1;
105
+ export const v1ToV6: v1ToV6;
106
+ export const v3: v3;
107
+ export const v4: v4;
108
+ export const v5: v5;
109
+ export const v6: v6;
110
+ export const v6ToV1: v6ToV1;
111
+ export const v7: v7;
112
+ export const validate: validate;
113
+ export const version: version;
node_modules/@types/uuid/package.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@types/uuid",
3
+ "version": "10.0.0",
4
+ "description": "TypeScript definitions for uuid",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "Oliver Hoffmann",
10
+ "githubUsername": "iamolivinius",
11
+ "url": "https://github.com/iamolivinius"
12
+ },
13
+ {
14
+ "name": "Felipe Ochoa",
15
+ "githubUsername": "felipeochoa",
16
+ "url": "https://github.com/felipeochoa"
17
+ },
18
+ {
19
+ "name": "Chris Barth",
20
+ "githubUsername": "cjbarth",
21
+ "url": "https://github.com/cjbarth"
22
+ },
23
+ {
24
+ "name": "Linus Unnebäck",
25
+ "githubUsername": "LinusU",
26
+ "url": "https://github.com/LinusU"
27
+ },
28
+ {
29
+ "name": "Christoph Tavan",
30
+ "githubUsername": "ctavan",
31
+ "url": "https://github.com/ctavan"
32
+ }
33
+ ],
34
+ "main": "",
35
+ "types": "index.d.ts",
36
+ "exports": {
37
+ "./package.json": "./package.json",
38
+ ".": {
39
+ "types": {
40
+ "import": "./index.d.mts",
41
+ "default": "./index.d.ts"
42
+ }
43
+ }
44
+ },
45
+ "repository": {
46
+ "type": "git",
47
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
48
+ "directory": "types/uuid"
49
+ },
50
+ "scripts": {},
51
+ "dependencies": {},
52
+ "typesPublisherContentHash": "08fbc5ff7d23aaac1e81b5acf98181d2544ce6ffd5578e9879e2a75f0c087d54",
53
+ "typeScriptVersion": "4.7"
54
+ }
node_modules/@types/ws/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
node_modules/@types/ws/README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+ > `npm install --save @types/ws`
3
+
4
+ # Summary
5
+ This package contains type definitions for ws (https://github.com/websockets/ws).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ws.
9
+
10
+ ### Additional Details
11
+ * Last updated: Tue, 01 Apr 2025 02:59:53 GMT
12
+ * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
13
+
14
+ # Credits
15
+ These definitions were written by [Paul Loyd](https://github.com/loyd), [Margus Lamp](https://github.com/mlamp), [Philippe D'Alva](https://github.com/TitaneBoy), [reduckted](https://github.com/reduckted), [teidesu](https://github.com/teidesu), [Bartosz Wojtkowiak](https://github.com/wojtkowiak), [Kyle Hensel](https://github.com/k-yle), and [Samuel Skeen](https://github.com/cwadrupldijjit).
node_modules/@types/ws/index.d.mts ADDED
@@ -0,0 +1,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /// <reference types="node" />
2
+
3
+ import { EventEmitter } from "events";
4
+ import {
5
+ Agent,
6
+ ClientRequest,
7
+ ClientRequestArgs,
8
+ IncomingMessage,
9
+ OutgoingHttpHeaders,
10
+ Server as HTTPServer,
11
+ } from "http";
12
+ import { Server as HTTPSServer } from "https";
13
+ import { createConnection } from "net";
14
+ import { Duplex, DuplexOptions } from "stream";
15
+ import { SecureContextOptions } from "tls";
16
+ import { URL } from "url";
17
+ import { ZlibOptions } from "zlib";
18
+
19
+ // can not get all overload of BufferConstructor['from'], need to copy all it's first arguments here
20
+ // https://github.com/microsoft/TypeScript/issues/32164
21
+ type BufferLike =
22
+ | string
23
+ | Buffer
24
+ | DataView
25
+ | number
26
+ | ArrayBufferView
27
+ | Uint8Array
28
+ | ArrayBuffer
29
+ | SharedArrayBuffer
30
+ | Blob
31
+ | readonly any[]
32
+ | readonly number[]
33
+ | { valueOf(): ArrayBuffer }
34
+ | { valueOf(): SharedArrayBuffer }
35
+ | { valueOf(): Uint8Array }
36
+ | { valueOf(): readonly number[] }
37
+ | { valueOf(): string }
38
+ | { [Symbol.toPrimitive](hint: string): string };
39
+
40
+ // WebSocket socket.
41
+ declare class WebSocket extends EventEmitter {
42
+ /** The connection is not yet open. */
43
+ static readonly CONNECTING: 0;
44
+ /** The connection is open and ready to communicate. */
45
+ static readonly OPEN: 1;
46
+ /** The connection is in the process of closing. */
47
+ static readonly CLOSING: 2;
48
+ /** The connection is closed. */
49
+ static readonly CLOSED: 3;
50
+
51
+ binaryType: "nodebuffer" | "arraybuffer" | "fragments";
52
+ readonly bufferedAmount: number;
53
+ readonly extensions: string;
54
+ /** Indicates whether the websocket is paused */
55
+ readonly isPaused: boolean;
56
+ readonly protocol: string;
57
+ /** The current state of the connection */
58
+ readonly readyState:
59
+ | typeof WebSocket.CONNECTING
60
+ | typeof WebSocket.OPEN
61
+ | typeof WebSocket.CLOSING
62
+ | typeof WebSocket.CLOSED;
63
+ readonly url: string;
64
+
65
+ /** The connection is not yet open. */
66
+ readonly CONNECTING: 0;
67
+ /** The connection is open and ready to communicate. */
68
+ readonly OPEN: 1;
69
+ /** The connection is in the process of closing. */
70
+ readonly CLOSING: 2;
71
+ /** The connection is closed. */
72
+ readonly CLOSED: 3;
73
+
74
+ onopen: ((event: WebSocket.Event) => void) | null;
75
+ onerror: ((event: WebSocket.ErrorEvent) => void) | null;
76
+ onclose: ((event: WebSocket.CloseEvent) => void) | null;
77
+ onmessage: ((event: WebSocket.MessageEvent) => void) | null;
78
+
79
+ constructor(address: null);
80
+ constructor(address: string | URL, options?: WebSocket.ClientOptions | ClientRequestArgs);
81
+ constructor(
82
+ address: string | URL,
83
+ protocols?: string | string[],
84
+ options?: WebSocket.ClientOptions | ClientRequestArgs,
85
+ );
86
+
87
+ close(code?: number, data?: string | Buffer): void;
88
+ ping(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
89
+ pong(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
90
+ // https://github.com/websockets/ws/issues/2076#issuecomment-1250354722
91
+ send(data: BufferLike, cb?: (err?: Error) => void): void;
92
+ send(
93
+ data: BufferLike,
94
+ options: {
95
+ mask?: boolean | undefined;
96
+ binary?: boolean | undefined;
97
+ compress?: boolean | undefined;
98
+ fin?: boolean | undefined;
99
+ },
100
+ cb?: (err?: Error) => void,
101
+ ): void;
102
+ terminate(): void;
103
+
104
+ /**
105
+ * Pause the websocket causing it to stop emitting events. Some events can still be
106
+ * emitted after this is called, until all buffered data is consumed. This method
107
+ * is a noop if the ready state is `CONNECTING` or `CLOSED`.
108
+ */
109
+ pause(): void;
110
+ /**
111
+ * Make a paused socket resume emitting events. This method is a noop if the ready
112
+ * state is `CONNECTING` or `CLOSED`.
113
+ */
114
+ resume(): void;
115
+
116
+ // HTML5 WebSocket events
117
+ addEventListener<K extends keyof WebSocket.WebSocketEventMap>(
118
+ type: K,
119
+ listener:
120
+ | ((event: WebSocket.WebSocketEventMap[K]) => void)
121
+ | { handleEvent(event: WebSocket.WebSocketEventMap[K]): void },
122
+ options?: WebSocket.EventListenerOptions,
123
+ ): void;
124
+ removeEventListener<K extends keyof WebSocket.WebSocketEventMap>(
125
+ type: K,
126
+ listener:
127
+ | ((event: WebSocket.WebSocketEventMap[K]) => void)
128
+ | { handleEvent(event: WebSocket.WebSocketEventMap[K]): void },
129
+ ): void;
130
+
131
+ // Events
132
+ on(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
133
+ on(event: "error", listener: (this: WebSocket, error: Error) => void): this;
134
+ on(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
135
+ on(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
136
+ on(event: "open", listener: (this: WebSocket) => void): this;
137
+ on(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
138
+ on(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
139
+ on(
140
+ event: "unexpected-response",
141
+ listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void,
142
+ ): this;
143
+ on(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
144
+
145
+ once(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
146
+ once(event: "error", listener: (this: WebSocket, error: Error) => void): this;
147
+ once(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
148
+ once(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
149
+ once(event: "open", listener: (this: WebSocket) => void): this;
150
+ once(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
151
+ once(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
152
+ once(
153
+ event: "unexpected-response",
154
+ listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void,
155
+ ): this;
156
+ once(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
157
+
158
+ off(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
159
+ off(event: "error", listener: (this: WebSocket, error: Error) => void): this;
160
+ off(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
161
+ off(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
162
+ off(event: "open", listener: (this: WebSocket) => void): this;
163
+ off(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
164
+ off(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
165
+ off(
166
+ event: "unexpected-response",
167
+ listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void,
168
+ ): this;
169
+ off(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
170
+
171
+ addListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
172
+ addListener(event: "error", listener: (error: Error) => void): this;
173
+ addListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
174
+ addListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
175
+ addListener(event: "open", listener: () => void): this;
176
+ addListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
177
+ addListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
178
+ addListener(
179
+ event: "unexpected-response",
180
+ listener: (request: ClientRequest, response: IncomingMessage) => void,
181
+ ): this;
182
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
183
+
184
+ removeListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
185
+ removeListener(event: "error", listener: (error: Error) => void): this;
186
+ removeListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
187
+ removeListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
188
+ removeListener(event: "open", listener: () => void): this;
189
+ removeListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
190
+ removeListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
191
+ removeListener(
192
+ event: "unexpected-response",
193
+ listener: (request: ClientRequest, response: IncomingMessage) => void,
194
+ ): this;
195
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
196
+ }
197
+
198
+ declare namespace WebSocket {
199
+ /**
200
+ * Data represents the raw message payload received over the WebSocket.
201
+ */
202
+ type RawData = Buffer | ArrayBuffer | Buffer[];
203
+
204
+ /**
205
+ * Data represents the message payload received over the WebSocket.
206
+ */
207
+ type Data = string | Buffer | ArrayBuffer | Buffer[];
208
+
209
+ /**
210
+ * CertMeta represents the accepted types for certificate & key data.
211
+ */
212
+ type CertMeta = string | string[] | Buffer | Buffer[];
213
+
214
+ /**
215
+ * VerifyClientCallbackSync is a synchronous callback used to inspect the
216
+ * incoming message. The return value (boolean) of the function determines
217
+ * whether or not to accept the handshake.
218
+ */
219
+ type VerifyClientCallbackSync<Request extends IncomingMessage = IncomingMessage> = (info: {
220
+ origin: string;
221
+ secure: boolean;
222
+ req: Request;
223
+ }) => boolean;
224
+
225
+ /**
226
+ * VerifyClientCallbackAsync is an asynchronous callback used to inspect the
227
+ * incoming message. The return value (boolean) of the function determines
228
+ * whether or not to accept the handshake.
229
+ */
230
+ type VerifyClientCallbackAsync<Request extends IncomingMessage = IncomingMessage> = (
231
+ info: { origin: string; secure: boolean; req: Request },
232
+ callback: (res: boolean, code?: number, message?: string, headers?: OutgoingHttpHeaders) => void,
233
+ ) => void;
234
+
235
+ /**
236
+ * FinishRequestCallback is a callback for last minute customization of the
237
+ * headers. If finishRequest is set, then it has the responsibility to call
238
+ * request.end() once it is done setting request headers.
239
+ */
240
+ type FinishRequestCallback = (request: ClientRequest, websocket: WebSocket) => void;
241
+
242
+ interface ClientOptions extends SecureContextOptions {
243
+ protocol?: string | undefined;
244
+ followRedirects?: boolean | undefined;
245
+ generateMask?(mask: Buffer): void;
246
+ handshakeTimeout?: number | undefined;
247
+ maxRedirects?: number | undefined;
248
+ perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
249
+ localAddress?: string | undefined;
250
+ protocolVersion?: number | undefined;
251
+ headers?: { [key: string]: string } | undefined;
252
+ origin?: string | undefined;
253
+ agent?: Agent | undefined;
254
+ host?: string | undefined;
255
+ family?: number | undefined;
256
+ checkServerIdentity?(servername: string, cert: CertMeta): boolean;
257
+ rejectUnauthorized?: boolean | undefined;
258
+ allowSynchronousEvents?: boolean | undefined;
259
+ autoPong?: boolean | undefined;
260
+ maxPayload?: number | undefined;
261
+ skipUTF8Validation?: boolean | undefined;
262
+ createConnection?: typeof createConnection | undefined;
263
+ finishRequest?: FinishRequestCallback | undefined;
264
+ }
265
+
266
+ interface PerMessageDeflateOptions {
267
+ serverNoContextTakeover?: boolean | undefined;
268
+ clientNoContextTakeover?: boolean | undefined;
269
+ serverMaxWindowBits?: number | undefined;
270
+ clientMaxWindowBits?: number | undefined;
271
+ zlibDeflateOptions?:
272
+ | {
273
+ flush?: number | undefined;
274
+ finishFlush?: number | undefined;
275
+ chunkSize?: number | undefined;
276
+ windowBits?: number | undefined;
277
+ level?: number | undefined;
278
+ memLevel?: number | undefined;
279
+ strategy?: number | undefined;
280
+ dictionary?: Buffer | Buffer[] | DataView | undefined;
281
+ info?: boolean | undefined;
282
+ }
283
+ | undefined;
284
+ zlibInflateOptions?: ZlibOptions | undefined;
285
+ threshold?: number | undefined;
286
+ concurrencyLimit?: number | undefined;
287
+ }
288
+
289
+ interface Event {
290
+ type: string;
291
+ target: WebSocket;
292
+ }
293
+
294
+ interface ErrorEvent {
295
+ error: any;
296
+ message: string;
297
+ type: string;
298
+ target: WebSocket;
299
+ }
300
+
301
+ interface CloseEvent {
302
+ wasClean: boolean;
303
+ code: number;
304
+ reason: string;
305
+ type: string;
306
+ target: WebSocket;
307
+ }
308
+
309
+ interface MessageEvent {
310
+ data: Data;
311
+ type: string;
312
+ target: WebSocket;
313
+ }
314
+
315
+ interface WebSocketEventMap {
316
+ open: Event;
317
+ error: ErrorEvent;
318
+ close: CloseEvent;
319
+ message: MessageEvent;
320
+ }
321
+
322
+ interface EventListenerOptions {
323
+ once?: boolean | undefined;
324
+ }
325
+
326
+ interface ServerOptions<
327
+ U extends typeof WebSocket = typeof WebSocket,
328
+ V extends typeof IncomingMessage = typeof IncomingMessage,
329
+ > {
330
+ host?: string | undefined;
331
+ port?: number | undefined;
332
+ backlog?: number | undefined;
333
+ server?: HTTPServer<V> | HTTPSServer<V> | undefined;
334
+ verifyClient?:
335
+ | VerifyClientCallbackAsync<InstanceType<V>>
336
+ | VerifyClientCallbackSync<InstanceType<V>>
337
+ | undefined;
338
+ handleProtocols?: (protocols: Set<string>, request: InstanceType<V>) => string | false;
339
+ path?: string | undefined;
340
+ noServer?: boolean | undefined;
341
+ allowSynchronousEvents?: boolean | undefined;
342
+ autoPong?: boolean | undefined;
343
+ clientTracking?: boolean | undefined;
344
+ perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
345
+ maxPayload?: number | undefined;
346
+ skipUTF8Validation?: boolean | undefined;
347
+ WebSocket?: U | undefined;
348
+ }
349
+
350
+ interface AddressInfo {
351
+ address: string;
352
+ family: string;
353
+ port: number;
354
+ }
355
+ }
356
+
357
+ export import AddressInfo = WebSocket.AddressInfo;
358
+ export import CertMeta = WebSocket.CertMeta;
359
+ export import ClientOptions = WebSocket.ClientOptions;
360
+ export import CloseEvent = WebSocket.CloseEvent;
361
+ export import Data = WebSocket.Data;
362
+ export import ErrorEvent = WebSocket.ErrorEvent;
363
+ export import Event = WebSocket.Event;
364
+ export import EventListenerOptions = WebSocket.EventListenerOptions;
365
+ export import FinishRequestCallback = WebSocket.FinishRequestCallback;
366
+ export import MessageEvent = WebSocket.MessageEvent;
367
+ export import PerMessageDeflateOptions = WebSocket.PerMessageDeflateOptions;
368
+ export import RawData = WebSocket.RawData;
369
+ export import ServerOptions = WebSocket.ServerOptions;
370
+ export import VerifyClientCallbackAsync = WebSocket.VerifyClientCallbackAsync;
371
+ export import VerifyClientCallbackSync = WebSocket.VerifyClientCallbackSync;
372
+
373
+ // WebSocket Server
374
+ declare class Server<
375
+ T extends typeof WebSocket = typeof WebSocket,
376
+ U extends typeof IncomingMessage = typeof IncomingMessage,
377
+ > extends EventEmitter {
378
+ options: WebSocket.ServerOptions<T, U>;
379
+ path: string;
380
+ clients: Set<InstanceType<T>>;
381
+
382
+ constructor(options?: WebSocket.ServerOptions<T, U>, callback?: () => void);
383
+
384
+ address(): WebSocket.AddressInfo | string | null;
385
+ close(cb?: (err?: Error) => void): void;
386
+ handleUpgrade(
387
+ request: InstanceType<U>,
388
+ socket: Duplex,
389
+ upgradeHead: Buffer,
390
+ callback: (client: InstanceType<T>, request: InstanceType<U>) => void,
391
+ ): void;
392
+ shouldHandle(request: InstanceType<U>): boolean | Promise<boolean>;
393
+
394
+ // Events
395
+ on(event: "connection", cb: (this: Server<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
396
+ on(event: "error", cb: (this: Server<T>, error: Error) => void): this;
397
+ on(event: "headers", cb: (this: Server<T>, headers: string[], request: InstanceType<U>) => void): this;
398
+ on(event: "close" | "listening", cb: (this: Server<T>) => void): this;
399
+ on(
400
+ event: "wsClientError",
401
+ cb: (this: Server<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void,
402
+ ): this;
403
+ on(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
404
+
405
+ once(
406
+ event: "connection",
407
+ cb: (this: Server<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void,
408
+ ): this;
409
+ once(event: "error", cb: (this: Server<T>, error: Error) => void): this;
410
+ once(event: "headers", cb: (this: Server<T>, headers: string[], request: InstanceType<U>) => void): this;
411
+ once(event: "close" | "listening", cb: (this: Server<T>) => void): this;
412
+ once(
413
+ event: "wsClientError",
414
+ cb: (this: Server<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void,
415
+ ): this;
416
+ once(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
417
+
418
+ off(event: "connection", cb: (this: Server<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
419
+ off(event: "error", cb: (this: Server<T>, error: Error) => void): this;
420
+ off(event: "headers", cb: (this: Server<T>, headers: string[], request: InstanceType<U>) => void): this;
421
+ off(event: "close" | "listening", cb: (this: Server<T>) => void): this;
422
+ off(
423
+ event: "wsClientError",
424
+ cb: (this: Server<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void,
425
+ ): this;
426
+ off(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
427
+
428
+ addListener(event: "connection", cb: (websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
429
+ addListener(event: "error", cb: (error: Error) => void): this;
430
+ addListener(event: "headers", cb: (headers: string[], request: InstanceType<U>) => void): this;
431
+ addListener(event: "close" | "listening", cb: () => void): this;
432
+ addListener(event: "wsClientError", cb: (error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
433
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
434
+
435
+ removeListener(event: "connection", cb: (websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
436
+ removeListener(event: "error", cb: (error: Error) => void): this;
437
+ removeListener(event: "headers", cb: (headers: string[], request: InstanceType<U>) => void): this;
438
+ removeListener(event: "close" | "listening", cb: () => void): this;
439
+ removeListener(event: "wsClientError", cb: (error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
440
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
441
+ }
442
+ export { type Server };
443
+
444
+ export const WebSocketServer: typeof Server;
445
+ export interface WebSocketServer extends Server {} // eslint-disable-line @typescript-eslint/no-empty-interface
446
+
447
+ // WebSocket stream
448
+ export function createWebSocketStream(websocket: WebSocket, options?: DuplexOptions): Duplex;
449
+
450
+ export default WebSocket;
451
+ export { WebSocket };
node_modules/@types/ws/index.d.ts ADDED
@@ -0,0 +1,445 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /// <reference types="node" />
2
+
3
+ import { EventEmitter } from "events";
4
+ import {
5
+ Agent,
6
+ ClientRequest,
7
+ ClientRequestArgs,
8
+ IncomingMessage,
9
+ OutgoingHttpHeaders,
10
+ Server as HTTPServer,
11
+ } from "http";
12
+ import { Server as HTTPSServer } from "https";
13
+ import { createConnection } from "net";
14
+ import { Duplex, DuplexOptions } from "stream";
15
+ import { SecureContextOptions } from "tls";
16
+ import { URL } from "url";
17
+ import { ZlibOptions } from "zlib";
18
+
19
+ // can not get all overload of BufferConstructor['from'], need to copy all it's first arguments here
20
+ // https://github.com/microsoft/TypeScript/issues/32164
21
+ type BufferLike =
22
+ | string
23
+ | Buffer
24
+ | DataView
25
+ | number
26
+ | ArrayBufferView
27
+ | Uint8Array
28
+ | ArrayBuffer
29
+ | SharedArrayBuffer
30
+ | Blob
31
+ | readonly any[]
32
+ | readonly number[]
33
+ | { valueOf(): ArrayBuffer }
34
+ | { valueOf(): SharedArrayBuffer }
35
+ | { valueOf(): Uint8Array }
36
+ | { valueOf(): readonly number[] }
37
+ | { valueOf(): string }
38
+ | { [Symbol.toPrimitive](hint: string): string };
39
+
40
+ // WebSocket socket.
41
+ declare class WebSocket extends EventEmitter {
42
+ /** The connection is not yet open. */
43
+ static readonly CONNECTING: 0;
44
+ /** The connection is open and ready to communicate. */
45
+ static readonly OPEN: 1;
46
+ /** The connection is in the process of closing. */
47
+ static readonly CLOSING: 2;
48
+ /** The connection is closed. */
49
+ static readonly CLOSED: 3;
50
+
51
+ binaryType: "nodebuffer" | "arraybuffer" | "fragments";
52
+ readonly bufferedAmount: number;
53
+ readonly extensions: string;
54
+ /** Indicates whether the websocket is paused */
55
+ readonly isPaused: boolean;
56
+ readonly protocol: string;
57
+ /** The current state of the connection */
58
+ readonly readyState:
59
+ | typeof WebSocket.CONNECTING
60
+ | typeof WebSocket.OPEN
61
+ | typeof WebSocket.CLOSING
62
+ | typeof WebSocket.CLOSED;
63
+ readonly url: string;
64
+
65
+ /** The connection is not yet open. */
66
+ readonly CONNECTING: 0;
67
+ /** The connection is open and ready to communicate. */
68
+ readonly OPEN: 1;
69
+ /** The connection is in the process of closing. */
70
+ readonly CLOSING: 2;
71
+ /** The connection is closed. */
72
+ readonly CLOSED: 3;
73
+
74
+ onopen: ((event: WebSocket.Event) => void) | null;
75
+ onerror: ((event: WebSocket.ErrorEvent) => void) | null;
76
+ onclose: ((event: WebSocket.CloseEvent) => void) | null;
77
+ onmessage: ((event: WebSocket.MessageEvent) => void) | null;
78
+
79
+ constructor(address: null);
80
+ constructor(address: string | URL, options?: WebSocket.ClientOptions | ClientRequestArgs);
81
+ constructor(
82
+ address: string | URL,
83
+ protocols?: string | string[],
84
+ options?: WebSocket.ClientOptions | ClientRequestArgs,
85
+ );
86
+
87
+ close(code?: number, data?: string | Buffer): void;
88
+ ping(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
89
+ pong(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
90
+ // https://github.com/websockets/ws/issues/2076#issuecomment-1250354722
91
+ send(data: BufferLike, cb?: (err?: Error) => void): void;
92
+ send(
93
+ data: BufferLike,
94
+ options: {
95
+ mask?: boolean | undefined;
96
+ binary?: boolean | undefined;
97
+ compress?: boolean | undefined;
98
+ fin?: boolean | undefined;
99
+ },
100
+ cb?: (err?: Error) => void,
101
+ ): void;
102
+ terminate(): void;
103
+
104
+ /**
105
+ * Pause the websocket causing it to stop emitting events. Some events can still be
106
+ * emitted after this is called, until all buffered data is consumed. This method
107
+ * is a noop if the ready state is `CONNECTING` or `CLOSED`.
108
+ */
109
+ pause(): void;
110
+ /**
111
+ * Make a paused socket resume emitting events. This method is a noop if the ready
112
+ * state is `CONNECTING` or `CLOSED`.
113
+ */
114
+ resume(): void;
115
+
116
+ // HTML5 WebSocket events
117
+ addEventListener<K extends keyof WebSocket.WebSocketEventMap>(
118
+ type: K,
119
+ listener:
120
+ | ((event: WebSocket.WebSocketEventMap[K]) => void)
121
+ | { handleEvent(event: WebSocket.WebSocketEventMap[K]): void },
122
+ options?: WebSocket.EventListenerOptions,
123
+ ): void;
124
+ removeEventListener<K extends keyof WebSocket.WebSocketEventMap>(
125
+ type: K,
126
+ listener:
127
+ | ((event: WebSocket.WebSocketEventMap[K]) => void)
128
+ | { handleEvent(event: WebSocket.WebSocketEventMap[K]): void },
129
+ ): void;
130
+
131
+ // Events
132
+ on(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
133
+ on(event: "error", listener: (this: WebSocket, error: Error) => void): this;
134
+ on(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
135
+ on(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
136
+ on(event: "open", listener: (this: WebSocket) => void): this;
137
+ on(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
138
+ on(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
139
+ on(
140
+ event: "unexpected-response",
141
+ listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void,
142
+ ): this;
143
+ on(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
144
+
145
+ once(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
146
+ once(event: "error", listener: (this: WebSocket, error: Error) => void): this;
147
+ once(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
148
+ once(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
149
+ once(event: "open", listener: (this: WebSocket) => void): this;
150
+ once(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
151
+ once(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
152
+ once(
153
+ event: "unexpected-response",
154
+ listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void,
155
+ ): this;
156
+ once(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
157
+
158
+ off(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
159
+ off(event: "error", listener: (this: WebSocket, error: Error) => void): this;
160
+ off(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
161
+ off(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
162
+ off(event: "open", listener: (this: WebSocket) => void): this;
163
+ off(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
164
+ off(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
165
+ off(
166
+ event: "unexpected-response",
167
+ listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void,
168
+ ): this;
169
+ off(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
170
+
171
+ addListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
172
+ addListener(event: "error", listener: (error: Error) => void): this;
173
+ addListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
174
+ addListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
175
+ addListener(event: "open", listener: () => void): this;
176
+ addListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
177
+ addListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
178
+ addListener(
179
+ event: "unexpected-response",
180
+ listener: (request: ClientRequest, response: IncomingMessage) => void,
181
+ ): this;
182
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
183
+
184
+ removeListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
185
+ removeListener(event: "error", listener: (error: Error) => void): this;
186
+ removeListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
187
+ removeListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
188
+ removeListener(event: "open", listener: () => void): this;
189
+ removeListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
190
+ removeListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
191
+ removeListener(
192
+ event: "unexpected-response",
193
+ listener: (request: ClientRequest, response: IncomingMessage) => void,
194
+ ): this;
195
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
196
+ }
197
+
198
+ declare const WebSocketAlias: typeof WebSocket;
199
+ interface WebSocketAlias extends WebSocket {} // eslint-disable-line @typescript-eslint/no-empty-interface
200
+
201
+ declare namespace WebSocket {
202
+ /**
203
+ * Data represents the raw message payload received over the WebSocket.
204
+ */
205
+ type RawData = Buffer | ArrayBuffer | Buffer[];
206
+
207
+ /**
208
+ * Data represents the message payload received over the WebSocket.
209
+ */
210
+ type Data = string | Buffer | ArrayBuffer | Buffer[];
211
+
212
+ /**
213
+ * CertMeta represents the accepted types for certificate & key data.
214
+ */
215
+ type CertMeta = string | string[] | Buffer | Buffer[];
216
+
217
+ /**
218
+ * VerifyClientCallbackSync is a synchronous callback used to inspect the
219
+ * incoming message. The return value (boolean) of the function determines
220
+ * whether or not to accept the handshake.
221
+ */
222
+ type VerifyClientCallbackSync<Request extends IncomingMessage = IncomingMessage> = (info: {
223
+ origin: string;
224
+ secure: boolean;
225
+ req: Request;
226
+ }) => boolean;
227
+
228
+ /**
229
+ * VerifyClientCallbackAsync is an asynchronous callback used to inspect the
230
+ * incoming message. The return value (boolean) of the function determines
231
+ * whether or not to accept the handshake.
232
+ */
233
+ type VerifyClientCallbackAsync<Request extends IncomingMessage = IncomingMessage> = (
234
+ info: { origin: string; secure: boolean; req: Request },
235
+ callback: (res: boolean, code?: number, message?: string, headers?: OutgoingHttpHeaders) => void,
236
+ ) => void;
237
+
238
+ /**
239
+ * FinishRequestCallback is a callback for last minute customization of the
240
+ * headers. If finishRequest is set, then it has the responsibility to call
241
+ * request.end() once it is done setting request headers.
242
+ */
243
+ type FinishRequestCallback = (request: ClientRequest, websocket: WebSocket) => void;
244
+
245
+ interface ClientOptions extends SecureContextOptions {
246
+ protocol?: string | undefined;
247
+ followRedirects?: boolean | undefined;
248
+ generateMask?(mask: Buffer): void;
249
+ handshakeTimeout?: number | undefined;
250
+ maxRedirects?: number | undefined;
251
+ perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
252
+ localAddress?: string | undefined;
253
+ protocolVersion?: number | undefined;
254
+ headers?: { [key: string]: string } | undefined;
255
+ origin?: string | undefined;
256
+ agent?: Agent | undefined;
257
+ host?: string | undefined;
258
+ family?: number | undefined;
259
+ checkServerIdentity?(servername: string, cert: CertMeta): boolean;
260
+ rejectUnauthorized?: boolean | undefined;
261
+ allowSynchronousEvents?: boolean | undefined;
262
+ autoPong?: boolean | undefined;
263
+ maxPayload?: number | undefined;
264
+ skipUTF8Validation?: boolean | undefined;
265
+ createConnection?: typeof createConnection | undefined;
266
+ finishRequest?: FinishRequestCallback | undefined;
267
+ }
268
+
269
+ interface PerMessageDeflateOptions {
270
+ serverNoContextTakeover?: boolean | undefined;
271
+ clientNoContextTakeover?: boolean | undefined;
272
+ serverMaxWindowBits?: number | undefined;
273
+ clientMaxWindowBits?: number | undefined;
274
+ zlibDeflateOptions?: {
275
+ flush?: number | undefined;
276
+ finishFlush?: number | undefined;
277
+ chunkSize?: number | undefined;
278
+ windowBits?: number | undefined;
279
+ level?: number | undefined;
280
+ memLevel?: number | undefined;
281
+ strategy?: number | undefined;
282
+ dictionary?: Buffer | Buffer[] | DataView | undefined;
283
+ info?: boolean | undefined;
284
+ } | undefined;
285
+ zlibInflateOptions?: ZlibOptions | undefined;
286
+ threshold?: number | undefined;
287
+ concurrencyLimit?: number | undefined;
288
+ }
289
+
290
+ interface Event {
291
+ type: string;
292
+ target: WebSocket;
293
+ }
294
+
295
+ interface ErrorEvent {
296
+ error: any;
297
+ message: string;
298
+ type: string;
299
+ target: WebSocket;
300
+ }
301
+
302
+ interface CloseEvent {
303
+ wasClean: boolean;
304
+ code: number;
305
+ reason: string;
306
+ type: string;
307
+ target: WebSocket;
308
+ }
309
+
310
+ interface MessageEvent {
311
+ data: Data;
312
+ type: string;
313
+ target: WebSocket;
314
+ }
315
+
316
+ interface WebSocketEventMap {
317
+ open: Event;
318
+ error: ErrorEvent;
319
+ close: CloseEvent;
320
+ message: MessageEvent;
321
+ }
322
+
323
+ interface EventListenerOptions {
324
+ once?: boolean | undefined;
325
+ }
326
+
327
+ interface ServerOptions<
328
+ U extends typeof WebSocket.WebSocket = typeof WebSocket.WebSocket,
329
+ V extends typeof IncomingMessage = typeof IncomingMessage,
330
+ > {
331
+ host?: string | undefined;
332
+ port?: number | undefined;
333
+ backlog?: number | undefined;
334
+ server?: HTTPServer<V> | HTTPSServer<V> | undefined;
335
+ verifyClient?:
336
+ | VerifyClientCallbackAsync<InstanceType<V>>
337
+ | VerifyClientCallbackSync<InstanceType<V>>
338
+ | undefined;
339
+ handleProtocols?: (protocols: Set<string>, request: InstanceType<V>) => string | false;
340
+ path?: string | undefined;
341
+ noServer?: boolean | undefined;
342
+ allowSynchronousEvents?: boolean | undefined;
343
+ autoPong?: boolean | undefined;
344
+ clientTracking?: boolean | undefined;
345
+ perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
346
+ maxPayload?: number | undefined;
347
+ skipUTF8Validation?: boolean | undefined;
348
+ WebSocket?: U | undefined;
349
+ }
350
+
351
+ interface AddressInfo {
352
+ address: string;
353
+ family: string;
354
+ port: number;
355
+ }
356
+
357
+ // WebSocket Server
358
+ class Server<
359
+ T extends typeof WebSocket.WebSocket = typeof WebSocket.WebSocket,
360
+ U extends typeof IncomingMessage = typeof IncomingMessage,
361
+ > extends EventEmitter {
362
+ options: ServerOptions<T, U>;
363
+ path: string;
364
+ clients: Set<InstanceType<T>>;
365
+
366
+ constructor(options?: ServerOptions<T, U>, callback?: () => void);
367
+
368
+ address(): AddressInfo | string | null;
369
+ close(cb?: (err?: Error) => void): void;
370
+ handleUpgrade(
371
+ request: InstanceType<U>,
372
+ socket: Duplex,
373
+ upgradeHead: Buffer,
374
+ callback: (client: InstanceType<T>, request: InstanceType<U>) => void,
375
+ ): void;
376
+ shouldHandle(request: InstanceType<U>): boolean | Promise<boolean>;
377
+
378
+ // Events
379
+ on(
380
+ event: "connection",
381
+ cb: (this: Server<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void,
382
+ ): this;
383
+ on(event: "error", cb: (this: Server<T>, error: Error) => void): this;
384
+ on(event: "headers", cb: (this: Server<T>, headers: string[], request: InstanceType<U>) => void): this;
385
+ on(event: "close" | "listening", cb: (this: Server<T>) => void): this;
386
+ on(
387
+ event: "wsClientError",
388
+ cb: (this: Server<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void,
389
+ ): this;
390
+ on(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
391
+
392
+ once(
393
+ event: "connection",
394
+ cb: (this: Server<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void,
395
+ ): this;
396
+ once(event: "error", cb: (this: Server<T>, error: Error) => void): this;
397
+ once(event: "headers", cb: (this: Server<T>, headers: string[], request: InstanceType<U>) => void): this;
398
+ once(event: "close" | "listening", cb: (this: Server<T>) => void): this;
399
+ once(
400
+ event: "wsClientError",
401
+ cb: (this: Server<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void,
402
+ ): this;
403
+ once(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
404
+
405
+ off(
406
+ event: "connection",
407
+ cb: (this: Server<T>, socket: InstanceType<T>, request: InstanceType<U>) => void,
408
+ ): this;
409
+ off(event: "error", cb: (this: Server<T>, error: Error) => void): this;
410
+ off(event: "headers", cb: (this: Server<T>, headers: string[], request: InstanceType<U>) => void): this;
411
+ off(event: "close" | "listening", cb: (this: Server<T>) => void): this;
412
+ off(
413
+ event: "wsClientError",
414
+ cb: (this: Server<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void,
415
+ ): this;
416
+ off(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
417
+
418
+ addListener(event: "connection", cb: (websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
419
+ addListener(event: "error", cb: (error: Error) => void): this;
420
+ addListener(event: "headers", cb: (headers: string[], request: InstanceType<U>) => void): this;
421
+ addListener(event: "close" | "listening", cb: () => void): this;
422
+ addListener(event: "wsClientError", cb: (error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
423
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
424
+
425
+ removeListener(event: "connection", cb: (websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
426
+ removeListener(event: "error", cb: (error: Error) => void): this;
427
+ removeListener(event: "headers", cb: (headers: string[], request: InstanceType<U>) => void): this;
428
+ removeListener(event: "close" | "listening", cb: () => void): this;
429
+ removeListener(
430
+ event: "wsClientError",
431
+ cb: (error: Error, socket: Duplex, request: InstanceType<U>) => void,
432
+ ): this;
433
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
434
+ }
435
+
436
+ const WebSocketServer: typeof Server;
437
+ interface WebSocketServer extends Server {} // eslint-disable-line @typescript-eslint/no-empty-interface
438
+ const WebSocket: typeof WebSocketAlias;
439
+ interface WebSocket extends WebSocketAlias {} // eslint-disable-line @typescript-eslint/no-empty-interface
440
+
441
+ // WebSocket stream
442
+ function createWebSocketStream(websocket: WebSocket, options?: DuplexOptions): Duplex;
443
+ }
444
+
445
+ export = WebSocket;
node_modules/@types/ws/package.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@types/ws",
3
+ "version": "8.18.1",
4
+ "description": "TypeScript definitions for ws",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ws",
6
+ "license": "MIT",
7
+ "contributors": [
8
+ {
9
+ "name": "Paul Loyd",
10
+ "githubUsername": "loyd",
11
+ "url": "https://github.com/loyd"
12
+ },
13
+ {
14
+ "name": "Margus Lamp",
15
+ "githubUsername": "mlamp",
16
+ "url": "https://github.com/mlamp"
17
+ },
18
+ {
19
+ "name": "Philippe D'Alva",
20
+ "githubUsername": "TitaneBoy",
21
+ "url": "https://github.com/TitaneBoy"
22
+ },
23
+ {
24
+ "name": "reduckted",
25
+ "githubUsername": "reduckted",
26
+ "url": "https://github.com/reduckted"
27
+ },
28
+ {
29
+ "name": "teidesu",
30
+ "githubUsername": "teidesu",
31
+ "url": "https://github.com/teidesu"
32
+ },
33
+ {
34
+ "name": "Bartosz Wojtkowiak",
35
+ "githubUsername": "wojtkowiak",
36
+ "url": "https://github.com/wojtkowiak"
37
+ },
38
+ {
39
+ "name": "Kyle Hensel",
40
+ "githubUsername": "k-yle",
41
+ "url": "https://github.com/k-yle"
42
+ },
43
+ {
44
+ "name": "Samuel Skeen",
45
+ "githubUsername": "cwadrupldijjit",
46
+ "url": "https://github.com/cwadrupldijjit"
47
+ }
48
+ ],
49
+ "main": "",
50
+ "types": "index.d.ts",
51
+ "exports": {
52
+ ".": {
53
+ "types": {
54
+ "import": "./index.d.mts",
55
+ "default": "./index.d.ts"
56
+ }
57
+ },
58
+ "./package.json": "./package.json"
59
+ },
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
63
+ "directory": "types/ws"
64
+ },
65
+ "scripts": {},
66
+ "dependencies": {
67
+ "@types/node": "*"
68
+ },
69
+ "peerDependencies": {},
70
+ "typesPublisherContentHash": "043c83a4bb92503ab01243879ee715fb6db391090d10883c5a2eb72099d22724",
71
+ "typeScriptVersion": "5.1"
72
+ }
node_modules/@typescript-eslint/eslint-plugin/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2019 typescript-eslint and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
node_modules/@typescript-eslint/eslint-plugin/README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # `@typescript-eslint/eslint-plugin`
2
+
3
+ An ESLint plugin which provides lint rules for TypeScript codebases.
4
+
5
+ [![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/eslint-plugin.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
6
+ [![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/eslint-plugin.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
7
+
8
+ 👉 See **https://typescript-eslint.io/getting-started** for our Getting Started docs.
9
+
10
+ > See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
11
+
12
+ <!-- Local path for docs: docs/packages/ESLint_Plugin.mdx -->
node_modules/@typescript-eslint/eslint-plugin/index.d.ts ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type {
2
+ ClassicConfig,
3
+ FlatConfig,
4
+ } from '@typescript-eslint/utils/ts-eslint';
5
+
6
+ import type rules from './rules';
7
+
8
+ declare const cjsExport: {
9
+ configs: Record<string, ClassicConfig.Config>;
10
+ meta: FlatConfig.PluginMeta;
11
+ rules: typeof rules;
12
+ };
13
+ export = cjsExport;
node_modules/@typescript-eslint/eslint-plugin/package.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@typescript-eslint/eslint-plugin",
3
+ "version": "8.61.1",
4
+ "description": "TypeScript plugin for ESLint",
5
+ "files": [
6
+ "dist",
7
+ "!**/*.tsbuildinfo",
8
+ "index.d.ts",
9
+ "raw-plugin.d.ts",
10
+ "rules.d.ts",
11
+ "package.json",
12
+ "./README.md",
13
+ "LICENSE"
14
+ ],
15
+ "type": "commonjs",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./index.d.ts",
19
+ "default": "./dist/index.js"
20
+ },
21
+ "./package.json": "./package.json",
22
+ "./use-at-your-own-risk/rules": {
23
+ "types": "./rules.d.ts",
24
+ "default": "./dist/rules/index.js"
25
+ },
26
+ "./use-at-your-own-risk/raw-plugin": {
27
+ "types": "./raw-plugin.d.ts",
28
+ "default": "./dist/raw-plugin.js"
29
+ }
30
+ },
31
+ "engines": {
32
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/typescript-eslint/typescript-eslint.git",
37
+ "directory": "packages/eslint-plugin"
38
+ },
39
+ "bugs": {
40
+ "url": "https://github.com/typescript-eslint/typescript-eslint/issues"
41
+ },
42
+ "homepage": "https://typescript-eslint.io/packages/eslint-plugin",
43
+ "license": "MIT",
44
+ "keywords": [
45
+ "eslint",
46
+ "eslintplugin",
47
+ "eslint-plugin",
48
+ "typescript"
49
+ ],
50
+ "dependencies": {
51
+ "@eslint-community/regexpp": "^4.12.2",
52
+ "ignore": "^7.0.5",
53
+ "natural-compare": "^1.4.0",
54
+ "ts-api-utils": "^2.5.0",
55
+ "@typescript-eslint/scope-manager": "8.61.1",
56
+ "@typescript-eslint/type-utils": "8.61.1",
57
+ "@typescript-eslint/utils": "8.61.1",
58
+ "@typescript-eslint/visitor-keys": "8.61.1"
59
+ },
60
+ "devDependencies": {
61
+ "@types/json-schema": "^7.0.15",
62
+ "@types/mdast": "^4.0.4",
63
+ "@types/natural-compare": "^1.4.3",
64
+ "@types/react": "^18.3.21",
65
+ "@typescript/native-preview": "7.0.0-dev.20260518.1",
66
+ "@vitest/coverage-v8": "^4.0.18",
67
+ "ajv": "^6.12.6",
68
+ "eslint": "^10.0.0",
69
+ "json-schema": "^0.4.0",
70
+ "markdown-table": "^3.0.4",
71
+ "marked": "^15.0.12",
72
+ "mdast-util-from-markdown": "^2.0.2",
73
+ "mdast-util-mdx": "^3.0.0",
74
+ "micromark-extension-mdxjs": "^3.0.0",
75
+ "prettier": "3.8.0",
76
+ "rimraf": "^5.0.10",
77
+ "title-case": "^4.3.2",
78
+ "tsx": "^4.7.2",
79
+ "typescript": ">=4.8.4 <6.1.0",
80
+ "unist-util-visit": "^5.0.0",
81
+ "vitest": "^4.0.18",
82
+ "@typescript-eslint/rule-tester": "8.61.1",
83
+ "@typescript-eslint/rule-schema-to-typescript-types": "8.61.1"
84
+ },
85
+ "peerDependencies": {
86
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
87
+ "typescript": ">=4.8.4 <6.1.0",
88
+ "@typescript-eslint/parser": "^8.61.1"
89
+ },
90
+ "funding": {
91
+ "type": "opencollective",
92
+ "url": "https://opencollective.com/typescript-eslint"
93
+ },
94
+ "nx": {
95
+ "name": "eslint-plugin",
96
+ "includedScripts": [
97
+ "clean"
98
+ ],
99
+ "targets": {
100
+ "generate-breaking-changes": {
101
+ "command": "tsx tools/generate-breaking-changes.mts",
102
+ "options": {
103
+ "cwd": "{projectRoot}"
104
+ },
105
+ "dependsOn": [
106
+ "type-utils:build"
107
+ ]
108
+ },
109
+ "lint": {
110
+ "command": "eslint"
111
+ },
112
+ "typecheck:tsgo": {}
113
+ }
114
+ },
115
+ "scripts": {
116
+ "build": "pnpm -w exec nx build",
117
+ "clean": "rimraf dist/ coverage/",
118
+ "format": "pnpm -w run format",
119
+ "generate-breaking-changes": "tsx tools/generate-breaking-changes.mts",
120
+ "generate-configs": "pnpm -w run generate-configs",
121
+ "lint": "pnpm -w exec nx lint",
122
+ "test": "pnpm -w exec nx test",
123
+ "typecheck": "pnpm -w exec nx typecheck",
124
+ "typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo"
125
+ }
126
+ }
node_modules/@typescript-eslint/eslint-plugin/raw-plugin.d.ts ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+
3
+ import type plugin from './index';
4
+
5
+ declare const cjsExport: {
6
+ flatConfigs: {
7
+ 'flat/all': FlatConfig.ConfigArray;
8
+ 'flat/base': FlatConfig.Config;
9
+ 'flat/disable-type-checked': FlatConfig.Config;
10
+ 'flat/eslint-recommended': FlatConfig.Config;
11
+ 'flat/recommended': FlatConfig.ConfigArray;
12
+ 'flat/recommended-type-checked': FlatConfig.ConfigArray;
13
+ 'flat/recommended-type-checked-only': FlatConfig.ConfigArray;
14
+ 'flat/strict': FlatConfig.ConfigArray;
15
+ 'flat/strict-type-checked': FlatConfig.ConfigArray;
16
+ 'flat/strict-type-checked-only': FlatConfig.ConfigArray;
17
+ 'flat/stylistic': FlatConfig.ConfigArray;
18
+ 'flat/stylistic-type-checked': FlatConfig.ConfigArray;
19
+ 'flat/stylistic-type-checked-only': FlatConfig.ConfigArray;
20
+ };
21
+ parser: FlatConfig.Parser;
22
+ plugin: typeof plugin;
23
+ };
24
+
25
+ export = cjsExport;
node_modules/@typescript-eslint/eslint-plugin/rules.d.ts ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ We purposely don't generate types for our plugin because TL;DR:
3
+ 1) there's no real reason that anyone should do a typed import of our rules,
4
+ 2) it would require us to change our code so there aren't as many inferred types
5
+
6
+ This type declaration exists as a hacky way to add a type to the export for our
7
+ internal packages that require it.
8
+
9
+ *** Long reason ***
10
+
11
+ When you turn on declaration files, TS requires all types to be "fully resolvable"
12
+ without changes to the code.
13
+ All of our lint rules `export default createRule(...)`, which means they all
14
+ implicitly reference the `TSESLint.Rule` type for the export.
15
+
16
+ TS wants to transpile each rule file to this `.d.ts` file:
17
+
18
+ ```ts
19
+ import type { TSESLint } from '@typescript-eslint/utils';
20
+ declare const _default: TSESLint.RuleModule<TMessageIds, TOptions, TSESLint.RuleListener>;
21
+ export default _default;
22
+ ```
23
+
24
+ Because we don't import `TSESLint` in most files, it means that TS would have to
25
+ insert a new import during the declaration emit to make this work.
26
+ However TS wants to avoid adding new imports to the file because a new module
27
+ could have type side-effects (like global augmentation) which could cause weird
28
+ type side-effects in the decl file that wouldn't exist in source TS file.
29
+
30
+ So TS errors on most of our rules with the following error:
31
+ ```
32
+ The inferred type of 'default' cannot be named without a reference to
33
+ '../../../../node_modules/@typescript-eslint/utils/src/ts-eslint/Rule'.
34
+ This is likely not portable. A type annotation is necessary. ts(2742)
35
+ ```
36
+ */
37
+ /* eslint-disable no-restricted-syntax */
38
+
39
+ import type {
40
+ RuleModuleWithMetaDocs,
41
+ RuleRecommendation,
42
+ RuleRecommendationAcrossConfigs,
43
+ } from '@typescript-eslint/utils/ts-eslint';
44
+
45
+ interface ESLintPluginDocs {
46
+ /**
47
+ * Does the rule extend (or is it based off of) an ESLint code rule?
48
+ * Alternately accepts the name of the base rule, in case the rule has been renamed.
49
+ * This is only used for documentation purposes.
50
+ */
51
+ extendsBaseRule?: boolean | string;
52
+
53
+ /**
54
+ * If a string config name, which starting config this rule is enabled in.
55
+ * If an object, which settings it has enabled in each of those configs.
56
+ */
57
+ recommended?: RuleRecommendation | RuleRecommendationAcrossConfigs<unknown[]>;
58
+
59
+ /**
60
+ * Does the rule require us to create a full TypeScript Program in order for it
61
+ * to type-check code. This is only used for documentation purposes.
62
+ */
63
+ requiresTypeChecking?: boolean;
64
+ }
65
+
66
+ type ESLintPluginRuleModule = RuleModuleWithMetaDocs<
67
+ string,
68
+ readonly unknown[],
69
+ ESLintPluginDocs
70
+ >;
71
+
72
+ type TypeScriptESLintRules = Record<
73
+ string,
74
+ RuleModuleWithMetaDocs<string, unknown[], ESLintPluginDocs>
75
+ >;
76
+
77
+ declare const rules: TypeScriptESLintRules;
78
+
79
+ declare namespace rules {
80
+ export type {
81
+ ESLintPluginDocs,
82
+ ESLintPluginRuleModule,
83
+ TypeScriptESLintRules,
84
+ };
85
+ }
86
+
87
+ export = rules;
node_modules/@typescript-eslint/parser/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2019 typescript-eslint and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
node_modules/@typescript-eslint/parser/README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # `@typescript-eslint/parser`
2
+
3
+ > An ESLint parser which leverages <a href="https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/typescript-estree">TypeScript ESTree</a> to allow for ESLint to lint TypeScript source code.
4
+
5
+ [![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/parser.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/parser)
6
+ [![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/parser.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/parser)
7
+
8
+ 👉 See **https://typescript-eslint.io/packages/parser** for documentation on this package.
9
+
10
+ > See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
11
+
12
+ <!-- Local path for docs: docs/packages/Parser.mdx -->
node_modules/@typescript-eslint/parser/package.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@typescript-eslint/parser",
3
+ "version": "8.61.1",
4
+ "description": "An ESLint custom parser which leverages TypeScript ESTree",
5
+ "files": [
6
+ "dist",
7
+ "!**/*.tsbuildinfo",
8
+ "README.md",
9
+ "LICENSE"
10
+ ],
11
+ "type": "commonjs",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
19
+ "engines": {
20
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/typescript-eslint/typescript-eslint.git",
25
+ "directory": "packages/parser"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/typescript-eslint/typescript-eslint/issues"
29
+ },
30
+ "homepage": "https://typescript-eslint.io/packages/parser",
31
+ "license": "MIT",
32
+ "keywords": [
33
+ "ast",
34
+ "ecmascript",
35
+ "javascript",
36
+ "typescript",
37
+ "parser",
38
+ "syntax",
39
+ "eslint"
40
+ ],
41
+ "peerDependencies": {
42
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
43
+ "typescript": ">=4.8.4 <6.1.0"
44
+ },
45
+ "dependencies": {
46
+ "debug": "^4.4.3",
47
+ "@typescript-eslint/scope-manager": "8.61.1",
48
+ "@typescript-eslint/types": "8.61.1",
49
+ "@typescript-eslint/typescript-estree": "8.61.1",
50
+ "@typescript-eslint/visitor-keys": "8.61.1"
51
+ },
52
+ "devDependencies": {
53
+ "@typescript/native-preview": "7.0.0-dev.20260518.1",
54
+ "@vitest/coverage-v8": "^4.0.18",
55
+ "eslint": "^10.0.0",
56
+ "glob": "^11.1.0",
57
+ "rimraf": "^5.0.10",
58
+ "typescript": ">=4.8.4 <6.1.0",
59
+ "vitest": "^4.0.18"
60
+ },
61
+ "funding": {
62
+ "type": "opencollective",
63
+ "url": "https://opencollective.com/typescript-eslint"
64
+ },
65
+ "nx": {
66
+ "name": "parser",
67
+ "includedScripts": [
68
+ "clean"
69
+ ],
70
+ "targets": {
71
+ "lint": {
72
+ "command": "eslint"
73
+ },
74
+ "typecheck:tsgo": {}
75
+ }
76
+ },
77
+ "scripts": {
78
+ "build": "pnpm exec nx build",
79
+ "clean": "rimraf dist/ coverage/",
80
+ "format": "pnpm -w run format",
81
+ "lint": "pnpm -w exec nx lint",
82
+ "test": "pnpm -w exec nx test",
83
+ "typecheck": "pnpm -w exec nx typecheck",
84
+ "typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo"
85
+ }
86
+ }
node_modules/@typescript-eslint/project-service/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2025 typescript-eslint and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
node_modules/@typescript-eslint/project-service/README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # `@typescript-eslint/project-service`
2
+
3
+ > Standalone TypeScript project service wrapper for linting.
4
+
5
+ [![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/project-service.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/project-service)
6
+ [![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/project-service.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/project-service)
7
+
8
+ A standalone export of the "Project Service" that powers typed linting for typescript-eslint.
9
+
10
+ > See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
11
+
12
+ <!-- Local path for docs: docs/packages/Project_Service.mdx -->
node_modules/@typescript-eslint/project-service/package.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@typescript-eslint/project-service",
3
+ "version": "8.61.1",
4
+ "description": "Standalone TypeScript project service wrapper for linting.",
5
+ "files": [
6
+ "dist",
7
+ "!**/*.tsbuildinfo",
8
+ "package.json",
9
+ "README.md",
10
+ "LICENSE"
11
+ ],
12
+ "type": "commonjs",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "./package.json": "./package.json"
19
+ },
20
+ "types": "./dist/index.d.ts",
21
+ "engines": {
22
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/typescript-eslint/typescript-eslint.git",
27
+ "directory": "packages/project-service"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/typescript-eslint/typescript-eslint/issues"
31
+ },
32
+ "homepage": "https://typescript-eslint.io",
33
+ "license": "MIT",
34
+ "keywords": [
35
+ "eslint",
36
+ "typescript",
37
+ "estree"
38
+ ],
39
+ "peerDependencies": {
40
+ "typescript": ">=4.8.4 <6.1.0"
41
+ },
42
+ "dependencies": {
43
+ "debug": "^4.4.3",
44
+ "@typescript-eslint/tsconfig-utils": "^8.61.1",
45
+ "@typescript-eslint/types": "^8.61.1"
46
+ },
47
+ "devDependencies": {
48
+ "@typescript/native-preview": "7.0.0-dev.20260518.1",
49
+ "@vitest/coverage-v8": "^4.0.18",
50
+ "rimraf": "^5.0.10",
51
+ "typescript": ">=4.8.4 <6.1.0",
52
+ "vitest": "^4.0.18"
53
+ },
54
+ "funding": {
55
+ "type": "opencollective",
56
+ "url": "https://opencollective.com/typescript-eslint"
57
+ },
58
+ "publishConfig": {
59
+ "access": "public"
60
+ },
61
+ "nx": {
62
+ "name": "project-service",
63
+ "includedScripts": [
64
+ "clean"
65
+ ],
66
+ "targets": {
67
+ "lint": {
68
+ "command": "eslint"
69
+ },
70
+ "typecheck:tsgo": {}
71
+ }
72
+ },
73
+ "scripts": {
74
+ "//": "These package scripts are mostly here for convenience. Task running is handled by Nx at the root level.",
75
+ "build": "pnpm exec nx build",
76
+ "clean": "rimraf dist/ coverage/",
77
+ "format": "pnpm -w run format",
78
+ "lint": "pnpm -w exec nx lint",
79
+ "test": "pnpm -w exec nx test",
80
+ "typecheck": "pnpm -w exec nx typecheck",
81
+ "typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo"
82
+ }
83
+ }
node_modules/@typescript-eslint/scope-manager/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2019 typescript-eslint and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
node_modules/@typescript-eslint/scope-manager/README.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # `@typescript-eslint/scope-manager`
2
+
3
+ [![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager)
4
+ [![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager)
5
+
6
+ 👉 See **https://typescript-eslint.io/packages/scope-manager** for documentation on this package.
7
+
8
+ > See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
9
+
10
+ <!-- Local path for docs: docs/packages/Scope_Manager.mdx -->
node_modules/@typescript-eslint/scope-manager/package.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@typescript-eslint/scope-manager",
3
+ "version": "8.61.1",
4
+ "description": "TypeScript scope analyser for ESLint",
5
+ "files": [
6
+ "dist",
7
+ "!**/*.tsbuildinfo",
8
+ "package.json",
9
+ "README.md",
10
+ "LICENSE"
11
+ ],
12
+ "type": "commonjs",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "./package.json": "./package.json"
19
+ },
20
+ "types": "./dist/index.d.ts",
21
+ "engines": {
22
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/typescript-eslint/typescript-eslint.git",
27
+ "directory": "packages/scope-manager"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/typescript-eslint/typescript-eslint/issues"
31
+ },
32
+ "homepage": "https://typescript-eslint.io/packages/scope-manager",
33
+ "license": "MIT",
34
+ "keywords": [
35
+ "eslint",
36
+ "typescript",
37
+ "estree"
38
+ ],
39
+ "dependencies": {
40
+ "@typescript-eslint/types": "8.61.1",
41
+ "@typescript-eslint/visitor-keys": "8.61.1"
42
+ },
43
+ "devDependencies": {
44
+ "@typescript/native-preview": "7.0.0-dev.20260518.1",
45
+ "@vitest/coverage-v8": "^4.0.18",
46
+ "@vitest/pretty-format": "^4.0.18",
47
+ "eslint": "^10.0.0",
48
+ "glob": "^11.1.0",
49
+ "rimraf": "^5.0.10",
50
+ "typescript": ">=4.8.4 <6.1.0",
51
+ "vitest": "^4.0.18",
52
+ "@typescript-eslint/typescript-estree": "8.61.1"
53
+ },
54
+ "funding": {
55
+ "type": "opencollective",
56
+ "url": "https://opencollective.com/typescript-eslint"
57
+ },
58
+ "nx": {
59
+ "name": "scope-manager",
60
+ "includedScripts": [
61
+ "clean",
62
+ "clean-fixtures"
63
+ ],
64
+ "targets": {
65
+ "lint": {
66
+ "command": "eslint"
67
+ },
68
+ "typecheck:tsgo": {}
69
+ }
70
+ },
71
+ "scripts": {
72
+ "build": "pnpm exec nx build",
73
+ "clean": "rimraf dist/ coverage/",
74
+ "clean-fixtures": "rimraf -g \"./src/**/fixtures/**/snapshots\"",
75
+ "format": "pnpm -w run format",
76
+ "generate-lib": "pnpm -w exec nx generate-lib repo",
77
+ "lint": "pnpm -w exec nx lint",
78
+ "test": "pnpm -w exec nx test",
79
+ "typecheck": "pnpm -w exec nx typecheck",
80
+ "typecheck:tsgo": "pnpm -w exec nx typecheck:tsgo"
81
+ }
82
+ }
node_modules/@typescript-eslint/tsconfig-utils/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2025 typescript-eslint and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.