Skip to content

Commit

Permalink
fix(types): bluebird for publish, publishAndWait, send, sendAndWait (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
annahassel authored Mar 7, 2021
1 parent 66a69a9 commit a0e9e38
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@babel/plugin-transform-strict-mode": "^7.12.13",
"@babel/register": "^7.12.13",
"@makeomatic/deploy": "^10.3.3",
"@types/bluebird": "^3.5.33",
"babel-plugin-istanbul": "^6.0.0",
"benchmark": "^2.1.4",
"chai": "^4.3.0",
Expand Down
8 changes: 4 additions & 4 deletions src/amqp.js
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ class AMQPTransport extends EventEmitter {
* @param {Object} [options={}] - Additional options
* @param {opentracing.Span} [parentSpan] - Existing span
* @template T
* @returns {PromiseLike<T>}
* @returns {Promise<T>}
*/
publish(route, message, options = {}, parentSpan) {
const span = this.tracer.startSpan(`publish:${route}`, {
Expand Down Expand Up @@ -937,7 +937,7 @@ class AMQPTransport extends EventEmitter {
* @param {Object} [options={}] - Additional options
* @param {opentracing.Span} [parentSpan] - Existing span
* @template T
* @returns {PromiseLike<T>}
* @returns {Promise<T>}
*/
send(queue, message, options = {}, parentSpan) {
const span = this.tracer.startSpan(`send:${queue}`, {
Expand Down Expand Up @@ -969,7 +969,7 @@ class AMQPTransport extends EventEmitter {
* @param {Object} [options={}] - Additional options
* @param {opentracing.Span} [parentSpan] - Existing span
* @template T
* @returns {PromiseLike<T>}
* @returns {Promise<T>}
*/
publishAndWait(route, message, options = {}, parentSpan) {
// opentracing instrumentation
Expand Down Expand Up @@ -998,7 +998,7 @@ class AMQPTransport extends EventEmitter {
* @param {Object} [options={}] - Additional options
* @param {opentracing.Span} [parentSpan] - Existing span
* @template T
* @returns {PromiseLike<T>}
* @returns {Promise<T>}
*/
sendAndWait(queue, message, options = {}, parentSpan) {
// opentracing instrumentation
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,11 @@
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==

"@types/bluebird@^3.5.33":
version "3.5.33"
resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.33.tgz#d79c020f283bd50bd76101d7d300313c107325fc"
integrity sha512-ndEo1xvnYeHxm7I/5sF6tBvnsA4Tdi3zj1keRKRs12SP+2ye2A27NDJ1B6PqkfMbGAcT+mqQVqbZRIrhfOp5PQ==

"@types/json-schema@^7.0.3":
version "7.0.7"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad"
Expand Down

0 comments on commit a0e9e38

Please sign in to comment.