nlcurl 0.6.0 → 0.8.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.
Files changed (354) hide show
  1. package/README.md +143 -140
  2. package/dist/cache/groups.d.ts +75 -0
  3. package/dist/cache/groups.d.ts.map +1 -0
  4. package/dist/cache/groups.js +118 -0
  5. package/dist/cache/groups.js.map +1 -0
  6. package/dist/cache/no-vary-search.d.ts +33 -0
  7. package/dist/cache/no-vary-search.d.ts.map +1 -0
  8. package/dist/cache/no-vary-search.js +148 -0
  9. package/dist/cache/no-vary-search.js.map +1 -0
  10. package/dist/cache/range.d.ts +120 -0
  11. package/dist/cache/range.d.ts.map +1 -0
  12. package/dist/cache/range.js +193 -0
  13. package/dist/cache/range.js.map +1 -0
  14. package/dist/cache/store.d.ts +111 -0
  15. package/dist/cache/store.d.ts.map +1 -0
  16. package/dist/cache/store.js +414 -0
  17. package/dist/cache/store.js.map +1 -0
  18. package/dist/cache/types.d.ts +69 -0
  19. package/dist/cache/types.d.ts.map +1 -0
  20. package/dist/cache/types.js +2 -0
  21. package/dist/cache/types.js.map +1 -0
  22. package/dist/cli/args.d.ts +4 -37
  23. package/dist/cli/args.d.ts.map +1 -1
  24. package/dist/cli/args.js +3 -4
  25. package/dist/cli/args.js.map +1 -1
  26. package/dist/cli/index.d.ts +0 -5
  27. package/dist/cli/index.d.ts.map +1 -1
  28. package/dist/cli/index.js +1 -6
  29. package/dist/cli/index.js.map +1 -1
  30. package/dist/cli/output.d.ts +14 -20
  31. package/dist/cli/output.d.ts.map +1 -1
  32. package/dist/cli/output.js +14 -20
  33. package/dist/cli/output.js.map +1 -1
  34. package/dist/cookies/jar.d.ts +33 -31
  35. package/dist/cookies/jar.d.ts.map +1 -1
  36. package/dist/cookies/jar.js +69 -33
  37. package/dist/cookies/jar.js.map +1 -1
  38. package/dist/cookies/parser.d.ts +14 -16
  39. package/dist/cookies/parser.d.ts.map +1 -1
  40. package/dist/cookies/parser.js +30 -13
  41. package/dist/cookies/parser.js.map +1 -1
  42. package/dist/cookies/psl-data.d.ts +1 -1
  43. package/dist/cookies/psl-data.js +1 -1
  44. package/dist/cookies/public-suffix.d.ts +5 -27
  45. package/dist/cookies/public-suffix.d.ts.map +1 -1
  46. package/dist/cookies/public-suffix.js +5 -37
  47. package/dist/cookies/public-suffix.js.map +1 -1
  48. package/dist/core/auth.d.ts +30 -0
  49. package/dist/core/auth.d.ts.map +1 -0
  50. package/dist/core/auth.js +34 -0
  51. package/dist/core/auth.js.map +1 -0
  52. package/dist/core/client.d.ts +28 -40
  53. package/dist/core/client.d.ts.map +1 -1
  54. package/dist/core/client.js +34 -41
  55. package/dist/core/client.js.map +1 -1
  56. package/dist/core/errors.d.ts +64 -88
  57. package/dist/core/errors.d.ts.map +1 -1
  58. package/dist/core/errors.js +64 -88
  59. package/dist/core/errors.js.map +1 -1
  60. package/dist/core/request.d.ts +63 -85
  61. package/dist/core/request.d.ts.map +1 -1
  62. package/dist/core/response.d.ts +64 -59
  63. package/dist/core/response.d.ts.map +1 -1
  64. package/dist/core/response.js +70 -52
  65. package/dist/core/response.js.map +1 -1
  66. package/dist/core/session.d.ts +81 -70
  67. package/dist/core/session.d.ts.map +1 -1
  68. package/dist/core/session.js +198 -71
  69. package/dist/core/session.js.map +1 -1
  70. package/dist/core/validation.d.ts +44 -42
  71. package/dist/core/validation.d.ts.map +1 -1
  72. package/dist/core/validation.js +47 -58
  73. package/dist/core/validation.js.map +1 -1
  74. package/dist/dns/cache.d.ts +59 -0
  75. package/dist/dns/cache.d.ts.map +1 -0
  76. package/dist/dns/cache.js +99 -0
  77. package/dist/dns/cache.js.map +1 -0
  78. package/dist/dns/codec.d.ts +39 -0
  79. package/dist/dns/codec.d.ts.map +1 -0
  80. package/dist/dns/codec.js +238 -0
  81. package/dist/dns/codec.js.map +1 -0
  82. package/dist/dns/doh-resolver.d.ts +38 -0
  83. package/dist/dns/doh-resolver.d.ts.map +1 -0
  84. package/dist/dns/doh-resolver.js +191 -0
  85. package/dist/dns/doh-resolver.js.map +1 -0
  86. package/dist/dns/dot-resolver.d.ts +89 -0
  87. package/dist/dns/dot-resolver.d.ts.map +1 -0
  88. package/dist/dns/dot-resolver.js +158 -0
  89. package/dist/dns/dot-resolver.js.map +1 -0
  90. package/dist/dns/https-rr.d.ts +40 -0
  91. package/dist/dns/https-rr.d.ts.map +1 -0
  92. package/dist/dns/https-rr.js +109 -0
  93. package/dist/dns/https-rr.js.map +1 -0
  94. package/dist/dns/types.d.ts +82 -0
  95. package/dist/dns/types.d.ts.map +1 -0
  96. package/dist/dns/types.js +23 -0
  97. package/dist/dns/types.js.map +1 -0
  98. package/dist/fingerprints/akamai.d.ts +3 -11
  99. package/dist/fingerprints/akamai.d.ts.map +1 -1
  100. package/dist/fingerprints/akamai.js +3 -11
  101. package/dist/fingerprints/akamai.js.map +1 -1
  102. package/dist/fingerprints/database.d.ts +6 -14
  103. package/dist/fingerprints/database.d.ts.map +1 -1
  104. package/dist/fingerprints/database.js +6 -14
  105. package/dist/fingerprints/database.js.map +1 -1
  106. package/dist/fingerprints/extensions.d.ts +56 -71
  107. package/dist/fingerprints/extensions.d.ts.map +1 -1
  108. package/dist/fingerprints/extensions.js +58 -71
  109. package/dist/fingerprints/extensions.js.map +1 -1
  110. package/dist/fingerprints/ja3.d.ts +12 -30
  111. package/dist/fingerprints/ja3.d.ts.map +1 -1
  112. package/dist/fingerprints/ja3.js +12 -30
  113. package/dist/fingerprints/ja3.js.map +1 -1
  114. package/dist/fingerprints/ja4.d.ts +18 -0
  115. package/dist/fingerprints/ja4.d.ts.map +1 -0
  116. package/dist/fingerprints/ja4.js +83 -0
  117. package/dist/fingerprints/ja4.js.map +1 -0
  118. package/dist/fingerprints/profiles/chrome.d.ts +18 -21
  119. package/dist/fingerprints/profiles/chrome.d.ts.map +1 -1
  120. package/dist/fingerprints/profiles/chrome.js +35 -31
  121. package/dist/fingerprints/profiles/chrome.js.map +1 -1
  122. package/dist/fingerprints/profiles/edge.d.ts +7 -10
  123. package/dist/fingerprints/profiles/edge.d.ts.map +1 -1
  124. package/dist/fingerprints/profiles/edge.js +7 -10
  125. package/dist/fingerprints/profiles/edge.js.map +1 -1
  126. package/dist/fingerprints/profiles/firefox.d.ts +8 -11
  127. package/dist/fingerprints/profiles/firefox.d.ts.map +1 -1
  128. package/dist/fingerprints/profiles/firefox.js +8 -11
  129. package/dist/fingerprints/profiles/firefox.js.map +1 -1
  130. package/dist/fingerprints/profiles/safari.d.ts +11 -14
  131. package/dist/fingerprints/profiles/safari.d.ts.map +1 -1
  132. package/dist/fingerprints/profiles/safari.js +11 -14
  133. package/dist/fingerprints/profiles/safari.js.map +1 -1
  134. package/dist/fingerprints/profiles/tor.d.ts +5 -8
  135. package/dist/fingerprints/profiles/tor.d.ts.map +1 -1
  136. package/dist/fingerprints/profiles/tor.js +5 -8
  137. package/dist/fingerprints/profiles/tor.js.map +1 -1
  138. package/dist/fingerprints/types.d.ts +42 -73
  139. package/dist/fingerprints/types.d.ts.map +1 -1
  140. package/dist/hsts/store.d.ts +39 -0
  141. package/dist/hsts/store.d.ts.map +1 -0
  142. package/dist/hsts/store.js +163 -0
  143. package/dist/hsts/store.js.map +1 -0
  144. package/dist/hsts/types.d.ts +24 -0
  145. package/dist/hsts/types.d.ts.map +1 -0
  146. package/dist/hsts/types.js +2 -0
  147. package/dist/hsts/types.js.map +1 -0
  148. package/dist/http/alt-svc.d.ts +67 -0
  149. package/dist/http/alt-svc.d.ts.map +1 -0
  150. package/dist/http/alt-svc.js +186 -0
  151. package/dist/http/alt-svc.js.map +1 -0
  152. package/dist/http/early-hints.d.ts +23 -0
  153. package/dist/http/early-hints.d.ts.map +1 -0
  154. package/dist/http/early-hints.js +33 -0
  155. package/dist/http/early-hints.js.map +1 -0
  156. package/dist/http/form-data.d.ts +17 -35
  157. package/dist/http/form-data.d.ts.map +1 -1
  158. package/dist/http/form-data.js +12 -34
  159. package/dist/http/form-data.js.map +1 -1
  160. package/dist/http/h1/client.d.ts +14 -26
  161. package/dist/http/h1/client.d.ts.map +1 -1
  162. package/dist/http/h1/client.js +29 -22
  163. package/dist/http/h1/client.js.map +1 -1
  164. package/dist/http/h1/encoder.d.ts +10 -17
  165. package/dist/http/h1/encoder.d.ts.map +1 -1
  166. package/dist/http/h1/encoder.js +10 -17
  167. package/dist/http/h1/encoder.js.map +1 -1
  168. package/dist/http/h1/parser.d.ts +22 -59
  169. package/dist/http/h1/parser.d.ts.map +1 -1
  170. package/dist/http/h1/parser.js +15 -47
  171. package/dist/http/h1/parser.js.map +1 -1
  172. package/dist/http/h2/client.d.ts +18 -59
  173. package/dist/http/h2/client.d.ts.map +1 -1
  174. package/dist/http/h2/client.js +29 -64
  175. package/dist/http/h2/client.js.map +1 -1
  176. package/dist/http/h2/frames.d.ts +53 -84
  177. package/dist/http/h2/frames.d.ts.map +1 -1
  178. package/dist/http/h2/frames.js +48 -76
  179. package/dist/http/h2/frames.js.map +1 -1
  180. package/dist/http/h2/hpack.d.ts +16 -35
  181. package/dist/http/h2/hpack.d.ts.map +1 -1
  182. package/dist/http/h2/hpack.js +16 -35
  183. package/dist/http/h2/hpack.js.map +1 -1
  184. package/dist/http/h3/detection.d.ts +15 -0
  185. package/dist/http/h3/detection.d.ts.map +1 -0
  186. package/dist/http/h3/detection.js +41 -0
  187. package/dist/http/h3/detection.js.map +1 -0
  188. package/dist/http/negotiator.d.ts +43 -33
  189. package/dist/http/negotiator.d.ts.map +1 -1
  190. package/dist/http/negotiator.js +99 -41
  191. package/dist/http/negotiator.js.map +1 -1
  192. package/dist/http/pool.d.ts +34 -64
  193. package/dist/http/pool.d.ts.map +1 -1
  194. package/dist/http/pool.js +22 -41
  195. package/dist/http/pool.js.map +1 -1
  196. package/dist/http/resumable-upload.d.ts +76 -0
  197. package/dist/http/resumable-upload.d.ts.map +1 -0
  198. package/dist/http/resumable-upload.js +104 -0
  199. package/dist/http/resumable-upload.js.map +1 -0
  200. package/dist/http/trailers.d.ts +29 -0
  201. package/dist/http/trailers.d.ts.map +1 -0
  202. package/dist/http/trailers.js +57 -0
  203. package/dist/http/trailers.js.map +1 -0
  204. package/dist/index.d.ts +36 -8
  205. package/dist/index.d.ts.map +1 -1
  206. package/dist/index.js +32 -1
  207. package/dist/index.js.map +1 -1
  208. package/dist/middleware/interceptor.d.ts +13 -32
  209. package/dist/middleware/interceptor.d.ts.map +1 -1
  210. package/dist/middleware/interceptor.js +11 -16
  211. package/dist/middleware/interceptor.js.map +1 -1
  212. package/dist/middleware/rate-limiter.d.ts +8 -17
  213. package/dist/middleware/rate-limiter.d.ts.map +1 -1
  214. package/dist/middleware/rate-limiter.js +15 -12
  215. package/dist/middleware/rate-limiter.js.map +1 -1
  216. package/dist/middleware/retry-after.d.ts +15 -0
  217. package/dist/middleware/retry-after.d.ts.map +1 -0
  218. package/dist/middleware/retry-after.js +36 -0
  219. package/dist/middleware/retry-after.js.map +1 -0
  220. package/dist/middleware/retry.d.ts +9 -18
  221. package/dist/middleware/retry.d.ts.map +1 -1
  222. package/dist/middleware/retry.js +12 -9
  223. package/dist/middleware/retry.js.map +1 -1
  224. package/dist/proxy/auth.d.ts +73 -0
  225. package/dist/proxy/auth.d.ts.map +1 -0
  226. package/dist/proxy/auth.js +128 -0
  227. package/dist/proxy/auth.js.map +1 -0
  228. package/dist/proxy/env-proxy.d.ts +11 -0
  229. package/dist/proxy/env-proxy.d.ts.map +1 -0
  230. package/dist/proxy/env-proxy.js +56 -0
  231. package/dist/proxy/env-proxy.js.map +1 -0
  232. package/dist/proxy/http-proxy.d.ts +13 -18
  233. package/dist/proxy/http-proxy.d.ts.map +1 -1
  234. package/dist/proxy/http-proxy.js +24 -14
  235. package/dist/proxy/http-proxy.js.map +1 -1
  236. package/dist/proxy/socks.d.ts +13 -20
  237. package/dist/proxy/socks.d.ts.map +1 -1
  238. package/dist/proxy/socks.js +6 -9
  239. package/dist/proxy/socks.js.map +1 -1
  240. package/dist/sse/parser.d.ts +47 -0
  241. package/dist/sse/parser.d.ts.map +1 -0
  242. package/dist/sse/parser.js +139 -0
  243. package/dist/sse/parser.js.map +1 -0
  244. package/dist/tls/constants.d.ts +15 -74
  245. package/dist/tls/constants.d.ts.map +1 -1
  246. package/dist/tls/constants.js +15 -74
  247. package/dist/tls/constants.js.map +1 -1
  248. package/dist/tls/ct.d.ts +78 -0
  249. package/dist/tls/ct.d.ts.map +1 -0
  250. package/dist/tls/ct.js +175 -0
  251. package/dist/tls/ct.js.map +1 -0
  252. package/dist/tls/early-data.d.ts +45 -0
  253. package/dist/tls/early-data.d.ts.map +1 -0
  254. package/dist/tls/early-data.js +46 -0
  255. package/dist/tls/early-data.js.map +1 -0
  256. package/dist/tls/ech.d.ts +130 -0
  257. package/dist/tls/ech.d.ts.map +1 -0
  258. package/dist/tls/ech.js +353 -0
  259. package/dist/tls/ech.js.map +1 -0
  260. package/dist/tls/keylog.d.ts +34 -0
  261. package/dist/tls/keylog.d.ts.map +1 -0
  262. package/dist/tls/keylog.js +64 -0
  263. package/dist/tls/keylog.js.map +1 -0
  264. package/dist/tls/node-engine.d.ts +15 -14
  265. package/dist/tls/node-engine.d.ts.map +1 -1
  266. package/dist/tls/node-engine.js +54 -14
  267. package/dist/tls/node-engine.js.map +1 -1
  268. package/dist/tls/ocsp.d.ts +55 -0
  269. package/dist/tls/ocsp.d.ts.map +1 -0
  270. package/dist/tls/ocsp.js +131 -0
  271. package/dist/tls/ocsp.js.map +1 -0
  272. package/dist/tls/pin-verification.d.ts +10 -0
  273. package/dist/tls/pin-verification.d.ts.map +1 -0
  274. package/dist/tls/pin-verification.js +28 -0
  275. package/dist/tls/pin-verification.js.map +1 -0
  276. package/dist/tls/session-cache.d.ts +58 -0
  277. package/dist/tls/session-cache.d.ts.map +1 -0
  278. package/dist/tls/session-cache.js +76 -0
  279. package/dist/tls/session-cache.js.map +1 -0
  280. package/dist/tls/stealth/client-hello.d.ts +34 -32
  281. package/dist/tls/stealth/client-hello.d.ts.map +1 -1
  282. package/dist/tls/stealth/client-hello.js +116 -11
  283. package/dist/tls/stealth/client-hello.js.map +1 -1
  284. package/dist/tls/stealth/engine.d.ts +5 -15
  285. package/dist/tls/stealth/engine.d.ts.map +1 -1
  286. package/dist/tls/stealth/engine.js +163 -47
  287. package/dist/tls/stealth/engine.js.map +1 -1
  288. package/dist/tls/stealth/handshake.d.ts +23 -32
  289. package/dist/tls/stealth/handshake.d.ts.map +1 -1
  290. package/dist/tls/stealth/handshake.js +112 -27
  291. package/dist/tls/stealth/handshake.js.map +1 -1
  292. package/dist/tls/stealth/key-schedule.d.ts +59 -86
  293. package/dist/tls/stealth/key-schedule.d.ts.map +1 -1
  294. package/dist/tls/stealth/key-schedule.js +46 -58
  295. package/dist/tls/stealth/key-schedule.js.map +1 -1
  296. package/dist/tls/stealth/record-layer.d.ts +52 -75
  297. package/dist/tls/stealth/record-layer.d.ts.map +1 -1
  298. package/dist/tls/stealth/record-layer.js +47 -63
  299. package/dist/tls/stealth/record-layer.js.map +1 -1
  300. package/dist/tls/stealth/tls12-handshake.d.ts +30 -0
  301. package/dist/tls/stealth/tls12-handshake.d.ts.map +1 -0
  302. package/dist/tls/stealth/tls12-handshake.js +470 -0
  303. package/dist/tls/stealth/tls12-handshake.js.map +1 -0
  304. package/dist/tls/types.d.ts +46 -48
  305. package/dist/tls/types.d.ts.map +1 -1
  306. package/dist/utils/buffer-reader.d.ts +26 -81
  307. package/dist/utils/buffer-reader.d.ts.map +1 -1
  308. package/dist/utils/buffer-reader.js +26 -81
  309. package/dist/utils/buffer-reader.js.map +1 -1
  310. package/dist/utils/buffer-writer.d.ts +30 -66
  311. package/dist/utils/buffer-writer.d.ts.map +1 -1
  312. package/dist/utils/buffer-writer.js +30 -66
  313. package/dist/utils/buffer-writer.js.map +1 -1
  314. package/dist/utils/compression.d.ts +18 -0
  315. package/dist/utils/compression.d.ts.map +1 -0
  316. package/dist/utils/compression.js +34 -0
  317. package/dist/utils/compression.js.map +1 -0
  318. package/dist/utils/dictionary-transport.d.ts +97 -0
  319. package/dist/utils/dictionary-transport.d.ts.map +1 -0
  320. package/dist/utils/dictionary-transport.js +171 -0
  321. package/dist/utils/dictionary-transport.js.map +1 -0
  322. package/dist/utils/encoding.d.ts +12 -28
  323. package/dist/utils/encoding.d.ts.map +1 -1
  324. package/dist/utils/encoding.js +77 -40
  325. package/dist/utils/encoding.js.map +1 -1
  326. package/dist/utils/happy-eyeballs.d.ts +20 -7
  327. package/dist/utils/happy-eyeballs.d.ts.map +1 -1
  328. package/dist/utils/happy-eyeballs.js +57 -25
  329. package/dist/utils/happy-eyeballs.js.map +1 -1
  330. package/dist/utils/logger.d.ts +54 -81
  331. package/dist/utils/logger.d.ts.map +1 -1
  332. package/dist/utils/logger.js +92 -64
  333. package/dist/utils/logger.js.map +1 -1
  334. package/dist/utils/tcp-fast-open.d.ts +30 -0
  335. package/dist/utils/tcp-fast-open.d.ts.map +1 -0
  336. package/dist/utils/tcp-fast-open.js +36 -0
  337. package/dist/utils/tcp-fast-open.js.map +1 -0
  338. package/dist/utils/url.d.ts +18 -25
  339. package/dist/utils/url.d.ts.map +1 -1
  340. package/dist/utils/url.js +18 -25
  341. package/dist/utils/url.js.map +1 -1
  342. package/dist/ws/client.d.ts +35 -52
  343. package/dist/ws/client.d.ts.map +1 -1
  344. package/dist/ws/client.js +92 -37
  345. package/dist/ws/client.js.map +1 -1
  346. package/dist/ws/frame.d.ts +27 -42
  347. package/dist/ws/frame.d.ts.map +1 -1
  348. package/dist/ws/frame.js +25 -37
  349. package/dist/ws/frame.js.map +1 -1
  350. package/dist/ws/permessage-deflate.d.ts +53 -0
  351. package/dist/ws/permessage-deflate.d.ts.map +1 -0
  352. package/dist/ws/permessage-deflate.js +140 -0
  353. package/dist/ws/permessage-deflate.js.map +1 -0
  354. package/package.json +62 -62
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAuB,MAAM,cAAc,CAAC;AAEl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AAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,oBAAoB,CAAC,GAAkB;IAC9C,OAAO;QACL,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,cAAc,EAAE,GAAG,CAAC,cAAc;QAClC,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,YAAY,EAAE,GAAG,CAAC,YAAY;QAC9B,WAAW,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS;QACxD,IAAI,EAAE,SAAS;KAChB,CAAC;AACJ,CAAC"}
@@ -1,167 +1,143 @@
1
1
  /**
2
- * Base error class for all NLcURL library errors. All library-specific
3
- * errors extend this class, allowing callers to distinguish NLcURL failures
4
- * from native Node.js or third-party errors via `instanceof NLcURLError`.
2
+ * Base error class for all NLcURL errors, providing a machine-readable error code
3
+ * and structured JSON serialization.
5
4
  *
6
- * Supports ES2022 error chaining through the standard `cause` property.
7
- * When wrapping a lower-level error, pass it as the `cause` parameter to
8
- * preserve the full error chain for diagnostics.
5
+ * @class
9
6
  */
