@stryke/http 0.12.3 → 0.12.10
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 +385 -0
- package/README.md +18 -10
- package/dist/agent-Cc4PYJ-j.d.cts +40 -0
- package/dist/agent-Cc4PYJ-j.d.cts.map +1 -0
- package/dist/agent-DKevd8Ll.cjs +2 -0
- package/dist/agent-DXIpD4O5.d.mts +40 -0
- package/dist/agent-DXIpD4O5.d.mts.map +1 -0
- package/dist/agent-DrFvt4od.mjs +3 -0
- package/dist/agent-DrFvt4od.mjs.map +1 -0
- package/dist/agent.cjs +1 -84
- package/dist/agent.d.cts +2 -0
- package/dist/agent.d.mts +2 -0
- package/dist/agent.mjs +1 -2
- package/dist/chunk-Bmb41Sf3.cjs +1 -0
- package/dist/fetch-BYPFJG9Y.d.cts +24 -0
- package/dist/fetch-BYPFJG9Y.d.cts.map +1 -0
- package/dist/fetch-D3masEhH.d.mts +24 -0
- package/dist/fetch-D3masEhH.d.mts.map +1 -0
- package/dist/fetch-DXVSCX2B.cjs +1 -0
- package/dist/fetch-DgPaAZTB.mjs +2 -0
- package/dist/fetch-DgPaAZTB.mjs.map +1 -0
- package/dist/fetch.cjs +1 -24
- package/dist/fetch.d.cts +2 -0
- package/dist/fetch.d.mts +2 -0
- package/dist/fetch.mjs +1 -1
- package/dist/{format-data-uri.d.ts → format-data-uri-B-rw3THu.d.cts} +14 -10
- package/dist/format-data-uri-B-rw3THu.d.cts.map +1 -0
- package/dist/format-data-uri-C59EgrXn.cjs +1 -0
- package/dist/format-data-uri-D864kwXt.d.mts +50 -0
- package/dist/format-data-uri-D864kwXt.d.mts.map +1 -0
- package/dist/format-data-uri-WSwfftd0.mjs +2 -0
- package/dist/format-data-uri-WSwfftd0.mjs.map +1 -0
- package/dist/format-data-uri.cjs +1 -30
- package/dist/format-data-uri.d.cts +2 -0
- package/dist/format-data-uri.d.mts +2 -0
- package/dist/format-data-uri.mjs +1 -1
- package/dist/{get-free-port.d.ts → get-free-port-Bf-x1nt8.d.cts} +5 -1
- package/dist/get-free-port-Bf-x1nt8.d.cts.map +1 -0
- package/dist/get-free-port-BwvXPXFs.d.mts +10 -0
- package/dist/get-free-port-BwvXPXFs.d.mts.map +1 -0
- package/dist/get-free-port-D9hjek4b.cjs +1 -0
- package/dist/get-free-port-DvWNGhhy.mjs +2 -0
- package/dist/get-free-port-DvWNGhhy.mjs.map +1 -0
- package/dist/get-free-port.cjs +1 -16
- package/dist/get-free-port.d.cts +2 -0
- package/dist/get-free-port.d.mts +2 -0
- package/dist/get-free-port.mjs +1 -1
- package/dist/http-proxy-CJqbqeZN.cjs +3 -0
- package/dist/http-proxy-ChUYEQ71.mjs +4 -0
- package/dist/http-proxy-ChUYEQ71.mjs.map +1 -0
- package/dist/http-proxy-CzvOBKWd.d.cts +40 -0
- package/dist/http-proxy-CzvOBKWd.d.cts.map +1 -0
- package/dist/http-proxy-DuPPyvFw.d.mts +40 -0
- package/dist/http-proxy-DuPPyvFw.d.mts.map +1 -0
- package/dist/http-proxy.cjs +1 -71
- package/dist/http-proxy.d.cts +2 -0
- package/dist/http-proxy.d.mts +2 -0
- package/dist/http-proxy.mjs +1 -3
- package/dist/https-proxy-B8w-jm17.d.cts +43 -0
- package/dist/https-proxy-B8w-jm17.d.cts.map +1 -0
- package/dist/https-proxy-f4-C_EL8.d.mts +43 -0
- package/dist/https-proxy-f4-C_EL8.d.mts.map +1 -0
- package/dist/https-proxy-k0GW_xX8.cjs +1 -0
- package/dist/https-proxy-rNc_8MiC.mjs +2 -0
- package/dist/https-proxy-rNc_8MiC.mjs.map +1 -0
- package/dist/https-proxy.cjs +1 -88
- package/dist/https-proxy.d.cts +2 -0
- package/dist/https-proxy.d.mts +2 -0
- package/dist/https-proxy.mjs +1 -4
- package/dist/index.cjs +1 -93
- package/dist/index.d.cts +9 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.mjs +1 -1
- package/dist/parse-response-BRlQF_8K.cjs +4 -0
- package/dist/parse-response-CGkjN9j0.mjs +5 -0
- package/dist/parse-response-CGkjN9j0.mjs.map +1 -0
- package/dist/parse-response-CS657Hki.d.cts +23 -0
- package/dist/parse-response-CS657Hki.d.cts.map +1 -0
- package/dist/parse-response-ujHVHmwG.d.mts +23 -0
- package/dist/parse-response-ujHVHmwG.d.mts.map +1 -0
- package/dist/parse-response.cjs +1 -63
- package/dist/parse-response.d.cts +2 -0
- package/dist/parse-response.d.mts +2 -0
- package/dist/parse-response.mjs +1 -4
- package/dist/proxy-agent-BrxQeFy2.d.mts +13 -0
- package/dist/proxy-agent-BrxQeFy2.d.mts.map +1 -0
- package/dist/proxy-agent-CnWrJ59l.d.cts +13 -0
- package/dist/proxy-agent-CnWrJ59l.d.cts.map +1 -0
- package/dist/proxy-agent-DMsOloiQ.cjs +1 -0
- package/dist/proxy-agent-uGI03t_I.mjs +2 -0
- package/dist/proxy-agent-uGI03t_I.mjs.map +1 -0
- package/dist/proxy-agent.cjs +1 -14
- package/dist/proxy-agent.d.cts +2 -0
- package/dist/proxy-agent.d.mts +2 -0
- package/dist/proxy-agent.mjs +1 -1
- package/package.json +38 -165
- package/dist/agent.d.ts +0 -36
- package/dist/fetch.d.ts +0 -18
- package/dist/http-proxy.d.ts +0 -38
- package/dist/https-proxy.d.ts +0 -42
- package/dist/index.d.ts +0 -8
- package/dist/parse-response.d.ts +0 -18
- package/dist/proxy-agent.d.ts +0 -7
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Changelog for Stryke - HTTP
|
|
4
|
+
|
|
5
|
+
## [0.12.9](https://github.com/storm-software/stryke/releases/tag/http%400.12.9) (12/07/2025)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **type-checks** to **v0.5.4**
|
|
10
|
+
- Updated **url** to **v0.3.10**
|
|
11
|
+
|
|
12
|
+
## [0.12.8](https://github.com/storm-software/stryke/releases/tag/http%400.12.8) (12/07/2025)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Format monorepo source files
|
|
17
|
+
([9428936](https://github.com/storm-software/stryke/commit/9428936))
|
|
18
|
+
|
|
19
|
+
### Updated Dependencies
|
|
20
|
+
|
|
21
|
+
- Updated **type-checks** to **v0.5.3**
|
|
22
|
+
- Updated **url** to **v0.3.9**
|
|
23
|
+
|
|
24
|
+
## [0.12.7](https://github.com/storm-software/stryke/releases/tag/http%400.12.7) (12/06/2025)
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
- **tools-nx:** Resolved issue inferring build command-line arguments for local
|
|
29
|
+
packages ([de00278](https://github.com/storm-software/stryke/commit/de00278))
|
|
30
|
+
|
|
31
|
+
### Updated Dependencies
|
|
32
|
+
|
|
33
|
+
- Updated **type-checks** to **v0.5.2**
|
|
34
|
+
- Updated **url** to **v0.3.8**
|
|
35
|
+
|
|
36
|
+
## [0.12.6](https://github.com/storm-software/stryke/releases/tag/http%400.12.6) (12/06/2025)
|
|
37
|
+
|
|
38
|
+
### Updated Dependencies
|
|
39
|
+
|
|
40
|
+
- Updated **type-checks** to **v0.5.1**
|
|
41
|
+
- Updated **url** to **v0.3.7**
|
|
42
|
+
|
|
43
|
+
## [0.12.5](https://github.com/storm-software/stryke/releases/tag/http%400.12.5) (12/05/2025)
|
|
44
|
+
|
|
45
|
+
### Updated Dependencies
|
|
46
|
+
|
|
47
|
+
- Updated **type-checks** to **v0.5.0**
|
|
48
|
+
- Updated **url** to **v0.3.6**
|
|
49
|
+
|
|
50
|
+
## [0.12.4](https://github.com/storm-software/stryke/releases/tag/http%400.12.4) (12/05/2025)
|
|
51
|
+
|
|
52
|
+
### Miscellaneous
|
|
53
|
+
|
|
54
|
+
- **monorepo:** Reformat repository `package.json` files
|
|
55
|
+
([3ce9073](https://github.com/storm-software/stryke/commit/3ce9073))
|
|
56
|
+
|
|
57
|
+
### Features
|
|
58
|
+
|
|
59
|
+
- **monorepo:** Update repository to use `tsdown` to build/bundle packages
|
|
60
|
+
([8ceb909](https://github.com/storm-software/stryke/commit/8ceb909))
|
|
61
|
+
|
|
62
|
+
### Updated Dependencies
|
|
63
|
+
|
|
64
|
+
- Updated **type-checks** to **v0.4.5**
|
|
65
|
+
- Updated **url** to **v0.3.5**
|
|
66
|
+
|
|
67
|
+
## [0.12.3](https://github.com/storm-software/stryke/releases/tag/http%400.12.3) (12/01/2025)
|
|
68
|
+
|
|
69
|
+
### Updated Dependencies
|
|
70
|
+
|
|
71
|
+
- Updated **type-checks** to **v0.4.4**
|
|
72
|
+
- Updated **url** to **v0.3.4**
|
|
73
|
+
|
|
74
|
+
## [0.12.2](https://github.com/storm-software/stryke/releases/tag/http%400.12.2) (11/30/2025)
|
|
75
|
+
|
|
76
|
+
### Miscellaneous
|
|
77
|
+
|
|
78
|
+
- **http:** Update `fetch` helper to use `undici` fetch method
|
|
79
|
+
([110fd12](https://github.com/storm-software/stryke/commit/110fd12))
|
|
80
|
+
|
|
81
|
+
### Updated Dependencies
|
|
82
|
+
|
|
83
|
+
- Updated **type-checks** to **v0.4.3**
|
|
84
|
+
- Updated **url** to **v0.3.3**
|
|
85
|
+
|
|
86
|
+
## [0.12.1](https://github.com/storm-software/stryke/releases/tag/http%400.12.1) (11/30/2025)
|
|
87
|
+
|
|
88
|
+
### Miscellaneous
|
|
89
|
+
|
|
90
|
+
- **http:** Updated `fetch` helpers to use `undici` package
|
|
91
|
+
([19d4e4f](https://github.com/storm-software/stryke/commit/19d4e4f))
|
|
92
|
+
|
|
93
|
+
### Updated Dependencies
|
|
94
|
+
|
|
95
|
+
- Updated **type-checks** to **v0.4.2**
|
|
96
|
+
- Updated **url** to **v0.3.2**
|
|
97
|
+
|
|
98
|
+
## [0.12.0](https://github.com/storm-software/stryke/releases/tag/http%400.12.0) (11/30/2025)
|
|
99
|
+
|
|
100
|
+
### Miscellaneous
|
|
101
|
+
|
|
102
|
+
- **http:** Sort `dependencies` in `package.json` file
|
|
103
|
+
([46185ab](https://github.com/storm-software/stryke/commit/46185ab))
|
|
104
|
+
|
|
105
|
+
### Features
|
|
106
|
+
|
|
107
|
+
- **http:** Added string and JSON response parsers to `fetch` helper
|
|
108
|
+
([a74a294](https://github.com/storm-software/stryke/commit/a74a294))
|
|
109
|
+
|
|
110
|
+
### Updated Dependencies
|
|
111
|
+
|
|
112
|
+
- Updated **type-checks** to **v0.4.1**
|
|
113
|
+
- Updated **convert** to **v0.6.10**
|
|
114
|
+
- Updated **json** to **v0.9.13**
|
|
115
|
+
- Updated **url** to **v0.3.1**
|
|
116
|
+
|
|
117
|
+
## [0.11.10](https://github.com/storm-software/stryke/releases/tag/http%400.11.10) (11/30/2025)
|
|
118
|
+
|
|
119
|
+
### Updated Dependencies
|
|
120
|
+
|
|
121
|
+
- Updated **type-checks** to **v0.4.0**
|
|
122
|
+
|
|
123
|
+
## [0.11.9](https://github.com/storm-software/stryke/releases/tag/http%400.11.9) (11/24/2025)
|
|
124
|
+
|
|
125
|
+
### Updated Dependencies
|
|
126
|
+
|
|
127
|
+
- Updated **type-checks** to **v0.3.18**
|
|
128
|
+
|
|
129
|
+
## [0.11.8](https://github.com/storm-software/stryke/releases/tag/http%400.11.8) (11/21/2025)
|
|
130
|
+
|
|
131
|
+
### Updated Dependencies
|
|
132
|
+
|
|
133
|
+
- Updated **type-checks** to **v0.3.17**
|
|
134
|
+
|
|
135
|
+
## [0.11.7](https://github.com/storm-software/stryke/releases/tag/http%400.11.7) (11/21/2025)
|
|
136
|
+
|
|
137
|
+
### Updated Dependencies
|
|
138
|
+
|
|
139
|
+
- Updated **type-checks** to **v0.3.16**
|
|
140
|
+
|
|
141
|
+
## [0.11.6](https://github.com/storm-software/stryke/releases/tag/http%400.11.6) (11/21/2025)
|
|
142
|
+
|
|
143
|
+
### Updated Dependencies
|
|
144
|
+
|
|
145
|
+
- Updated **type-checks** to **v0.3.15**
|
|
146
|
+
|
|
147
|
+
## [0.11.5](https://github.com/storm-software/stryke/releases/tag/http%400.11.5) (11/21/2025)
|
|
148
|
+
|
|
149
|
+
### Updated Dependencies
|
|
150
|
+
|
|
151
|
+
- Updated **type-checks** to **v0.3.14**
|
|
152
|
+
|
|
153
|
+
## [0.11.4](https://github.com/storm-software/stryke/releases/tag/http%400.11.4) (11/21/2025)
|
|
154
|
+
|
|
155
|
+
### Updated Dependencies
|
|
156
|
+
|
|
157
|
+
- Updated **type-checks** to **v0.3.13**
|
|
158
|
+
|
|
159
|
+
## [0.11.3](https://github.com/storm-software/stryke/releases/tag/http%400.11.3) (11/16/2025)
|
|
160
|
+
|
|
161
|
+
### Updated Dependencies
|
|
162
|
+
|
|
163
|
+
- Updated **type-checks** to **v0.3.12**
|
|
164
|
+
|
|
165
|
+
## [0.11.2](https://github.com/storm-software/stryke/releases/tag/http%400.11.2) (11/08/2025)
|
|
166
|
+
|
|
167
|
+
### Updated Dependencies
|
|
168
|
+
|
|
169
|
+
- Updated **type-checks** to **v0.3.11**
|
|
170
|
+
|
|
171
|
+
## [0.11.1](https://github.com/storm-software/stryke/releases/tag/http%400.11.1) (2025-10-30)
|
|
172
|
+
|
|
173
|
+
### Bug Fixes
|
|
174
|
+
|
|
175
|
+
- **monorepo:** Resolve `type-check` failures
|
|
176
|
+
([a1eabd0](https://github.com/storm-software/stryke/commit/a1eabd0))
|
|
177
|
+
|
|
178
|
+
## [0.11.0](https://github.com/storm-software/stryke/releases/tag/http%400.11.0) (2025-10-28)
|
|
179
|
+
|
|
180
|
+
### Features
|
|
181
|
+
|
|
182
|
+
- **http:** Enhanced the `options` provided to the `fetchRequest` helper utility
|
|
183
|
+
([a9fc260](https://github.com/storm-software/stryke/commit/a9fc260))
|
|
184
|
+
|
|
185
|
+
## [0.10.0](https://github.com/storm-software/stryke/releases/tag/http%400.10.0) (2025-09-20)
|
|
186
|
+
|
|
187
|
+
### Features
|
|
188
|
+
|
|
189
|
+
- **http:** Added the `getFreePort` helper utility
|
|
190
|
+
([2e728e9](https://github.com/storm-software/stryke/commit/2e728e9))
|
|
191
|
+
|
|
192
|
+
## [0.9.0](https://github.com/storm-software/stryke/releases/tag/http%400.9.0) (2025-09-16)
|
|
193
|
+
|
|
194
|
+
### Features
|
|
195
|
+
|
|
196
|
+
- **http:** Added various NodeJs helper modules to package
|
|
197
|
+
([37e0e5c](https://github.com/storm-software/stryke/commit/37e0e5c))
|
|
198
|
+
|
|
199
|
+

|
|
200
|
+
|
|
201
|
+
# Changelog for Stryke - HTTP
|
|
202
|
+
|
|
203
|
+
## [0.8.5](https://github.com/storm-software/stryke/releases/tag/http%400.8.5) (2025-08-04)
|
|
204
|
+
|
|
205
|
+
### Bug Fixes
|
|
206
|
+
|
|
207
|
+
- **monorepo:** Resolved repository type-check failures
|
|
208
|
+
([d196ace](https://github.com/storm-software/stryke/commit/d196ace))
|
|
209
|
+
|
|
210
|
+
## [0.8.4](https://github.com/storm-software/stryke/releases/tag/http%400.8.4) (2025-06-18)
|
|
211
|
+
|
|
212
|
+
### Miscellaneous
|
|
213
|
+
|
|
214
|
+
- **http:** Update the file banners
|
|
215
|
+
([cee6f2a](https://github.com/storm-software/stryke/commit/cee6f2a))
|
|
216
|
+
|
|
217
|
+

|
|
218
|
+
|
|
219
|
+
# Changelog for Stryke - Http
|
|
220
|
+
|
|
221
|
+
## [0.8.3](https://github.com/storm-software/stryke/releases/tag/http%400.8.3) (2025-06-17)
|
|
222
|
+
|
|
223
|
+
### Miscellaneous
|
|
224
|
+
|
|
225
|
+
- **monorepo:** Reformat repository packages
|
|
226
|
+
|
|
227
|
+
## [0.8.2](https://github.com/storm-software/stryke/releases/tag/http%400.8.2) (2025-06-12)
|
|
228
|
+
|
|
229
|
+
### Miscellaneous
|
|
230
|
+
|
|
231
|
+
- **monorepo:** Reformat the repository's README markdown files
|
|
232
|
+
- **monorepo:** Run format script on repository
|
|
233
|
+
|
|
234
|
+
## [0.8.1](https://github.com/storm-software/stryke/releases/tag/http%400.8.1) (2025-05-12)
|
|
235
|
+
|
|
236
|
+
### Miscellaneous
|
|
237
|
+
|
|
238
|
+
- **monorepo:** Reformat monorepo source code
|
|
239
|
+
|
|
240
|
+
## [0.8.0](https://github.com/storm-software/stryke/releases/tag/http%400.8.0) (2025-04-23)
|
|
241
|
+
|
|
242
|
+
### Features
|
|
243
|
+
|
|
244
|
+
- **url:** Added a separate package for `StormURL` wrapper class
|
|
245
|
+
([ea60cd5](https://github.com/storm-software/stryke/commit/ea60cd5))
|
|
246
|
+
|
|
247
|
+
## [0.7.2](https://github.com/storm-software/stryke/releases/tag/http%400.7.2) (2025-04-10)
|
|
248
|
+
|
|
249
|
+
### Miscellaneous
|
|
250
|
+
|
|
251
|
+
- **monorepo:** Format the repository's files
|
|
252
|
+
([1384f3e](https://github.com/storm-software/stryke/commit/1384f3e))
|
|
253
|
+
|
|
254
|
+
## [0.7.1](https://github.com/storm-software/stryke/releases/tag/http%400.7.1) (2025-04-07)
|
|
255
|
+
|
|
256
|
+
### Bug Fixes
|
|
257
|
+
|
|
258
|
+
- **http:** Added the `formatLocalePath` helper and logic to `StormURL`
|
|
259
|
+
([b5670ef](https://github.com/storm-software/stryke/commit/b5670ef))
|
|
260
|
+
|
|
261
|
+
## [0.7.0](https://github.com/storm-software/stryke/releases/tag/http%400.7.0) (2025-04-07)
|
|
262
|
+
|
|
263
|
+
### Features
|
|
264
|
+
|
|
265
|
+
- **http:** Added the `StormURL` helper class
|
|
266
|
+
([03643b0](https://github.com/storm-software/stryke/commit/03643b0))
|
|
267
|
+
|
|
268
|
+
## [0.6.0](https://github.com/storm-software/stryke/releases/tag/http%400.6.0) (2025-03-28)
|
|
269
|
+
|
|
270
|
+
### Features
|
|
271
|
+
|
|
272
|
+
- **trpc-next:** Initial check-in of the package
|
|
273
|
+
([3be43e0](https://github.com/storm-software/stryke/commit/3be43e0))
|
|
274
|
+
|
|
275
|
+
## [0.5.3](https://github.com/storm-software/stryke/releases/tag/http%400.5.3) (2025-03-28)
|
|
276
|
+
|
|
277
|
+
### Miscellaneous
|
|
278
|
+
|
|
279
|
+
- **monorepo:** Reformat the source files in repository
|
|
280
|
+
([bb8df2c](https://github.com/storm-software/stryke/commit/bb8df2c))
|
|
281
|
+
|
|
282
|
+
## [0.5.2](https://github.com/storm-software/stryke/releases/tag/http%400.5.2) (2025-03-23)
|
|
283
|
+
|
|
284
|
+
### Bug Fixes
|
|
285
|
+
|
|
286
|
+
- **http:** Resolve issue with missing slash before `pathname` string
|
|
287
|
+
([97794ef](https://github.com/storm-software/stryke/commit/97794ef))
|
|
288
|
+
|
|
289
|
+
## [0.5.1](https://github.com/storm-software/stryke/releases/tag/http%400.5.1) (2025-03-23)
|
|
290
|
+
|
|
291
|
+
### Bug Fixes
|
|
292
|
+
|
|
293
|
+
- **monorepo:** Resolve issue with TypeScript compilation
|
|
294
|
+
([72e995f](https://github.com/storm-software/stryke/commit/72e995f))
|
|
295
|
+
|
|
296
|
+
## [0.5.0](https://github.com/storm-software/stryke/releases/tag/http%400.5.0) (2025-03-23)
|
|
297
|
+
|
|
298
|
+
### Features
|
|
299
|
+
|
|
300
|
+
- **http:** Added `paths` to the `StormURL` type
|
|
301
|
+
([799ff5b](https://github.com/storm-software/stryke/commit/799ff5b))
|
|
302
|
+
|
|
303
|
+
## [0.4.1](https://github.com/storm-software/stryke/releases/tag/http%400.4.1) (2025-03-23)
|
|
304
|
+
|
|
305
|
+
### Miscellaneous
|
|
306
|
+
|
|
307
|
+
- **monorepo:** Update base storm software packages
|
|
308
|
+
([8942201](https://github.com/storm-software/stryke/commit/8942201))
|
|
309
|
+
|
|
310
|
+
## 0.4.0 (2025-03-23)
|
|
311
|
+
|
|
312
|
+
### Features
|
|
313
|
+
|
|
314
|
+
- **http:** Update `query` to `queryParams` on `StormURL`
|
|
315
|
+
([878d527](https://github.com/storm-software/stryke/commit/878d527))
|
|
316
|
+
|
|
317
|
+
## 0.3.1 (2025-03-13)
|
|
318
|
+
|
|
319
|
+
### Miscellaneous
|
|
320
|
+
|
|
321
|
+
- **monorepo:** Format monorepo project files
|
|
322
|
+
([f28fdbe](https://github.com/storm-software/stryke/commit/f28fdbe))
|
|
323
|
+
|
|
324
|
+
## 0.3.0 (2025-03-13)
|
|
325
|
+
|
|
326
|
+
### Features
|
|
327
|
+
|
|
328
|
+
- **monorepo:** Split `types` project into `type-checks` and `convert` packages
|
|
329
|
+
([fcc5832](https://github.com/storm-software/stryke/commit/fcc5832))
|
|
330
|
+
|
|
331
|
+
## 0.2.2 (2025-03-13)
|
|
332
|
+
|
|
333
|
+
### Miscellaneous
|
|
334
|
+
|
|
335
|
+
- **monorepo:** Reformat monorepo package files
|
|
336
|
+
([a453428](https://github.com/storm-software/stryke/commit/a453428))
|
|
337
|
+
|
|
338
|
+
## 0.2.1 (2025-02-26)
|
|
339
|
+
|
|
340
|
+
### Miscellaneous
|
|
341
|
+
|
|
342
|
+
- **monorepo:** Reformat monorepo files with `prettier`
|
|
343
|
+
([b5d0302](https://github.com/storm-software/stryke/commit/b5d0302))
|
|
344
|
+
|
|
345
|
+
## 0.2.0 (2025-02-23)
|
|
346
|
+
|
|
347
|
+
### Features
|
|
348
|
+
|
|
349
|
+
- **monorepo:** Update base ESLint packages and run on files
|
|
350
|
+
([c59cb8e](https://github.com/storm-software/stryke/commit/c59cb8e))
|
|
351
|
+
|
|
352
|
+
## 0.1.4 (2025-02-17)
|
|
353
|
+
|
|
354
|
+
### Miscellaneous
|
|
355
|
+
|
|
356
|
+
- **monorepo:** Reformat monorepo files
|
|
357
|
+
([1db5e06](https://github.com/storm-software/stryke/commit/1db5e06))
|
|
358
|
+
|
|
359
|
+
## 0.1.3 (2025-02-15)
|
|
360
|
+
|
|
361
|
+
### Miscellaneous
|
|
362
|
+
|
|
363
|
+
- **monorepo:** Reformat monorepo files
|
|
364
|
+
([69ed6b7](https://github.com/storm-software/stryke/commit/69ed6b7))
|
|
365
|
+
|
|
366
|
+
## 0.1.2 (2025-02-15)
|
|
367
|
+
|
|
368
|
+
### Miscellaneous
|
|
369
|
+
|
|
370
|
+
- **monorepo:** Reformat workspace files
|
|
371
|
+
([ad2d6a9](https://github.com/storm-software/stryke/commit/ad2d6a9))
|
|
372
|
+
|
|
373
|
+
## 0.1.1 (2025-02-09)
|
|
374
|
+
|
|
375
|
+
### Miscellaneous
|
|
376
|
+
|
|
377
|
+
- **monorepo:** Regenerate repository markdown files
|
|
378
|
+
([e61e39e](https://github.com/storm-software/stryke/commit/e61e39e))
|
|
379
|
+
|
|
380
|
+
## 0.1.0 (2025-02-07)
|
|
381
|
+
|
|
382
|
+
### Bug Fixes
|
|
383
|
+
|
|
384
|
+
- **cli:** Resolve typing issue with `figlet` dependency
|
|
385
|
+
([2ad7747](https://github.com/storm-software/stryke/commit/2ad7747))
|
package/README.md
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
<!-- markdownlint-disable -->
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div align="center"
|
|
6
|
+
<div align="center">
|
|
7
|
+
<picture>
|
|
8
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif">
|
|
9
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-light-optimized.gif">
|
|
10
|
+
<img src="https://public.storm-cdn.com/storm-software/banner-1280x640-dark-optimized.gif" width="100%" alt="Storm Software" />
|
|
11
|
+
</picture>
|
|
12
|
+
</div>
|
|
7
13
|
<br />
|
|
8
14
|
|
|
9
15
|
<div align="center">
|
|
@@ -16,13 +22,13 @@
|
|
|
16
22
|
</div>
|
|
17
23
|
|
|
18
24
|
<br />
|
|
19
|
-
This package is part of Storm Software's
|
|
25
|
+
This package is part of Storm Software's **💥 Stryke** monorepo. Stryke packages TypeScript utility packages with shared functionality common to many Storm Software applications.
|
|
20
26
|
|
|
21
27
|
<br />
|
|
22
28
|
|
|
23
29
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
24
30
|
|
|
25
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
26
32
|
|
|
27
33
|
> [!IMPORTANT] Important
|
|
28
34
|
> This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be available through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
|
|
@@ -46,7 +52,6 @@ between processes easier in other packages/applications.
|
|
|
46
52
|
|
|
47
53
|
<!-- START doctoc -->
|
|
48
54
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
49
|
-
|
|
50
55
|
## Table of Contents
|
|
51
56
|
|
|
52
57
|
- [Installing](#installing)
|
|
@@ -95,10 +100,10 @@ yarn add -D @stryke/http
|
|
|
95
100
|
|
|
96
101
|
## Reduced Package Size
|
|
97
102
|
|
|
98
|
-
This project uses [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
103
|
+
This project uses [tsdown](https://tsdown.dev) to package the source code due to
|
|
104
|
+
its ability to remove unused code and ship smaller javascript files thanks to
|
|
105
|
+
code splitting. This helps to greatly reduce the size of the package and to make
|
|
106
|
+
it easier to use in other projects.
|
|
102
107
|
|
|
103
108
|
## Development
|
|
104
109
|
|
|
@@ -239,10 +244,13 @@ specification. Contributions of any kind welcome!
|
|
|
239
244
|
<br />
|
|
240
245
|
|
|
241
246
|
<hr />
|
|
242
|
-
<br />
|
|
243
247
|
|
|
244
248
|
<div align="center">
|
|
245
|
-
<
|
|
249
|
+
<picture>
|
|
250
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp">
|
|
251
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light-optimized.webp">
|
|
252
|
+
<img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp" width="100%" alt="Storm Software" />
|
|
253
|
+
</picture>
|
|
246
254
|
</div>
|
|
247
255
|
<br />
|
|
248
256
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as http from "node:http";
|
|
2
|
+
import * as net from "node:net";
|
|
3
|
+
import { Duplex } from "node:stream";
|
|
4
|
+
import * as tls from "node:tls";
|
|
5
|
+
|
|
6
|
+
//#region src/agent.d.ts
|
|
7
|
+
interface HttpConnectOpts extends net.TcpNetConnectOpts {
|
|
8
|
+
secureEndpoint: false;
|
|
9
|
+
protocol?: string;
|
|
10
|
+
}
|
|
11
|
+
interface HttpsConnectOpts extends tls.ConnectionOptions {
|
|
12
|
+
secureEndpoint: true;
|
|
13
|
+
protocol?: string;
|
|
14
|
+
port: number;
|
|
15
|
+
}
|
|
16
|
+
type AgentConnectOpts = HttpConnectOpts | HttpsConnectOpts;
|
|
17
|
+
declare const SYMBOL_INTERNAL: unique symbol;
|
|
18
|
+
declare abstract class Agent extends http.Agent {
|
|
19
|
+
private [SYMBOL_INTERNAL];
|
|
20
|
+
options: Partial<net.TcpNetConnectOpts & tls.ConnectionOptions>;
|
|
21
|
+
keepAlive: boolean;
|
|
22
|
+
constructor(opts?: http.AgentOptions);
|
|
23
|
+
abstract connect(req: http.ClientRequest, options: AgentConnectOpts): Promise<Duplex | http.Agent> | Duplex | http.Agent;
|
|
24
|
+
/**
|
|
25
|
+
* Determine whether this is an `http` or `https` request.
|
|
26
|
+
*/
|
|
27
|
+
isSecureEndpoint(options?: AgentConnectOpts): boolean;
|
|
28
|
+
private incrementSockets;
|
|
29
|
+
private decrementSockets;
|
|
30
|
+
getName(options?: AgentConnectOpts): string;
|
|
31
|
+
createSocket(req: http.ClientRequest, options: AgentConnectOpts, cb: (err: Error | null, s?: Duplex) => void): void;
|
|
32
|
+
createConnection(): Duplex;
|
|
33
|
+
get defaultPort(): number;
|
|
34
|
+
set defaultPort(v: number);
|
|
35
|
+
get protocol(): string;
|
|
36
|
+
set protocol(v: string);
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { AgentConnectOpts as n, Agent as t };
|
|
40
|
+
//# sourceMappingURL=agent-Cc4PYJ-j.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-Cc4PYJ-j.d.cts","names":[],"sources":["../src/agent.ts"],"sourcesContent":[],"mappings":";;;;;;UAyBU,eAAA,SAAwB,GAAA,CAAI;;EAA5B,QAAA,CAAA,EAAA,MAAA;AAA6C;AAWvD,UANU,gBAAA,SAAyB,GAAA,CAAI,iBAMU,CAAA;EAE3C,cAAA,EAAA,IAAiC;EAQjB,QAAM,CAAA,EAAA,MAAA;EACjB,IAAA,EAAA,MAAA;;AAGqC,KAdpC,gBAAA,GAAmB,eAciB,GAdC,gBAcD;cAZ1C,eAYM,EAAA,OAAA,MAAA;AAIc,uBARJ,KAAA,SAAc,IAAA,CAAK,KAAA,CAQf;EAMjB,SAbE,eAAA;EAcE,OAAA,EAXD,OAWC,CAXO,GAAA,CAAI,iBAWX,GAX+B,GAAA,CAAI,iBAWnC,CAAA;EACA,SAAA,EAAA,OAAA;EAAS,WAAK,CAAA,IAAA,CAAA,EARN,IAAA,CAAK,YAQC;EAAtB,SAAA,OAAA,CAAA,GAAA,EAFI,IAAA,CAAK,aAET,EAAA,OAAA,EADQ,gBACR,CAAA,EAAA,OAAA,CAAQ,MAAR,GAAiB,IAAA,CAAK,KAAtB,CAAA,GAA+B,MAA/B,GAAwC,IAAA,CAAK,KAA7C;EAA+B;;;EAgFP,gBAAA,CAAA,OAAA,CAAA,EA3EA,gBA2EA,CAAA,EAAA,OAAA;EAWpB,QAAK,gBAAA;EACD,QAAA,gBAAA;EACC,OAAA,CAAA,OAAA,CAAA,EAbe,gBAaf,CAAA,EAAA,MAAA;EAAkB,YAAA,CAAA,GAAA,EAFvB,IAAA,CAAK,aAEkB,EAAA,OAAA,EADnB,gBACmB,EAAA,EAAA,EAAA,CAAA,GAAA,EAAlB,KAAkB,GAAA,IAAA,EAAA,CAAA,CAAA,EAAA,MAAA,EAAA,GAAA,IAAA,CAAA,EAAA,IAAA;EAkCD,gBAAA,CAAA,CAAA,EAAA,MAAA;EA/IK,IAAK,WAAA,CAAA,CAAA,EAAA,MAAA;EAAK,IAAA,WAAA,CAAA,CAAA,EAAA,MAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`node:http`);t=e.t(t);let n=require(`node:net`);n=e.t(n);const r=e=>{try{return e===null}catch{return!1}},i=e=>e===void 0,a=e=>{try{return i(e)||r(e)}catch{return!1}},o=e=>{try{return e instanceof Boolean||typeof e==`boolean`||!!e===e}catch{return!1}},s=typeof Buffer<`u`,c=s?Buffer.isBuffer.bind(Buffer):function(e){return!1},l=(e=>(typeof globalThis==`object`||Object.defineProperty(e,`typeDetectGlobalObject`,{get(){return this},configurable:!0}),globalThis))(Object.prototype),u=e=>{try{return typeof e==`string`}catch{return!1}},d=e=>{try{return!a(e)}catch{return!1}},f=e=>{try{return d(e)&&u(e)&&e.length>0}catch{return!1}},p=Symbol(`Agent`);var m=class extends t.Agent{[p];options;keepAlive;constructor(e){super(e),this[p]={}}isSecureEndpoint(e){if(e){if(o(e.secureEndpoint))return e.secureEndpoint;if(u(e.protocol))return e.protocol===`https:`}let{stack:t}=Error(` `);return u(t)?t.split(`
|
|
2
|
+
`).some(e=>e.includes(`(https.js:`)||e.includes(`node:https:`)):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]??=[];let t=new n.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?HttpsAgent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,n,r){let i={...n,secureEndpoint:this.isSecureEndpoint(n)},a=this.getName(i),o=this.incrementSockets(a);Promise.resolve().then(async()=>this.connect(e,i)).then(s=>{if(this.decrementSockets(a,o),s instanceof t.Agent)try{return s.addRequest(e,i)}catch(e){return r(e)}this[p].currentSocket=s,super.createSocket(e,n,r)},e=>{this.decrementSockets(a,o),r(e)})}createConnection(){let e=this[p].currentSocket;if(this[p].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[p].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[p]&&(this[p].defaultPort=e)}get protocol(){return this[p].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[p]&&(this[p].protocol=e)}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return m}});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as http from "node:http";
|
|
2
|
+
import * as net from "node:net";
|
|
3
|
+
import * as tls from "node:tls";
|
|
4
|
+
import { Duplex } from "node:stream";
|
|
5
|
+
|
|
6
|
+
//#region src/agent.d.ts
|
|
7
|
+
interface HttpConnectOpts extends net.TcpNetConnectOpts {
|
|
8
|
+
secureEndpoint: false;
|
|
9
|
+
protocol?: string;
|
|
10
|
+
}
|
|
11
|
+
interface HttpsConnectOpts extends tls.ConnectionOptions {
|
|
12
|
+
secureEndpoint: true;
|
|
13
|
+
protocol?: string;
|
|
14
|
+
port: number;
|
|
15
|
+
}
|
|
16
|
+
type AgentConnectOpts = HttpConnectOpts | HttpsConnectOpts;
|
|
17
|
+
declare const SYMBOL_INTERNAL: unique symbol;
|
|
18
|
+
declare abstract class Agent extends http.Agent {
|
|
19
|
+
private [SYMBOL_INTERNAL];
|
|
20
|
+
options: Partial<net.TcpNetConnectOpts & tls.ConnectionOptions>;
|
|
21
|
+
keepAlive: boolean;
|
|
22
|
+
constructor(opts?: http.AgentOptions);
|
|
23
|
+
abstract connect(req: http.ClientRequest, options: AgentConnectOpts): Promise<Duplex | http.Agent> | Duplex | http.Agent;
|
|
24
|
+
/**
|
|
25
|
+
* Determine whether this is an `http` or `https` request.
|
|
26
|
+
*/
|
|
27
|
+
isSecureEndpoint(options?: AgentConnectOpts): boolean;
|
|
28
|
+
private incrementSockets;
|
|
29
|
+
private decrementSockets;
|
|
30
|
+
getName(options?: AgentConnectOpts): string;
|
|
31
|
+
createSocket(req: http.ClientRequest, options: AgentConnectOpts, cb: (err: Error | null, s?: Duplex) => void): void;
|
|
32
|
+
createConnection(): Duplex;
|
|
33
|
+
get defaultPort(): number;
|
|
34
|
+
set defaultPort(v: number);
|
|
35
|
+
get protocol(): string;
|
|
36
|
+
set protocol(v: string);
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { AgentConnectOpts as n, Agent as t };
|
|
40
|
+
//# sourceMappingURL=agent-DXIpD4O5.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-DXIpD4O5.d.mts","names":[],"sources":["../src/agent.ts"],"sourcesContent":[],"mappings":";;;;;;UAyBU,eAAA,SAAwB,GAAA,CAAI;;EAA5B,QAAA,CAAA,EAAA,MAAA;AAA6C;AAWvD,UANU,gBAAA,SAAyB,GAAA,CAAI,iBAMU,CAAA;EAE3C,cAAA,EAAA,IAAiC;EAQjB,QAAM,CAAA,EAAA,MAAA;EACjB,IAAA,EAAA,MAAA;;AAGqC,KAdpC,gBAAA,GAAmB,eAciB,GAdC,gBAcD;cAZ1C,eAYM,EAAA,OAAA,MAAA;AAIc,uBARJ,KAAA,SAAc,IAAA,CAAK,KAAA,CAQf;EAMjB,SAbE,eAAA;EAcE,OAAA,EAXD,OAWC,CAXO,GAAA,CAAI,iBAWX,GAX+B,GAAA,CAAI,iBAWnC,CAAA;EACA,SAAA,EAAA,OAAA;EAAS,WAAK,CAAA,IAAA,CAAA,EARN,IAAA,CAAK,YAQC;EAAtB,SAAA,OAAA,CAAA,GAAA,EAFI,IAAA,CAAK,aAET,EAAA,OAAA,EADQ,gBACR,CAAA,EAAA,OAAA,CAAQ,MAAR,GAAiB,IAAA,CAAK,KAAtB,CAAA,GAA+B,MAA/B,GAAwC,IAAA,CAAK,KAA7C;EAA+B;;;EAgFP,gBAAA,CAAA,OAAA,CAAA,EA3EA,gBA2EA,CAAA,EAAA,OAAA;EAWpB,QAAK,gBAAA;EACD,QAAA,gBAAA;EACC,OAAA,CAAA,OAAA,CAAA,EAbe,gBAaf,CAAA,EAAA,MAAA;EAAkB,YAAA,CAAA,GAAA,EAFvB,IAAA,CAAK,aAEkB,EAAA,OAAA,EADnB,gBACmB,EAAA,EAAA,EAAA,CAAA,GAAA,EAAlB,KAAkB,GAAA,IAAA,EAAA,CAAA,CAAA,EAAA,MAAA,EAAA,GAAA,IAAA,CAAA,EAAA,IAAA;EAkCD,gBAAA,CAAA,CAAA,EAAA,MAAA;EA/IK,IAAK,WAAA,CAAA,CAAA,EAAA,MAAA;EAAK,IAAA,WAAA,CAAA,CAAA,EAAA,MAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import*as e from"node:http";import*as t from"node:net";const n=e=>{try{return e===null}catch{return!1}},r=e=>e===void 0,i=e=>{try{return r(e)||n(e)}catch{return!1}},a=e=>{try{return e instanceof Boolean||typeof e==`boolean`||!!e===e}catch{return!1}};typeof Buffer<`u`&&Buffer.isBuffer.bind(Buffer),(e=>(typeof globalThis==`object`||Object.defineProperty(e,`typeDetectGlobalObject`,{get(){return this},configurable:!0}),globalThis))(Object.prototype);const o=e=>{try{return typeof e==`string`}catch{return!1}},s=e=>{try{return!i(e)}catch{return!1}},c=e=>{try{return s(e)&&o(e)&&e.length>0}catch{return!1}},l=Symbol(`Agent`);var u=class extends e.Agent{[l];options;keepAlive;constructor(e){super(e),this[l]={}}isSecureEndpoint(e){if(e){if(a(e.secureEndpoint))return e.secureEndpoint;if(o(e.protocol))return e.protocol===`https:`}let{stack:t}=Error(` `);return o(t)?t.split(`
|
|
2
|
+
`).some(e=>e.includes(`(https.js:`)||e.includes(`node:https:`)):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]??=[];let n=new t.Socket({writable:!1});return this.sockets[e].push(n),this.totalSocketCount++,n}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?HttpsAgent.prototype.getName.call(this,e):super.getName(e)}createSocket(t,n,r){let i={...n,secureEndpoint:this.isSecureEndpoint(n)},a=this.getName(i),o=this.incrementSockets(a);Promise.resolve().then(async()=>this.connect(t,i)).then(s=>{if(this.decrementSockets(a,o),s instanceof e.Agent)try{return s.addRequest(t,i)}catch(e){return r(e)}this[l].currentSocket=s,super.createSocket(t,n,r)},e=>{this.decrementSockets(a,o),r(e)})}createConnection(){let e=this[l].currentSocket;if(this[l].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[l].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[l]&&(this[l].defaultPort=e)}get protocol(){return this[l].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[l]&&(this[l].protocol=e)}};export{c as n,u as t};
|
|
3
|
+
//# sourceMappingURL=agent-DrFvt4od.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-DrFvt4od.mjs","names":["isBuffer: typeof Buffer.isBuffer","isBuffer","err: unknown"],"sources":["../../type-checks/src/is-null.ts","../../type-checks/src/is-undefined.ts","../../type-checks/src/is-empty.ts","../../type-checks/src/is-boolean.ts","../../type-checks/src/is-buffer.ts","../../type-checks/src/type-detect.ts","../../type-checks/src/is-string.ts","../../type-checks/src/is-set.ts","../../type-checks/src/is-set-string.ts","../src/agent.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isNull = (value: unknown): value is null => {\n try {\n return value === null;\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isUndefined = (value: unknown): value is undefined => {\n return value === undefined;\n};\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isDate } from \"./is-date\";\nimport { isFunction } from \"./is-function\";\nimport { isNull } from \"./is-null\";\nimport { isNumber } from \"./is-number\";\nimport { isSymbol } from \"./is-symbol\";\nimport { isUndefined } from \"./is-undefined\";\n\n/**\n * Check if the provided value's type is `null` or `undefined`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `null` or `undefined`\n */\nexport const isEmpty = (value: unknown) => {\n try {\n return isUndefined(value) || isNull(value);\n } catch {\n return false;\n }\n};\n\nexport const isEmptyAnything = (value: any) => {\n if (value === true || value === false) return true;\n if (value === null || value === undefined) return true;\n if (isNumber(value)) return value === 0;\n if (isDate(value)) return Number.isNaN(value.getTime());\n if (isFunction(value)) return false;\n if (isSymbol(value)) return false;\n const { length } = value;\n if (isNumber(length)) return length === 0;\n const { size } = value;\n if (isNumber(size)) return size === 0;\n const keys = Object.keys(value).length;\n\n return keys === 0;\n};\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * Check if the provided value's type is `boolean`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `boolean`\n */\nexport const isBoolean = (value: unknown): value is boolean => {\n try {\n return (\n value instanceof Boolean ||\n typeof value === \"boolean\" ||\n Boolean(value) === value\n );\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isBufferExists = typeof Buffer !== \"undefined\";\n\n/**\n * Check if the provided value's type is `Buffer`\n */\nexport const isBuffer: typeof Buffer.isBuffer = isBufferExists\n ? Buffer.isBuffer.bind(Buffer)\n : /**\n * Check if the provided value's type is `Buffer`\n\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Buffer`\n */\n function isBuffer(\n value: Parameters<typeof Buffer.isBuffer>[0]\n ): value is Buffer {\n return false;\n };\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isBuffer } from \"./is-buffer\";\n\nconst globalObject = (Obj => {\n if (typeof globalThis === \"object\") {\n return globalThis;\n }\n Object.defineProperty(Obj, \"typeDetectGlobalObject\", {\n get() {\n return this;\n },\n configurable: true\n });\n\n // // biome-ignore lint/correctness/noUndeclaredVariables: <explanation>\n // const global = typeDetectGlobalObject;\n\n // // biome-ignore lint/performance/noDelete: <explanation>\n // delete Obj.typeDetectGlobalObject;\n return globalThis;\n})(Object.prototype);\n\nexport function typeDetect(obj: unknown): string {\n // NOTE: isBuffer must execute before type-detect,\n // because type-detect returns 'Uint8Array'.\n if (isBuffer(obj)) {\n return \"Buffer\";\n }\n\n const typeofObj = typeof obj;\n if (typeofObj !== \"object\") {\n return typeofObj;\n }\n\n if (obj === null) {\n return \"null\";\n }\n\n if (obj === globalObject) {\n return \"global\";\n }\n\n if (\n Array.isArray(obj) &&\n (Symbol.toStringTag === undefined || !(Symbol.toStringTag in obj))\n ) {\n return \"Array\";\n }\n\n // https://html.spec.whatwg.org/multipage/browsers.html#location\n if (typeof globalThis === \"object\" && globalThis !== null) {\n if (\n typeof (globalThis as any).location === \"object\" &&\n obj === (globalThis as any).location\n ) {\n return \"Location\";\n }\n\n // https://html.spec.whatwg.org/#document\n if (\n typeof (globalThis as any).document === \"object\" &&\n obj === (globalThis as any).document\n ) {\n return \"Document\";\n }\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray\n if (typeof (globalThis as any).navigator === \"object\") {\n if (\n typeof (globalThis as any).navigator.mimeTypes === \"object\" &&\n obj === (globalThis as any).navigator.mimeTypes\n ) {\n return \"MimeTypeArray\";\n }\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray\n if (\n typeof (globalThis as any).navigator.plugins === \"object\" &&\n obj === (globalThis as any).navigator.plugins\n ) {\n return \"PluginArray\";\n }\n }\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray\n if (\n (typeof (globalThis as any).HTMLElement === \"function\" ||\n typeof (globalThis as any).HTMLElement === \"object\") &&\n obj instanceof (globalThis as any).HTMLElement\n ) {\n if ((obj as any).tagName === \"BLOCKQUOTE\") {\n return \"HTMLQuoteElement\";\n }\n\n // https://html.spec.whatwg.org/#htmltabledatacellelement\n if ((obj as any).tagName === \"TD\") {\n return \"HTMLTableDataCellElement\";\n }\n\n // https://html.spec.whatwg.org/#htmltableheadercellelement\n if ((obj as any).tagName === \"TH\") {\n return \"HTMLTableHeaderCellElement\";\n }\n }\n }\n\n const stringTag =\n Symbol.toStringTag !== undefined && (obj as any)[Symbol.toStringTag];\n if (typeof stringTag === \"string\") {\n return stringTag;\n }\n\n const objPrototype = Object.getPrototypeOf(obj);\n if (objPrototype === RegExp.prototype) {\n return \"RegExp\";\n }\n\n if (objPrototype === Date.prototype) {\n return \"Date\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag\n if (typeof Promise !== \"undefined\" && objPrototype === Promise.prototype) {\n return \"Promise\";\n }\n\n if (typeof Set !== \"undefined\" && objPrototype === Set.prototype) {\n return \"Set\";\n }\n\n if (typeof Map !== \"undefined\" && objPrototype === Map.prototype) {\n return \"Map\";\n }\n\n if (typeof WeakSet !== \"undefined\" && objPrototype === WeakSet.prototype) {\n return \"WeakSet\";\n }\n\n if (typeof WeakMap !== \"undefined\" && objPrototype === WeakMap.prototype) {\n return \"WeakMap\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag\n if (typeof DataView !== \"undefined\" && objPrototype === DataView.prototype) {\n return \"DataView\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag\n if (\n typeof Map !== \"undefined\" &&\n objPrototype === Object.getPrototypeOf(new Map().entries())\n ) {\n return \"Map Iterator\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag\n if (\n typeof Set !== \"undefined\" &&\n objPrototype === Object.getPrototypeOf(new Set().entries())\n ) {\n return \"Set Iterator\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag\n if (\n typeof Array.prototype[Symbol.iterator] === \"function\" &&\n objPrototype === Object.getPrototypeOf([][Symbol.iterator]())\n ) {\n return \"Array Iterator\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag\n if (\n Symbol.iterator !== undefined &&\n typeof String.prototype[Symbol.iterator] === \"function\" &&\n Object.getPrototypeOf(\"\"[Symbol.iterator]()) &&\n objPrototype === Object.getPrototypeOf(\"\"[Symbol.iterator]())\n ) {\n return \"String Iterator\";\n }\n\n if (objPrototype === null) {\n return \"Object\";\n }\n\n return Object.prototype.toString.call(obj).slice(8, -1);\n}\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isString = (value: unknown): value is string => {\n try {\n return typeof value === \"string\";\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isEmpty } from \"./is-empty\";\n\n/**\n * The inverse of the `isEmpty` function\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`\n */\nexport const isSet = (value: unknown): value is NonNullable<unknown> => {\n try {\n return !isEmpty(value);\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isSet } from \"./is-set\";\nimport { isString } from \"./is-string\";\n\n/**\n * Determine if the type is string and is not empty (length greater than zero)\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `string` and length greater than zero\n */\nexport const isSetString = (value: unknown): value is NonNullable<string> => {\n try {\n return isSet(value) && isString(value) && value.length > 0;\n } catch {\n return false;\n }\n};\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isBoolean, isString } from \"@stryke/type-checks\";\nimport * as http from \"node:http\";\nimport type { Agent as HttpsAgent } from \"node:https\";\nimport * as net from \"node:net\";\nimport type { Duplex } from \"node:stream\";\nimport type * as tls from \"node:tls\";\n\ninterface HttpConnectOpts extends net.TcpNetConnectOpts {\n secureEndpoint: false;\n protocol?: string;\n}\n\ninterface HttpsConnectOpts extends tls.ConnectionOptions {\n secureEndpoint: true;\n protocol?: string;\n port: number;\n}\n\nexport type AgentConnectOpts = HttpConnectOpts | HttpsConnectOpts;\n\nconst SYMBOL_INTERNAL = Symbol(\"Agent\");\n\ninterface InternalState {\n defaultPort?: number;\n protocol?: string;\n currentSocket?: Duplex;\n}\n\nexport abstract class Agent extends http.Agent {\n private [SYMBOL_INTERNAL]: InternalState;\n\n // Set by `http.Agent` - missing from `@types/node`\n options!: Partial<net.TcpNetConnectOpts & tls.ConnectionOptions>;\n\n keepAlive!: boolean;\n\n constructor(opts?: http.AgentOptions) {\n super(opts);\n this[SYMBOL_INTERNAL] = {};\n }\n\n abstract connect(\n req: http.ClientRequest,\n options: AgentConnectOpts\n ): Promise<Duplex | http.Agent> | Duplex | http.Agent;\n\n /**\n * Determine whether this is an `http` or `https` request.\n */\n isSecureEndpoint(options?: AgentConnectOpts): boolean {\n if (options) {\n // First check the `secureEndpoint` property explicitly, since this\n // means that a parent `Agent` is \"passing through\" to this instance.\n if (isBoolean((options as any).secureEndpoint)) {\n return options.secureEndpoint;\n }\n\n // If no explicit `secure` endpoint, check if `protocol` property is\n // set. This will usually be the case since using a full string URL\n // or `URL` instance should be the most common usage.\n if (isString(options.protocol)) {\n return options.protocol === \"https:\";\n }\n }\n\n // Finally, if no `protocol` property was set, then fall back to\n // checking the stack trace of the current call stack, and try to\n // detect the \"https\" module.\n const { stack } = new Error(\" \");\n if (!isString(stack)) {\n return false;\n }\n\n return stack\n .split(\"\\n\")\n .some(l => l.includes(\"(https.js:\") || l.includes(\"node:https:\"));\n }\n\n // In order to support async signatures in `connect()` and Node's native\n // connection pooling in `http.Agent`, the array of sockets for each origin\n // has to be updated synchronously. This is so the length of the array is\n // accurate when `addRequest()` is next called. We achieve this by creating a\n // fake socket and adding it to `sockets[origin]` and incrementing\n // `totalSocketCount`.\n private incrementSockets(name: string) {\n // If `maxSockets` and `maxTotalSockets` are both Infinity then there is no\n // need to create a fake socket because Node.js native connection pooling\n // will never be invoked.\n if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {\n return null;\n }\n // All instances of `sockets` are expected TypeScript errors. The\n // alternative is to add it as a private property of this class but that\n // will break TypeScript sub-classing.\n\n // @ts-expect-error `sockets` is readonly in `@types/node`\n this.sockets[name] ??= [];\n\n const fakeSocket = new net.Socket({ writable: false });\n this.sockets[name].push(fakeSocket);\n // @ts-expect-error `totalSocketCount` isn't defined in `@types/node`\n this.totalSocketCount++;\n return fakeSocket;\n }\n\n private decrementSockets(name: string, socket: null | net.Socket) {\n if (!this.sockets[name] || socket === null) {\n return;\n }\n const sockets = this.sockets[name];\n const index = sockets.indexOf(socket);\n if (index !== -1) {\n sockets.splice(index, 1);\n // @ts-expect-error `totalSocketCount` isn't defined in `@types/node`\n this.totalSocketCount--;\n if (sockets.length === 0) {\n // @ts-expect-error `sockets` is readonly in `@types/node`\n delete this.sockets[name];\n }\n }\n }\n\n // In order to properly update the socket pool, we need to call `getName()` on\n // the core `https.Agent` if it is a secureEndpoint.\n override getName(options?: AgentConnectOpts): string {\n const secureEndpoint = this.isSecureEndpoint(options);\n if (secureEndpoint) {\n // @ts-expect-error `getName()` isn't defined in `@types/node`\n return HttpsAgent.prototype.getName.call(this, options);\n }\n\n return super.getName(options);\n }\n\n createSocket(\n req: http.ClientRequest,\n options: AgentConnectOpts,\n cb: (err: Error | null, s?: Duplex) => void\n ) {\n const connectOpts = {\n ...options,\n secureEndpoint: this.isSecureEndpoint(options)\n };\n const name = this.getName(connectOpts);\n const fakeSocket = this.incrementSockets(name);\n Promise.resolve()\n .then(async () => this.connect(req, connectOpts))\n .then(\n socket => {\n this.decrementSockets(name, fakeSocket);\n if (socket instanceof http.Agent) {\n try {\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n // eslint-disable-next-line ts/no-unsafe-call\n return socket.addRequest(req, connectOpts);\n } catch (err: unknown) {\n return cb(err as Error);\n }\n }\n this[SYMBOL_INTERNAL].currentSocket = socket;\n // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n // eslint-disable-next-line ts/no-unsafe-call\n super.createSocket(req, options, cb);\n },\n err => {\n this.decrementSockets(name, fakeSocket);\n cb(err);\n }\n );\n }\n\n override createConnection(): Duplex {\n const socket = this[SYMBOL_INTERNAL].currentSocket;\n this[SYMBOL_INTERNAL].currentSocket = undefined;\n if (!socket) {\n throw new Error(\"No socket was returned in the `connect()` function\");\n }\n return socket;\n }\n\n get defaultPort(): number {\n return (\n this[SYMBOL_INTERNAL].defaultPort ??\n (this.protocol === \"https:\" ? 443 : 80)\n );\n }\n\n set defaultPort(v: number) {\n if (this[SYMBOL_INTERNAL]) {\n this[SYMBOL_INTERNAL].defaultPort = v;\n }\n }\n\n get protocol(): string {\n return (\n this[SYMBOL_INTERNAL].protocol ??\n (this.isSecureEndpoint() ? \"https:\" : \"http:\")\n );\n }\n\n set protocol(v: string) {\n if (this[SYMBOL_INTERNAL]) {\n this[SYMBOL_INTERNAL].protocol = v;\n }\n }\n}\n"],"mappings":"uDAkBA,MAAa,EAAU,GAAkC,CACvD,GAAI,CACF,OAAO,IAAU,UACX,CACN,MAAO,KCJE,EAAe,GACnB,IAAU,IAAA,GCYN,EAAW,GAAmB,CACzC,GAAI,CACF,OAAO,EAAY,EAAM,EAAI,EAAO,EAAM,MACpC,CACN,MAAO,KCXE,EAAa,GAAqC,CAC7D,GAAI,CACF,OACE,aAAiB,SACjB,OAAO,GAAU,WACjB,EAAQ,IAAW,OAEf,CACN,MAAO,KCdmB,OAAO,OAAW,KAM5C,OAAO,SAAS,KAAK,OAAO,ECJV,IAChB,OAAO,YAAe,UAG1B,OAAO,eAAe,EAAK,yBAA0B,CACnD,KAAM,CACJ,OAAO,MAET,aAAc,GACf,CAAC,CAPO,aAeR,OAAO,UAAU,CCnBpB,MAAa,EAAY,GAAoC,CAC3D,GAAI,CACF,OAAO,OAAO,GAAU,cAClB,CACN,MAAO,KCIE,EAAS,GAAkD,CACtE,GAAI,CACF,MAAO,CAAC,EAAQ,EAAM,MAChB,CACN,MAAO,KCHE,EAAe,GAAiD,CAC3E,GAAI,CACF,OAAO,EAAM,EAAM,EAAI,EAAS,EAAM,EAAI,EAAM,OAAS,OACnD,CACN,MAAO,KCOL,EAAkB,OAAO,QAAQ,CAQvC,IAAsB,EAAtB,cAAoC,EAAK,KAAM,CAC7C,CAAS,GAGT,QAEA,UAEA,YAAY,EAA0B,CACpC,MAAM,EAAK,CACX,KAAK,GAAmB,EAAE,CAW5B,iBAAiB,EAAqC,CACpD,GAAI,EAAS,CAGX,GAAI,EAAW,EAAgB,eAAe,CAC5C,OAAO,EAAQ,eAMjB,GAAI,EAAS,EAAQ,SAAS,CAC5B,OAAO,EAAQ,WAAa,SAOhC,GAAM,CAAE,SAAc,MAAM,IAAI,CAKhC,OAJK,EAAS,EAAM,CAIb,EACJ,MAAM;EAAK,CACX,KAAK,GAAK,EAAE,SAAS,aAAa,EAAI,EAAE,SAAS,cAAc,CAAC,CAL1D,GAcX,iBAAyB,EAAc,CAIrC,GAAI,KAAK,aAAe,KAAY,KAAK,kBAAoB,IAC3D,OAAO,KAOT,KAAK,QAAQ,KAAU,EAAE,CAEzB,IAAM,EAAa,IAAI,EAAI,OAAO,CAAE,SAAU,GAAO,CAAC,CAItD,OAHA,KAAK,QAAQ,GAAM,KAAK,EAAW,CAEnC,KAAK,mBACE,EAGT,iBAAyB,EAAc,EAA2B,CAChE,GAAI,CAAC,KAAK,QAAQ,IAAS,IAAW,KACpC,OAEF,IAAM,EAAU,KAAK,QAAQ,GACvB,EAAQ,EAAQ,QAAQ,EAAO,CACjC,IAAU,KACZ,EAAQ,OAAO,EAAO,EAAE,CAExB,KAAK,mBACD,EAAQ,SAAW,GAErB,OAAO,KAAK,QAAQ,IAO1B,QAAiB,EAAoC,CAOnD,OANuB,KAAK,iBAAiB,EAAQ,CAG5C,WAAW,UAAU,QAAQ,KAAK,KAAM,EAAQ,CAGlD,MAAM,QAAQ,EAAQ,CAG/B,aACE,EACA,EACA,EACA,CACA,IAAM,EAAc,CAClB,GAAG,EACH,eAAgB,KAAK,iBAAiB,EAAQ,CAC/C,CACK,EAAO,KAAK,QAAQ,EAAY,CAChC,EAAa,KAAK,iBAAiB,EAAK,CAC9C,QAAQ,SAAS,CACd,KAAK,SAAY,KAAK,QAAQ,EAAK,EAAY,CAAC,CAChD,KACC,GAAU,CAER,GADA,KAAK,iBAAiB,EAAM,EAAW,CACnC,aAAkB,EAAK,MACzB,GAAI,CAGF,OAAO,EAAO,WAAW,EAAK,EAAY,OACnCE,EAAc,CACrB,OAAO,EAAG,EAAa,CAG3B,KAAK,GAAiB,cAAgB,EAGtC,MAAM,aAAa,EAAK,EAAS,EAAG,EAEtC,GAAO,CACL,KAAK,iBAAiB,EAAM,EAAW,CACvC,EAAG,EAAI,EAEV,CAGL,kBAAoC,CAClC,IAAM,EAAS,KAAK,GAAiB,cAErC,GADA,KAAK,GAAiB,cAAgB,IAAA,GAClC,CAAC,EACH,MAAU,MAAM,qDAAqD,CAEvE,OAAO,EAGT,IAAI,aAAsB,CACxB,OACE,KAAK,GAAiB,cACrB,KAAK,WAAa,SAAW,IAAM,IAIxC,IAAI,YAAY,EAAW,CACrB,KAAK,KACP,KAAK,GAAiB,YAAc,GAIxC,IAAI,UAAmB,CACrB,OACE,KAAK,GAAiB,WACrB,KAAK,kBAAkB,CAAG,SAAW,SAI1C,IAAI,SAAS,EAAW,CAClB,KAAK,KACP,KAAK,GAAiB,SAAW"}
|