plugin-data-source-mssql 2.0.3 → 2.0.5

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 (410) hide show
  1. package/dist/client/index.js +1 -1
  2. package/dist/externalVersion.js +6 -6
  3. package/dist/server/data-source/MssqlExternalDataSource.js +114 -30
  4. package/dist/server/data-source/MssqlIntrospector.js +109 -24
  5. package/package.json +1 -1
  6. package/dist/node_modules/tedious/245.index.js +0 -741
  7. package/dist/node_modules/tedious/LICENSE +0 -21
  8. package/dist/node_modules/tedious/appveyor.yml +0 -67
  9. package/dist/node_modules/tedious/benchmarks/bulk-load/iterable.js +0 -61
  10. package/dist/node_modules/tedious/benchmarks/common.js +0 -287
  11. package/dist/node_modules/tedious/benchmarks/connection/open.js +0 -26
  12. package/dist/node_modules/tedious/benchmarks/package-lock.json +0 -21173
  13. package/dist/node_modules/tedious/benchmarks/package.json +0 -11
  14. package/dist/node_modules/tedious/benchmarks/query/call-tvp.js +0 -105
  15. package/dist/node_modules/tedious/benchmarks/query/insert-varbinary.js +0 -46
  16. package/dist/node_modules/tedious/benchmarks/query/select-many-rows.js +0 -63
  17. package/dist/node_modules/tedious/benchmarks/query/select-nvarchar.js +0 -50
  18. package/dist/node_modules/tedious/benchmarks/query/select-varbinary.js +0 -50
  19. package/dist/node_modules/tedious/benchmarks/request/rpcrequest-payload-tvp.js +0 -45
  20. package/dist/node_modules/tedious/benchmarks/request/rpcrequest-payload-varbinary.js +0 -37
  21. package/dist/node_modules/tedious/benchmarks/token-parser/colmetadata-token.js +0 -27
  22. package/dist/node_modules/tedious/benchmarks/token-parser/done-token.js +0 -28
  23. package/dist/node_modules/tedious/benchmarks/token-parser/simple-tokens.js +0 -363
  24. package/dist/node_modules/tedious/lib/all-headers.d.ts +0 -2
  25. package/dist/node_modules/tedious/lib/all-headers.js +0 -24
  26. package/dist/node_modules/tedious/lib/always-encrypted/aead-aes-256-cbc-hmac-algorithm.js +0 -82
  27. package/dist/node_modules/tedious/lib/always-encrypted/aead-aes-256-cbc-hmac-encryption-key.js +0 -55
  28. package/dist/node_modules/tedious/lib/always-encrypted/cek-entry.d.ts +0 -11
  29. package/dist/node_modules/tedious/lib/always-encrypted/cek-entry.js +0 -42
  30. package/dist/node_modules/tedious/lib/always-encrypted/get-parameter-encryption-metadata.js +0 -90
  31. package/dist/node_modules/tedious/lib/always-encrypted/key-crypto.js +0 -94
  32. package/dist/node_modules/tedious/lib/always-encrypted/keystore-provider-azure-key-vault.d.ts +0 -21
  33. package/dist/node_modules/tedious/lib/always-encrypted/keystore-provider-azure-key-vault.js +0 -247
  34. package/dist/node_modules/tedious/lib/always-encrypted/symmetric-key-cache.js +0 -36
  35. package/dist/node_modules/tedious/lib/always-encrypted/symmetric-key.js +0 -25
  36. package/dist/node_modules/tedious/lib/always-encrypted/types.d.ts +0 -73
  37. package/dist/node_modules/tedious/lib/always-encrypted/types.js +0 -48
  38. package/dist/node_modules/tedious/lib/always-encrypted/utils.js +0 -23
  39. package/dist/node_modules/tedious/lib/bulk-load-payload.d.ts +0 -8
  40. package/dist/node_modules/tedious/lib/bulk-load-payload.js +0 -23
  41. package/dist/node_modules/tedious/lib/bulk-load.d.ts +0 -275
  42. package/dist/node_modules/tedious/lib/bulk-load.js +0 -516
  43. package/dist/node_modules/tedious/lib/collation.d.ts +0 -28
  44. package/dist/node_modules/tedious/lib/collation.js +0 -348
  45. package/dist/node_modules/tedious/lib/connection.d.ts +0 -1310
  46. package/dist/node_modules/tedious/lib/connection.js +0 -2730
  47. package/dist/node_modules/tedious/lib/connector.d.ts +0 -18
  48. package/dist/node_modules/tedious/lib/connector.js +0 -150
  49. package/dist/node_modules/tedious/lib/data-type.d.ts +0 -455
  50. package/dist/node_modules/tedious/lib/data-type.js +0 -428
  51. package/dist/node_modules/tedious/lib/data-types/bigint.d.ts +0 -3
  52. package/dist/node_modules/tedious/lib/data-types/bigint.js +0 -53
  53. package/dist/node_modules/tedious/lib/data-types/binary.d.ts +0 -5
  54. package/dist/node_modules/tedious/lib/data-types/binary.js +0 -67
  55. package/dist/node_modules/tedious/lib/data-types/bit.d.ts +0 -3
  56. package/dist/node_modules/tedious/lib/data-types/bit.js +0 -46
  57. package/dist/node_modules/tedious/lib/data-types/bitn.d.ts +0 -3
  58. package/dist/node_modules/tedious/lib/data-types/bitn.js +0 -29
  59. package/dist/node_modules/tedious/lib/data-types/char.d.ts +0 -5
  60. package/dist/node_modules/tedious/lib/data-types/char.js +0 -86
  61. package/dist/node_modules/tedious/lib/data-types/date.d.ts +0 -3
  62. package/dist/node_modules/tedious/lib/data-types/date.js +0 -72
  63. package/dist/node_modules/tedious/lib/data-types/datetime.d.ts +0 -3
  64. package/dist/node_modules/tedious/lib/data-types/datetime.js +0 -93
  65. package/dist/node_modules/tedious/lib/data-types/datetime2.d.ts +0 -5
  66. package/dist/node_modules/tedious/lib/data-types/datetime2.js +0 -118
  67. package/dist/node_modules/tedious/lib/data-types/datetimen.d.ts +0 -3
  68. package/dist/node_modules/tedious/lib/data-types/datetimen.js +0 -29
  69. package/dist/node_modules/tedious/lib/data-types/datetimeoffset.d.ts +0 -5
  70. package/dist/node_modules/tedious/lib/data-types/datetimeoffset.js +0 -111
  71. package/dist/node_modules/tedious/lib/data-types/decimal.d.ts +0 -6
  72. package/dist/node_modules/tedious/lib/data-types/decimal.js +0 -107
  73. package/dist/node_modules/tedious/lib/data-types/decimaln.d.ts +0 -3
  74. package/dist/node_modules/tedious/lib/data-types/decimaln.js +0 -29
  75. package/dist/node_modules/tedious/lib/data-types/float.d.ts +0 -3
  76. package/dist/node_modules/tedious/lib/data-types/float.js +0 -47
  77. package/dist/node_modules/tedious/lib/data-types/floatn.d.ts +0 -3
  78. package/dist/node_modules/tedious/lib/data-types/floatn.js +0 -29
  79. package/dist/node_modules/tedious/lib/data-types/image.d.ts +0 -3
  80. package/dist/node_modules/tedious/lib/data-types/image.js +0 -56
  81. package/dist/node_modules/tedious/lib/data-types/int.d.ts +0 -3
  82. package/dist/node_modules/tedious/lib/data-types/int.js +0 -53
  83. package/dist/node_modules/tedious/lib/data-types/intn.d.ts +0 -3
  84. package/dist/node_modules/tedious/lib/data-types/intn.js +0 -29
  85. package/dist/node_modules/tedious/lib/data-types/money.d.ts +0 -3
  86. package/dist/node_modules/tedious/lib/data-types/money.js +0 -59
  87. package/dist/node_modules/tedious/lib/data-types/moneyn.d.ts +0 -3
  88. package/dist/node_modules/tedious/lib/data-types/moneyn.js +0 -29
  89. package/dist/node_modules/tedious/lib/data-types/nchar.d.ts +0 -5
  90. package/dist/node_modules/tedious/lib/data-types/nchar.js +0 -100
  91. package/dist/node_modules/tedious/lib/data-types/ntext.d.ts +0 -3
  92. package/dist/node_modules/tedious/lib/data-types/ntext.js +0 -60
  93. package/dist/node_modules/tedious/lib/data-types/null.d.ts +0 -3
  94. package/dist/node_modules/tedious/lib/data-types/null.js +0 -29
  95. package/dist/node_modules/tedious/lib/data-types/numeric.d.ts +0 -6
  96. package/dist/node_modules/tedious/lib/data-types/numeric.js +0 -106
  97. package/dist/node_modules/tedious/lib/data-types/numericn.d.ts +0 -3
  98. package/dist/node_modules/tedious/lib/data-types/numericn.js +0 -29
  99. package/dist/node_modules/tedious/lib/data-types/nvarchar.d.ts +0 -5
  100. package/dist/node_modules/tedious/lib/data-types/nvarchar.js +0 -133
  101. package/dist/node_modules/tedious/lib/data-types/real.d.ts +0 -3
  102. package/dist/node_modules/tedious/lib/data-types/real.js +0 -48
  103. package/dist/node_modules/tedious/lib/data-types/smalldatetime.d.ts +0 -3
  104. package/dist/node_modules/tedious/lib/data-types/smalldatetime.js +0 -83
  105. package/dist/node_modules/tedious/lib/data-types/smallint.d.ts +0 -3
  106. package/dist/node_modules/tedious/lib/data-types/smallint.js +0 -53
  107. package/dist/node_modules/tedious/lib/data-types/smallmoney.d.ts +0 -3
  108. package/dist/node_modules/tedious/lib/data-types/smallmoney.js +0 -51
  109. package/dist/node_modules/tedious/lib/data-types/sql-variant.d.ts +0 -3
  110. package/dist/node_modules/tedious/lib/data-types/sql-variant.js +0 -29
  111. package/dist/node_modules/tedious/lib/data-types/text.d.ts +0 -3
  112. package/dist/node_modules/tedious/lib/data-types/text.js +0 -69
  113. package/dist/node_modules/tedious/lib/data-types/time.d.ts +0 -3
  114. package/dist/node_modules/tedious/lib/data-types/time.js +0 -96
  115. package/dist/node_modules/tedious/lib/data-types/tinyint.d.ts +0 -3
  116. package/dist/node_modules/tedious/lib/data-types/tinyint.js +0 -53
  117. package/dist/node_modules/tedious/lib/data-types/tvp.d.ts +0 -3
  118. package/dist/node_modules/tedious/lib/data-types/tvp.js +0 -117
  119. package/dist/node_modules/tedious/lib/data-types/udt.d.ts +0 -3
  120. package/dist/node_modules/tedious/lib/data-types/udt.js +0 -29
  121. package/dist/node_modules/tedious/lib/data-types/uniqueidentifier.d.ts +0 -3
  122. package/dist/node_modules/tedious/lib/data-types/uniqueidentifier.js +0 -50
  123. package/dist/node_modules/tedious/lib/data-types/varbinary.d.ts +0 -5
  124. package/dist/node_modules/tedious/lib/data-types/varbinary.js +0 -119
  125. package/dist/node_modules/tedious/lib/data-types/varchar.d.ts +0 -5
  126. package/dist/node_modules/tedious/lib/data-types/varchar.js +0 -112
  127. package/dist/node_modules/tedious/lib/data-types/xml.d.ts +0 -3
  128. package/dist/node_modules/tedious/lib/data-types/xml.js +0 -29
  129. package/dist/node_modules/tedious/lib/debug.d.ts +0 -25
  130. package/dist/node_modules/tedious/lib/debug.js +0 -67
  131. package/dist/node_modules/tedious/lib/errors/abort-error.d.ts +0 -4
  132. package/dist/node_modules/tedious/lib/errors/abort-error.js +0 -15
  133. package/dist/node_modules/tedious/lib/errors/timeout-error.d.ts +0 -4
  134. package/dist/node_modules/tedious/lib/errors/timeout-error.js +0 -15
  135. package/dist/node_modules/tedious/lib/errors.d.ts +0 -17
  136. package/dist/node_modules/tedious/lib/errors.js +0 -23
  137. package/dist/node_modules/tedious/lib/guid-parser.d.ts +0 -3
  138. package/dist/node_modules/tedious/lib/guid-parser.js +0 -30
  139. package/dist/node_modules/tedious/lib/incoming-message-stream.d.ts +0 -19
  140. package/dist/node_modules/tedious/lib/incoming-message-stream.js +0 -97
  141. package/dist/node_modules/tedious/lib/instance-lookup.d.ts +0 -13
  142. package/dist/node_modules/tedious/lib/instance-lookup.js +0 -96
  143. package/dist/node_modules/tedious/lib/library.d.ts +0 -1
  144. package/dist/node_modules/tedious/lib/library.js +0 -8
  145. package/dist/node_modules/tedious/lib/login7-payload.d.ts +0 -51
  146. package/dist/node_modules/tedious/lib/login7-payload.js +0 -402
  147. package/dist/node_modules/tedious/lib/message-io.d.ts +0 -28
  148. package/dist/node_modules/tedious/lib/message-io.js +0 -153
  149. package/dist/node_modules/tedious/lib/message.d.ts +0 -11
  150. package/dist/node_modules/tedious/lib/message.js +0 -21
  151. package/dist/node_modules/tedious/lib/metadata-parser.d.ts +0 -48
  152. package/dist/node_modules/tedious/lib/metadata-parser.js +0 -380
  153. package/dist/node_modules/tedious/lib/ntlm-payload.d.ts +0 -23
  154. package/dist/node_modules/tedious/lib/ntlm-payload.js +0 -136
  155. package/dist/node_modules/tedious/lib/ntlm.d.ts +0 -4
  156. package/dist/node_modules/tedious/lib/ntlm.js +0 -72
  157. package/dist/node_modules/tedious/lib/outgoing-message-stream.d.ts +0 -15
  158. package/dist/node_modules/tedious/lib/outgoing-message-stream.js +0 -81
  159. package/dist/node_modules/tedious/lib/packet.d.ts +0 -33
  160. package/dist/node_modules/tedious/lib/packet.js +0 -191
  161. package/dist/node_modules/tedious/lib/prelogin-payload.d.ts +0 -61
  162. package/dist/node_modules/tedious/lib/prelogin-payload.js +0 -209
  163. package/dist/node_modules/tedious/lib/request.d.ts +0 -370
  164. package/dist/node_modules/tedious/lib/request.js +0 -387
  165. package/dist/node_modules/tedious/lib/rpcrequest-payload.d.ts +0 -16
  166. package/dist/node_modules/tedious/lib/rpcrequest-payload.js +0 -109
  167. package/dist/node_modules/tedious/lib/sender.d.ts +0 -5
  168. package/dist/node_modules/tedious/lib/sender.js +0 -83
  169. package/dist/node_modules/tedious/lib/special-stored-procedure.d.ts +0 -18
  170. package/dist/node_modules/tedious/lib/special-stored-procedure.js +0 -26
  171. package/dist/node_modules/tedious/lib/sqlbatch-payload.d.ts +0 -13
  172. package/dist/node_modules/tedious/lib/sqlbatch-payload.js +0 -34
  173. package/dist/node_modules/tedious/lib/tds-versions.d.ts +0 -6
  174. package/dist/node_modules/tedious/lib/tds-versions.js +0 -19
  175. package/dist/node_modules/tedious/lib/tedious.d.ts +0 -13
  176. package/dist/node_modules/tedious/lib/tedious.js +0 -249
  177. package/dist/node_modules/tedious/lib/token/colmetadata-token-parser.d.ts +0 -12
  178. package/dist/node_modules/tedious/lib/token/colmetadata-token-parser.js +0 -124
  179. package/dist/node_modules/tedious/lib/token/done-token-parser.d.ts +0 -6
  180. package/dist/node_modules/tedious/lib/token/done-token-parser.js +0 -76
  181. package/dist/node_modules/tedious/lib/token/env-change-token-parser.d.ts +0 -5
  182. package/dist/node_modules/tedious/lib/token/env-change-token-parser.js +0 -190
  183. package/dist/node_modules/tedious/lib/token/feature-ext-ack-parser.d.ts +0 -5
  184. package/dist/node_modules/tedious/lib/token/feature-ext-ack-parser.js +0 -52
  185. package/dist/node_modules/tedious/lib/token/fedauth-info-parser.d.ts +0 -5
  186. package/dist/node_modules/tedious/lib/token/fedauth-info-parser.js +0 -62
  187. package/dist/node_modules/tedious/lib/token/handler.d.ts +0 -135
  188. package/dist/node_modules/tedious/lib/token/handler.js +0 -444
  189. package/dist/node_modules/tedious/lib/token/helpers.d.ts +0 -28
  190. package/dist/node_modules/tedious/lib/token/helpers.js +0 -205
  191. package/dist/node_modules/tedious/lib/token/infoerror-token-parser.d.ts +0 -5
  192. package/dist/node_modules/tedious/lib/token/infoerror-token-parser.js +0 -80
  193. package/dist/node_modules/tedious/lib/token/loginack-token-parser.d.ts +0 -5
  194. package/dist/node_modules/tedious/lib/token/loginack-token-parser.js +0 -75
  195. package/dist/node_modules/tedious/lib/token/nbcrow-token-parser.d.ts +0 -4
  196. package/dist/node_modules/tedious/lib/token/nbcrow-token-parser.js +0 -104
  197. package/dist/node_modules/tedious/lib/token/order-token-parser.d.ts +0 -5
  198. package/dist/node_modules/tedious/lib/token/order-token-parser.js +0 -34
  199. package/dist/node_modules/tedious/lib/token/returnstatus-token-parser.d.ts +0 -5
  200. package/dist/node_modules/tedious/lib/token/returnstatus-token-parser.js +0 -21
  201. package/dist/node_modules/tedious/lib/token/returnvalue-token-parser.d.ts +0 -4
  202. package/dist/node_modules/tedious/lib/token/returnvalue-token-parser.js +0 -94
  203. package/dist/node_modules/tedious/lib/token/row-token-parser.d.ts +0 -4
  204. package/dist/node_modules/tedious/lib/token/row-token-parser.js +0 -77
  205. package/dist/node_modules/tedious/lib/token/sspi-token-parser.d.ts +0 -5
  206. package/dist/node_modules/tedious/lib/token/sspi-token-parser.js +0 -42
  207. package/dist/node_modules/tedious/lib/token/stream-parser.d.ts +0 -34
  208. package/dist/node_modules/tedious/lib/token/stream-parser.js +0 -341
  209. package/dist/node_modules/tedious/lib/token/token-stream-parser.d.ts +0 -15
  210. package/dist/node_modules/tedious/lib/token/token-stream-parser.js +0 -36
  211. package/dist/node_modules/tedious/lib/token/token.d.ts +0 -312
  212. package/dist/node_modules/tedious/lib/token/token.js +0 -328
  213. package/dist/node_modules/tedious/lib/tracking-buffer/writable-tracking-buffer.d.ts +0 -47
  214. package/dist/node_modules/tedious/lib/tracking-buffer/writable-tracking-buffer.js +0 -249
  215. package/dist/node_modules/tedious/lib/transaction.d.ts +0 -39
  216. package/dist/node_modules/tedious/lib/transaction.js +0 -137
  217. package/dist/node_modules/tedious/lib/transient-error-lookup.d.ts +0 -3
  218. package/dist/node_modules/tedious/lib/transient-error-lookup.js +0 -19
  219. package/dist/node_modules/tedious/lib/utils/with-timeout.d.ts +0 -7
  220. package/dist/node_modules/tedious/lib/utils/with-timeout.js +0 -36
  221. package/dist/node_modules/tedious/lib/value-parser.d.ts +0 -7
  222. package/dist/node_modules/tedious/lib/value-parser.js +0 -813
  223. package/dist/node_modules/tedious/node_modules/@types/node/assert/strict.d.ts +0 -105
  224. package/dist/node_modules/tedious/node_modules/@types/node/assert.d.ts +0 -955
  225. package/dist/node_modules/tedious/node_modules/@types/node/async_hooks.d.ts +0 -623
  226. package/dist/node_modules/tedious/node_modules/@types/node/buffer.buffer.d.ts +0 -466
  227. package/dist/node_modules/tedious/node_modules/@types/node/buffer.d.ts +0 -1810
  228. package/dist/node_modules/tedious/node_modules/@types/node/child_process.d.ts +0 -1428
  229. package/dist/node_modules/tedious/node_modules/@types/node/cluster.d.ts +0 -486
  230. package/dist/node_modules/tedious/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  231. package/dist/node_modules/tedious/node_modules/@types/node/console.d.ts +0 -151
  232. package/dist/node_modules/tedious/node_modules/@types/node/constants.d.ts +0 -20
  233. package/dist/node_modules/tedious/node_modules/@types/node/crypto.d.ts +0 -4065
  234. package/dist/node_modules/tedious/node_modules/@types/node/dgram.d.ts +0 -564
  235. package/dist/node_modules/tedious/node_modules/@types/node/diagnostics_channel.d.ts +0 -576
  236. package/dist/node_modules/tedious/node_modules/@types/node/dns/promises.d.ts +0 -503
  237. package/dist/node_modules/tedious/node_modules/@types/node/dns.d.ts +0 -922
  238. package/dist/node_modules/tedious/node_modules/@types/node/domain.d.ts +0 -166
  239. package/dist/node_modules/tedious/node_modules/@types/node/events.d.ts +0 -1054
  240. package/dist/node_modules/tedious/node_modules/@types/node/fs/promises.d.ts +0 -1329
  241. package/dist/node_modules/tedious/node_modules/@types/node/fs.d.ts +0 -4676
  242. package/dist/node_modules/tedious/node_modules/@types/node/globals.d.ts +0 -150
  243. package/dist/node_modules/tedious/node_modules/@types/node/globals.typedarray.d.ts +0 -101
  244. package/dist/node_modules/tedious/node_modules/@types/node/http.d.ts +0 -2167
  245. package/dist/node_modules/tedious/node_modules/@types/node/http2.d.ts +0 -2480
  246. package/dist/node_modules/tedious/node_modules/@types/node/https.d.ts +0 -405
  247. package/dist/node_modules/tedious/node_modules/@types/node/index.d.ts +0 -115
  248. package/dist/node_modules/tedious/node_modules/@types/node/inspector/promises.d.ts +0 -41
  249. package/dist/node_modules/tedious/node_modules/@types/node/inspector.d.ts +0 -224
  250. package/dist/node_modules/tedious/node_modules/@types/node/inspector.generated.d.ts +0 -4226
  251. package/dist/node_modules/tedious/node_modules/@types/node/module.d.ts +0 -819
  252. package/dist/node_modules/tedious/node_modules/@types/node/net.d.ts +0 -933
  253. package/dist/node_modules/tedious/node_modules/@types/node/os.d.ts +0 -507
  254. package/dist/node_modules/tedious/node_modules/@types/node/package.json +0 -155
  255. package/dist/node_modules/tedious/node_modules/@types/node/path/posix.d.ts +0 -8
  256. package/dist/node_modules/tedious/node_modules/@types/node/path/win32.d.ts +0 -8
  257. package/dist/node_modules/tedious/node_modules/@types/node/path.d.ts +0 -187
  258. package/dist/node_modules/tedious/node_modules/@types/node/perf_hooks.d.ts +0 -643
  259. package/dist/node_modules/tedious/node_modules/@types/node/process.d.ts +0 -2161
  260. package/dist/node_modules/tedious/node_modules/@types/node/punycode.d.ts +0 -117
  261. package/dist/node_modules/tedious/node_modules/@types/node/querystring.d.ts +0 -152
  262. package/dist/node_modules/tedious/node_modules/@types/node/quic.d.ts +0 -910
  263. package/dist/node_modules/tedious/node_modules/@types/node/readline/promises.d.ts +0 -161
  264. package/dist/node_modules/tedious/node_modules/@types/node/readline.d.ts +0 -541
  265. package/dist/node_modules/tedious/node_modules/@types/node/repl.d.ts +0 -415
  266. package/dist/node_modules/tedious/node_modules/@types/node/sea.d.ts +0 -162
  267. package/dist/node_modules/tedious/node_modules/@types/node/sqlite.d.ts +0 -955
  268. package/dist/node_modules/tedious/node_modules/@types/node/stream/consumers.d.ts +0 -38
  269. package/dist/node_modules/tedious/node_modules/@types/node/stream/promises.d.ts +0 -211
  270. package/dist/node_modules/tedious/node_modules/@types/node/stream/web.d.ts +0 -296
  271. package/dist/node_modules/tedious/node_modules/@types/node/stream.d.ts +0 -1760
  272. package/dist/node_modules/tedious/node_modules/@types/node/string_decoder.d.ts +0 -67
  273. package/dist/node_modules/tedious/node_modules/@types/node/test/reporters.d.ts +0 -96
  274. package/dist/node_modules/tedious/node_modules/@types/node/test.d.ts +0 -2240
  275. package/dist/node_modules/tedious/node_modules/@types/node/timers/promises.d.ts +0 -108
  276. package/dist/node_modules/tedious/node_modules/@types/node/timers.d.ts +0 -159
  277. package/dist/node_modules/tedious/node_modules/@types/node/tls.d.ts +0 -1198
  278. package/dist/node_modules/tedious/node_modules/@types/node/trace_events.d.ts +0 -197
  279. package/dist/node_modules/tedious/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
  280. package/dist/node_modules/tedious/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  281. package/dist/node_modules/tedious/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
  282. package/dist/node_modules/tedious/node_modules/@types/node/ts5.6/index.d.ts +0 -117
  283. package/dist/node_modules/tedious/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  284. package/dist/node_modules/tedious/node_modules/@types/node/ts5.7/index.d.ts +0 -117
  285. package/dist/node_modules/tedious/node_modules/@types/node/tty.d.ts +0 -250
  286. package/dist/node_modules/tedious/node_modules/@types/node/url.d.ts +0 -519
  287. package/dist/node_modules/tedious/node_modules/@types/node/util/types.d.ts +0 -558
  288. package/dist/node_modules/tedious/node_modules/@types/node/util.d.ts +0 -1662
  289. package/dist/node_modules/tedious/node_modules/@types/node/v8.d.ts +0 -983
  290. package/dist/node_modules/tedious/node_modules/@types/node/vm.d.ts +0 -1208
  291. package/dist/node_modules/tedious/node_modules/@types/node/wasi.d.ts +0 -202
  292. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
  293. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  294. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/console.d.ts +0 -9
  295. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  296. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  297. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  298. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/events.d.ts +0 -106
  299. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
  300. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  301. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  302. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
  303. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  304. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  305. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  306. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  307. package/dist/node_modules/tedious/node_modules/@types/node/web-globals/url.d.ts +0 -24
  308. package/dist/node_modules/tedious/node_modules/@types/node/worker_threads.d.ts +0 -717
  309. package/dist/node_modules/tedious/node_modules/@types/node/zlib.d.ts +0 -618
  310. package/dist/node_modules/tedious/node_modules/bl/.github/dependabot.yml +0 -16
  311. package/dist/node_modules/tedious/node_modules/bl/.github/workflows/test-and-release.yml +0 -61
  312. package/dist/node_modules/tedious/node_modules/bl/BufferList.d.ts +0 -431
  313. package/dist/node_modules/tedious/node_modules/bl/BufferList.js +0 -421
  314. package/dist/node_modules/tedious/node_modules/bl/bl.js +0 -84
  315. package/dist/node_modules/tedious/node_modules/bl/index.d.ts +0 -88
  316. package/dist/node_modules/tedious/node_modules/bl/package.json +0 -123
  317. package/dist/node_modules/tedious/node_modules/bl/test/convert.js +0 -21
  318. package/dist/node_modules/tedious/node_modules/bl/test/indexOf.js +0 -492
  319. package/dist/node_modules/tedious/node_modules/bl/test/isBufferList.js +0 -32
  320. package/dist/node_modules/tedious/node_modules/bl/test/test.js +0 -1032
  321. package/dist/node_modules/tedious/node_modules/buffer/index.d.ts +0 -194
  322. package/dist/node_modules/tedious/node_modules/buffer/index.js +0 -2106
  323. package/dist/node_modules/tedious/node_modules/buffer/package.json +0 -93
  324. package/dist/node_modules/tedious/node_modules/readable-stream/lib/_stream_duplex.js +0 -4
  325. package/dist/node_modules/tedious/node_modules/readable-stream/lib/_stream_passthrough.js +0 -4
  326. package/dist/node_modules/tedious/node_modules/readable-stream/lib/_stream_readable.js +0 -4
  327. package/dist/node_modules/tedious/node_modules/readable-stream/lib/_stream_transform.js +0 -4
  328. package/dist/node_modules/tedious/node_modules/readable-stream/lib/_stream_writable.js +0 -4
  329. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js +0 -52
  330. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -157
  331. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/compose.js +0 -194
  332. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -290
  333. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/duplex.js +0 -143
  334. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/duplexify.js +0 -378
  335. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -286
  336. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/from.js +0 -98
  337. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/lazy_transform.js +0 -51
  338. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/legacy.js +0 -89
  339. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/operators.js +0 -457
  340. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/passthrough.js +0 -39
  341. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -471
  342. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/readable.js +0 -1290
  343. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/state.js +0 -39
  344. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/transform.js +0 -180
  345. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/utils.js +0 -327
  346. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/streams/writable.js +0 -819
  347. package/dist/node_modules/tedious/node_modules/readable-stream/lib/internal/validators.js +0 -530
  348. package/dist/node_modules/tedious/node_modules/readable-stream/lib/ours/browser.js +0 -35
  349. package/dist/node_modules/tedious/node_modules/readable-stream/lib/ours/errors.js +0 -343
  350. package/dist/node_modules/tedious/node_modules/readable-stream/lib/ours/index.js +0 -65
  351. package/dist/node_modules/tedious/node_modules/readable-stream/lib/ours/primordials.js +0 -124
  352. package/dist/node_modules/tedious/node_modules/readable-stream/lib/ours/util/inspect.js +0 -55
  353. package/dist/node_modules/tedious/node_modules/readable-stream/lib/ours/util.js +0 -148
  354. package/dist/node_modules/tedious/node_modules/readable-stream/lib/stream/promises.js +0 -43
  355. package/dist/node_modules/tedious/node_modules/readable-stream/lib/stream.js +0 -143
  356. package/dist/node_modules/tedious/node_modules/readable-stream/package.json +0 -88
  357. package/dist/node_modules/tedious/node_modules/sprintf-js/dist/.gitattributes +0 -4
  358. package/dist/node_modules/tedious/node_modules/sprintf-js/dist/angular-sprintf.min.js +0 -3
  359. package/dist/node_modules/tedious/node_modules/sprintf-js/dist/sprintf.min.js +0 -3
  360. package/dist/node_modules/tedious/node_modules/sprintf-js/package.json +0 -35
  361. package/dist/node_modules/tedious/node_modules/sprintf-js/src/angular-sprintf.js +0 -24
  362. package/dist/node_modules/tedious/node_modules/sprintf-js/src/sprintf.js +0 -231
  363. package/dist/node_modules/tedious/node_modules/undici-types/agent.d.ts +0 -32
  364. package/dist/node_modules/tedious/node_modules/undici-types/api.d.ts +0 -43
  365. package/dist/node_modules/tedious/node_modules/undici-types/balanced-pool.d.ts +0 -29
  366. package/dist/node_modules/tedious/node_modules/undici-types/cache-interceptor.d.ts +0 -172
  367. package/dist/node_modules/tedious/node_modules/undici-types/cache.d.ts +0 -36
  368. package/dist/node_modules/tedious/node_modules/undici-types/client-stats.d.ts +0 -15
  369. package/dist/node_modules/tedious/node_modules/undici-types/client.d.ts +0 -108
  370. package/dist/node_modules/tedious/node_modules/undici-types/connector.d.ts +0 -34
  371. package/dist/node_modules/tedious/node_modules/undici-types/content-type.d.ts +0 -21
  372. package/dist/node_modules/tedious/node_modules/undici-types/cookies.d.ts +0 -30
  373. package/dist/node_modules/tedious/node_modules/undici-types/diagnostics-channel.d.ts +0 -74
  374. package/dist/node_modules/tedious/node_modules/undici-types/dispatcher.d.ts +0 -276
  375. package/dist/node_modules/tedious/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -22
  376. package/dist/node_modules/tedious/node_modules/undici-types/errors.d.ts +0 -161
  377. package/dist/node_modules/tedious/node_modules/undici-types/eventsource.d.ts +0 -66
  378. package/dist/node_modules/tedious/node_modules/undici-types/fetch.d.ts +0 -211
  379. package/dist/node_modules/tedious/node_modules/undici-types/formdata.d.ts +0 -108
  380. package/dist/node_modules/tedious/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  381. package/dist/node_modules/tedious/node_modules/undici-types/global-origin.d.ts +0 -7
  382. package/dist/node_modules/tedious/node_modules/undici-types/h2c-client.d.ts +0 -73
  383. package/dist/node_modules/tedious/node_modules/undici-types/handlers.d.ts +0 -15
  384. package/dist/node_modules/tedious/node_modules/undici-types/header.d.ts +0 -160
  385. package/dist/node_modules/tedious/node_modules/undici-types/index.d.ts +0 -80
  386. package/dist/node_modules/tedious/node_modules/undici-types/interceptors.d.ts +0 -39
  387. package/dist/node_modules/tedious/node_modules/undici-types/mock-agent.d.ts +0 -68
  388. package/dist/node_modules/tedious/node_modules/undici-types/mock-call-history.d.ts +0 -111
  389. package/dist/node_modules/tedious/node_modules/undici-types/mock-client.d.ts +0 -27
  390. package/dist/node_modules/tedious/node_modules/undici-types/mock-errors.d.ts +0 -12
  391. package/dist/node_modules/tedious/node_modules/undici-types/mock-interceptor.d.ts +0 -94
  392. package/dist/node_modules/tedious/node_modules/undici-types/mock-pool.d.ts +0 -27
  393. package/dist/node_modules/tedious/node_modules/undici-types/package.json +0 -55
  394. package/dist/node_modules/tedious/node_modules/undici-types/patch.d.ts +0 -29
  395. package/dist/node_modules/tedious/node_modules/undici-types/pool-stats.d.ts +0 -19
  396. package/dist/node_modules/tedious/node_modules/undici-types/pool.d.ts +0 -41
  397. package/dist/node_modules/tedious/node_modules/undici-types/proxy-agent.d.ts +0 -29
  398. package/dist/node_modules/tedious/node_modules/undici-types/readable.d.ts +0 -68
  399. package/dist/node_modules/tedious/node_modules/undici-types/retry-agent.d.ts +0 -8
  400. package/dist/node_modules/tedious/node_modules/undici-types/retry-handler.d.ts +0 -125
  401. package/dist/node_modules/tedious/node_modules/undici-types/snapshot-agent.d.ts +0 -109
  402. package/dist/node_modules/tedious/node_modules/undici-types/util.d.ts +0 -18
  403. package/dist/node_modules/tedious/node_modules/undici-types/utility.d.ts +0 -7
  404. package/dist/node_modules/tedious/node_modules/undici-types/webidl.d.ts +0 -341
  405. package/dist/node_modules/tedious/node_modules/undici-types/websocket.d.ts +0 -186
  406. package/dist/node_modules/tedious/package.json +0 -1
  407. package/dist/node_modules/tedious/tsconfig.build-types.json +0 -15
  408. package/dist/node_modules/tedious/tsconfig.json +0 -29
  409. package/dist/node_modules/tedious/types/js-md4.d.ts +0 -7
  410. package/dist/node_modules/tedious/types/native-duplexpair.d.ts +0 -12