10
7
  export declare class NLcURLError extends Error {
11
- /** Machine-readable error code string (e.g. `"ERR_TLS"`, `"ERR_TIMEOUT"`). */
8
+ /** Machine-readable error code (e.g. "ERR_TLS", "ERR_TIMEOUT"). */
12
9
  readonly code: string;
13
10
  /**
14
- * Creates a new NLcURLError instance.
11
+ * Creates a new NLcURLError.
15
12
  *
16
- * @param {string} message - Human-readable description of the error.
17
- * @param {string} code - Machine-readable error code identifying the failure category.
18
- * @param {Error} [cause] - Optional underlying error that triggered this one.
13
+ * @param {string} message - Human-readable error description.
14
+ * @param {string} code - Machine-readable error code.
15
+ * @param {Error} [cause] - The underlying cause, if any.
19
16
  */
20
17
  constructor(message: string, code: string, cause?: Error);
21
18
  /**
22
- * Serializes the error into a plain object suitable for structured logging
23
- * or JSON API responses. Recursively serializes the `cause` chain.
19
+ * Serializes the error to a plain object suitable for JSON output.
24
20
  *
25
- * @returns {Object} A JSON-safe representation of the error.
21
+ * @returns {Record<string, unknown>} A plain object representation of the error.
26
22
  */
27
23
  toJSON(): Record<string, unknown>;
28
24
  }
