rhea-promise
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -0,1 +1,4 @@ | ||
### 0.1.4 - 2018-09-25 | ||
- `options` is a required property of `Connection` and `Container`. | ||
### 0.1.3 - 2018-09-25 | ||
@@ -2,0 +5,0 @@ - Transform relevant objects in rhea EventContext to rhea-promise objects. |
@@ -37,10 +37,9 @@ "use strict"; | ||
this.container = options.container; | ||
this.options = this._connection.options; | ||
this.options.operationTimeoutInSeconds = options.operationTimeoutInSeconds; | ||
} | ||
else { | ||
this.options = options; | ||
this._connection = rhea_1.create_connection(options); | ||
this.container = container_1.Container.copyFromContainerInstance(this._connection.container); | ||
} | ||
this.options = this._connection.options; | ||
this.options.operationTimeoutInSeconds = options.operationTimeoutInSeconds; | ||
this._initializeEventListeners(); | ||
@@ -47,0 +46,0 @@ } |
@@ -116,6 +116,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* @property {ConnectionOptions} [options] Options that can be provided while creating the | ||
* @property {ConnectionOptions} options Options that can be provided while creating the | ||
* connection. | ||
*/ | ||
options?: ConnectionOptions; | ||
options: ConnectionOptions; | ||
/** | ||
@@ -146,6 +146,3 @@ * @property {Container} container The underlying Container instance on which the connection exists. | ||
this.container = (options as CreatedRheaConnectionOptions).container; | ||
this.options = this._connection.options; | ||
this.options.operationTimeoutInSeconds = options.operationTimeoutInSeconds; | ||
} else { | ||
this.options = options; | ||
this._connection = create_connection(options as ConnectionOptions); | ||
@@ -155,2 +152,5 @@ this.container = Container.copyFromContainerInstance(this._connection.container); | ||
this.options = this._connection.options; | ||
this.options.operationTimeoutInSeconds = options.operationTimeoutInSeconds; | ||
this._initializeEventListeners(); | ||
@@ -157,0 +157,0 @@ } |
@@ -28,5 +28,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* @property {options} [ContainerOptions] Container options. | ||
* @property {options} ContainerOptions Container options. | ||
*/ | ||
options?: ContainerOptions; | ||
options: ContainerOptions; | ||
/** | ||
@@ -33,0 +33,0 @@ * @property {RheaContainer} _container The underlying container object from rhea. |
{ | ||
"name": "rhea-promise", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A Promisified layer over rhea AMQP client", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -94,6 +94,6 @@ /// <reference types="node" /> | ||
/** | ||
* @property {ConnectionOptions} [options] Options that can be provided while creating the | ||
* @property {ConnectionOptions} options Options that can be provided while creating the | ||
* connection. | ||
*/ | ||
options?: ConnectionOptions; | ||
options: ConnectionOptions; | ||
/** | ||
@@ -100,0 +100,0 @@ * @property {Container} container The underlying Container instance on which the connection exists. |
@@ -21,5 +21,5 @@ /// <reference types="node" /> | ||
/** | ||
* @property {options} [ContainerOptions] Container options. | ||
* @property {options} ContainerOptions Container options. | ||
*/ | ||
options?: ContainerOptions; | ||
options: ContainerOptions; | ||
/** | ||
@@ -26,0 +26,0 @@ * @property {RheaContainer} _container The underlying container object from rhea. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
211813
3836