Socket
Socket
Sign inDemoInstall

rhea-promise

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rhea-promise - npm Package Compare versions

Comparing version 0.1.15 to 0.2.0

3

changelog.md

@@ -0,1 +1,4 @@

### 0.2.0 - 2019-05-17
- Updated `OperationTimeoutError` to be a non-AMQP Error as pointed out in [#42](https://github.com/amqp/rhea-promise/issues/42). Fixed in [PR](https://github.com/amqp/rhea-promise/pull/43).
### 0.1.15 - 2019-04-10

@@ -2,0 +5,0 @@ - Export rhea types for `Typed`. [PR](https://github.com/amqp/rhea-promise/pull/36).

5

dist/lib/operationTimeoutError.js

@@ -15,7 +15,2 @@ "use strict";

this.name = "OperationTimeoutError";
/**
* Provides a logical amqp error condition.
*/
this.condition = "amqp:operation-timeout";
this.description = message;
}

@@ -22,0 +17,0 @@ }

@@ -26,5 +26,9 @@ "use strict";

* Sends the message
* @param {Message | Buffer} msg The AMQP message to be sent.
* @param {Buffer | string} [tag] The optional tag that can be sent
* @param {number} [format] The format in which the message needs to be sent.
* @param {Message | Buffer} msg The message to be sent. For default AMQP format msg parameter
* should be of type Message interface. For a custom format, the msg parameter should be a Buffer
* and a valid value should be passed to the `format` argument.
* @param {Buffer | string} [tag] The message tag if any.
* @param {number} [format] The message format. Specify this if a message with custom format needs
* to be sent. `0` implies the standard AMQP 1.0 defined format. If no value is provided, then the
* given message is assumed to be of type Message interface and encoded appropriately.
* @returns {Delivery} Delivery The delivery information about the sent message.

@@ -31,0 +35,0 @@ */

@@ -12,15 +12,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

readonly name: string = "OperationTimeoutError";
/**
* Provides a logical amqp error condition.
*/
readonly condition: string = "amqp:operation-timeout";
/**
* Provides a short description about the error.
*/
description: string;
constructor(message: string) {
super(message);
this.description = message;
}
}

@@ -92,5 +92,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

* Sends the message
* @param {Message | Buffer} msg The AMQP message to be sent.
* @param {Buffer | string} [tag] The optional tag that can be sent
* @param {number} [format] The format in which the message needs to be sent.
* @param {Message | Buffer} msg The message to be sent. For default AMQP format msg parameter
* should be of type Message interface. For a custom format, the msg parameter should be a Buffer
* and a valid value should be passed to the `format` argument.
* @param {Buffer | string} [tag] The message tag if any.
* @param {number} [format] The message format. Specify this if a message with custom format needs
* to be sent. `0` implies the standard AMQP 1.0 defined format. If no value is provided, then the
* given message is assumed to be of type Message interface and encoded appropriately.
* @returns {Delivery} Delivery The delivery information about the sent message.

@@ -97,0 +101,0 @@ */

{
"name": "rhea-promise",
"version": "0.1.15",
"version": "0.2.0",
"description": "A Promisified layer over rhea AMQP client",

@@ -10,3 +10,3 @@ "license": "Apache-2.0",

"debug": "^3.1.0",
"rhea": "^1.0.4",
"rhea": "^1.0.7",
"tslib": "^1.9.3"

@@ -24,8 +24,8 @@ },

"@types/node": "^8.0.37",
"@types/dotenv": "^6.1.0",
"rimraf": "^2.6.2",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.2.2",
"dotenv": "^6.2.0"
"@types/dotenv": "^6.1.1",
"rimraf": "^2.6.3",
"ts-node": "^8.1.0",
"tslint": "^5.16.0",
"typescript": "^3.4.5",
"dotenv": "^8.0.0"
},

@@ -32,0 +32,0 @@ "scripts": {

@@ -9,12 +9,4 @@ /**

readonly name: string;
/**
* Provides a logical amqp error condition.
*/
readonly condition: string;
/**
* Provides a short description about the error.
*/
description: string;
constructor(message: string);
}
//# sourceMappingURL=operationTimeoutError.d.ts.map

@@ -75,5 +75,9 @@ /// <reference types="node" />

* Sends the message
* @param {Message | Buffer} msg The AMQP message to be sent.
* @param {Buffer | string} [tag] The optional tag that can be sent
* @param {number} [format] The format in which the message needs to be sent.
* @param {Message | Buffer} msg The message to be sent. For default AMQP format msg parameter
* should be of type Message interface. For a custom format, the msg parameter should be a Buffer
* and a valid value should be passed to the `format` argument.
* @param {Buffer | string} [tag] The message tag if any.
* @param {number} [format] The message format. Specify this if a message with custom format needs
* to be sent. `0` implies the standard AMQP 1.0 defined format. If no value is provided, then the
* given message is assumed to be of type Message interface and encoded appropriately.
* @returns {Delivery} Delivery The delivery information about the sent message.

@@ -80,0 +84,0 @@ */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc