Socket
Socket
Sign inDemoInstall

@cubejs-client/core

Package Overview
Dependencies
6
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.0 to 0.7.3

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.7.3](https://github.com/statsbotco/cubejs-client/compare/v0.7.2...v0.7.3) (2019-04-16)
### Bug Fixes
* Allow SSR: use isomorphic-fetch instead of whatwg-fetch. ([902e581](https://github.com/statsbotco/cubejs-client/commit/902e581)), closes [#1](https://github.com/statsbotco/cubejs-client/issues/1)
# [0.7.0](https://github.com/statsbotco/cubejs-client/compare/v0.6.2...v0.7.0) (2019-04-15)

@@ -8,0 +19,0 @@

5

dist/cubejs-client-core.esm.js

@@ -29,3 +29,3 @@ import 'core-js/modules/es6.number.constructor';

import 'core-js/modules/es6.promise';
import { fetch } from 'whatwg-fetch';
import 'isomorphic-fetch';

@@ -634,2 +634,3 @@ 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({

@@ -728,3 +729,3 @@ headers: {

}
}, _callee);
}, _callee, this);
}));

@@ -731,0 +732,0 @@

7

dist/cubejs-client-core.js

@@ -33,3 +33,3 @@ 'use strict';

require('core-js/modules/es6.promise');
var whatwgFetch = require('whatwg-fetch');
require('isomorphic-fetch');

@@ -638,3 +638,4 @@ var moment = momentRange.extendMoment(Moment);

value: function request(url, config) {
return whatwgFetch.fetch("".concat(this.apiUrl).concat(url), Object.assign({
// eslint-disable-next-line no-undef
return fetch("".concat(this.apiUrl).concat(url), Object.assign({
headers: {

@@ -732,3 +733,3 @@ Authorization: this.apiToken,

}
}, _callee);
}, _callee, this);
}));

@@ -735,0 +736,0 @@

{
"name": "@cubejs-client/core",
"version": "0.7.0",
"version": "0.7.3",
"description": "cube.js client",

@@ -10,6 +10,6 @@ "main": "dist/cubejs-client-core.js",

"core-js": "^2.5.3",
"isomorphic-fetch": "^2.2.1",
"moment": "^2.22.2",
"moment-range": "^4.0.1",
"ramda": "^0.25.0",
"whatwg-fetch": "^3.0.0"
"ramda": "^0.25.0"
},

@@ -30,3 +30,3 @@ "scripts": {

},
"gitHead": "f59ee930f3a71e3f781b7360cc5a1d9fb03b42c7"
"gitHead": "c4f12eef99e9503cae3a0ec7052fe9a12d7997be"
}

@@ -1,2 +0,2 @@

import { fetch } from 'whatwg-fetch';
import 'isomorphic-fetch';
import ResultSet from './ResultSet';

@@ -27,6 +27,7 @@ import SqlQuery from './SqlQuery';

request(url, config) {
// eslint-disable-next-line no-undef
return fetch(
`${this.apiUrl}${url}`,
Object.assign({ headers: { Authorization: this.apiToken, 'Content-Type': 'application/json' }}, config || {})
)
);
}

@@ -33,0 +34,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc