rubik-pact
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -7,2 +7,3 @@ const { Kubik } = require('rubik-main'); | ||
const get = require('lodash/get'); | ||
const querystring = require('querystring'); | ||
@@ -46,3 +47,3 @@ const methods = require('./Pact/methods'); | ||
getUrl({ path, params, host }) { | ||
getUrl({ path, queryParams, params, host }) { | ||
if (!host) host = this.host; | ||
@@ -56,3 +57,5 @@ if (!host) throw new TypeError('host is not defined'); | ||
return `${host}p1/${path}`; | ||
if (!queryParams) queryParams = {}; | ||
return `${host}p1/${path}?${querystring.stringify(queryParams)}`; | ||
} | ||
@@ -59,0 +62,0 @@ |
@@ -6,2 +6,3 @@ module.exports = [ | ||
{ kubikName: 'companies.conversationsGet', apiName: 'companies/{{companyId}}/conversations/{{conversationId}}' } | ||
{ kubikName: 'companies.companyId', apiName: 'companies/{{companyId}}' } | ||
]; |
{ | ||
"name": "rubik-pact", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Pact Bot Api kubik for the Rubik application system", | ||
@@ -5,0 +5,0 @@ "main": "classes/Pact.js", |
20634
191