@cubejs-client/core
Advanced tools
Comparing version 0.11.0 to 0.11.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.11.2](https://github.com/statsbotco/cubejs-client/compare/v0.11.1...v0.11.2) (2019-10-15) | ||
### Bug Fixes | ||
* Incorrect URL generation in HttpTransport ([7e7020b](https://github.com/statsbotco/cubejs-client/commit/7e7020b)) | ||
# [0.11.0](https://github.com/statsbotco/cubejs-client/compare/v0.10.62...v0.11.0) (2019-10-15) | ||
@@ -8,0 +19,0 @@ |
@@ -31,2 +31,4 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread'; | ||
import 'core-js/modules/es6.function.name'; | ||
import 'core-js/modules/es6.regexp.to-string'; | ||
import 'core-js/modules/es6.date.to-string'; | ||
import fetch from 'cross-fetch'; | ||
@@ -762,3 +764,3 @@ import 'url-search-params-polyfill'; | ||
var runRequest = function runRequest() { | ||
return fetch("".concat(_this.apiUrl).concat(method, "?").concat(searchParams), { | ||
return fetch("".concat(_this.apiUrl, "/").concat(method).concat(searchParams.toString().length ? "?".concat(searchParams) : ''), { | ||
headers: { | ||
@@ -765,0 +767,0 @@ Authorization: _this.authorization, |
@@ -37,2 +37,4 @@ 'use strict'; | ||
require('core-js/modules/es6.function.name'); | ||
require('core-js/modules/es6.regexp.to-string'); | ||
require('core-js/modules/es6.date.to-string'); | ||
var fetch = _interopDefault(require('cross-fetch')); | ||
@@ -768,3 +770,3 @@ require('url-search-params-polyfill'); | ||
var runRequest = function runRequest() { | ||
return fetch("".concat(_this.apiUrl).concat(method, "?").concat(searchParams), { | ||
return fetch("".concat(_this.apiUrl, "/").concat(method).concat(searchParams.toString().length ? "?".concat(searchParams) : ''), { | ||
headers: { | ||
@@ -771,0 +773,0 @@ Authorization: _this.authorization, |
{ | ||
"name": "@cubejs-client/core", | ||
"version": "0.11.0", | ||
"version": "0.11.2", | ||
"description": "cube.js client", | ||
@@ -30,3 +30,3 @@ "main": "dist/cubejs-client-core.js", | ||
}, | ||
"gitHead": "b62d0e18bc793a1182fb2e3d26baf114a9cd848c" | ||
"gitHead": "a49be622ad3fdf8b10c7af435ba50da1b0bc801d" | ||
} |
@@ -18,3 +18,3 @@ import fetch from 'cross-fetch'; | ||
const runRequest = () => fetch( | ||
`${this.apiUrl}${method}?${searchParams}`, { | ||
`${this.apiUrl}/${method}${searchParams.toString().length ? `?${searchParams}` : ''}`, { | ||
headers: { Authorization: this.authorization, 'Content-Type': 'application/json' } | ||
@@ -21,0 +21,0 @@ } |
Sorry, the diff of this file is too big to display
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
599541
16354