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,80 +0,0 @@
1
- import Dispatcher from './dispatcher'
2
- import { setGlobalDispatcher, getGlobalDispatcher } from './global-dispatcher'
3
- import { setGlobalOrigin, getGlobalOrigin } from './global-origin'
4
- import Pool from './pool'
5
- import { RedirectHandler, DecoratorHandler } from './handlers'
6
-
7
- import BalancedPool from './balanced-pool'
8
- import Client from './client'
9
- import H2CClient from './h2c-client'
10
- import buildConnector from './connector'
11
- import errors from './errors'
12
- import Agent from './agent'
13
- import MockClient from './mock-client'
14
- import MockPool from './mock-pool'
15
- import MockAgent from './mock-agent'
16
- import { SnapshotAgent } from './snapshot-agent'
17
- import { MockCallHistory, MockCallHistoryLog } from './mock-call-history'
18
- import mockErrors from './mock-errors'
19
- import ProxyAgent from './proxy-agent'
20
- import EnvHttpProxyAgent from './env-http-proxy-agent'
21
- import RetryHandler from './retry-handler'
22
- import RetryAgent from './retry-agent'
23
- import { request, pipeline, stream, connect, upgrade } from './api'
24
- import interceptors from './interceptors'
25
-
26
- export * from './util'
27
- export * from './cookies'
28
- export * from './eventsource'
29
- export * from './fetch'
30
- export * from './formdata'
31
- export * from './diagnostics-channel'
32
- export * from './websocket'
33
- export * from './content-type'
34
- export * from './cache'
35
- export { Interceptable } from './mock-interceptor'
36
-
37
- declare function globalThisInstall (): void
38
-
39
- export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, SnapshotAgent, MockCallHistory, MockCallHistoryLog, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent, H2CClient, globalThisInstall as install }
40
- export default Undici
41
-
42
- declare namespace Undici {
43
- const Dispatcher: typeof import('./dispatcher').default
44
- const Pool: typeof import('./pool').default
45
- const RedirectHandler: typeof import ('./handlers').RedirectHandler
46
- const DecoratorHandler: typeof import ('./handlers').DecoratorHandler
47
- const RetryHandler: typeof import ('./retry-handler').default
48
- const BalancedPool: typeof import('./balanced-pool').default
49
- const Client: typeof import('./client').default
50
- const H2CClient: typeof import('./h2c-client').default
51
- const buildConnector: typeof import('./connector').default
52
- const errors: typeof import('./errors').default
53
- const Agent: typeof import('./agent').default
54
- const setGlobalDispatcher: typeof import('./global-dispatcher').setGlobalDispatcher
55
- const getGlobalDispatcher: typeof import('./global-dispatcher').getGlobalDispatcher
56
- const request: typeof import('./api').request
57
- const stream: typeof import('./api').stream
58
- const pipeline: typeof import('./api').pipeline
59
- const connect: typeof import('./api').connect
60
- const upgrade: typeof import('./api').upgrade
61
- const MockClient: typeof import('./mock-client').default
62
- const MockPool: typeof import('./mock-pool').default
63
- const MockAgent: typeof import('./mock-agent').default
64
- const SnapshotAgent: typeof import('./snapshot-agent').SnapshotAgent
65
- const MockCallHistory: typeof import('./mock-call-history').MockCallHistory
66
- const MockCallHistoryLog: typeof import('./mock-call-history').MockCallHistoryLog
67
- const mockErrors: typeof import('./mock-errors').default
68
- const fetch: typeof import('./fetch').fetch
69
- const Headers: typeof import('./fetch').Headers
70
- const Response: typeof import('./fetch').Response
71
- const Request: typeof import('./fetch').Request
72
- const FormData: typeof import('./formdata').FormData
73
- const caches: typeof import('./cache').caches
74
- const interceptors: typeof import('./interceptors').default
75
- const cacheStores: {
76
- MemoryCacheStore: typeof import('./cache-interceptor').default.MemoryCacheStore,
77
- SqliteCacheStore: typeof import('./cache-interceptor').default.SqliteCacheStore
78
- }
79
- const install: typeof globalThisInstall
80
- }
@@ -1,39 +0,0 @@
1
- import CacheHandler from './cache-interceptor'
2
- import Dispatcher from './dispatcher'
3
- import RetryHandler from './retry-handler'
4
- import { LookupOptions } from 'node:dns'
5
-
6
- export default Interceptors
7
-
8
- declare namespace Interceptors {
9
- export type DumpInterceptorOpts = { maxSize?: number }
10
- export type RetryInterceptorOpts = RetryHandler.RetryOptions
11
- export type RedirectInterceptorOpts = { maxRedirections?: number }
12
- export type DecompressInterceptorOpts = {
13
- skipErrorResponses?: boolean
14
- skipStatusCodes?: number[]
15
- }
16
-
17
- export type ResponseErrorInterceptorOpts = { throwOnError: boolean }
18
- export type CacheInterceptorOpts = CacheHandler.CacheOptions
19
-
20
- // DNS interceptor
21
- export type DNSInterceptorRecord = { address: string, ttl: number, family: 4 | 6 }
22
- export type DNSInterceptorOriginRecords = { 4: { ips: DNSInterceptorRecord[] } | null, 6: { ips: DNSInterceptorRecord[] } | null }
23
- export type DNSInterceptorOpts = {
24
- maxTTL?: number
25
- maxItems?: number
26
- lookup?: (hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, addresses: DNSInterceptorRecord[]) => void) => void
27
- pick?: (origin: URL, records: DNSInterceptorOriginRecords, affinity: 4 | 6) => DNSInterceptorRecord
28
- dualStack?: boolean
29
- affinity?: 4 | 6
30
- }
31
-
32
- export function dump (opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
33
- export function retry (opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
34
- export function redirect (opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
35
- export function decompress (opts?: DecompressInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
36
- export function responseError (opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
37
- export function dns (opts?: DNSInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
38
- export function cache (opts?: CacheInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
39
- }
@@ -1,68 +0,0 @@
1
- import Agent from './agent'
2
- import Dispatcher from './dispatcher'
3
- import { Interceptable, MockInterceptor } from './mock-interceptor'
4
- import MockDispatch = MockInterceptor.MockDispatch
5
- import { MockCallHistory } from './mock-call-history'
6
-
7
- export default MockAgent
8
-
9
- interface PendingInterceptor extends MockDispatch {
10
- origin: string;
11
- }
12
-
13
- /** A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. */
14
- declare class MockAgent<TMockAgentOptions extends MockAgent.Options = MockAgent.Options> extends Dispatcher {
15
- constructor (options?: TMockAgentOptions)
16
- /** Creates and retrieves mock Dispatcher instances which can then be used to intercept HTTP requests. If the number of connections on the mock agent is set to 1, a MockClient instance is returned. Otherwise a MockPool instance is returned. */
17
- get<TInterceptable extends Interceptable>(origin: string): TInterceptable
18
- get<TInterceptable extends Interceptable>(origin: RegExp): TInterceptable
19
- get<TInterceptable extends Interceptable>(origin: ((origin: string) => boolean)): TInterceptable
20
- /** Dispatches a mocked request. */
21
- dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean
22
- /** Closes the mock agent and waits for registered mock pools and clients to also close before resolving. */
23
- close (): Promise<void>
24
- /** Disables mocking in MockAgent. */
25
- deactivate (): void
26
- /** Enables mocking in a MockAgent instance. When instantiated, a MockAgent is automatically activated. Therefore, this method is only effective after `MockAgent.deactivate` has been called. */
27
- activate (): void
28
- /** Define host matchers so only matching requests that aren't intercepted by the mock dispatchers will be attempted. */
29
- enableNetConnect (): void
30
- enableNetConnect (host: string): void
31
- enableNetConnect (host: RegExp): void
32
- enableNetConnect (host: ((host: string) => boolean)): void
33
- /** Causes all requests to throw when requests are not matched in a MockAgent intercept. */
34
- disableNetConnect (): void
35
- /** get call history. returns the MockAgent call history or undefined if the option is not enabled. */
36
- getCallHistory (): MockCallHistory | undefined
37
- /** clear every call history. Any MockCallHistoryLog will be deleted on the MockCallHistory instance */
38
- clearCallHistory (): void
39
- /** Enable call history. Any subsequence calls will then be registered. */
40
- enableCallHistory (): this
41
- /** Disable call history. Any subsequence calls will then not be registered. */
42
- disableCallHistory (): this
43
- pendingInterceptors (): PendingInterceptor[]
44
- assertNoPendingInterceptors (options?: {
45
- pendingInterceptorsFormatter?: PendingInterceptorsFormatter;
46
- }): void
47
- }
48
-
49
- interface PendingInterceptorsFormatter {
50
- format(pendingInterceptors: readonly PendingInterceptor[]): string;
51
- }
52
-
53
- declare namespace MockAgent {
54
- /** MockAgent options. */
55
- export interface Options extends Agent.Options {
56
- /** A custom agent to be encapsulated by the MockAgent. */
57
- agent?: Dispatcher;
58
-
59
- /** Ignore trailing slashes in the path */
60
- ignoreTrailingSlash?: boolean;
61
-
62
- /** Accept URLs with search parameters using non standard syntaxes. default false */
63
- acceptNonStandardSearchParameters?: boolean;
64
-
65
- /** Enable call history. you can either call MockAgent.enableCallHistory(). default false */
66
- enableCallHistory?: boolean
67
- }
68
- }
@@ -1,111 +0,0 @@
1
- import Dispatcher from './dispatcher'
2
-
3
- declare namespace MockCallHistoryLog {
4
- /** request's configuration properties */
5
- export type MockCallHistoryLogProperties = 'protocol' | 'host' | 'port' | 'origin' | 'path' | 'hash' | 'fullUrl' | 'method' | 'searchParams' | 'body' | 'headers'
6
- }
7
-
8
- /** a log reflecting request configuration */
9
- declare class MockCallHistoryLog {
10
- constructor (requestInit: Dispatcher.DispatchOptions)
11
- /** protocol used. ie. 'https:' or 'http:' etc... */
12
- protocol: string
13
- /** request's host. */
14
- host: string
15
- /** request's port. */
16
- port: string
17
- /** request's origin. ie. https://localhost:3000. */
18
- origin: string
19
- /** path. never contains searchParams. */
20
- path: string
21
- /** request's hash. */
22
- hash: string
23
- /** the full url requested. */
24
- fullUrl: string
25
- /** request's method. */
26
- method: string
27
- /** search params. */
28
- searchParams: Record<string, string>
29
- /** request's body */
30
- body: string | null | undefined
31
- /** request's headers */
32
- headers: Record<string, string | string[]> | null | undefined
33
-
34
- /** returns an Map of property / value pair */
35
- toMap (): Map<MockCallHistoryLog.MockCallHistoryLogProperties, string | Record<string, string | string[]> | null | undefined>
36
-
37
- /** returns a string computed with all key value pair */
38
- toString (): string
39
- }
40
-
41
- declare namespace MockCallHistory {
42
- export type FilterCallsOperator = 'AND' | 'OR'
43
-
44
- /** modify the filtering behavior */
45
- export interface FilterCallsOptions {
46
- /** the operator to apply when filtering. 'OR' will adds any MockCallHistoryLog matching any criteria given. 'AND' will adds only MockCallHistoryLog matching every criteria given. (default 'OR') */
47
- operator?: FilterCallsOperator | Lowercase<FilterCallsOperator>
48
- }
49
- /** a function to be executed for filtering MockCallHistoryLog */
50
- export type FilterCallsFunctionCriteria = (log: MockCallHistoryLog) => boolean
51
-
52
- /** parameter to filter MockCallHistoryLog */
53
- export type FilterCallsParameter = string | RegExp | undefined | null
54
-
55
- /** an object to execute multiple filtering at once */
56
- export interface FilterCallsObjectCriteria extends Record<string, FilterCallsParameter> {
57
- /** filter by request protocol. ie https: */
58
- protocol?: FilterCallsParameter;
59
- /** filter by request host. */
60
- host?: FilterCallsParameter;
61
- /** filter by request port. */
62
- port?: FilterCallsParameter;
63
- /** filter by request origin. */
64
- origin?: FilterCallsParameter;
65
- /** filter by request path. */
66
- path?: FilterCallsParameter;
67
- /** filter by request hash. */
68
- hash?: FilterCallsParameter;
69
- /** filter by request fullUrl. */
70
- fullUrl?: FilterCallsParameter;
71
- /** filter by request method. */
72
- method?: FilterCallsParameter;
73
- }
74
- }
75
-
76
- /** a call history to track requests configuration */
77
- declare class MockCallHistory {
78
- constructor (name: string)
79
- /** returns an array of MockCallHistoryLog. */
80
- calls (): Array<MockCallHistoryLog>
81
- /** returns the first MockCallHistoryLog */
82
- firstCall (): MockCallHistoryLog | undefined
83
- /** returns the last MockCallHistoryLog. */
84
- lastCall (): MockCallHistoryLog | undefined
85
- /** returns the nth MockCallHistoryLog. */
86
- nthCall (position: number): MockCallHistoryLog | undefined
87
- /** return all MockCallHistoryLog matching any of criteria given. if an object is used with multiple properties, you can change the operator to apply during filtering on options */
88
- filterCalls (criteria: MockCallHistory.FilterCallsFunctionCriteria | MockCallHistory.FilterCallsObjectCriteria | RegExp, options?: MockCallHistory.FilterCallsOptions): Array<MockCallHistoryLog>
89
- /** return all MockCallHistoryLog matching the given protocol. if a string is given, it is matched with includes */
90
- filterCallsByProtocol (protocol: MockCallHistory.FilterCallsParameter): Array<MockCallHistoryLog>
91
- /** return all MockCallHistoryLog matching the given host. if a string is given, it is matched with includes */
92
- filterCallsByHost (host: MockCallHistory.FilterCallsParameter): Array<MockCallHistoryLog>
93
- /** return all MockCallHistoryLog matching the given port. if a string is given, it is matched with includes */
94
- filterCallsByPort (port: MockCallHistory.FilterCallsParameter): Array<MockCallHistoryLog>
95
- /** return all MockCallHistoryLog matching the given origin. if a string is given, it is matched with includes */
96
- filterCallsByOrigin (origin: MockCallHistory.FilterCallsParameter): Array<MockCallHistoryLog>
97
- /** return all MockCallHistoryLog matching the given path. if a string is given, it is matched with includes */
98
- filterCallsByPath (path: MockCallHistory.FilterCallsParameter): Array<MockCallHistoryLog>
99
- /** return all MockCallHistoryLog matching the given hash. if a string is given, it is matched with includes */
100
- filterCallsByHash (hash: MockCallHistory.FilterCallsParameter): Array<MockCallHistoryLog>
101
- /** return all MockCallHistoryLog matching the given fullUrl. if a string is given, it is matched with includes */
102
- filterCallsByFullUrl (fullUrl: MockCallHistory.FilterCallsParameter): Array<MockCallHistoryLog>
103
- /** return all MockCallHistoryLog matching the given method. if a string is given, it is matched with includes */
104
- filterCallsByMethod (method: MockCallHistory.FilterCallsParameter): Array<MockCallHistoryLog>
105
- /** clear all MockCallHistoryLog on this MockCallHistory. */
106
- clear (): void
107
- /** use it with for..of loop or spread operator */
108
- [Symbol.iterator]: () => Generator<MockCallHistoryLog>
109
- }
110
-
111
- export { MockCallHistoryLog, MockCallHistory }
@@ -1,27 +0,0 @@
1
- import Client from './client'
2
- import Dispatcher from './dispatcher'
3
- import MockAgent from './mock-agent'
4
- import { MockInterceptor, Interceptable } from './mock-interceptor'
5
-
6
- export default MockClient
7
-
8
- /** MockClient extends the Client API and allows one to mock requests. */
9
- declare class MockClient extends Client implements Interceptable {
10
- constructor (origin: string, options: MockClient.Options)
11
- /** Intercepts any matching requests that use the same origin as this mock client. */
12
- intercept (options: MockInterceptor.Options): MockInterceptor
13
- /** Dispatches a mocked request. */
14
- dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean
15
- /** Closes the mock client and gracefully waits for enqueued requests to complete. */
16
- close (): Promise<void>
17
- /** Clean up all the prepared mocks. */
18
- cleanMocks (): void
19
- }
20
-
21
- declare namespace MockClient {
22
- /** MockClient options. */
23
- export interface Options extends Client.Options {
24
- /** The agent to associate this MockClient with. */
25
- agent: MockAgent;
26
- }
27
- }
@@ -1,12 +0,0 @@
1
- import Errors from './errors'
2
-
3
- export default MockErrors
4
-
5
- declare namespace MockErrors {
6
- /** The request does not match any registered mock dispatches. */
7
- export class MockNotMatchedError extends Errors.UndiciError {
8
- constructor (message?: string)
9
- name: 'MockNotMatchedError'
10
- code: 'UND_MOCK_ERR_MOCK_NOT_MATCHED'
11
- }
12
- }
@@ -1,94 +0,0 @@
1
- import { IncomingHttpHeaders } from './header'
2
- import Dispatcher from './dispatcher'
3
- import { BodyInit, Headers } from './fetch'
4
-
5
- /** The scope associated with a mock dispatch. */
6
- declare class MockScope<TData extends object = object> {
7
- constructor (mockDispatch: MockInterceptor.MockDispatch<TData>)
8
- /** Delay a reply by a set amount of time in ms. */
9
- delay (waitInMs: number): MockScope<TData>
10
- /** Persist the defined mock data for the associated reply. It will return the defined mock data indefinitely. */
11
- persist (): MockScope<TData>
12
- /** Define a reply for a set amount of matching requests. */
13
- times (repeatTimes: number): MockScope<TData>
14
- }
15
-
16
- /** The interceptor for a Mock. */
17
- declare class MockInterceptor {
18
- constructor (options: MockInterceptor.Options, mockDispatches: MockInterceptor.MockDispatch[])
19
- /** Mock an undici request with the defined reply. */
20
- reply<TData extends object = object>(replyOptionsCallback: MockInterceptor.MockReplyOptionsCallback<TData>): MockScope<TData>
21
- reply<TData extends object = object>(
22
- statusCode: number,
23
- data?: TData | Buffer | string | MockInterceptor.MockResponseDataHandler<TData>,
24
- responseOptions?: MockInterceptor.MockResponseOptions
25
- ): MockScope<TData>
26
- /** Mock an undici request by throwing the defined reply error. */
27
- replyWithError<TError extends Error = Error>(error: TError): MockScope
28
- /** Set default reply headers on the interceptor for subsequent mocked replies. */
29
- defaultReplyHeaders (headers: IncomingHttpHeaders): MockInterceptor
30
- /** Set default reply trailers on the interceptor for subsequent mocked replies. */
31
- defaultReplyTrailers (trailers: Record<string, string>): MockInterceptor
32
- /** Set automatically calculated content-length header on subsequent mocked replies. */
33
- replyContentLength (): MockInterceptor
34
- }
35
-
36
- declare namespace MockInterceptor {
37
- /** MockInterceptor options. */
38
- export interface Options {
39
- /** Path to intercept on. */
40
- path: string | RegExp | ((path: string) => boolean);
41
- /** Method to intercept on. Defaults to GET. */
42
- method?: string | RegExp | ((method: string) => boolean);
43
- /** Body to intercept on. */
44
- body?: string | RegExp | ((body: string) => boolean);
45
- /** Headers to intercept on. */
46
- headers?: Record<string, string | RegExp | ((body: string) => boolean)> | ((headers: Record<string, string>) => boolean);
47
- /** Query params to intercept on */
48
- query?: Record<string, any>;
49
- }
50
- export interface MockDispatch<TData extends object = object, TError extends Error = Error> extends Options {
51
- times: number | null;
52
- persist: boolean;
53
- consumed: boolean;
54
- data: MockDispatchData<TData, TError>;
55
- }
56
- export interface MockDispatchData<TData extends object = object, TError extends Error = Error> extends MockResponseOptions {
57
- error: TError | null;
58
- statusCode?: number;
59
- data?: TData | string;
60
- }
61
- export interface MockResponseOptions {
62
- headers?: IncomingHttpHeaders;
63
- trailers?: Record<string, string>;
64
- }
65
-
66
- export interface MockResponseCallbackOptions {
67
- path: string;
68
- method: string;
69
- headers?: Headers | Record<string, string>;
70
- origin?: string;
71
- body?: BodyInit | Dispatcher.DispatchOptions['body'] | null;
72
- }
73
-
74
- export type MockResponseDataHandler<TData extends object = object> = (
75
- opts: MockResponseCallbackOptions
76
- ) => TData | Buffer | string
77
-
78
- export type MockReplyOptionsCallback<TData extends object = object> = (
79
- opts: MockResponseCallbackOptions
80
- ) => { statusCode: number, data?: TData | Buffer | string, responseOptions?: MockResponseOptions }
81
- }
82
-
83
- interface Interceptable extends Dispatcher {
84
- /** Intercepts any matching requests that use the same origin as this mock client. */
85
- intercept(options: MockInterceptor.Options): MockInterceptor;
86
- /** Clean up all the prepared mocks. */
87
- cleanMocks (): void
88
- }
89
-
90
- export {
91
- Interceptable,
92
- MockInterceptor,
93
- MockScope
94
- }
@@ -1,27 +0,0 @@
1
- import Pool from './pool'
2
- import MockAgent from './mock-agent'
3
- import { Interceptable, MockInterceptor } from './mock-interceptor'
4
- import Dispatcher from './dispatcher'
5
-
6
- export default MockPool
7
-
8
- /** MockPool extends the Pool API and allows one to mock requests. */
9
- declare class MockPool extends Pool implements Interceptable {
10
- constructor (origin: string, options: MockPool.Options)
11
- /** Intercepts any matching requests that use the same origin as this mock pool. */
12
- intercept (options: MockInterceptor.Options): MockInterceptor
13
- /** Dispatches a mocked request. */
14
- dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean
15
- /** Closes the mock pool and gracefully waits for enqueued requests to complete. */
16
- close (): Promise<void>
17
- /** Clean up all the prepared mocks. */
18
- cleanMocks (): void
19
- }
20
-
21
- declare namespace MockPool {
22
- /** MockPool options. */
23
- export interface Options extends Pool.Options {
24
- /** The agent to associate this MockPool with. */
25
- agent: MockAgent;
26
- }
27
- }
@@ -1,55 +0,0 @@
1
- {
2
- "name": "undici-types",
3
- "version": "7.16.0",
4
- "description": "A stand-alone types package for Undici",
5
- "homepage": "https://undici.nodejs.org",
6
- "bugs": {
7
- "url": "https://github.com/nodejs/undici/issues"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/nodejs/undici.git"
12
- },
13
- "license": "MIT",
14
- "types": "index.d.ts",
15
- "files": [
16
- "*.d.ts"
17
- ],
18
- "contributors": [
19
- {
20
- "name": "Daniele Belardi",
21
- "url": "https://github.com/dnlup",
22
- "author": true
23
- },
24
- {
25
- "name": "Ethan Arrowood",
26
- "url": "https://github.com/ethan-arrowood",
27
- "author": true
28
- },
29
- {
30
- "name": "Matteo Collina",
31
- "url": "https://github.com/mcollina",
32
- "author": true
33
- },
34
- {
35
- "name": "Matthew Aitken",
36
- "url": "https://github.com/KhafraDev",
37
- "author": true
38
- },
39
- {
40
- "name": "Robert Nagy",
41
- "url": "https://github.com/ronag",
42
- "author": true
43
- },
44
- {
45
- "name": "Szymon Marczak",
46
- "url": "https://github.com/szmarczak",
47
- "author": true
48
- },
49
- {
50
- "name": "Tomas Della Vedova",
51
- "url": "https://github.com/delvedor",
52
- "author": true
53
- }
54
- ]
55
- }
@@ -1,29 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- // See https://github.com/nodejs/undici/issues/1740
4
-
5
- export interface EventInit {
6
- bubbles?: boolean
7
- cancelable?: boolean
8
- composed?: boolean
9
- }
10
-
11
- export interface EventListenerOptions {
12
- capture?: boolean
13
- }
14
-
15
- export interface AddEventListenerOptions extends EventListenerOptions {
16
- once?: boolean
17
- passive?: boolean
18
- signal?: AbortSignal
19
- }
20
-
21
- export type EventListenerOrEventListenerObject = EventListener | EventListenerObject
22
-
23
- export interface EventListenerObject {
24
- handleEvent (object: Event): void
25
- }
26
-
27
- export interface EventListener {
28
- (evt: Event): void
29
- }
@@ -1,19 +0,0 @@
1
- import Pool from './pool'
2
-
3
- export default PoolStats
4
-
5
- declare class PoolStats {
6
- constructor (pool: Pool)
7
- /** Number of open socket connections in this pool. */
8
- connected: number
9
- /** Number of open socket connections in this pool that do not have an active request. */
10
- free: number
11
- /** Number of pending requests across all clients in this pool. */
12
- pending: number
13
- /** Number of queued requests across all clients in this pool. */
14
- queued: number
15
- /** Number of currently active requests across all clients in this pool. */
16
- running: number
17
- /** Number of active, pending, or queued requests across all clients in this pool. */
18
- size: number
19
- }
@@ -1,41 +0,0 @@
1
- import Client from './client'
2
- import TPoolStats from './pool-stats'
3
- import { URL } from 'url'
4
- import Dispatcher from './dispatcher'
5
-
6
- export default Pool
7
-
8
- type PoolConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>
9
-
10
- declare class Pool extends Dispatcher {
11
- constructor (url: string | URL, options?: Pool.Options)
12
- /** `true` after `pool.close()` has been called. */
13
- closed: boolean
14
- /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
15
- destroyed: boolean
16
- /** Aggregate stats for a Pool. */
17
- readonly stats: TPoolStats
18
-
19
- // Override dispatcher APIs.
20
- override connect (
21
- options: PoolConnectOptions
22
- ): Promise<Dispatcher.ConnectData>
23
- override connect (
24
- options: PoolConnectOptions,
25
- callback: (err: Error | null, data: Dispatcher.ConnectData) => void
26
- ): void
27
- }
28
-
29
- declare namespace Pool {
30
- export type PoolStats = TPoolStats
31
- export interface Options extends Client.Options {
32
- /** Default: `(origin, opts) => new Client(origin, opts)`. */
33
- factory?(origin: URL, opts: object): Dispatcher;
34
- /** The max number of clients to create. `null` if no limit. Default `null`. */
35
- connections?: number | null;
36
- /** The amount of time before a client is removed from the pool and closed. `null` if no time limit. Default `null` */
37
- clientTtl?: number | null;
38
-
39
- interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options['interceptors']
40
- }
41
- }
@@ -1,29 +0,0 @@
1
- import Agent from './agent'
2
- import buildConnector from './connector'
3
- import Dispatcher from './dispatcher'
4
- import { IncomingHttpHeaders } from './header'
5
-
6
- export default ProxyAgent
7
-
8
- declare class ProxyAgent extends Dispatcher {
9
- constructor (options: ProxyAgent.Options | string)
10
-
11
- dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean
12
- close (): Promise<void>
13
- }
14
-
15
- declare namespace ProxyAgent {
16
- export interface Options extends Agent.Options {
17
- uri: string;
18
- /**
19
- * @deprecated use opts.token
20
- */
21
- auth?: string;
22
- token?: string;
23
- headers?: IncomingHttpHeaders;
24
- requestTls?: buildConnector.BuildOptions;
25
- proxyTls?: buildConnector.BuildOptions;
26
- clientFactory?(origin: URL, opts: object): Dispatcher;
27
- proxyTunnel?: boolean;
28
- }
29
- }