29
25
  /**
30
- * Raised when a TLS handshake fails, a certificate is invalid, or any other
31
- * TLS-layer error occurs during connection establishment or data transfer.
26
+ * Represents a TLS-level error, optionally including a TLS alert code.
27
+ *
28
+ * @class
32
29
  */
33
30
  export declare class TLSError extends NLcURLError {
34
- /** TLS alert description code from RFC 8446, if the server sent an Alert record. */
31
+ /** TLS alert description code, if available. */
35
32
  readonly alertCode?: number;
36
33
  /**
37
- * Creates a new TLSError instance.
34
+ * Creates a new TLSError.
38
35
  *
39
- * @param {string} message - Human-readable description of the TLS failure.
40
- * @param {number} [alertCode] - Optional TLS alert description code (RFC 8446 section 6).
41
- * @param {Error} [cause] - Optional underlying error that triggered this one.
36
+ * @param {string} message - Human-readable error description.
37
+ * @param {number} [alertCode] - The TLS alert code.
38
+ * @param {Error} [cause] - The underlying cause, if any.
42
39
  */
43
40
  constructor(message: string, alertCode?: number, cause?: Error);
44
- /**
45
- * Serializes the error including the TLS alert code.
46
- *
47
- * @returns {Object} A JSON-safe representation of the error.
48
- */
41
+ /** @inheritdoc */
49
42
  toJSON(): Record<string, unknown>;
50
43
  }
