typespeed 2.0.13 → 2.0.16

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 (222) hide show
  1. package/dist/core.decorator.js +0 -1
  2. package/dist/database.decorator.js +0 -1
  3. package/dist/default/express-server.class.js +0 -1
  4. package/dist/default/log-default.class.js +0 -1
  5. package/dist/default/node-cache.class.js +0 -1
  6. package/dist/default/rabbitmq.class.js +0 -1
  7. package/dist/default/read-write-db.class.js +0 -1
  8. package/dist/default/redis.class.js +0 -1
  9. package/dist/factory/cache-factory.class.js +0 -1
  10. package/dist/factory/data-source-factory.class.js +0 -1
  11. package/dist/factory/log-factory.class.js +0 -1
  12. package/dist/factory/server-factory.class.js +0 -1
  13. package/dist/route.decorator.js +0 -1
  14. package/dist/scaffold/command.js +0 -1
  15. package/dist/typespeed.d.ts +133 -12
  16. package/dist/typespeed.js +1 -1
  17. package/package.json +2 -2
  18. package/src/typespeed.d.ts +133 -0
  19. package/src/typespeed.ts +2 -1
  20. package/test/node_modules/.package-lock.json +112 -4
  21. package/test/node_modules/@acuminous/bitsyntax/.github/workflows/node-js-ci.yml +17 -0
  22. package/test/node_modules/@acuminous/bitsyntax/.github/workflows/node-js-publish.yml +30 -0
  23. package/test/node_modules/@acuminous/bitsyntax/LICENSE +6 -0
  24. package/test/node_modules/@acuminous/bitsyntax/LICENSE-MIT +21 -0
  25. package/test/node_modules/@acuminous/bitsyntax/Makefile +15 -0
  26. package/test/node_modules/@acuminous/bitsyntax/README.md +308 -0
  27. package/test/node_modules/@acuminous/bitsyntax/index.js +10 -0
  28. package/test/node_modules/@acuminous/bitsyntax/lib/compile.js +303 -0
  29. package/test/node_modules/@acuminous/bitsyntax/lib/constructor.js +142 -0
  30. package/test/node_modules/@acuminous/bitsyntax/lib/grammar.pegjs +67 -0
  31. package/test/node_modules/@acuminous/bitsyntax/lib/interp.js +232 -0
  32. package/test/node_modules/@acuminous/bitsyntax/lib/parse.js +32 -0
  33. package/test/node_modules/@acuminous/bitsyntax/lib/parser.js +1173 -0
  34. package/test/node_modules/@acuminous/bitsyntax/lib/pattern.js +119 -0
  35. package/test/node_modules/@acuminous/bitsyntax/package.json +36 -0
  36. package/test/node_modules/@acuminous/bitsyntax/test/consing.test.js +50 -0
  37. package/test/node_modules/@acuminous/bitsyntax/test/matching.test.js +193 -0
  38. package/test/node_modules/@types/node/README.md +1 -1
  39. package/test/node_modules/@types/node/buffer.d.ts +5 -2
  40. package/test/node_modules/@types/node/child_process.d.ts +27 -0
  41. package/test/node_modules/@types/node/globals.d.ts +1 -0
  42. package/test/node_modules/@types/node/package.json +2 -2
  43. package/test/node_modules/@types/node/test.d.ts +43 -20
  44. package/test/node_modules/@types/node/ts4.8/buffer.d.ts +5 -2
  45. package/test/node_modules/@types/node/ts4.8/child_process.d.ts +27 -0
  46. package/test/node_modules/@types/node/ts4.8/globals.d.ts +1 -0
  47. package/test/node_modules/@types/node/ts4.8/test.d.ts +43 -19
  48. package/test/node_modules/@types/node/ts4.8/url.d.ts +3 -3
  49. package/test/node_modules/@types/node/ts4.8/util.d.ts +1 -1
  50. package/test/node_modules/@types/node/url.d.ts +3 -3
  51. package/test/node_modules/@types/node/util.d.ts +1 -1
  52. package/test/node_modules/amqplib/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  53. package/test/node_modules/amqplib/.github/workflows/test.yml +38 -0
  54. package/test/node_modules/amqplib/CHANGELOG.md +430 -0
  55. package/test/node_modules/amqplib/LICENSE +6 -0
  56. package/test/node_modules/amqplib/LICENSE-MIT +21 -0
  57. package/test/node_modules/amqplib/Makefile +47 -0
  58. package/test/node_modules/amqplib/README.md +157 -0
  59. package/test/node_modules/amqplib/bin/generate-defs.js +722 -0
  60. package/test/node_modules/amqplib/callback_api.js +22 -0
  61. package/test/node_modules/amqplib/channel_api.js +16 -0
  62. package/test/node_modules/amqplib/examples/headers.js +42 -0
  63. package/test/node_modules/amqplib/examples/receive_generator.js +39 -0
  64. package/test/node_modules/amqplib/examples/send_generators.js +42 -0
  65. package/test/node_modules/amqplib/examples/ssl.js +64 -0
  66. package/test/node_modules/amqplib/examples/tutorials/README.md +93 -0
  67. package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log.js +28 -0
  68. package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log_direct.js +30 -0
  69. package/test/node_modules/amqplib/examples/tutorials/callback_api/emit_log_topic.js +27 -0
  70. package/test/node_modules/amqplib/examples/tutorials/callback_api/new_task.js +27 -0
  71. package/test/node_modules/amqplib/examples/tutorials/callback_api/receive.js +30 -0
  72. package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs.js +36 -0
  73. package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs_direct.js +56 -0
  74. package/test/node_modules/amqplib/examples/tutorials/callback_api/receive_logs_topic.js +55 -0
  75. package/test/node_modules/amqplib/examples/tutorials/callback_api/rpc_client.js +49 -0
  76. package/test/node_modules/amqplib/examples/tutorials/callback_api/rpc_server.js +45 -0
  77. package/test/node_modules/amqplib/examples/tutorials/callback_api/send.js +29 -0
  78. package/test/node_modules/amqplib/examples/tutorials/callback_api/worker.js +35 -0
  79. package/test/node_modules/amqplib/examples/tutorials/emit_log.js +19 -0
  80. package/test/node_modules/amqplib/examples/tutorials/emit_log_direct.js +20 -0
  81. package/test/node_modules/amqplib/examples/tutorials/emit_log_topic.js +19 -0
  82. package/test/node_modules/amqplib/examples/tutorials/new_task.js +18 -0
  83. package/test/node_modules/amqplib/examples/tutorials/package.json +16 -0
  84. package/test/node_modules/amqplib/examples/tutorials/receive.js +21 -0
  85. package/test/node_modules/amqplib/examples/tutorials/receive_logs.js +28 -0
  86. package/test/node_modules/amqplib/examples/tutorials/receive_logs_direct.js +44 -0
  87. package/test/node_modules/amqplib/examples/tutorials/receive_logs_topic.js +43 -0
  88. package/test/node_modules/amqplib/examples/tutorials/rpc_client.js +52 -0
  89. package/test/node_modules/amqplib/examples/tutorials/rpc_server.js +39 -0
  90. package/test/node_modules/amqplib/examples/tutorials/send.js +23 -0
  91. package/test/node_modules/amqplib/examples/tutorials/worker.js +28 -0
  92. package/test/node_modules/amqplib/examples/waitForConfirms.js +22 -0
  93. package/test/node_modules/amqplib/lib/api_args.js +314 -0
  94. package/test/node_modules/amqplib/lib/bitset.js +130 -0
  95. package/test/node_modules/amqplib/lib/callback_model.js +327 -0
  96. package/test/node_modules/amqplib/lib/channel.js +499 -0
  97. package/test/node_modules/amqplib/lib/channel_model.js +302 -0
  98. package/test/node_modules/amqplib/lib/codec.js +321 -0
  99. package/test/node_modules/amqplib/lib/connect.js +189 -0
  100. package/test/node_modules/amqplib/lib/connection.js +663 -0
  101. package/test/node_modules/amqplib/lib/credentials.js +42 -0
  102. package/test/node_modules/amqplib/lib/defs.js +4966 -0
  103. package/test/node_modules/amqplib/lib/error.js +24 -0
  104. package/test/node_modules/amqplib/lib/format.js +40 -0
  105. package/test/node_modules/amqplib/lib/frame.js +113 -0
  106. package/test/node_modules/amqplib/lib/heartbeat.js +89 -0
  107. package/test/node_modules/amqplib/lib/mux.js +129 -0
  108. package/test/node_modules/amqplib/package.json +37 -0
  109. package/test/node_modules/amqplib/test/bitset.js +69 -0
  110. package/test/node_modules/amqplib/test/callback_api.js +312 -0
  111. package/test/node_modules/amqplib/test/channel.js +621 -0
  112. package/test/node_modules/amqplib/test/channel_api.js +596 -0
  113. package/test/node_modules/amqplib/test/codec.js +237 -0
  114. package/test/node_modules/amqplib/test/connect.js +197 -0
  115. package/test/node_modules/amqplib/test/connection.js +390 -0
  116. package/test/node_modules/amqplib/test/data.js +254 -0
  117. package/test/node_modules/amqplib/test/frame.js +198 -0
  118. package/test/node_modules/amqplib/test/mux.js +204 -0
  119. package/test/node_modules/amqplib/test/util.js +219 -0
  120. package/test/node_modules/buffer-more-ints/.travis.yml +6 -0
  121. package/test/node_modules/buffer-more-ints/LICENSE +19 -0
  122. package/test/node_modules/buffer-more-ints/README.md +69 -0
  123. package/test/node_modules/buffer-more-ints/buffer-more-ints-tests.js +183 -0
  124. package/test/node_modules/buffer-more-ints/buffer-more-ints.js +432 -0
  125. package/test/node_modules/buffer-more-ints/package.json +19 -0
  126. package/test/node_modules/buffer-more-ints/polyfill.js +71 -0
  127. package/test/node_modules/core-util-is/LICENSE +19 -0
  128. package/test/node_modules/core-util-is/README.md +3 -0
  129. package/test/node_modules/core-util-is/lib/util.js +107 -0
  130. package/test/node_modules/core-util-is/package.json +38 -0
  131. package/test/node_modules/debug/LICENSE +20 -0
  132. package/test/node_modules/debug/README.md +481 -0
  133. package/test/node_modules/debug/package.json +59 -0
  134. package/test/node_modules/debug/src/browser.js +269 -0
  135. package/test/node_modules/debug/src/common.js +274 -0
  136. package/test/node_modules/debug/src/index.js +10 -0
  137. package/test/node_modules/debug/src/node.js +263 -0
  138. package/test/node_modules/inherits/LICENSE +16 -0
  139. package/test/node_modules/inherits/README.md +42 -0
  140. package/test/node_modules/inherits/inherits.js +9 -0
  141. package/test/node_modules/inherits/inherits_browser.js +27 -0
  142. package/test/node_modules/inherits/package.json +29 -0
  143. package/test/node_modules/isarray/README.md +54 -0
  144. package/test/node_modules/isarray/build/build.js +209 -0
  145. package/test/node_modules/isarray/component.json +19 -0
  146. package/test/node_modules/isarray/index.js +3 -0
  147. package/test/node_modules/isarray/package.json +25 -0
  148. package/test/node_modules/ms/index.js +162 -0
  149. package/test/node_modules/ms/license.md +21 -0
  150. package/test/node_modules/ms/package.json +37 -0
  151. package/test/node_modules/ms/readme.md +60 -0
  152. package/test/node_modules/querystringify/LICENSE +22 -0
  153. package/test/node_modules/querystringify/README.md +61 -0
  154. package/test/node_modules/querystringify/index.js +118 -0
  155. package/test/node_modules/querystringify/package.json +38 -0
  156. package/test/node_modules/readable-stream/LICENSE +18 -0
  157. package/test/node_modules/readable-stream/README.md +15 -0
  158. package/test/node_modules/readable-stream/duplex.js +1 -0
  159. package/test/node_modules/readable-stream/float.patch +923 -0
  160. package/test/node_modules/readable-stream/lib/_stream_duplex.js +89 -0
  161. package/test/node_modules/readable-stream/lib/_stream_passthrough.js +46 -0
  162. package/test/node_modules/readable-stream/lib/_stream_readable.js +951 -0
  163. package/test/node_modules/readable-stream/lib/_stream_transform.js +209 -0
  164. package/test/node_modules/readable-stream/lib/_stream_writable.js +477 -0
  165. package/test/node_modules/readable-stream/package.json +32 -0
  166. package/test/node_modules/readable-stream/passthrough.js +1 -0
  167. package/test/node_modules/readable-stream/readable.js +10 -0
  168. package/test/node_modules/readable-stream/transform.js +1 -0
  169. package/test/node_modules/readable-stream/writable.js +1 -0
  170. package/test/node_modules/requires-port/.travis.yml +19 -0
  171. package/test/node_modules/requires-port/LICENSE +22 -0
  172. package/test/node_modules/requires-port/README.md +47 -0
  173. package/test/node_modules/requires-port/index.js +38 -0
  174. package/test/node_modules/requires-port/package.json +47 -0
  175. package/test/node_modules/requires-port/test.js +98 -0
  176. package/test/node_modules/safe-buffer/LICENSE +21 -0
  177. package/test/node_modules/safe-buffer/README.md +584 -0
  178. package/test/node_modules/safe-buffer/index.d.ts +187 -0
  179. package/test/node_modules/safe-buffer/index.js +62 -0
  180. package/test/node_modules/safe-buffer/package.json +37 -0
  181. package/test/node_modules/string_decoder/LICENSE +20 -0
  182. package/test/node_modules/string_decoder/README.md +7 -0
  183. package/test/node_modules/string_decoder/index.js +221 -0
  184. package/test/node_modules/string_decoder/package.json +25 -0
  185. package/test/node_modules/url-parse/LICENSE +22 -0
  186. package/test/node_modules/url-parse/README.md +153 -0
  187. package/test/node_modules/url-parse/dist/url-parse.js +755 -0
  188. package/test/node_modules/url-parse/dist/url-parse.min.js +1 -0
  189. package/test/node_modules/url-parse/dist/url-parse.min.js.map +1 -0
  190. package/test/node_modules/url-parse/index.js +589 -0
  191. package/test/node_modules/url-parse/package.json +49 -0
  192. package/test/src/test-mq.class.ts +1 -2
  193. package/tsconfig.json +4 -3
  194. package/dist/core.decorator.d.ts +0 -18
  195. package/dist/core.decorator.js.map +0 -1
  196. package/dist/database.decorator.d.ts +0 -24
  197. package/dist/database.decorator.js.map +0 -1
  198. package/dist/default/express-server.class.d.ts +0 -15
  199. package/dist/default/express-server.class.js.map +0 -1
  200. package/dist/default/log-default.class.d.ts +0 -6
  201. package/dist/default/log-default.class.js.map +0 -1
  202. package/dist/default/node-cache.class.d.ts +0 -13
  203. package/dist/default/node-cache.class.js.map +0 -1
  204. package/dist/default/rabbitmq.class.d.ts +0 -9
  205. package/dist/default/rabbitmq.class.js.map +0 -1
  206. package/dist/default/read-write-db.class.d.ts +0 -10
  207. package/dist/default/read-write-db.class.js.map +0 -1
  208. package/dist/default/redis.class.d.ts +0 -5
  209. package/dist/default/redis.class.js.map +0 -1
  210. package/dist/factory/cache-factory.class.d.ts +0 -7
  211. package/dist/factory/cache-factory.class.js.map +0 -1
  212. package/dist/factory/data-source-factory.class.d.ts +0 -4
  213. package/dist/factory/data-source-factory.class.js.map +0 -1
  214. package/dist/factory/log-factory.class.d.ts +0 -4
  215. package/dist/factory/log-factory.class.js.map +0 -1
  216. package/dist/factory/server-factory.class.d.ts +0 -6
  217. package/dist/factory/server-factory.class.js.map +0 -1
  218. package/dist/route.decorator.d.ts +0 -8
  219. package/dist/route.decorator.js.map +0 -1
  220. package/dist/scaffold/command.d.ts +0 -2
  221. package/dist/scaffold/command.js.map +0 -1
  222. package/dist/typespeed.js.map +0 -1
@@ -634,6 +634,15 @@ declare module 'child_process' {
634
634
  }
635
635
  interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
636
636
  argv0?: string | undefined;
637
+ /**
638
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
639
+ * If passed as an array, the first element is used for `stdin`, the second for
640
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
641
+ * specify the `stdio` behavior beyond the standard streams. See
642
+ * {@link ChildProcess.stdio} for more information.
643
+ *
644
+ * @default 'pipe'
645
+ */
637
646
  stdio?: StdioOptions | undefined;
638
647
  shell?: boolean | string | undefined;
639
648
  windowsVerbatimArguments?: boolean | undefined;
@@ -1195,6 +1204,15 @@ declare module 'child_process' {
1195
1204
  execPath?: string | undefined;
1196
1205
  execArgv?: string[] | undefined;
1197
1206
  silent?: boolean | undefined;
1207
+ /**
1208
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
1209
+ * If passed as an array, the first element is used for `stdin`, the second for
1210
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
1211
+ * specify the `stdio` behavior beyond the standard streams. See
1212
+ * {@link ChildProcess.stdio} for more information.
1213
+ *
1214
+ * @default 'pipe'
1215
+ */
1198
1216
  stdio?: StdioOptions | undefined;
1199
1217
  detached?: boolean | undefined;
1200
1218
  windowsVerbatimArguments?: boolean | undefined;
@@ -1295,6 +1313,15 @@ declare module 'child_process' {
1295
1313
  function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
1296
1314
  interface CommonExecOptions extends CommonOptions {
1297
1315
  input?: string | NodeJS.ArrayBufferView | undefined;
1316
+ /**
1317
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
1318
+ * If passed as an array, the first element is used for `stdin`, the second for
1319
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
1320
+ * specify the `stdio` behavior beyond the standard streams. See
1321
+ * {@link ChildProcess.stdio} for more information.
1322
+ *
1323
+ * @default 'pipe'
1324
+ */
1298
1325
  stdio?: StdioOptions | undefined;
1299
1326
  killSignal?: NodeJS.Signals | number | undefined;
1300
1327
  maxBuffer?: number | undefined;
@@ -64,6 +64,7 @@ interface AbortSignal extends EventTarget {
64
64
  readonly aborted: boolean;
65
65
  readonly reason: any;
66
66
  onabort: null | ((this: AbortSignal, event: Event) => any);
67
+ throwIfAborted(): void;
67
68
  }
68
69
 
69
70
  declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
@@ -49,7 +49,19 @@ declare module 'node:test' {
49
49
  function test(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
50
50
  function test(options?: TestOptions, fn?: TestFn): Promise<void>;
51
51
  function test(fn?: TestFn): Promise<void>;
52
-
52
+ namespace test {
53
+ export {
54
+ after,
55
+ afterEach,
56
+ before,
57
+ beforeEach,
58
+ describe,
59
+ it,
60
+ run,
61
+ mock,
62
+ test
63
+ };
64
+ }
53
65
  /**
54
66
  * @since v18.6.0
55
67
  * @param name The name of the suite, which is displayed when reporting suite results.
@@ -73,6 +85,15 @@ declare module 'node:test' {
73
85
  function todo(name?: string, fn?: SuiteFn): void;
74
86
  function todo(options?: TestOptions, fn?: SuiteFn): void;
75
87
  function todo(fn?: SuiteFn): void;
88
+
89
+ /**
90
+ * Shorthand for marking a suite as `only`, same as `describe([name], { only: true }[, fn])`.
91
+ * @since v18.15.0
92
+ */
93
+ function only(name?: string, options?: TestOptions, fn?: SuiteFn): void;
94
+ function only(name?: string, fn?: SuiteFn): void;
95
+ function only(options?: TestOptions, fn?: SuiteFn): void;
96
+ function only(fn?: SuiteFn): void;
76
97
  }
77
98
 
78
99
  /**
@@ -83,22 +104,31 @@ declare module 'node:test' {
83
104
  * @param fn The function under test. If the test uses callbacks, the callback function is
84
105
  * passed as the second argument. Default: A no-op function.
85
106
  */
86
- function it(name?: string, options?: TestOptions, fn?: ItFn): void;
87
- function it(name?: string, fn?: ItFn): void;
88
- function it(options?: TestOptions, fn?: ItFn): void;
89
- function it(fn?: ItFn): void;
107
+ function it(name?: string, options?: TestOptions, fn?: TestFn): void;
108
+ function it(name?: string, fn?: TestFn): void;
109
+ function it(options?: TestOptions, fn?: TestFn): void;
110
+ function it(fn?: TestFn): void;
90
111
  namespace it {
91
112
  // Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
92
- function skip(name?: string, options?: TestOptions, fn?: ItFn): void;
93
- function skip(name?: string, fn?: ItFn): void;
94
- function skip(options?: TestOptions, fn?: ItFn): void;
95
- function skip(fn?: ItFn): void;
113
+ function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
114
+ function skip(name?: string, fn?: TestFn): void;
115
+ function skip(options?: TestOptions, fn?: TestFn): void;
116
+ function skip(fn?: TestFn): void;
96
117
 
97
118
  // Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
98
- function todo(name?: string, options?: TestOptions, fn?: ItFn): void;
99
- function todo(name?: string, fn?: ItFn): void;
100
- function todo(options?: TestOptions, fn?: ItFn): void;
101
- function todo(fn?: ItFn): void;
119
+ function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
120
+ function todo(name?: string, fn?: TestFn): void;
121
+ function todo(options?: TestOptions, fn?: TestFn): void;
122
+ function todo(fn?: TestFn): void;
123
+
124
+ /**
125
+ * Shorthand for marking a test as `only`, same as `it([name], { only: true }[, fn])`.
126
+ * @since v18.15.0
127
+ */
128
+ function only(name?: string, options?: TestOptions, fn?: TestFn): void;
129
+ function only(name?: string, fn?: TestFn): void;
130
+ function only(options?: TestOptions, fn?: TestFn): void;
131
+ function only(fn?: TestFn): void;
102
132
  }
103
133
 
104
134
  /**
@@ -114,12 +144,6 @@ declare module 'node:test' {
114
144
  */
115
145
  type SuiteFn = (done: (result?: any) => void) => void;
116
146
 
117
- /**
118
- * The type of a function under test.
119
- * If the test uses callbacks, the callback function is passed as an argument
120
- */
121
- type ItFn = (done: (result?: any) => void) => any;
122
-
123
147
  interface RunOptions {
124
148
  /**
125
149
  * If a number is provided, then that many files would run in parallel.
@@ -135,7 +135,7 @@ declare module 'url' {
135
135
  * string, an `Error` is thrown.
136
136
  * * `result` is returned.
137
137
  * @since v0.1.25
138
- * @deprecated Legacy: Use the WHATWG URL API instead.
138
+ * @legacy Use the WHATWG URL API instead.
139
139
  * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
140
140
  */
141
141
  function format(urlObject: URL, options?: URLFormatOptions): string;
@@ -199,7 +199,7 @@ declare module 'url' {
199
199
  * string, an `Error` is thrown.
200
200
  * * `result` is returned.
201
201
  * @since v0.1.25
202
- * @deprecated Legacy: Use the WHATWG URL API instead.
202
+ * @legacy Use the WHATWG URL API instead.
203
203
  * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
204
204
  */
205
205
  function format(urlObject: UrlObject | string): string;
@@ -232,7 +232,7 @@ declare module 'url' {
232
232
  * resolve('http://example.com/one', '/two'); // 'http://example.com/two'
233
233
  * ```
234
234
  * @since v0.1.25
235
- * @deprecated Legacy: Use the WHATWG URL API instead.
235
+ * @legacy Use the WHATWG URL API instead.
236
236
  * @param from The base URL to use if `to` is a relative URL.
237
237
  * @param to The target URL to resolve.
238
238
  */
@@ -556,7 +556,7 @@ declare module 'util' {
556
556
  * stream.write('With ES6');
557
557
  * ```
558
558
  * @since v0.3.0
559
- * @deprecated Legacy: Use ES2015 class syntax and `extends` keyword instead.
559
+ * @legacy Use ES2015 class syntax and `extends` keyword instead.
560
560
  */
561
561
  export function inherits(constructor: unknown, superConstructor: unknown): void;
562
562
  export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
@@ -135,7 +135,7 @@ declare module 'url' {
135
135
  * string, an `Error` is thrown.
136
136
  * * `result` is returned.
137
137
  * @since v0.1.25
138
- * @deprecated Legacy: Use the WHATWG URL API instead.
138
+ * @legacy Use the WHATWG URL API instead.
139
139
  * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
140
140
  */
141
141
  function format(urlObject: URL, options?: URLFormatOptions): string;
@@ -199,7 +199,7 @@ declare module 'url' {
199
199
  * string, an `Error` is thrown.
200
200
  * * `result` is returned.
201
201
  * @since v0.1.25
202
- * @deprecated Legacy: Use the WHATWG URL API instead.
202
+ * @legacy Use the WHATWG URL API instead.
203
203
  * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
204
204
  */
205
205
  function format(urlObject: UrlObject | string): string;
@@ -232,7 +232,7 @@ declare module 'url' {
232
232
  * resolve('http://example.com/one', '/two'); // 'http://example.com/two'
233
233
  * ```
234
234
  * @since v0.1.25
235
- * @deprecated Legacy: Use the WHATWG URL API instead.
235
+ * @legacy Use the WHATWG URL API instead.
236
236
  * @param from The base URL to use if `to` is a relative URL.
237
237
  * @param to The target URL to resolve.
238
238
  */
@@ -556,7 +556,7 @@ declare module 'util' {
556
556
  * stream.write('With ES6');
557
557
  * ```
558
558
  * @since v0.3.0
559
- * @deprecated Legacy: Use ES2015 class syntax and `extends` keyword instead.
559
+ * @legacy Use ES2015 class syntax and `extends` keyword instead.
560
560
  */
561
561
  export function inherits(constructor: unknown, superConstructor: unknown): void;
562
562
  export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Bug report / Support request
3
+ about: Report a bug or ask for help
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ Before reporting a bug or requesting support please...
11
+
12
+ 1. Read the troubleshooting guide
13
+
14
+ - https://amqp-node.github.io/amqplib/#troubleshooting
15
+
16
+ 2. Search for existing open and closed issues
17
+
18
+ - https://github.com/amqp-node/amqplib/issues?q=is%3Aissue+TYPE+YOUR+KEYWORDS+HERE
19
+
20
+ 3. Ensure you are familiar with the amqplib Channel API and RabbitMQ basics
21
+
22
+ - https://amqp-node.github.io/amqplib/channel_api.html
23
+ - https://www.cloudamqp.com/blog/part1-rabbitmq-for-beginners-what-is-rabbitmq.html
24
+ - https://www.rabbitmq.com/tutorials/amqp-concepts.html
25
+
26
+ If the above does not help, please provide the following information...
27
+
28
+ - A clear and concise description of what the bug is.
29
+ - RabbitMQ version
30
+ - amqplib version
31
+
32
+ If you include code snippets, please format them so they are easier to read
33
+
34
+ - https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks
35
+
36
+ Thank you
37
+
38
+
@@ -0,0 +1,38 @@
1
+ # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name: Node.js CI
5
+
6
+ on:
7
+ push:
8
+ branches: [main]
9
+ pull_request:
10
+ branches: [main]
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
+ services:
16
+ rabbitmq:
17
+ image: rabbitmq
18
+ ports:
19
+ - 5672:5672
20
+
21
+ strategy:
22
+ matrix:
23
+ node-version: [10.x, 12.x, 14.x, 16.x, 18.x]
24
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
25
+
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+ - name: Use Node.js ${{ matrix.node-version }}
29
+ uses: actions/setup-node@v2
30
+ with:
31
+ node-version: ${{ matrix.node-version }}
32
+ cache: "npm"
33
+
34
+ # Install all prerequisites
35
+ - run: npm ci
36
+
37
+ # Run the tests
38
+ - run: make test