@lynx-js/webpack-dev-transport-canary 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/LICENSE +202 -0
- package/README.md +49 -0
- package/lib/client/createSocketURL.d.ts +1 -0
- package/lib/client/createSocketURL.js +95 -0
- package/lib/client/index.d.ts +15 -0
- package/lib/client/index.js +119 -0
- package/lib/client/log.d.ts +9 -0
- package/lib/client/log.js +26 -0
- package/lib/client/parseURL.d.ts +1 -0
- package/lib/client/parseURL.js +18 -0
- package/lib/client/reloadApp.d.ts +3 -0
- package/lib/client/reloadApp.js +44 -0
- package/lib/client/socket.d.ts +4 -0
- package/lib/client/socket.js +52 -0
- package/lib/client/transport.d.ts +49 -0
- package/lib/client/transport.js +50 -0
- package/lib/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +54 -0
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<h2 align="center">@lynx-js/webpack-dev-transport</h2>
|
|
2
|
+
|
|
3
|
+
A webpack devServer transport implementation for Lynx.
|
|
4
|
+
|
|
5
|
+
### Client
|
|
6
|
+
|
|
7
|
+
The client transport can be used in the
|
|
8
|
+
[`devServer.client.webSocketTransport`](https://webpack.js.org/configuration/dev-server/#websockettransport)
|
|
9
|
+
configuration of `webpack.config.js`.
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
13
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
14
|
+
// LICENSE file in the root directory of this source tree.
|
|
15
|
+
import { createRequire } from 'node:module';
|
|
16
|
+
|
|
17
|
+
import { LynxTransportServer } from '@lynx-js/webpack-dev-transport';
|
|
18
|
+
|
|
19
|
+
const require = createRequire(import.meta.url);
|
|
20
|
+
export default {
|
|
21
|
+
devServer: {
|
|
22
|
+
client: {
|
|
23
|
+
webSocketTransport: require.resolve(
|
|
24
|
+
'@lynx-js/webpack-dev-transport/client',
|
|
25
|
+
),
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Server
|
|
32
|
+
|
|
33
|
+
The server transport can be used in the
|
|
34
|
+
[`devServer.webSocketServer`](https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver)
|
|
35
|
+
configuration of `webpack.config.js`.
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
39
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
40
|
+
// LICENSE file in the root directory of this source tree.
|
|
41
|
+
import { LynxTransportServer } from '@lynx-js/webpack-dev-transport';
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
devServer: {
|
|
45
|
+
allowedHosts: 'all', // disable host checks, which Lynx does not support
|
|
46
|
+
webSocketServer: LynxTransportServer,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createSocketURL(parsedURL: URL, compilationId?: string): string;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
function format(objURL) {
|
|
5
|
+
let protocol = objURL.protocol ?? '';
|
|
6
|
+
if (protocol && !protocol.endsWith(':')) {
|
|
7
|
+
protocol += ':';
|
|
8
|
+
}
|
|
9
|
+
let auth = objURL.auth ?? '';
|
|
10
|
+
if (auth) {
|
|
11
|
+
auth = encodeURIComponent(auth);
|
|
12
|
+
auth = auth.replace(/%3a/i, ':');
|
|
13
|
+
auth += '@';
|
|
14
|
+
}
|
|
15
|
+
let host = '';
|
|
16
|
+
if (objURL.hostname) {
|
|
17
|
+
host = auth
|
|
18
|
+
+ (objURL.hostname.includes(':')
|
|
19
|
+
? `[${objURL.hostname}]`
|
|
20
|
+
: objURL.hostname);
|
|
21
|
+
if (objURL.port) {
|
|
22
|
+
host += `:${objURL.port}`;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
let pathname = objURL.pathname ?? '';
|
|
26
|
+
if (objURL.slashes) {
|
|
27
|
+
host = `//${host || ''}`;
|
|
28
|
+
if (pathname && !pathname.startsWith('/')) {
|
|
29
|
+
pathname = `/${pathname}`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else if (!host) {
|
|
33
|
+
host = '';
|
|
34
|
+
}
|
|
35
|
+
let search = objURL.search ?? '';
|
|
36
|
+
if (search && !search.startsWith('?')) {
|
|
37
|
+
search = `?${search}`;
|
|
38
|
+
}
|
|
39
|
+
let hash = objURL.hash ?? '';
|
|
40
|
+
if (hash && !hash.startsWith('#')) {
|
|
41
|
+
hash = `#${hash}`;
|
|
42
|
+
}
|
|
43
|
+
pathname = pathname.replace(/[#?]/g,
|
|
44
|
+
/**
|
|
45
|
+
* @param {string} match
|
|
46
|
+
* @returns {string}
|
|
47
|
+
*/
|
|
48
|
+
(match) => encodeURIComponent(match));
|
|
49
|
+
search = search.replace('#', '%23');
|
|
50
|
+
return `${protocol}${host}${pathname}${search}${hash}`;
|
|
51
|
+
}
|
|
52
|
+
export function createSocketURL(parsedURL, compilationId) {
|
|
53
|
+
const { hostname } = parsedURL;
|
|
54
|
+
let socketURLProtocol = parsedURL.protocol;
|
|
55
|
+
socketURLProtocol = socketURLProtocol.replace(/^(?:http|.+-extension|file)/i, 'ws');
|
|
56
|
+
let socketURLAuth = '';
|
|
57
|
+
// `new URL(urlString, [baseURLstring])` doesn't have `auth` property
|
|
58
|
+
// Parse authentication credentials in case we need them
|
|
59
|
+
if (parsedURL.username) {
|
|
60
|
+
socketURLAuth = parsedURL.username;
|
|
61
|
+
// Since HTTP basic authentication does not allow empty username,
|
|
62
|
+
// we only include password if the username is not empty.
|
|
63
|
+
if (parsedURL.password) {
|
|
64
|
+
// Result: <username>:<password>
|
|
65
|
+
socketURLAuth = socketURLAuth.concat(':', parsedURL.password);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// In case the host is a raw IPv6 address, it can be enclosed in
|
|
69
|
+
// the brackets as the brackets are needed in the final URL string.
|
|
70
|
+
// Need to remove those as url.format blindly adds its own set of brackets
|
|
71
|
+
// if the host string contains colons. That would lead to non-working
|
|
72
|
+
// double brackets (e.g. [[::]]) host
|
|
73
|
+
//
|
|
74
|
+
// All of these web socket url params are optionally passed in through resourceQuery,
|
|
75
|
+
// so we need to fall back to the default if they are not provided
|
|
76
|
+
const socketURLHostname = hostname.replace(/^\[(.*)\]$/, '$1');
|
|
77
|
+
const socketURLPort = parsedURL.port;
|
|
78
|
+
// If path is provided it'll be passed in via the resourceQuery as a
|
|
79
|
+
// query param so it has to be parsed out of the querystring in order for the
|
|
80
|
+
// client to open the socket to the correct location.
|
|
81
|
+
let socketURLPathname = '/ws';
|
|
82
|
+
if (parsedURL.pathname) {
|
|
83
|
+
socketURLPathname = parsedURL.pathname;
|
|
84
|
+
}
|
|
85
|
+
return format({
|
|
86
|
+
protocol: socketURLProtocol,
|
|
87
|
+
auth: socketURLAuth,
|
|
88
|
+
hostname: socketURLHostname,
|
|
89
|
+
port: socketURLPort,
|
|
90
|
+
pathname: socketURLPathname,
|
|
91
|
+
slashes: true,
|
|
92
|
+
search: compilationId ? `?compilationId=${compilationId}` : '',
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=createSocketURL.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LynxTransportClient } from './transport.js';
|
|
2
|
+
export interface Options {
|
|
3
|
+
hot: boolean;
|
|
4
|
+
liveReload: boolean;
|
|
5
|
+
progress: boolean;
|
|
6
|
+
logging?: string;
|
|
7
|
+
reconnect?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface Status {
|
|
10
|
+
isReconnecting: boolean;
|
|
11
|
+
currentHash: string;
|
|
12
|
+
previousHash?: string;
|
|
13
|
+
}
|
|
14
|
+
export default LynxTransportClient;
|
|
15
|
+
export type { Client } from './transport.js';
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
import { createSocketURL } from './createSocketURL.js';
|
|
5
|
+
import { log, logEnabledFeatures } from './log.js';
|
|
6
|
+
import { parseURL } from './parseURL.js';
|
|
7
|
+
import reloadApp from './reloadApp.js';
|
|
8
|
+
import socket from './socket.js';
|
|
9
|
+
import { LynxTransportClient } from './transport.js';
|
|
10
|
+
const status = {
|
|
11
|
+
isReconnecting: false,
|
|
12
|
+
currentHash: __webpack_hash__,
|
|
13
|
+
};
|
|
14
|
+
const enabledFeatures = {
|
|
15
|
+
'Hot Module Replacement': false,
|
|
16
|
+
'Live Reloading': false,
|
|
17
|
+
Progress: false,
|
|
18
|
+
Overlay: false,
|
|
19
|
+
};
|
|
20
|
+
const options = {
|
|
21
|
+
hot: false,
|
|
22
|
+
liveReload: false,
|
|
23
|
+
progress: false,
|
|
24
|
+
};
|
|
25
|
+
const parsedResourceQuery = parseURL(__resourceQuery);
|
|
26
|
+
const compilationId = RSPEEDY_COMPILATION_ID;
|
|
27
|
+
if (parsedResourceQuery['hot'] === 'true') {
|
|
28
|
+
options.hot = true;
|
|
29
|
+
enabledFeatures['Hot Module Replacement'] = true;
|
|
30
|
+
}
|
|
31
|
+
if (parsedResourceQuery['live-reload'] === 'true') {
|
|
32
|
+
options.liveReload = true;
|
|
33
|
+
enabledFeatures['Live Reloading'] = true;
|
|
34
|
+
}
|
|
35
|
+
if (parsedResourceQuery['progress'] === 'true') {
|
|
36
|
+
options.progress = true;
|
|
37
|
+
enabledFeatures.Progress = true;
|
|
38
|
+
}
|
|
39
|
+
logEnabledFeatures(enabledFeatures);
|
|
40
|
+
const onSocketMessage = {
|
|
41
|
+
hot() {
|
|
42
|
+
if (parsedResourceQuery['hot'] === 'false') {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
options.hot = true;
|
|
46
|
+
},
|
|
47
|
+
liveReload() {
|
|
48
|
+
if (parsedResourceQuery['live-reload'] === 'false') {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
options.liveReload = true;
|
|
52
|
+
},
|
|
53
|
+
invalid() {
|
|
54
|
+
log.info('App updated. Recompiling...');
|
|
55
|
+
},
|
|
56
|
+
hash(hash) {
|
|
57
|
+
if (status.isReconnecting) {
|
|
58
|
+
// We only need this once when reconnecting
|
|
59
|
+
status.isReconnecting = false;
|
|
60
|
+
// Here, we not only override the currentHash, but also override the
|
|
61
|
+
// previousHash and the hash in webpack runtime.
|
|
62
|
+
// In this way, we reset all the hash-related runtime status to match
|
|
63
|
+
// the cold start.
|
|
64
|
+
status.currentHash = status.previousHash = hash;
|
|
65
|
+
// @ts-expect-error webpack runtime hack
|
|
66
|
+
/* webpack/runtime/getFullHash */ __webpack_require__.h = function () {
|
|
67
|
+
return hash;
|
|
68
|
+
};
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
status.previousHash = status.currentHash;
|
|
72
|
+
status.currentHash = hash;
|
|
73
|
+
},
|
|
74
|
+
reconnect(value) {
|
|
75
|
+
if (parsedResourceQuery['reconnect'] === 'false') {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
options.reconnect = value;
|
|
79
|
+
},
|
|
80
|
+
progress(value) {
|
|
81
|
+
options.progress = value;
|
|
82
|
+
},
|
|
83
|
+
'still-ok': function stillOk() {
|
|
84
|
+
log.info('Nothing changed.');
|
|
85
|
+
},
|
|
86
|
+
ok() {
|
|
87
|
+
reloadApp(options, status);
|
|
88
|
+
},
|
|
89
|
+
warnings(_warnings, params) {
|
|
90
|
+
// TODO: format warnings
|
|
91
|
+
if (params?.preventReloading) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
reloadApp(options, status);
|
|
95
|
+
},
|
|
96
|
+
'static-changed': function staticChanged(file) {
|
|
97
|
+
log.info(`${file ? `"${file}"` : 'Content'} from static directory was changed. Reloading...`);
|
|
98
|
+
reloadApp({ liveReload: true, hot: false, progress: false }, status);
|
|
99
|
+
},
|
|
100
|
+
errors(_errors) {
|
|
101
|
+
log.error('Errors while compiling. Reload prevented.');
|
|
102
|
+
// TODO: format errors
|
|
103
|
+
},
|
|
104
|
+
error(error) {
|
|
105
|
+
log.error(error.toString());
|
|
106
|
+
},
|
|
107
|
+
close() {
|
|
108
|
+
// When the dev-server disconnected, we set `isReconnecting` to allow
|
|
109
|
+
// override the webpack hash when dev-server restart and connect to client.
|
|
110
|
+
status.isReconnecting = true;
|
|
111
|
+
log.info('Disconnected!');
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
const socketURL = createSocketURL(parsedResourceQuery, compilationId);
|
|
115
|
+
// @ts-expect-error I don't know TypeScript. I can't make it work :(
|
|
116
|
+
socket(socketURL, onSocketMessage, options.reconnect);
|
|
117
|
+
// Export the transport client so that it can be used in the `devServer.client.webSocketTransport`
|
|
118
|
+
export default LynxTransportClient;
|
|
119
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const log: {
|
|
2
|
+
error(...args: string[]): void;
|
|
3
|
+
warn(...args: string[]): void;
|
|
4
|
+
info(...args: string[]): void;
|
|
5
|
+
log(...args: string[]): void;
|
|
6
|
+
debug(...args: string[]): void;
|
|
7
|
+
};
|
|
8
|
+
declare const logEnabledFeatures: (features: Record<string, boolean>) => void;
|
|
9
|
+
export { logEnabledFeatures, log };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
const PREFIX = '[rspeedy-dev-server]';
|
|
5
|
+
const log = {
|
|
6
|
+
error: console.error.bind(console, PREFIX),
|
|
7
|
+
warn: console.warn.bind(console, PREFIX),
|
|
8
|
+
info: console.info.bind(console, PREFIX),
|
|
9
|
+
log: console.log.bind(console, PREFIX),
|
|
10
|
+
debug: console.debug.bind(console, PREFIX),
|
|
11
|
+
};
|
|
12
|
+
const logEnabledFeatures = (features) => {
|
|
13
|
+
if (!features || Object.keys(features).length === 0) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
let logString = 'Server started:';
|
|
17
|
+
// Server started: Hot Module Replacement enabled, Live Reloading enabled, Overlay disabled.
|
|
18
|
+
for (const [key, enable] of Object.entries(features)) {
|
|
19
|
+
logString += ` ${key} ${enable ? 'enabled' : 'disabled'},`;
|
|
20
|
+
}
|
|
21
|
+
// replace last comma with a period
|
|
22
|
+
logString = logString.slice(0, -1).concat('.');
|
|
23
|
+
log.info(logString);
|
|
24
|
+
};
|
|
25
|
+
export { logEnabledFeatures, log };
|
|
26
|
+
//# sourceMappingURL=log.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseURL(resourceQuery: string | null): Record<string, string | boolean>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
export function parseURL(resourceQuery) {
|
|
5
|
+
const options = {};
|
|
6
|
+
if (!resourceQuery?.startsWith('?')) {
|
|
7
|
+
return options;
|
|
8
|
+
}
|
|
9
|
+
const searchParams = resourceQuery.slice(1).split('&');
|
|
10
|
+
for (const keyValuePair of searchParams) {
|
|
11
|
+
const [key, value] = keyValuePair.split('=');
|
|
12
|
+
options[key] = value === undefined
|
|
13
|
+
? true
|
|
14
|
+
: decodeURIComponent(value);
|
|
15
|
+
}
|
|
16
|
+
return options;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=parseURL.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
import hotEmitter from 'webpack/hot/emitter.js';
|
|
5
|
+
function reloadApp({ hot, liveReload }, status) {
|
|
6
|
+
const { currentHash, previousHash } = status;
|
|
7
|
+
const isInitial = currentHash.includes(previousHash);
|
|
8
|
+
if (isInitial) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (hot) {
|
|
12
|
+
hotEmitter.emit('webpackHotUpdate', status.currentHash);
|
|
13
|
+
} // allow refreshing the page only if liveReload isn't disabled
|
|
14
|
+
else if (liveReload) {
|
|
15
|
+
const intervalId = +setInterval(() => {
|
|
16
|
+
// reload immediately
|
|
17
|
+
applyReload(intervalId);
|
|
18
|
+
}, 10);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function applyReload(intervalId) {
|
|
22
|
+
clearInterval(intervalId);
|
|
23
|
+
NativeModules.LynxDevtoolSetModule.invokeCdp('Page.reload', JSON.stringify({
|
|
24
|
+
method: 'Page.reload',
|
|
25
|
+
params: {
|
|
26
|
+
ignoreCache: true,
|
|
27
|
+
},
|
|
28
|
+
}), (data) => {
|
|
29
|
+
if (!data) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
try {
|
|
33
|
+
const { error } = JSON.parse(data);
|
|
34
|
+
if (error) {
|
|
35
|
+
console.error('[HMR] live-reload failed:', error.message);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
// explicitly ignore error
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export default reloadApp;
|
|
44
|
+
//# sourceMappingURL=reloadApp.js.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
import { log } from './log.js';
|
|
5
|
+
import { LynxTransportClient } from './transport.js';
|
|
6
|
+
// this LynxTransportClient is here as a default fallback, in case the client is not injected
|
|
7
|
+
const C = typeof __webpack_dev_server_client__ === 'undefined'
|
|
8
|
+
? LynxTransportClient
|
|
9
|
+
: ('default' in __webpack_dev_server_client__
|
|
10
|
+
? __webpack_dev_server_client__.default
|
|
11
|
+
: __webpack_dev_server_client__);
|
|
12
|
+
let retries = 0;
|
|
13
|
+
let maxRetries = 10;
|
|
14
|
+
// Initialized client is exported so external consumers can utilize the same instance
|
|
15
|
+
// It is mutable to enforce singleton
|
|
16
|
+
export let client = null;
|
|
17
|
+
const socket = function initSocket(url, handlers, reconnect) {
|
|
18
|
+
client = new C(url);
|
|
19
|
+
client.onOpen(() => {
|
|
20
|
+
retries = 0;
|
|
21
|
+
if (reconnect !== undefined) {
|
|
22
|
+
maxRetries = reconnect;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
client.onClose(() => {
|
|
26
|
+
if (retries === 0) {
|
|
27
|
+
handlers['close']?.(void 0, void 0);
|
|
28
|
+
}
|
|
29
|
+
// Try to reconnect.
|
|
30
|
+
client = null;
|
|
31
|
+
// After 10 retries stop trying, to prevent log spam.
|
|
32
|
+
if (retries < maxRetries) {
|
|
33
|
+
// Exponentially increase timeout to reconnect.
|
|
34
|
+
// Respectfully copied from the package `got`.
|
|
35
|
+
const retryInMs = 1000 * Math.pow(2, retries) + Math.random() * 100;
|
|
36
|
+
retries += 1;
|
|
37
|
+
log.info('Trying to reconnect...');
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
socket(url, handlers, reconnect);
|
|
40
|
+
}, retryInMs);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
log.error('Unable to establish a connection after exceeding the maximum retry attempts.');
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
client.onMessage((data) => {
|
|
47
|
+
const message = JSON.parse(data);
|
|
48
|
+
handlers[message.type]?.(message.data, message.params);
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export default socket;
|
|
52
|
+
//# sourceMappingURL=socket.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client is the interface that {@link https://github.com/webpack/webpack-dev-server/blob/48f56d57775dc4cf78bfcf51c3761adf852b0310/client-src/socket.js#L30 | `webpack-dev-server`} uses for a websocket client.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface Client {
|
|
7
|
+
/** Register a open callback */
|
|
8
|
+
onOpen(callback: () => void): void;
|
|
9
|
+
/** Register a close callback */
|
|
10
|
+
onClose(callback: () => void): void;
|
|
11
|
+
/** Register a message callback */
|
|
12
|
+
onMessage(callback: (message: string) => void): void;
|
|
13
|
+
}
|
|
14
|
+
export type ClientClass = new (url: string) => Client;
|
|
15
|
+
/**
|
|
16
|
+
* LynxTransportClient is the client transport implementation for webpack-dev-server.
|
|
17
|
+
* It can be used in the
|
|
18
|
+
* {@link https://webpack.js.org/configuration/dev-server/#websockettransport | `devServer.client.webSocketTransport`}
|
|
19
|
+
* configuration of webpack.
|
|
20
|
+
* It should be used with `LynxTransportServer`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```js
|
|
24
|
+
* // webpack.config.js
|
|
25
|
+
* import { createRequire } from 'node:module'
|
|
26
|
+
* import { LynxTransportServer } from '@lynx-js/webpack-dev-transport'
|
|
27
|
+
*
|
|
28
|
+
* const require = createRequire(import.meta.url)
|
|
29
|
+
* export default {
|
|
30
|
+
* devServer: {
|
|
31
|
+
* client: {
|
|
32
|
+
* webSocketTransport: require.resolve('@lynx-js/webpack-dev-transport/client')
|
|
33
|
+
* },
|
|
34
|
+
* allowedHosts: 'all',
|
|
35
|
+
* webSocketServer: LynxTransportServer
|
|
36
|
+
* }
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export declare class LynxTransportClient implements Client {
|
|
43
|
+
/** {@inheritdoc Client.onOpen} */
|
|
44
|
+
onOpen(callback: () => void): void;
|
|
45
|
+
/** {@inheritdoc Client.onClose} */
|
|
46
|
+
onClose(_callback: () => void): void;
|
|
47
|
+
/** {@inheritdoc Client.onMessage} */
|
|
48
|
+
onMessage(callback: (message: string) => void): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LynxTransportClient is the client transport implementation for webpack-dev-server.
|
|
3
|
+
* It can be used in the
|
|
4
|
+
* {@link https://webpack.js.org/configuration/dev-server/#websockettransport | `devServer.client.webSocketTransport`}
|
|
5
|
+
* configuration of webpack.
|
|
6
|
+
* It should be used with `LynxTransportServer`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```js
|
|
10
|
+
* // webpack.config.js
|
|
11
|
+
* import { createRequire } from 'node:module'
|
|
12
|
+
* import { LynxTransportServer } from '@lynx-js/webpack-dev-transport'
|
|
13
|
+
*
|
|
14
|
+
* const require = createRequire(import.meta.url)
|
|
15
|
+
* export default {
|
|
16
|
+
* devServer: {
|
|
17
|
+
* client: {
|
|
18
|
+
* webSocketTransport: require.resolve('@lynx-js/webpack-dev-transport/client')
|
|
19
|
+
* },
|
|
20
|
+
* allowedHosts: 'all',
|
|
21
|
+
* webSocketServer: LynxTransportServer
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export class LynxTransportClient {
|
|
29
|
+
/** @internal */
|
|
30
|
+
static EventType = 'message';
|
|
31
|
+
/** {@inheritdoc Client.onOpen} */
|
|
32
|
+
onOpen(callback) {
|
|
33
|
+
callback();
|
|
34
|
+
}
|
|
35
|
+
/** {@inheritdoc Client.onClose} */
|
|
36
|
+
onClose(_callback) {
|
|
37
|
+
// webpack-dev-server will retry in the `callback`
|
|
38
|
+
// but `onOpen` in Lynx will never fail.
|
|
39
|
+
}
|
|
40
|
+
/** {@inheritdoc Client.onMessage} */
|
|
41
|
+
onMessage(callback) {
|
|
42
|
+
lynx.getDevtool().addEventListener(LynxTransportClient.EventType, (event) => {
|
|
43
|
+
const CDP = JSON.parse(event.data.message);
|
|
44
|
+
if (CDP.method === LynxTransportClient.EventType) {
|
|
45
|
+
callback(CDP.params.data);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=transport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../client/createSocketURL.ts","../client/log.ts","../client/parseURL.ts","../client/reloadApp.ts","../client/transport.ts","../client/socket.ts","../client/index.ts","../../../../node_modules/.pnpm/webpack@5.98.0/node_modules/webpack/module.d.ts","../client/webpack.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/header.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/readable.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/file.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/fetch.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/formdata.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/connector.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/client.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-origin.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/handlers.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-client.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/api.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/interceptors.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/util.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cookies.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/patch.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/websocket.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/eventsource.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/filereader.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/content-type.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cache.d.ts","../../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/index.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/globals.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/assert.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/console.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/constants.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/dns.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/domain.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/dom-events.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/events.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/fs.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/http.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/http2.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/https.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/module.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/net.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/os.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/path.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/process.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/readline.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/repl.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/sea.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/sqlite.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/stream.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/test.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/timers.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/tls.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/tty.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/url.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/util.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/v8.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/vm.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@22.13.5/node_modules/@types/node/index.d.ts"],"fileIdsList":[[61,101,104],[61,103,104],[104],[61,104,109,139],[61,104,105,110,116,117,124,136,147],[61,104,105,106,116,124],[61,104],[56,57,58,61,104],[61,104,107,148],[61,104,108,109,117,125],[61,104,109,136,144],[61,104,110,112,116,124],[61,103,104,111],[61,104,112,113],[61,104,116],[61,104,114,116],[61,103,104,116],[61,104,116,117,118,136,147],[61,104,116,117,118,131,136,139],[61,99,104,152],[61,99,104,112,116,119,124,136,147],[61,104,116,117,119,120,124,136,144,147],[61,104,119,121,136,144,147],[59,60,61,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153],[61,104,116,122],[61,104,123,147],[61,104,112,116,124,136],[61,104,125],[61,104,126],[61,103,104,127],[61,101,102,103,104,105,106,107,108,109,110,111,112,113,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153],[61,104,129],[61,104,130],[61,104,116,131,132],[61,104,131,133,148,150],[61,104,116,136,137,138,139],[61,104,136,138],[61,104,136,137],[61,104,139],[61,104,140],[61,101,104,136],[61,104,116,142,143],[61,104,142,143],[61,104,109,124,136,144],[61,104,145],[61,104,124,146],[61,104,119,130,147],[61,104,109,148],[61,104,136,149],[61,104,123,150],[61,104,151],[61,104,109,116,118,127,136,147,150,152],[61,104,136,153],[61,71,75,104,147],[61,71,104,136,147],[61,66,104],[61,68,71,104,144,147],[61,104,124,144],[61,104,154],[61,66,104,154],[61,68,71,104,124,147],[61,63,64,67,70,104,116,136,147],[61,71,78,104],[61,63,69,104],[61,71,92,93,104],[61,67,71,104,139,147,154],[61,92,104,154],[61,65,66,104,154],[61,71,104],[61,65,66,67,68,69,70,71,72,73,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,93,94,95,96,97,98,104],[61,71,86,104],[61,71,78,79,104],[61,69,71,79,80,104],[61,70,104],[61,63,66,71,104],[61,71,75,79,80,104],[61,75,104],[61,69,71,74,104,147],[61,63,68,71,78,104],[61,104,136],[61,66,71,92,104,152,154],[47,48,49,50,51,52,61,104],[53,55,61,104],[48,51,61,104],[54,61,104,116]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"ced84faa6959090b5370882e21f379bc9ab6553dfddba6e8acb85557bacf4cce","signature":"6d73bed48029844a547439e4bf9c0e7b54beef3af07c2914a397e060650b394e","impliedFormat":99},{"version":"2e2af82ba1549b4a90698e171623e1976327f19281d5a209e76d7485cb054532","signature":"af539af009057e5e020c42dddfbd11b305c6083901f414bc4bef6d42d6c026fa","impliedFormat":99},{"version":"1cc6db55bca59fa4f8b0a45f8198e17eb2dc9376c629dc6402c5e8e12436d54c","signature":"860ebacfaf41bbb99a100fbfc99bf8f773d74581589621ab00dff35cab9e5267","impliedFormat":99},{"version":"e9f269b0417bc6b20e8d9e88f6a9a62272c8af3613f6769ea72ce562f0059188","signature":"1bd7583b521672a4c75390b153395e106557e312a223feb1439208e21dab0c2d","impliedFormat":99},{"version":"9c80e5d7639d48670e9e731edb4b6977b927702ab8a534cbc96e29e95e465177","signature":"6ace7e13bd054d42c0c0c2340d307eaa09c15f5efea286de4966f4e95acbd98d","impliedFormat":99},{"version":"73d061b355cc70c74db20c26799729bbf05102436fa195023e0884983d80b1fe","signature":"18264510631e1fc101d8b57e89e81ef8ba338f01a5e3272ea7c6ddf808a4ede5","impliedFormat":99},{"version":"83116cd5c855f56f2df399d6e20b9fe620b5f14518fe1b6b18f4d110b385ae92","signature":"f6434a8811b89a04c75dc152bc8c206418f9dd3a555ede87aebc99788b5fbf9c","impliedFormat":99},{"version":"948cc78ca050257b9511411eebe02c6eab3c47627da27551aadae845685583e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"a27bab03c3fc3782337300afb9c228155433297854c31472da946c4ca0a81f13","impliedFormat":99},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"13af9e8fb6757946c48117315866177b95e554d1e773577bb6ca6e40083b6d73","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4f0539c58717cbc8b73acb29f9e992ab5ff20adba5f9b57130691c7f9b186a4d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"86956cc2eb9dd371d6fab493d326a574afedebf76eef3fa7833b8e0d9b52d6f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"2ea254f944dfe131df1264d1fb96e4b1f7d110195b21f1f5dbb68fdd394e5518","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"b11cb909327c874a4e81bfb390bf0d231e5bf9439052689ab80ba8afa50da17b","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f6f1d54779d0b9ed152b0516b0958cd34889764c1190434bbf18e7a8bb884cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"f7b1df115dbd1b8522cba4f404a9f4fdcd5169e2137129187ffeee9d287e4fd1","impliedFormat":1},{"version":"b52d379b4939681f3781d1cfd5b2c3cbb35e7e76f2425172e165782f8a08228c","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"993985beef40c7d113f6dd8f0ba26eed63028b691fbfeb6a5b63f26408dd2c6d","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb094bb347d7df3380299eb69836c2c8758626ecf45917577707c03cf816b6f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"b02784111b3fc9c38590cd4339ff8718f9329a6f4d3fd66e9744a1dcd1d7e191","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1}],"root":[[47,53],55],"options":{"allowJs":false,"allowUnreachableCode":false,"allowUnusedLabels":false,"checkJs":false,"composite":true,"declaration":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"isolatedDeclarations":true,"module":100,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noPropertyAccessFromIndexSignature":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":9,"useDefineForClassFields":true,"verbatimModuleSyntax":true},"referencedMap":[[101,1],[102,1],[103,2],[61,3],[104,4],[105,5],[106,6],[56,7],[59,8],[57,7],[58,7],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,14],[115,15],[114,16],[116,17],[117,18],[118,19],[100,20],[60,7],[119,21],[120,22],[121,23],[154,24],[122,25],[123,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,33],[131,34],[132,34],[133,35],[134,7],[135,7],[136,36],[138,37],[137,38],[139,39],[140,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[62,7],[45,7],[46,7],[8,7],[10,7],[9,7],[2,7],[11,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[3,7],[19,7],[20,7],[4,7],[21,7],[25,7],[22,7],[23,7],[24,7],[26,7],[27,7],[28,7],[5,7],[29,7],[30,7],[31,7],[32,7],[6,7],[36,7],[33,7],[34,7],[35,7],[37,7],[7,7],[38,7],[43,7],[44,7],[39,7],[40,7],[41,7],[42,7],[1,7],[78,54],[88,55],[77,54],[98,56],[69,57],[68,58],[97,59],[91,60],[96,61],[71,62],[85,63],[70,64],[94,65],[66,66],[65,59],[95,67],[67,68],[72,69],[73,7],[76,69],[63,7],[99,70],[89,71],[80,72],[81,73],[83,74],[79,75],[82,76],[92,59],[74,77],[75,78],[84,79],[64,80],[87,71],[86,69],[90,7],[93,81],[54,7],[47,7],[53,82],[48,7],[49,7],[50,83],[52,84],[51,7],[55,85]],"latestChangedDtsFile":"./client/index.d.ts","version":"5.7.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lynx-js/webpack-dev-transport-canary",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A webpack dev-server transport implementation for Lynx",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"webpack",
|
|
7
|
+
"Lynx"
|
|
8
|
+
],
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Qingyu Wang",
|
|
12
|
+
"email": "colinwang.0616@gmail.com"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
"./client": {
|
|
17
|
+
"types": "./lib/client/index.d.ts",
|
|
18
|
+
"node": "./lib/client/index.js",
|
|
19
|
+
"import": "./lib/client/index.js"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./lib/client/index.d.ts",
|
|
23
|
+
"node": "./lib/client/index.js",
|
|
24
|
+
"import": "./lib/client/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"types": "./lib/client/index.d.ts",
|
|
28
|
+
"typesVersions": {
|
|
29
|
+
"*": {
|
|
30
|
+
"client": [
|
|
31
|
+
"lib/client/index.d.ts"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"lib",
|
|
37
|
+
"!lib/**/*.js.map",
|
|
38
|
+
"CHANGELOG.md",
|
|
39
|
+
"README.md",
|
|
40
|
+
"tsdoc-metadata.json"
|
|
41
|
+
],
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@microsoft/api-extractor": "7.51.0",
|
|
44
|
+
"webpack": "^5.98.0"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=18"
|
|
48
|
+
},
|
|
49
|
+
"tsdocMetadata": "./tsdoc-metadata.json",
|
|
50
|
+
"scripts": {
|
|
51
|
+
"api-extractor": "api-extractor run --verbose",
|
|
52
|
+
"test": "vitest"
|
|
53
|
+
}
|
|
54
|
+
}
|