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,541 +0,0 @@
1
- /**
2
- * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/latest-v25.x/api/stream.html#readable-streams) stream
3
- * (such as [`process.stdin`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstdin)) one line at a time.
4
- *
5
- * To use the promise-based APIs:
6
- *
7
- * ```js
8
- * import * as readline from 'node:readline/promises';
9
- * ```
10
- *
11
- * To use the callback and sync APIs:
12
- *
13
- * ```js
14
- * import * as readline from 'node:readline';
15
- * ```
16
- *
17
- * The following simple example illustrates the basic use of the `node:readline` module.
18
- *
19
- * ```js
20
- * import * as readline from 'node:readline/promises';
21
- * import { stdin as input, stdout as output } from 'node:process';
22
- *
23
- * const rl = readline.createInterface({ input, output });
24
- *
25
- * const answer = await rl.question('What do you think of Node.js? ');
26
- *
27
- * console.log(`Thank you for your valuable feedback: ${answer}`);
28
- *
29
- * rl.close();
30
- * ```
31
- *
32
- * Once this code is invoked, the Node.js application will not terminate until the `readline.Interface` is closed because the interface waits for data to be
33
- * received on the `input` stream.
34
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/readline.js)
35
- */
36
- declare module "node:readline" {
37
- import { Abortable, EventEmitter, InternalEventEmitter } from "node:events";
38
- interface Key {
39
- sequence?: string | undefined;
40
- name?: string | undefined;
41
- ctrl?: boolean | undefined;
42
- meta?: boolean | undefined;
43
- shift?: boolean | undefined;
44
- }
45
- interface InterfaceEventMap {
46
- "close": [];
47
- "history": [history: string[]];
48
- "line": [input: string];
49
- "pause": [];
50
- "resume": [];
51
- "SIGCONT": [];
52
- "SIGINT": [];
53
- "SIGTSTP": [];
54
- }
55
- /**
56
- * Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a
57
- * single `input` [Readable](https://nodejs.org/docs/latest-v25.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/latest-v25.x/api/stream.html#writable-streams) stream.
58
- * The `output` stream is used to print prompts for user input that arrives on,
59
- * and is read from, the `input` stream.
60
- * @since v0.1.104
61
- */
62
- class Interface implements EventEmitter, Disposable {
63
- /**
64
- * NOTE: According to the documentation:
65
- *
66
- * > Instances of the `readline.Interface` class are constructed using the
67
- * > `readline.createInterface()` method.
68
- *
69
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/readline.html#class-interfaceconstructor
70
- */
71
- protected constructor(
72
- input: NodeJS.ReadableStream,
73
- output?: NodeJS.WritableStream,
74
- completer?: Completer | AsyncCompleter,
75
- terminal?: boolean,
76
- );
77
- /**
78
- * NOTE: According to the documentation:
79
- *
80
- * > Instances of the `readline.Interface` class are constructed using the
81
- * > `readline.createInterface()` method.
82
- *
83
- * @see https://nodejs.org/dist/latest-v25.x/docs/api/readline.html#class-interfaceconstructor
84
- */
85
- protected constructor(options: ReadLineOptions);
86
- readonly terminal: boolean;
87
- /**
88
- * The current input data being processed by node.
89
- *
90
- * This can be used when collecting input from a TTY stream to retrieve the
91
- * current value that has been processed thus far, prior to the `line` event
92
- * being emitted. Once the `line` event has been emitted, this property will
93
- * be an empty string.
94
- *
95
- * Be aware that modifying the value during the instance runtime may have
96
- * unintended consequences if `rl.cursor` is not also controlled.
97
- *
98
- * **If not using a TTY stream for input, use the `'line'` event.**
99
- *
100
- * One possible use case would be as follows:
101
- *
102
- * ```js
103
- * const values = ['lorem ipsum', 'dolor sit amet'];
104
- * const rl = readline.createInterface(process.stdin);
105
- * const showResults = debounce(() => {
106
- * console.log(
107
- * '\n',
108
- * values.filter((val) => val.startsWith(rl.line)).join(' '),
109
- * );
110
- * }, 300);
111
- * process.stdin.on('keypress', (c, k) => {
112
- * showResults();
113
- * });
114
- * ```
115
- * @since v0.1.98
116
- */
117
- readonly line: string;
118
- /**
119
- * The cursor position relative to `rl.line`.
120
- *
121
- * This will track where the current cursor lands in the input string, when
122
- * reading input from a TTY stream. The position of cursor determines the
123
- * portion of the input string that will be modified as input is processed,
124
- * as well as the column where the terminal caret will be rendered.
125
- * @since v0.1.98
126
- */
127
- readonly cursor: number;
128
- /**
129
- * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`.
130
- * @since v15.3.0, v14.17.0
131
- * @return the current prompt string
132
- */
133
- getPrompt(): string;
134
- /**
135
- * The `rl.setPrompt()` method sets the prompt that will be written to `output` whenever `rl.prompt()` is called.
136
- * @since v0.1.98
137
- */
138
- setPrompt(prompt: string): void;
139
- /**
140
- * The `rl.prompt()` method writes the `Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new
141
- * location at which to provide input.
142
- *
143
- * When called, `rl.prompt()` will resume the `input` stream if it has been
144
- * paused.
145
- *
146
- * If the `Interface` was created with `output` set to `null` or `undefined` the prompt is not written.
147
- * @since v0.1.98
148
- * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`.
149
- */
150
- prompt(preserveCursor?: boolean): void;
151
- /**
152
- * The `rl.question()` method displays the `query` by writing it to the `output`,
153
- * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument.
154
- *
155
- * When called, `rl.question()` will resume the `input` stream if it has been
156
- * paused.
157
- *
158
- * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written.
159
- *
160
- * The `callback` function passed to `rl.question()` does not follow the typical
161
- * pattern of accepting an `Error` object or `null` as the first argument.
162
- * The `callback` is called with the provided answer as the only argument.
163
- *
164
- * An error will be thrown if calling `rl.question()` after `rl.close()`.
165
- *
166
- * Example usage:
167
- *
168
- * ```js
169
- * rl.question('What is your favorite food? ', (answer) => {
170
- * console.log(`Oh, so your favorite food is ${answer}`);
171
- * });
172
- * ```
173
- *
174
- * Using an `AbortController` to cancel a question.
175
- *
176
- * ```js
177
- * const ac = new AbortController();
178
- * const signal = ac.signal;
179
- *
180
- * rl.question('What is your favorite food? ', { signal }, (answer) => {
181
- * console.log(`Oh, so your favorite food is ${answer}`);
182
- * });
183
- *
184
- * signal.addEventListener('abort', () => {
185
- * console.log('The food question timed out');
186
- * }, { once: true });
187
- *
188
- * setTimeout(() => ac.abort(), 10000);
189
- * ```
190
- * @since v0.3.3
191
- * @param query A statement or query to write to `output`, prepended to the prompt.
192
- * @param callback A callback function that is invoked with the user's input in response to the `query`.
193
- */
194
- question(query: string, callback: (answer: string) => void): void;
195
- question(query: string, options: Abortable, callback: (answer: string) => void): void;
196
- /**
197
- * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed
198
- * later if necessary.
199
- *
200
- * Calling `rl.pause()` does not immediately pause other events (including `'line'`) from being emitted by the `Interface` instance.
201
- * @since v0.3.4
202
- */
203
- pause(): this;
204
- /**
205
- * The `rl.resume()` method resumes the `input` stream if it has been paused.
206
- * @since v0.3.4
207
- */
208
- resume(): this;
209
- /**
210
- * The `rl.close()` method closes the `Interface` instance and
211
- * relinquishes control over the `input` and `output` streams. When called,
212
- * the `'close'` event will be emitted.
213
- *
214
- * Calling `rl.close()` does not immediately stop other events (including `'line'`)
215
- * from being emitted by the `Interface` instance.
216
- * @since v0.1.98
217
- */
218
- close(): void;
219
- /**
220
- * Alias for `rl.close()`.
221
- * @since v22.15.0
222
- */
223
- [Symbol.dispose](): void;
224
- /**
225
- * The `rl.write()` method will write either `data` or a key sequence identified
226
- * by `key` to the `output`. The `key` argument is supported only if `output` is
227
- * a `TTY` text terminal. See `TTY keybindings` for a list of key
228
- * combinations.
229
- *
230
- * If `key` is specified, `data` is ignored.
231
- *
232
- * When called, `rl.write()` will resume the `input` stream if it has been
233
- * paused.
234
- *
235
- * If the `Interface` was created with `output` set to `null` or `undefined` the `data` and `key` are not written.
236
- *
237
- * ```js
238
- * rl.write('Delete this!');
239
- * // Simulate Ctrl+U to delete the line written previously
240
- * rl.write(null, { ctrl: true, name: 'u' });
241
- * ```
242
- *
243
- * The `rl.write()` method will write the data to the `readline` `Interface`'s `input` _as if it were provided by the user_.
244
- * @since v0.1.98
245
- */
246
- write(data: string | Buffer, key?: Key): void;
247
- write(data: undefined | null | string | Buffer, key: Key): void;
248
- /**
249
- * Returns the real position of the cursor in relation to the input
250
- * prompt + string. Long input (wrapping) strings, as well as multiple
251
- * line prompts are included in the calculations.
252
- * @since v13.5.0, v12.16.0
253
- */
254
- getCursorPos(): CursorPos;
255
- [Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
256
- }
257
- interface Interface extends InternalEventEmitter<InterfaceEventMap> {}
258
- type ReadLine = Interface; // type forwarded for backwards compatibility
259
- type Completer = (line: string) => CompleterResult;
260
- type AsyncCompleter = (
261
- line: string,
262
- callback: (err?: null | Error, result?: CompleterResult) => void,
263
- ) => void;
264
- type CompleterResult = [string[], string];
265
- interface ReadLineOptions {
266
- /**
267
- * The [`Readable`](https://nodejs.org/docs/latest-v25.x/api/stream.html#readable-streams) stream to listen to
268
- */
269
- input: NodeJS.ReadableStream;
270
- /**
271
- * The [`Writable`](https://nodejs.org/docs/latest-v25.x/api/stream.html#writable-streams) stream to write readline data to.
272
- */
273
- output?: NodeJS.WritableStream | undefined;
274
- /**
275
- * An optional function used for Tab autocompletion.
276
- */
277
- completer?: Completer | AsyncCompleter | undefined;
278
- /**
279
- * `true` if the `input` and `output` streams should be treated like a TTY,
280
- * and have ANSI/VT100 escape codes written to it.
281
- * Default: checking `isTTY` on the `output` stream upon instantiation.
282
- */
283
- terminal?: boolean | undefined;
284
- /**
285
- * Initial list of history lines.
286
- * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
287
- * otherwise the history caching mechanism is not initialized at all.
288
- * @default []
289
- */
290
- history?: string[] | undefined;
291
- /**
292
- * Maximum number of history lines retained.
293
- * To disable the history set this value to `0`.
294
- * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
295
- * otherwise the history caching mechanism is not initialized at all.
296
- * @default 30
297
- */
298
- historySize?: number | undefined;
299
- /**
300
- * If `true`, when a new input line added to the history list duplicates an older one,
301
- * this removes the older line from the list.
302
- * @default false
303
- */
304
- removeHistoryDuplicates?: boolean | undefined;
305
- /**
306
- * The prompt string to use.
307
- * @default "> "
308
- */
309
- prompt?: string | undefined;
310
- /**
311
- * If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds,
312
- * both `\r` and `\n` will be treated as separate end-of-line input.
313
- * `crlfDelay` will be coerced to a number no less than `100`.
314
- * It can be set to `Infinity`, in which case
315
- * `\r` followed by `\n` will always be considered a single newline
316
- * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v25.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
317
- * @default 100
318
- */
319
- crlfDelay?: number | undefined;
320
- /**
321
- * The duration `readline` will wait for a character
322
- * (when reading an ambiguous key sequence in milliseconds
323
- * one that can both form a complete key sequence using the input read so far
324
- * and can take additional input to complete a longer key sequence).
325
- * @default 500
326
- */
327
- escapeCodeTimeout?: number | undefined;
328
- /**
329
- * The number of spaces a tab is equal to (minimum 1).
330
- * @default 8
331
- */
332
- tabSize?: number | undefined;
333
- /**
334
- * Allows closing the interface using an AbortSignal.
335
- * Aborting the signal will internally call `close` on the interface.
336
- */
337
- signal?: AbortSignal | undefined;
338
- }
339
- /**
340
- * The `readline.createInterface()` method creates a new `readline.Interface` instance.
341
- *
342
- * ```js
343
- * import readline from 'node:readline';
344
- * const rl = readline.createInterface({
345
- * input: process.stdin,
346
- * output: process.stdout,
347
- * });
348
- * ```
349
- *
350
- * Once the `readline.Interface` instance is created, the most common case is to
351
- * listen for the `'line'` event:
352
- *
353
- * ```js
354
- * rl.on('line', (line) => {
355
- * console.log(`Received: ${line}`);
356
- * });
357
- * ```
358
- *
359
- * If `terminal` is `true` for this instance then the `output` stream will get
360
- * the best compatibility if it defines an `output.columns` property and emits
361
- * a `'resize'` event on the `output` if or when the columns ever change
362
- * (`process.stdout` does this automatically when it is a TTY).
363
- *
364
- * When creating a `readline.Interface` using `stdin` as input, the program
365
- * will not terminate until it receives an [EOF character](https://en.wikipedia.org/wiki/End-of-file#EOF_character). To exit without
366
- * waiting for user input, call `process.stdin.unref()`.
367
- * @since v0.1.98
368
- */
369
- function createInterface(
370
- input: NodeJS.ReadableStream,
371
- output?: NodeJS.WritableStream,
372
- completer?: Completer | AsyncCompleter,
373
- terminal?: boolean,
374
- ): Interface;
375
- function createInterface(options: ReadLineOptions): Interface;
376
- /**
377
- * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input.
378
- *
379
- * Optionally, `interface` specifies a `readline.Interface` instance for which
380
- * autocompletion is disabled when copy-pasted input is detected.
381
- *
382
- * If the `stream` is a `TTY`, then it must be in raw mode.
383
- *
384
- * This is automatically called by any readline instance on its `input` if the `input` is a terminal. Closing the `readline` instance does not stop
385
- * the `input` from emitting `'keypress'` events.
386
- *
387
- * ```js
388
- * readline.emitKeypressEvents(process.stdin);
389
- * if (process.stdin.isTTY)
390
- * process.stdin.setRawMode(true);
391
- * ```
392
- *
393
- * ## Example: Tiny CLI
394
- *
395
- * The following example illustrates the use of `readline.Interface` class to
396
- * implement a small command-line interface:
397
- *
398
- * ```js
399
- * import readline from 'node:readline';
400
- * const rl = readline.createInterface({
401
- * input: process.stdin,
402
- * output: process.stdout,
403
- * prompt: 'OHAI> ',
404
- * });
405
- *
406
- * rl.prompt();
407
- *
408
- * rl.on('line', (line) => {
409
- * switch (line.trim()) {
410
- * case 'hello':
411
- * console.log('world!');
412
- * break;
413
- * default:
414
- * console.log(`Say what? I might have heard '${line.trim()}'`);
415
- * break;
416
- * }
417
- * rl.prompt();
418
- * }).on('close', () => {
419
- * console.log('Have a great day!');
420
- * process.exit(0);
421
- * });
422
- * ```
423
- *
424
- * ## Example: Read file stream line-by-Line
425
- *
426
- * A common use case for `readline` is to consume an input file one line at a
427
- * time. The easiest way to do so is leveraging the `fs.ReadStream` API as
428
- * well as a `for await...of` loop:
429
- *
430
- * ```js
431
- * import fs from 'node:fs';
432
- * import readline from 'node:readline';
433
- *
434
- * async function processLineByLine() {
435
- * const fileStream = fs.createReadStream('input.txt');
436
- *
437
- * const rl = readline.createInterface({
438
- * input: fileStream,
439
- * crlfDelay: Infinity,
440
- * });
441
- * // Note: we use the crlfDelay option to recognize all instances of CR LF
442
- * // ('\r\n') in input.txt as a single line break.
443
- *
444
- * for await (const line of rl) {
445
- * // Each line in input.txt will be successively available here as `line`.
446
- * console.log(`Line from file: ${line}`);
447
- * }
448
- * }
449
- *
450
- * processLineByLine();
451
- * ```
452
- *
453
- * Alternatively, one could use the `'line'` event:
454
- *
455
- * ```js
456
- * import fs from 'node:fs';
457
- * import readline from 'node:readline';
458
- *
459
- * const rl = readline.createInterface({
460
- * input: fs.createReadStream('sample.txt'),
461
- * crlfDelay: Infinity,
462
- * });
463
- *
464
- * rl.on('line', (line) => {
465
- * console.log(`Line from file: ${line}`);
466
- * });
467
- * ```
468
- *
469
- * Currently, `for await...of` loop can be a bit slower. If `async` / `await` flow and speed are both essential, a mixed approach can be applied:
470
- *
471
- * ```js
472
- * import { once } from 'node:events';
473
- * import { createReadStream } from 'node:fs';
474
- * import { createInterface } from 'node:readline';
475
- *
476
- * (async function processLineByLine() {
477
- * try {
478
- * const rl = createInterface({
479
- * input: createReadStream('big-file.txt'),
480
- * crlfDelay: Infinity,
481
- * });
482
- *
483
- * rl.on('line', (line) => {
484
- * // Process the line.
485
- * });
486
- *
487
- * await once(rl, 'close');
488
- *
489
- * console.log('File processed.');
490
- * } catch (err) {
491
- * console.error(err);
492
- * }
493
- * })();
494
- * ```
495
- * @since v0.7.7
496
- */
497
- function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void;
498
- type Direction = -1 | 0 | 1;
499
- interface CursorPos {
500
- rows: number;
501
- cols: number;
502
- }
503
- /**
504
- * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-v25.x/api/tty.html) stream
505
- * in a specified direction identified by `dir`.
506
- * @since v0.7.7
507
- * @param callback Invoked once the operation completes.
508
- * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
509
- */
510
- function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
511
- /**
512
- * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-v25.x/api/tty.html) stream from
513
- * the current position of the cursor down.
514
- * @since v0.7.7
515
- * @param callback Invoked once the operation completes.
516
- * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
517
- */
518
- function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
519
- /**
520
- * The `readline.cursorTo()` method moves cursor to the specified position in a
521
- * given [TTY](https://nodejs.org/docs/latest-v25.x/api/tty.html) `stream`.
522
- * @since v0.7.7
523
- * @param callback Invoked once the operation completes.
524
- * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
525
- */
526
- function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
527
- /**
528
- * The `readline.moveCursor()` method moves the cursor _relative_ to its current
529
- * position in a given [TTY](https://nodejs.org/docs/latest-v25.x/api/tty.html) `stream`.
530
- * @since v0.7.7
531
- * @param callback Invoked once the operation completes.
532
- * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
533
- */
534
- function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
535
- }
536
- declare module "node:readline" {
537
- export * as promises from "node:readline/promises";
538
- }
539
- declare module "readline" {
540
- export * from "node:readline";
541
- }