appolo-rabbit
Advanced tools
Comparing version 8.1.3 to 8.1.4
@@ -19,3 +19,3 @@ { | ||
"main": "./index.js", | ||
"version": "8.1.3", | ||
"version": "8.1.4", | ||
"license": "MIT", | ||
@@ -22,0 +22,0 @@ "repository": { |
@@ -68,3 +68,3 @@ "use strict"; | ||
async _sendRequest(params) { | ||
let url = `${this.rabbitUrlApi()}/${params.path}`; | ||
let url = `${this._rabbitUrlApi(params.connection)}/${params.path}`; | ||
let dto = { | ||
@@ -78,3 +78,3 @@ json: true, | ||
} | ||
rabbitUrlApi(connection) { | ||
_rabbitUrlApi(connection) { | ||
let params = connection || this.connection.connectionParams; | ||
@@ -81,0 +81,0 @@ return `https://${params.username}:${params.password}@${params.hostname}/api`; |
@@ -102,3 +102,3 @@ import {define, singleton, inject} from "@appolo/inject"; | ||
let url = `${this.rabbitUrlApi()}/${params.path}`; | ||
let url = `${this._rabbitUrlApi(params.connection)}/${params.path}`; | ||
@@ -117,3 +117,3 @@ let dto = { | ||
private rabbitUrlApi(connection?: IConnectionParams): string { | ||
private _rabbitUrlApi(connection?: IConnectionParams): string { | ||
let params = connection || this.connection.connectionParams; | ||
@@ -120,0 +120,0 @@ |
Sorry, the diff of this file is not supported yet
153914