@cubejs-client/core
Advanced tools
Comparing version 0.7.3 to 0.7.6
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.7.6](https://github.com/statsbotco/cubejs-client/compare/v0.7.5...v0.7.6) (2019-04-23) | ||
### Bug Fixes | ||
* Use cross-fetch instead of isomorphic-fetch to allow React-Native builds ([#92](https://github.com/statsbotco/cubejs-client/issues/92)) ([79150f4](https://github.com/statsbotco/cubejs-client/commit/79150f4)) | ||
## [0.7.3](https://github.com/statsbotco/cubejs-client/compare/v0.7.2...v0.7.3) (2019-04-16) | ||
@@ -8,0 +19,0 @@ |
@@ -29,3 +29,3 @@ import 'core-js/modules/es6.number.constructor'; | ||
import 'core-js/modules/es6.promise'; | ||
import 'isomorphic-fetch'; | ||
import fetch from 'cross-fetch'; | ||
@@ -634,3 +634,2 @@ var moment = momentRange.extendMoment(Moment); | ||
value: function request(url, config) { | ||
// eslint-disable-next-line no-undef | ||
return fetch("".concat(this.apiUrl).concat(url), Object.assign({ | ||
@@ -637,0 +636,0 @@ headers: { |
@@ -33,3 +33,3 @@ 'use strict'; | ||
require('core-js/modules/es6.promise'); | ||
require('isomorphic-fetch'); | ||
var fetch = _interopDefault(require('cross-fetch')); | ||
@@ -638,3 +638,2 @@ var moment = momentRange.extendMoment(Moment); | ||
value: function request(url, config) { | ||
// eslint-disable-next-line no-undef | ||
return fetch("".concat(this.apiUrl).concat(url), Object.assign({ | ||
@@ -641,0 +640,0 @@ headers: { |
{ | ||
"name": "@cubejs-client/core", | ||
"version": "0.7.3", | ||
"version": "0.7.6", | ||
"description": "cube.js client", | ||
@@ -10,3 +10,3 @@ "main": "dist/cubejs-client-core.js", | ||
"core-js": "^2.5.3", | ||
"isomorphic-fetch": "^2.2.1", | ||
"cross-fetch": "^3.0.2", | ||
"moment": "^2.22.2", | ||
@@ -30,3 +30,3 @@ "moment-range": "^4.0.1", | ||
}, | ||
"gitHead": "c4f12eef99e9503cae3a0ec7052fe9a12d7997be" | ||
"gitHead": "560c93b35e026ce74b2bc3623799baaa4896121d" | ||
} |
@@ -1,2 +0,2 @@ | ||
import 'isomorphic-fetch'; | ||
import fetch from 'cross-fetch'; | ||
import ResultSet from './ResultSet'; | ||
@@ -27,3 +27,2 @@ import SqlQuery from './SqlQuery'; | ||
request(url, config) { | ||
// eslint-disable-next-line no-undef | ||
return fetch( | ||
@@ -113,2 +112,2 @@ `${this.apiUrl}${url}`, | ||
return new CubejsApi(apiToken, options); | ||
}; | ||
}; |
Sorry, the diff of this file is too big to display
516158
14399
6
+ Addedcross-fetch@^3.0.2
+ Addedcross-fetch@3.1.8(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedisomorphic-fetch@^2.2.1
- Removedencoding@0.1.13(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)