51
44
  /**
52
- * Raised when an HTTP-level error occurs, such as a protocol violation or a
53
- * connection close before the response is complete. This is distinct from
54
- * non-2xx responses, which are returned as successful `NLcURLResponse` objects.
45
+ * Represents an HTTP-level error with a status code.
46
+ *
47
+ * @class
55
48
  */
56
49
  export declare class HTTPError extends NLcURLError {
57
- /** The HTTP status code associated with the error, or `0` if unavailable. */
50
+ /** The HTTP response status code. */
58
51
  readonly statusCode: number;
59
52
  /**
60
- * Creates a new HTTPError instance.
53
+ * Creates a new HTTPError.
61
54
  *
62
- * @param {string} message - Human-readable description of the HTTP error.
63
- * @param {number} statusCode - The HTTP status code, or `0` if none applies.
64
- * @param {Error} [cause] - Optional underlying error that triggered this one.
55
+ * @param {string} message - Human-readable error description.
56
+ * @param {number} statusCode - The HTTP status code.
57
+ * @param {Error} [cause] - The underlying cause, if any.
65
58
  */
66
59
  constructor(message: string, statusCode: number, cause?: Error);
67
- /**
68
- * Serializes the error including the HTTP status code.
69
- *
70
- * @returns {Object} A JSON-safe representation of the error.
71
- */
60
+ /** @inheritdoc */
72
61
  toJSON(): Record<string, unknown>;
73
62
  }
74
63
  /**
75
- * Raised when a request exceeds a configured timeout limit. The `phase`
76
- * property identifies which stage of the request lifecycle timed out.
64
+ * Represents a timeout error during a specific phase of the request lifecycle.
65
+ *
66
+ * @class
77
67
  */
78
68
  export declare class TimeoutError extends NLcURLError {
79
- /**
80
- * The lifecycle phase in which the timeout occurred.
81
- *
82
- * - `"connect"` -- TCP connection establishment exceeded the limit.
83
- * - `"tls"` -- TLS handshake exceeded the limit.
84
- * - `"response"` -- Waiting for the first response byte exceeded the limit.
85
- * - `"total"` -- The overall wall-clock duration exceeded the limit.
86
- */
69
+ /** The phase during which the timeout occurred. */
87
70
  readonly phase: "connect" | "tls" | "response" | "total";
88
71
  /**
89
- * Creates a new TimeoutError instance.
72
+ * Creates a new TimeoutError.
90
73
  *
91
- * @param {string} message - Human-readable description.
92
- * @param {'connect'|'tls'|'response'|'total'} phase - The phase that timed out.
93
- * @param {Error} [cause] - Optional underlying error.
74
+ * @param {string} message - Human-readable error description.
75
+ * @param {"connect"|"tls"|"response"|"total"} phase - The request phase that timed out.
76
+ * @param {Error} [cause] - The underlying cause, if any.
94
77
  */
95
78
  constructor(message: string, phase: "connect" | "tls" | "response" | "total", cause?: Error);
96
- /**
97
- * Serializes the error including the timeout phase.
98
- *
99
- * @returns {Object} A JSON-safe representation of the error.
100
- */
79
+ /** @inheritdoc */
101
80
  toJSON(): Record<string, unknown>;
102
81
  }
