tedious 16.4.1 → 16.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/benchmarks/bulk-load/iterable.js +1 -1
  2. package/benchmarks/common.js +2 -4
  3. package/benchmarks/package-lock.json +21173 -0
  4. package/benchmarks/package.json +11 -0
  5. package/benchmarks/query/call-tvp.js +1 -1
  6. package/benchmarks/query/insert-varbinary.js +1 -1
  7. package/benchmarks/query/select-many-rows.js +1 -1
  8. package/benchmarks/query/select-nvarchar.js +1 -1
  9. package/benchmarks/query/select-varbinary.js +1 -1
  10. package/benchmarks/request/rpcrequest-payload-tvp.js +2 -2
  11. package/benchmarks/request/rpcrequest-payload-varbinary.js +2 -2
  12. package/benchmarks/token-parser/colmetadata-token.js +4 -2
  13. package/benchmarks/token-parser/done-token.js +5 -2
  14. package/benchmarks/token-parser/simple-tokens.js +8 -2
  15. package/lib/always-encrypted/aead-aes-256-cbc-hmac-algorithm.js +1 -8
  16. package/lib/always-encrypted/aead-aes-256-cbc-hmac-algorithm.js.map +1 -1
  17. package/lib/always-encrypted/aead-aes-256-cbc-hmac-encryption-key.js +1 -8
  18. package/lib/always-encrypted/aead-aes-256-cbc-hmac-encryption-key.js.map +1 -1
  19. package/lib/always-encrypted/cek-entry.js +1 -7
  20. package/lib/always-encrypted/cek-entry.js.map +1 -1
  21. package/lib/always-encrypted/keystore-provider-azure-key-vault.js +1 -8
  22. package/lib/always-encrypted/keystore-provider-azure-key-vault.js.map +1 -1
  23. package/lib/always-encrypted/symmetric-key.js +1 -2
  24. package/lib/always-encrypted/symmetric-key.js.map +1 -1
  25. package/lib/bulk-load-payload.js +1 -3
  26. package/lib/bulk-load-payload.js.map +1 -1
  27. package/lib/bulk-load.js +15 -23
  28. package/lib/bulk-load.js.map +1 -1
  29. package/lib/collation.js +1 -7
  30. package/lib/collation.js.map +1 -1
  31. package/lib/connection.js +22 -28
  32. package/lib/connection.js.map +1 -1
  33. package/lib/debug.js +1 -4
  34. package/lib/debug.js.map +1 -1
  35. package/lib/errors/abort-error.js +1 -2
  36. package/lib/errors/abort-error.js.map +1 -1
  37. package/lib/errors/timeout-error.js +1 -2
  38. package/lib/errors/timeout-error.js.map +1 -1
  39. package/lib/errors.js +1 -10
  40. package/lib/errors.js.map +1 -1
  41. package/lib/incoming-message-stream.js +1 -4
  42. package/lib/incoming-message-stream.js.map +1 -1
  43. package/lib/login7-payload.js +1 -23
  44. package/lib/login7-payload.js.map +1 -1
  45. package/lib/message-io.js +1 -8
  46. package/lib/message-io.js.map +1 -1
  47. package/lib/message.js +1 -4
  48. package/lib/message.js.map +1 -1
  49. package/lib/ntlm-payload.js +1 -2
  50. package/lib/ntlm-payload.js.map +1 -1
  51. package/lib/outgoing-message-stream.js +1 -5
  52. package/lib/outgoing-message-stream.js.map +1 -1
  53. package/lib/packet.js +1 -2
  54. package/lib/packet.js.map +1 -1
  55. package/lib/prelogin-payload.js +1 -11
  56. package/lib/prelogin-payload.js.map +1 -1
  57. package/lib/request.js +13 -19
  58. package/lib/request.js.map +1 -1
  59. package/lib/rpcrequest-payload.js +1 -6
  60. package/lib/rpcrequest-payload.js.map +1 -1
  61. package/lib/sqlbatch-payload.js +1 -4
  62. package/lib/sqlbatch-payload.js.map +1 -1
  63. package/lib/token/handler.js +3 -13
  64. package/lib/token/handler.js.map +1 -1
  65. package/lib/token/stream-parser.js +1 -10
  66. package/lib/token/stream-parser.js.map +1 -1
  67. package/lib/token/token-stream-parser.js +1 -4
  68. package/lib/token/token-stream-parser.js.map +1 -1
  69. package/lib/token/token.js +2 -88
  70. package/lib/token/token.js.map +1 -1
  71. package/lib/tracking-buffer/writable-tracking-buffer.js +1 -7
  72. package/lib/tracking-buffer/writable-tracking-buffer.js.map +1 -1
  73. package/lib/transaction.js +1 -4
  74. package/lib/transaction.js.map +1 -1
  75. package/package.json +1 -1
  76. package/benchmarks/bulk-load/stream.js +0 -62
  77. package/benchmarks/bulk-load/sync.js +0 -59
@@ -2,7 +2,7 @@
2
2
 
3
3
  const { createBenchmark, createConnection } = require('../common');
4
4
 
5
- const { Request, TYPES } = require('../../src/tedious');
5
+ const { Request, TYPES } = require('tedious');
6
6
 
7
7
  const bench = createBenchmark(main, {
8
8
  n: [10, 100],
@@ -12,9 +12,7 @@ const {
12
12
  }
13
13
  } = require('perf_hooks');
14
14
 
15
- require('@babel/register')({ extensions: ['.ts'] });
16
-
17
- const { Connection } = require('../src/tedious');
15
+ const { Connection } = require('tedious');
18
16
 
19
17
  // The `Benchmark` class is taken from Node.js - see
20
18
  // https://github.com/nodejs/node/blob/0f96dc266fd0cd8c1baa82ce7eb951c11b29a331/benchmark/common.js
@@ -65,7 +63,7 @@ function Benchmark(fn, configs, options) {
65
63
 
66
64
  for (let i = 0; i < length; i++) {
67
65
  const entry = entries[i];
68
- const stats = this._gcStats[entry.kind];
66
+ const stats = this._gcStats[entry.detail.kind];
69
67
 
70
68
  if (stats) {
71
69
  stats.count += 1;