Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.3 to 0.1.4

3

changelog.md

@@ -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.

5

dist/lib/connection.js

@@ -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

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