@@ -1,519 +0,0 @@
1
- /**
2
- * The `node:url` module provides utilities for URL resolution and parsing. It can
3
- * be accessed using:
4
- *
5
- * ```js
6
- * import url from 'node:url';
7
- * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/url.js)
9
- */
10
- declare module "node:url" {
11
- import { Blob, NonSharedBuffer } from "node:buffer";
12
- import { ClientRequestArgs } from "node:http";
13
- import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring";
14
- // Input to `url.format`
15
- interface UrlObject {
16
- auth?: string | null | undefined;
17
- hash?: string | null | undefined;
18
- host?: string | null | undefined;
19
- hostname?: string | null | undefined;
20
- href?: string | null | undefined;
21
- pathname?: string | null | undefined;
22
- protocol?: string | null | undefined;
23
- search?: string | null | undefined;
24
- slashes?: boolean | null | undefined;
25
- port?: string | number | null | undefined;
26
- query?: string | null | ParsedUrlQueryInput | undefined;
27
- }
28
- // Output of `url.parse`
29
- interface Url {
30
- auth: string | null;
31
- hash: string | null;
32
- host: string | null;
33
- hostname: string | null;
34
- href: string;
35
- path: string | null;
36
- pathname: string | null;
37
- protocol: string | null;
38
- search: string | null;
39
- slashes: boolean | null;
40
- port: string | null;
41
- query: string | null | ParsedUrlQuery;
42
- }
43
- interface UrlWithParsedQuery extends Url {
44
- query: ParsedUrlQuery;
45
- }
46
- interface UrlWithStringQuery extends Url {
47
- query: string | null;
48
- }
49
- interface FileUrlToPathOptions {
50
- /**
51
- * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default.
52
- * @default undefined
53
- * @since v22.1.0
54
- */
55
- windows?: boolean | undefined;
56
- }
57
- interface PathToFileUrlOptions {
58
- /**
59
- * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default.
60
- * @default undefined
61
- * @since v22.1.0
62
- */
63
- windows?: boolean | undefined;
64
- }
65
- /**
66
- * The `url.parse()` method takes a URL string, parses it, and returns a URL
67
- * object.
68
- *
69
- * A `TypeError` is thrown if `urlString` is not a string.
70
- *
71
- * A `URIError` is thrown if the `auth` property is present but cannot be decoded.
72
- *
73
- * `url.parse()` uses a lenient, non-standard algorithm for parsing URL
74
- * strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487)
75
- * and incorrect handling of usernames and passwords. Do not use with untrusted
76
- * input. CVEs are not issued for `url.parse()` vulnerabilities. Use the
77
- * [WHATWG URL](https://nodejs.org/docs/latest-v25.x/api/url.html#the-whatwg-url-api) API instead, for example:
78
- *
79
- * ```js
80
- * function getURL(req) {
81
- * const proto = req.headers['x-forwarded-proto'] || 'https';
82
- * const host = req.headers['x-forwarded-host'] || req.headers.host || 'example.com';
83
- * return new URL(req.url || '/', `${proto}://${host}`);
84
- * }
85
- * ```
86
- *
87
- * The example above assumes well-formed headers are forwarded from a reverse
88
- * proxy to your Node.js server. If you are not using a reverse proxy, you should
89
- * use the example below:
90
- *
91
- * ```js
92
- * function getURL(req) {
93
- * return new URL(req.url || '/', 'https://example.com');
94
- * }
95
- * ```
96
- * @since v0.1.25
97
- * @deprecated Use the WHATWG URL API instead.
98
- * @param urlString The URL string to parse.
99
- * @param parseQueryString If `true`, the `query` property will always
100
- * be set to an object returned by the [`querystring`](https://nodejs.org/docs/latest-v25.x/api/querystring.html) module's `parse()`
101
- * method. If `false`, the `query` property on the returned URL object will be an
102
- * unparsed, undecoded string. **Default:** `false`.
103
- * @param slashesDenoteHost If `true`, the first token after the literal
104
- * string `//` and preceding the next `/` will be interpreted as the `host`.
105
- * For instance, given `//foo/bar`, the result would be
106
- * `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
107
- * **Default:** `false`.
108
- */
109
- function parse(
110
- urlString: string,
111
- parseQueryString?: false,
112
- slashesDenoteHost?: boolean,
113
- ): UrlWithStringQuery;
114
- function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
115
- function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
116
- /**
117
- * The `url.format()` method returns a formatted URL string derived from `urlObject`.
118
- *
119
- * ```js
120
- * import url from 'node:url';
121
- * url.format({
122
- * protocol: 'https',
123
- * hostname: 'example.com',
124
- * pathname: '/some/path',
125
- * query: {
126
- * page: 1,
127
- * format: 'json',
128
- * },
129
- * });
130
- *
131
- * // => 'https://example.com/some/path?page=1&format=json'
132
- * ```
133
- *
134
- * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`.
135
- *
136
- * The formatting process operates as follows:
137
- *
138
- * * A new empty string `result` is created.
139
- * * If `urlObject.protocol` is a string, it is appended as-is to `result`.
140
- * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
141
- * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
142
- * colon (`:`) character, the literal string `:` will be appended to `result`.
143
- * * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
144
- * * `urlObject.slashes` property is true;
145
- * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
146
- * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
147
- * and appended to `result` followed by the literal string `@`.
148
- * * If the `urlObject.host` property is `undefined` then:
149
- * * If the `urlObject.hostname` is a string, it is appended to `result`.
150
- * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
151
- * an `Error` is thrown.
152
- * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
153
- * * The literal string `:` is appended to `result`, and
154
- * * The value of `urlObject.port` is coerced to a string and appended to `result`.
155
- * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
156
- * * If the `urlObject.pathname` property is a string that is not an empty string:
157
- * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
158
- * (`/`), then the literal string `'/'` is appended to `result`.
159
- * * The value of `urlObject.pathname` is appended to `result`.
160
- * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
161
- * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
162
- * `querystring` module's `stringify()` method passing the value of `urlObject.query`.
163
- * * Otherwise, if `urlObject.search` is a string:
164
- * * If the value of `urlObject.search` _does not start_ with the ASCII question
165
- * mark (`?`) character, the literal string `?` is appended to `result`.
166
- * * The value of `urlObject.search` is appended to `result`.
167
- * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
168
- * * If the `urlObject.hash` property is a string:
169
- * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
170
- * character, the literal string `#` is appended to `result`.
171
- * * The value of `urlObject.hash` is appended to `result`.
172
- * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
173
- * string, an `Error` is thrown.
174
- * * `result` is returned.
175
- * @since v0.1.25
176
- * @legacy Use the WHATWG URL API instead.
177
- * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
178
- */
179
- function format(urlObject: URL, options?: URLFormatOptions): string;
180
- /**
181
- * The `url.format()` method returns a formatted URL string derived from `urlObject`.
182
- *
183
- * ```js
184
- * import url from 'node:url';
185
- * url.format({
186
- * protocol: 'https',
187
- * hostname: 'example.com',
188
- * pathname: '/some/path',
189
- * query: {
190
- * page: 1,
191
- * format: 'json',
192
- * },
193
- * });
194
- *
195
- * // => 'https://example.com/some/path?page=1&format=json'
196
- * ```
197
- *
198
- * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`.
199
- *
200
- * The formatting process operates as follows:
201
- *
202
- * * A new empty string `result` is created.
203
- * * If `urlObject.protocol` is a string, it is appended as-is to `result`.
204
- * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
205
- * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
206
- * colon (`:`) character, the literal string `:` will be appended to `result`.
207
- * * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
208
- * * `urlObject.slashes` property is true;
209
- * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
210
- * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
211
- * and appended to `result` followed by the literal string `@`.
212
- * * If the `urlObject.host` property is `undefined` then:
213
- * * If the `urlObject.hostname` is a string, it is appended to `result`.
214
- * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
215
- * an `Error` is thrown.
216
- * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
217
- * * The literal string `:` is appended to `result`, and
218
- * * The value of `urlObject.port` is coerced to a string and appended to `result`.
219
- * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
220
- * * If the `urlObject.pathname` property is a string that is not an empty string:
221
- * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
222
- * (`/`), then the literal string `'/'` is appended to `result`.
223
- * * The value of `urlObject.pathname` is appended to `result`.
224
- * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
225
- * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
226
- * `querystring` module's `stringify()` method passing the value of `urlObject.query`.
227
- * * Otherwise, if `urlObject.search` is a string:
228
- * * If the value of `urlObject.search` _does not start_ with the ASCII question
229
- * mark (`?`) character, the literal string `?` is appended to `result`.
230
- * * The value of `urlObject.search` is appended to `result`.
231
- * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
232
- * * If the `urlObject.hash` property is a string:
233
- * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
234
- * character, the literal string `#` is appended to `result`.
235
- * * The value of `urlObject.hash` is appended to `result`.
236
- * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
237
- * string, an `Error` is thrown.
238
- * * `result` is returned.
239
- * @since v0.1.25
240
- * @legacy Use the WHATWG URL API instead.
241
- * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
242
- */
243
- function format(urlObject: UrlObject | string): string;
244
- /**
245
- * The `url.resolve()` method resolves a target URL relative to a base URL in a
246
- * manner similar to that of a web browser resolving an anchor tag.
247
- *
248
- * ```js
249
- * import url from 'node:url';
250
- * url.resolve('/one/two/three', 'four'); // '/one/two/four'
251
- * url.resolve('http://example.com/', '/one'); // 'http://example.com/one'
252
- * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two'
253
- * ```
254
- *
255
- * To achieve the same result using the WHATWG URL API:
256
- *
257
- * ```js
258
- * function resolve(from, to) {
259
- * const resolvedUrl = new URL(to, new URL(from, 'resolve://'));
260
- * if (resolvedUrl.protocol === 'resolve:') {
261
- * // `from` is a relative URL.
262
- * const { pathname, search, hash } = resolvedUrl;
263
- * return pathname + search + hash;
264
- * }
265
- * return resolvedUrl.toString();
266
- * }
267
- *
268
- * resolve('/one/two/three', 'four'); // '/one/two/four'
269
- * resolve('http://example.com/', '/one'); // 'http://example.com/one'
270
- * resolve('http://example.com/one', '/two'); // 'http://example.com/two'
271
- * ```
272
- * @since v0.1.25
273
- * @legacy Use the WHATWG URL API instead.
274
- * @param from The base URL to use if `to` is a relative URL.
275
- * @param to The target URL to resolve.
276
- */
277
- function resolve(from: string, to: string): string;
278
- /**
279
- * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an
280
- * invalid domain, the empty string is returned.
281
- *
282
- * It performs the inverse operation to {@link domainToUnicode}.
283
- *
284
- * ```js
285
- * import url from 'node:url';
286
- *
287
- * console.log(url.domainToASCII('español.com'));
288
- * // Prints xn--espaol-zwa.com
289
- * console.log(url.domainToASCII('中文.com'));
290
- * // Prints xn--fiq228c.com
291
- * console.log(url.domainToASCII('xn--iñvalid.com'));
292
- * // Prints an empty string
293
- * ```
294
- * @since v7.4.0, v6.13.0
295
- */
296
- function domainToASCII(domain: string): string;
297
- /**
298
- * Returns the Unicode serialization of the `domain`. If `domain` is an invalid
299
- * domain, the empty string is returned.
300
- *
301
- * It performs the inverse operation to {@link domainToASCII}.
302
- *
303
- * ```js
304
- * import url from 'node:url';
305
- *
306
- * console.log(url.domainToUnicode('xn--espaol-zwa.com'));
307
- * // Prints español.com
308
- * console.log(url.domainToUnicode('xn--fiq228c.com'));
309
- * // Prints 中文.com
310
- * console.log(url.domainToUnicode('xn--iñvalid.com'));
311
- * // Prints an empty string
312
- * ```
313
- * @since v7.4.0, v6.13.0
314
- */
315
- function domainToUnicode(domain: string): string;
316
- /**
317
- * This function ensures the correct decodings of percent-encoded characters as
318
- * well as ensuring a cross-platform valid absolute path string.
319
- *
320
- * ```js
321
- * import { fileURLToPath } from 'node:url';
322
- *
323
- * const __filename = fileURLToPath(import.meta.url);
324
- *
325
- * new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/
326
- * fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows)
327
- *
328
- * new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt
329
- * fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows)
330
- *
331
- * new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt
332
- * fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX)
333
- *
334
- * new URL('file:///hello world').pathname; // Incorrect: /hello%20world
335
- * fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX)
336
- * ```
337
- * @since v10.12.0
338
- * @param url The file URL string or URL object to convert to a path.
339
- * @return The fully-resolved platform-specific Node.js file path.
340
- */
341
- function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string;
342
- /**
343
- * Like `url.fileURLToPath(...)` except that instead of returning a string
344
- * representation of the path, a `Buffer` is returned. This conversion is
345
- * helpful when the input URL contains percent-encoded segments that are
346
- * not valid UTF-8 / Unicode sequences.
347
- * @since v24.3.0
348
- * @param url The file URL string or URL object to convert to a path.
349
- * @returns The fully-resolved platform-specific Node.js file path
350
- * as a `Buffer`.
351
- */
352
- function fileURLToPathBuffer(url: string | URL, options?: FileUrlToPathOptions): NonSharedBuffer;
353
- /**
354
- * This function ensures that `path` is resolved absolutely, and that the URL
355
- * control characters are correctly encoded when converting into a File URL.
356
- *
357
- * ```js
358
- * import { pathToFileURL } from 'node:url';
359
- *
360
- * new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1
361
- * pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX)
362
- *
363
- * new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c
364
- * pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX)
365
- * ```
366
- * @since v10.12.0
367
- * @param path The path to convert to a File URL.
368
- * @return The file URL object.
369
- */
370
- function pathToFileURL(path: string, options?: PathToFileUrlOptions): URL;
371
- /**
372
- * This utility function converts a URL object into an ordinary options object as
373
- * expected by the `http.request()` and `https.request()` APIs.
374
- *
375
- * ```js
376
- * import { urlToHttpOptions } from 'node:url';
377
- * const myURL = new URL('https://a:b@測試?abc#foo');
378
- *
379
- * console.log(urlToHttpOptions(myURL));
380
- * /*
381
- * {
382
- * protocol: 'https:',
383
- * hostname: 'xn--g6w251d',
384
- * hash: '#foo',
385
- * search: '?abc',
386
- * pathname: '/',
387
- * path: '/?abc',
388
- * href: 'https://a:b@xn--g6w251d/?abc#foo',
389
- * auth: 'a:b'
390
- * }
391
- *
392
- * ```
393
- * @since v15.7.0, v14.18.0
394
- * @param url The `WHATWG URL` object to convert to an options object.
395
- * @return Options object
396
- */
397
- function urlToHttpOptions(url: URL): ClientRequestArgs;
398
- interface URLFormatOptions {
399
- /**
400
- * `true` if the serialized URL string should include the username and password, `false` otherwise.
401
- * @default true
402
- */
403
- auth?: boolean | undefined;
404
- /**
405
- * `true` if the serialized URL string should include the fragment, `false` otherwise.
406
- * @default true
407
- */
408
- fragment?: boolean | undefined;
409
- /**
410
- * `true` if the serialized URL string should include the search query, `false` otherwise.
411
- * @default true
412
- */
413
- search?: boolean | undefined;
414
- /**
415
- * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to
416
- * being Punycode encoded.
417
- * @default false
418
- */
419
- unicode?: boolean | undefined;
420
- }
421
- // #region web types
422
- type URLPatternInput = string | URLPatternInit;
423
- interface URLPatternComponentResult {
424
- input: string;
425
- groups: Record<string, string | undefined>;
426
- }
427
- interface URLPatternInit {
428
- protocol?: string;
429
- username?: string;
430
- password?: string;
431
- hostname?: string;
432
- port?: string;
433
- pathname?: string;
434
- search?: string;
435
- hash?: string;
436
- baseURL?: string;
437
- }
438
- interface URLPatternOptions {
439
- ignoreCase?: boolean;
440
- }
441
- interface URLPatternResult {
442
- inputs: URLPatternInput[];
443
- protocol: URLPatternComponentResult;
444
- username: URLPatternComponentResult;
445
- password: URLPatternComponentResult;
446
- hostname: URLPatternComponentResult;
447
- port: URLPatternComponentResult;
448
- pathname: URLPatternComponentResult;
449
- search: URLPatternComponentResult;
450
- hash: URLPatternComponentResult;
451
- }
452
- interface URL {
453
- hash: string;
454
- host: string;
455
- hostname: string;
456
- href: string;
457
- readonly origin: string;
458
- password: string;
459
- pathname: string;
460
- port: string;
461
- protocol: string;
462
- search: string;
463
- readonly searchParams: URLSearchParams;
464
- username: string;
465
- toJSON(): string;
466
- }
467
- var URL: {
468
- prototype: URL;
469
- new(url: string | URL, base?: string | URL): URL;
470
- canParse(input: string | URL, base?: string | URL): boolean;
471
- createObjectURL(blob: Blob): string;
472
- parse(input: string | URL, base?: string | URL): URL | null;
473
- revokeObjectURL(id: string): void;
474
- };
475
- interface URLPattern {
476
- readonly hasRegExpGroups: boolean;
477
- readonly hash: string;
478
- readonly hostname: string;
479
- readonly password: string;
480
- readonly pathname: string;
481
- readonly port: string;
482
- readonly protocol: string;
483
- readonly search: string;
484
- readonly username: string;
485
- exec(input?: URLPatternInput, baseURL?: string | URL): URLPatternResult | null;
486
- test(input?: URLPatternInput, baseURL?: string | URL): boolean;
487
- }
488
- var URLPattern: {
489
- prototype: URLPattern;
490
- new(input: URLPatternInput, baseURL: string | URL, options?: URLPatternOptions): URLPattern;
491
- new(input?: URLPatternInput, options?: URLPatternOptions): URLPattern;
492
- };
493
- interface URLSearchParams {
494
- readonly size: number;
495
- append(name: string, value: string): void;
496
- delete(name: string, value?: string): void;
497
- get(name: string): string | null;
498
- getAll(name: string): string[];
499
- has(name: string, value?: string): boolean;
500
- set(name: string, value: string): void;
501
- sort(): void;
502
- forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
503
- [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
504
- entries(): URLSearchParamsIterator<[string, string]>;
505
- keys(): URLSearchParamsIterator<string>;
506
- values(): URLSearchParamsIterator<string>;
507
- }
508
- var URLSearchParams: {
509
- prototype: URLSearchParams;
510
- new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
511
- };
512
- interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
513
- [Symbol.iterator](): URLSearchParamsIterator<T>;
514
- }
515
- // #endregion
516
- }
517
- declare module "url" {
518
- export * from "node:url";
519
- }