103
82
  /**
104
- * Raised when a proxy connection fails, including CONNECT tunnel failures,
105
- * authentication rejections, SOCKS negotiation errors, and TCP-level timeouts
106
- * while reaching the proxy server.
83
+ * Represents an error originating from a proxy connection.
84
+ *
85
+ * @class
107
86
  */
108
87
  export declare class ProxyError extends NLcURLError {
109
88
  /**
110
- * Creates a new ProxyError instance.
89
+ * Creates a new ProxyError.
111
90
  *
112
- * @param {string} message - Human-readable description of the proxy failure.
113
- * @param {Error} [cause] - Optional underlying error that triggered this one.
91
+ * @param {string} message - Human-readable error description.
92
+ * @param {Error} [cause] - The underlying cause, if any.
114
93
  */
115
94
  constructor(message: string, cause?: Error);
116
95
  }
117
96
  /**
118
- * Raised when a request is cancelled via an `AbortSignal`. Unlike other
119
- * errors, an `AbortError` is never retried -- it propagates immediately.
97
+ * Represents a request that was intentionally aborted via an AbortSignal.
98
+ *
99
+ * @class
120
100
  */
121
101
  export declare class AbortError extends NLcURLError {
122
102
  /**
123
- * Creates a new AbortError instance.
103
+ * Creates a new AbortError.
124
104
  *
125
- * @param {string} [message='Request aborted'] - Human-readable description.
126
- * @param {Error} [cause] - Optional underlying error.
105
+ * @param {string} [message="Request aborted"] - Human-readable error description.
106
+ * @param {Error} [cause] - The underlying cause, if any.
127
107
  */
128
108
  constructor(message?: string, cause?: Error);
129
109
  }
130
110
  /**
131
- * Raised when a TCP connection cannot be established or is unexpectedly reset
132
- * before a response is received. This error is retryable according to the
133
- * default retry policy.
111
+ * Represents a TCP or socket-level connection failure.
112
+ *
113
+ * @class
134
114
  */
135
115
  export declare class ConnectionError extends NLcURLError {
136
116
  /**
137
- * Creates a new ConnectionError instance.
117
+ * Creates a new ConnectionError.
138
118
  *
139
- * @param {string} message - Human-readable description of the connection failure.
140
- * @param {Error} [cause] - Optional underlying error that triggered this one.
119
+ * @param {string} message - Human-readable error description.
120
+ * @param {Error} [cause] - The underlying cause, if any.
141
121
  */
142
122
  constructor(message: string, cause?: Error);
143
123
  }
144
124
  /**
145
- * Raised when an HTTP/2 or HTTP/1.1 protocol violation is detected, such as
146
- * an invalid frame, an unexpected stream state, or a GOAWAY from the server.
147
- * Certain HTTP/2 error codes (e.g. `REFUSED_STREAM`) are retryable.
125
+ * Represents an HTTP protocol-level violation, optionally including an HTTP/2 error code.
126
+ *
127
+ * @class
148
128
  */
149
129
  export declare class ProtocolError extends NLcURLError {
150
- /** The HTTP/2 error code (RFC 9113 section 7), if this error originates from an H2 frame. */
130
+ /** HTTP/2 or HTTP/3 error code, if applicable. */
151
131
  readonly errorCode?: number;
152
132
  /**
153
- * Creates a new ProtocolError instance.
133
+ * Creates a new ProtocolError.
154
134
  *
155
- * @param {string} message - Human-readable description of the protocol error.
156
- * @param {number} [errorCode] - Optional HTTP/2 protocol error code (RFC 9113 section 7).
157
- * @param {Error} [cause] - Optional underlying error that triggered this one.
135
+ * @param {string} message - Human-readable error description.
136
+ * @param {number} [errorCode] - The protocol-level error code.
137
+ * @param {Error} [cause] - The underlying cause, if any.
158
138
  */
159
139
  constructor(message: string, errorCode?: number, cause?: Error);
160
- /**
161
- * Serializes the error including the protocol error code.
162
- *
163
- * @returns {Object} A JSON-safe representation of the error.
164
- */
140
+ /** @inheritdoc */
165
141
  toJSON(): Record<string, unknown>;
166
142
  }
167
143
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC,8EAA8E;IA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@@
1
1
  /**
2
- * Base error class for all NLcURL library errors. All library-specific
3
- * errors extend this class, allowing callers to distinguish NLcURL failures
4
- * from native Node.js or third-party errors via `instanceof NLcURLError`.
2
+ * Base error class for all NLcURL errors, providing a machine-readable error code
3
+ * and structured JSON serialization.
5
4
  *
6
- * Supports ES2022 error chaining through the standard `cause` property.
7
- * When wrapping a lower-level error, pass it as the `cause` parameter to
8
- * preserve the full error chain for diagnostics.
5
+ * @class
9
6
  */
