Skip to content

Commit

Permalink
fix: Use cross-fetch instead of isomorphic-fetch to allow React-Nativ…
Browse files Browse the repository at this point in the history
…e builds (#92)

* fix: Use cross-fetch instead of isomorphic-fetch to allow React-Native builds

* fix: remove eslint instruction because using ponyfill

* fix: add built files after removing comment
  • Loading branch information
9teen90nine authored and paveltiunov committed Apr 22, 2019
1 parent e1fccc0 commit 79150f4
Show file tree
Hide file tree
Showing 8 changed files with 2,646 additions and 2,902 deletions.
786 changes: 786 additions & 0 deletions packages/cubejs-client-core/dist/cubejs-client-core.esm.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions packages/cubejs-client-core/dist/cubejs-client-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var _regeneratorRuntime = _interopDefault(require('@babel/runtime/regenerator'))
require('regenerator-runtime/runtime');
var _asyncToGenerator = _interopDefault(require('@babel/runtime/helpers/asyncToGenerator'));
require('core-js/modules/es6.promise');
require('isomorphic-fetch');
var fetch = _interopDefault(require('cross-fetch'));

var moment = momentRange.extendMoment(Moment);
var TIME_SERIES = {
Expand Down Expand Up @@ -634,7 +634,6 @@ function () {
_createClass(CubejsApi, [{
key: "request",
value: function request(url, config) {
// eslint-disable-next-line no-undef
return fetch("".concat(this.apiUrl).concat(url), Object.assign({
headers: {
Authorization: this.apiToken,
Expand Down
Loading

0 comments on commit 79150f4

Please sign in to comment.