10
7
  export class NLcURLError extends Error {
11
- /** Machine-readable error code string (e.g. `"ERR_TLS"`, `"ERR_TIMEOUT"`). */
8
+ /** Machine-readable error code (e.g. "ERR_TLS", "ERR_TIMEOUT"). */
12
9
  code;
13
10
  /**
14
- * Creates a new NLcURLError instance.
11
+ * Creates a new NLcURLError.
15
12
  *
16
- * @param {string} message - Human-readable description of the error.
17
- * @param {string} code - Machine-readable error code identifying the failure category.
18
- * @param {Error} [cause] - Optional underlying error that triggered this one.
13
+ * @param {string} message - Human-readable error description.
14
+ * @param {string} code - Machine-readable error code.
15
+ * @param {Error} [cause] - The underlying cause, if any.
19
16
  */
20
17
  constructor(message, code, cause) {
21
18
  super(message, cause ? { cause } : undefined);
@@ -24,10 +21,9 @@ export class NLcURLError extends Error {
24
21
  Object.setPrototypeOf(this, new.target.prototype);
25
22
  }
26
23
  /**
27
- * Serializes the error into a plain object suitable for structured logging
28
- * or JSON API responses. Recursively serializes the `cause` chain.
24
+ * Serializes the error to a plain object suitable for JSON output.
29
25
  *
30
- * @returns {Object} A JSON-safe representation of the error.
26
+ * @returns {Record<string, unknown>} A plain object representation of the error.
31
27
  */
32
28
  toJSON() {
33
29
  const obj = {
@@ -45,29 +41,26 @@ export class NLcURLError extends Error {
45
41
  }
46
42
  }
47
43
  /**
48
- * Raised when a TLS handshake fails, a certificate is invalid, or any other
49
- * TLS-layer error occurs during connection establishment or data transfer.
44
+ * Represents a TLS-level error, optionally including a TLS alert code.
45
+ *
46
+ * @class
50
47
  */
51
48
  export class TLSError extends NLcURLError {
52
- /** TLS alert description code from RFC 8446, if the server sent an Alert record. */
49
+ /** TLS alert description code, if available. */
53
50
  alertCode;
54
51
  /**
55
- * Creates a new TLSError instance.
52
+ * Creates a new TLSError.
56
53
  *
57
- * @param {string} message - Human-readable description of the TLS failure.
58
- * @param {number} [alertCode] - Optional TLS alert description code (RFC 8446 section 6).
59
- * @param {Error} [cause] - Optional underlying error that triggered this one.
54
+ * @param {string} message - Human-readable error description.
55
+ * @param {number} [alertCode] - The TLS alert code.
56
+ * @param {Error} [cause] - The underlying cause, if any.
60
57
  */
61
58
  constructor(message, alertCode, cause) {
62
59
  super(message, "ERR_TLS", cause);
63
60
  this.name = "TLSError";
64
61
  this.alertCode = alertCode;
65
62
  }
66
- /**
67
- * Serializes the error including the TLS alert code.
68
- *
69
- * @returns {Object} A JSON-safe representation of the error.
70
- */
63
+ /** @inheritdoc */
71
64
  toJSON() {
72
65
  const obj = super.toJSON();
73
66
  if (this.alertCode !== undefined) {
@@ -77,30 +70,26 @@ export class TLSError extends NLcURLError {
77
70
  }
78
71
  }
79
72
  /**
80
- * Raised when an HTTP-level error occurs, such as a protocol violation or a
81
- * connection close before the response is complete. This is distinct from
82
- * non-2xx responses, which are returned as successful `NLcURLResponse` objects.
73
+ * Represents an HTTP-level error with a status code.
74
+ *
75
+ * @class
83
76
  */
84
77
  export class HTTPError extends NLcURLError {
85
- /** The HTTP status code associated with the error, or `0` if unavailable. */
78
+ /** The HTTP response status code. */
86
79
  statusCode;
87
80
  /**
88
- * Creates a new HTTPError instance.
81
+ * Creates a new HTTPError.
89
82
  *
90
- * @param {string} message - Human-readable description of the HTTP error.
91
- * @param {number} statusCode - The HTTP status code, or `0` if none applies.
92
- * @param {Error} [cause] - Optional underlying error that triggered this one.
83
+ * @param {string} message - Human-readable error description.
84
+ * @param {number} statusCode - The HTTP status code.
85
+ * @param {Error} [cause] - The underlying cause, if any.
93
86
  */
94
87
  constructor(message, statusCode, cause) {
95
88
  super(message, "ERR_HTTP", cause);
96
89
  this.name = "HTTPError";
97
90
  this.statusCode = statusCode;
98
91
  }
99
- /**
100
- * Serializes the error including the HTTP status code.
101
- *
102
- * @returns {Object} A JSON-safe representation of the error.
103
- */
92
+ /** @inheritdoc */
104
93
  toJSON() {
105
94
  const obj = super.toJSON();
106
95
  obj["statusCode"] = this.statusCode;
@@ -108,36 +97,26 @@ export class HTTPError extends NLcURLError {
108
97
  }
109
98
  }
110
99
  /**
111
- * Raised when a request exceeds a configured timeout limit. The `phase`
112
- * property identifies which stage of the request lifecycle timed out.
100
+ * Represents a timeout error during a specific phase of the request lifecycle.
101
+ *
102
+ * @class
113
103
  */
114
104
  export class TimeoutError extends NLcURLError {
115
- /**
116
- * The lifecycle phase in which the timeout occurred.
117
- *
118
- * - `"connect"` -- TCP connection establishment exceeded the limit.
119
- * - `"tls"` -- TLS handshake exceeded the limit.
120
- * - `"response"` -- Waiting for the first response byte exceeded the limit.
121
- * - `"total"` -- The overall wall-clock duration exceeded the limit.
122
- */
105
+ /** The phase during which the timeout occurred. */
123
106
  phase;
124
107
  /**
125
- * Creates a new TimeoutError instance.
108
+ * Creates a new TimeoutError.
126
109
  *
127
- * @param {string} message - Human-readable description.
128
- * @param {'connect'|'tls'|'response'|'total'} phase - The phase that timed out.
129
- * @param {Error} [cause] - Optional underlying error.
110
+ * @param {string} message - Human-readable error description.
111
+ * @param {"connect"|"tls"|"response"|"total"} phase - The request phase that timed out.
112
+ * @param {Error} [cause] - The underlying cause, if any.
130
113
  */
131
114
  constructor(message, phase, cause) {
132
115
  super(message, "ERR_TIMEOUT", cause);
133
116
  this.name = "TimeoutError";
134
117
  this.phase = phase;
135
118
  }
136
- /**
137
- * Serializes the error including the timeout phase.
138
- *
139
- * @returns {Object} A JSON-safe representation of the error.
140
- */
119
+ /** @inheritdoc */
141
120
  toJSON() {
142
121
  const obj = super.toJSON();
143
122
  obj["phase"] = this.phase;
@@ -145,16 +124,16 @@ export class TimeoutError extends NLcURLError {
145
124
  }
146
125
  }
147
126
  /**
148
- * Raised when a proxy connection fails, including CONNECT tunnel failures,
149
- * authentication rejections, SOCKS negotiation errors, and TCP-level timeouts
150
- * while reaching the proxy server.
127
+ * Represents an error originating from a proxy connection.
128
+ *
129
+ * @class
151
130
  */
152
131
  export class ProxyError extends NLcURLError {
153
132
  /**
154
- * Creates a new ProxyError instance.
133
+ * Creates a new ProxyError.
155
134
  *
156
- * @param {string} message - Human-readable description of the proxy failure.
157
- * @param {Error} [cause] - Optional underlying error that triggered this one.
135
+ * @param {string} message - Human-readable error description.
136
+ * @param {Error} [cause] - The underlying cause, if any.
158
137
  */
159
138
  constructor(message, cause) {
160
139
  super(message, "ERR_PROXY", cause);
@@ -162,15 +141,16 @@ export class ProxyError extends NLcURLError {
162
141
  }
163
142
  }
164
143
  /**
165
- * Raised when a request is cancelled via an `AbortSignal`. Unlike other
166
- * errors, an `AbortError` is never retried -- it propagates immediately.
144
+ * Represents a request that was intentionally aborted via an AbortSignal.
145
+ *
146
+ * @class
167
147
  */
168
148
  export class AbortError extends NLcURLError {
169
149
  /**
170
- * Creates a new AbortError instance.
150
+ * Creates a new AbortError.
171
151
  *
172
- * @param {string} [message='Request aborted'] - Human-readable description.
173
- * @param {Error} [cause] - Optional underlying error.
152
+ * @param {string} [message="Request aborted"] - Human-readable error description.
153
+ * @param {Error} [cause] - The underlying cause, if any.
174
154
  */
175
155
  constructor(message = "Request aborted", cause) {
176
156
  super(message, "ERR_ABORTED", cause);
@@ -178,16 +158,16 @@ export class AbortError extends NLcURLError {
178
158
  }
179
159
  }
180
160
  /**
181
- * Raised when a TCP connection cannot be established or is unexpectedly reset
182
- * before a response is received. This error is retryable according to the
183
- * default retry policy.
161
+ * Represents a TCP or socket-level connection failure.
162
+ *
163
+ * @class
184
164
  */
185
165
  export class ConnectionError extends NLcURLError {
186
166
  /**
187
- * Creates a new ConnectionError instance.
167
+ * Creates a new ConnectionError.
188
168
  *
189
- * @param {string} message - Human-readable description of the connection failure.
190
- * @param {Error} [cause] - Optional underlying error that triggered this one.
169
+ * @param {string} message - Human-readable error description.
170
+ * @param {Error} [cause] - The underlying cause, if any.
191
171
  */
192
172
  constructor(message, cause) {
193
173
  super(message, "ERR_CONNECTION", cause);
@@ -195,30 +175,26 @@ export class ConnectionError extends NLcURLError {
195
175
  }
196
176
  }
197
177
  /**
198
- * Raised when an HTTP/2 or HTTP/1.1 protocol violation is detected, such as
199
- * an invalid frame, an unexpected stream state, or a GOAWAY from the server.
200
- * Certain HTTP/2 error codes (e.g. `REFUSED_STREAM`) are retryable.
178
+ * Represents an HTTP protocol-level violation, optionally including an HTTP/2 error code.
179
+ *
180
+ * @class
201
181
  */
202
182
  export class ProtocolError extends NLcURLError {
203
- /** The HTTP/2 error code (RFC 9113 section 7), if this error originates from an H2 frame. */
183
+ /** HTTP/2 or HTTP/3 error code, if applicable. */
204
184
  errorCode;
205
185
  /**
206
- * Creates a new ProtocolError instance.
186
+ * Creates a new ProtocolError.
207
187
  *
208
- * @param {string} message - Human-readable description of the protocol error.
209
- * @param {number} [errorCode] - Optional HTTP/2 protocol error code (RFC 9113 section 7).
210
- * @param {Error} [cause] - Optional underlying error that triggered this one.
188
+ * @param {string} message - Human-readable error description.
189
+ * @param {number} [errorCode] - The protocol-level error code.
190
+ * @param {Error} [cause] - The underlying cause, if any.
211
191
  */
212
192
  constructor(message, errorCode, cause) {
213
193
  super(message, "ERR_PROTOCOL", cause);
214
194
  this.name = "ProtocolError";
215
195
  this.errorCode = errorCode;
216
196
  }
217
- /**
218
- * Serializes the error including the protocol error code.
219
- *
220
- * @returns {Object} A JSON-safe representation of the error.
221
- */
197
+ /** @inheritdoc */
222
198
  toJSON() {
223
199
  const obj = super.toJSON();
224
200
  if (this.errorCode !== undefined) {
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;IACpC,8EAA8E;IA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