Skip to content

Commit

Permalink
fix: corejs version
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilev-alex committed May 14, 2020
1 parent a3e1366 commit 8bef3b2
Show file tree
Hide file tree
Showing 11 changed files with 28,838 additions and 22,323 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
"no-console": 0,
"arrow-parens": 0,
"import/extensions": 0,
"quotes": 0,
"quotes": ['warn', 'single'],
"no-prototype-builtins": 0,
"class-methods-use-this": 0,
"no-param-reassign": 0,
Expand Down
95 changes: 64 additions & 31 deletions packages/cubejs-client-core/dist/cubejs-client-core.esm.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,44 @@
import 'core-js/modules/es.object.to-string';
import 'core-js/modules/es.promise';
import 'core-js/modules/web.timers';
import _regeneratorRuntime from '@babel/runtime/regenerator';
import 'regenerator-runtime/runtime';
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
import _objectSpread2 from '@babel/runtime/helpers/objectSpread';
import _typeof from '@babel/runtime/helpers/typeof';
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
import _createClass from '@babel/runtime/helpers/createClass';
import 'core-js/modules/es6.promise';
import 'core-js/modules/es6.object.to-string';
import uuid from 'uuid/v4';
import 'core-js/modules/es6.number.parse-float';
import 'core-js/modules/es6.number.constructor';
import 'core-js/modules/es6.number.is-nan';
import 'core-js/modules/web.dom.iterable';
import 'core-js/modules/es6.array.iterator';
import 'core-js/modules/es6.object.keys';
import 'core-js/modules/es.array.concat';
import 'core-js/modules/es.array.filter';
import 'core-js/modules/es.array.find';
import 'core-js/modules/es.array.from';
import 'core-js/modules/es.array.index-of';
import 'core-js/modules/es.array.join';
import 'core-js/modules/es.array.map';
import 'core-js/modules/es.array.reduce';
import 'core-js/modules/es.date.to-string';
import 'core-js/modules/es.number.constructor';
import 'core-js/modules/es.number.is-nan';
import 'core-js/modules/es.number.parse-float';
import 'core-js/modules/es.object.assign';
import 'core-js/modules/es.object.keys';
import 'core-js/modules/es.regexp.exec';
import 'core-js/modules/es.string.iterator';
import 'core-js/modules/es.string.match';
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
import 'core-js/modules/es6.object.assign';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
import 'core-js/modules/es6.array.reduce';
import 'core-js/modules/es6.regexp.match';
import 'core-js/modules/es6.array.index-of';
import 'core-js/modules/es6.array.find';
import 'core-js/modules/es6.array.filter';
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
import 'core-js/modules/es6.string.iterator';
import 'core-js/modules/es6.array.from';
import 'core-js/modules/es6.array.map';
import { pipe, map, filter, reduce, minBy, maxBy, groupBy, equals, unnest, toPairs, uniq, dropLast, fromPairs } from 'ramda';
import Moment from 'moment';
import momentRange from 'moment-range';
import 'core-js/modules/es6.array.is-array';
import 'core-js/modules/es6.regexp.split';
import 'core-js/modules/es6.function.name';
import 'core-js/modules/es6.regexp.to-string';
import 'core-js/modules/es6.date.to-string';
import 'core-js/modules/es.array.is-array';
import 'core-js/modules/es.function.name';
import 'core-js/modules/es.string.split';
import 'core-js/modules/es.array.iterator';
import 'core-js/modules/es.regexp.to-string';
import 'core-js/modules/web.dom-collections.iterator';
import 'core-js/modules/web.url';
import fetch from 'cross-fetch';
import 'url-search-params-polyfill';

Expand Down Expand Up @@ -926,9 +931,19 @@ function () {
return ProgressResult;
}();

/**
* Default transport implementation.
*/

var HttpTransport =
/*#__PURE__*/
function () {
/**
* @param options - mandatory options object
* @param options.authorization - [jwt auth token](security)
* @param options.apiUrl - path to `/cubejs-api/v1`
* @param [options.headers] - object of custom headers
*/
function HttpTransport(_ref) {
var authorization = _ref.authorization,
apiUrl = _ref.apiUrl,
Expand Down Expand Up @@ -1053,6 +1068,23 @@ function () {
baseRequestId: uuid()
}, params));
}
/**
* Base method used to perform all API calls.
* Shouldn't be used directly.
* @param request - function that invoked to perform actual request using `transport.request()` method.
* @param toResult - function that maps results of invocation to method return result
* @param [options] - options object
* @param options.mutexObj - object to use to store MUTEX
* @param [options.mutexKey='default'] - key to use to store current request MUTEX inside `mutexObj`.
* MUTEX object is used to reject orphaned queries results when new queries are sent.
* For example if two queries are sent with same `mutexKey` only last one will return results.
* @param options.subscribe - pass `true` to use continuous fetch behavior.
* @param {Function} options.progressCallback - function that receives `ProgressResult` on each
* `Continue wait` message.
* @param [callback] - if passed `callback` function will be called instead of `Promise` returned
* @return {{unsubscribe: function()}}
*/

}, {
key: "loadMethod",
value: function loadMethod(request, toResult, options, callback) {
Expand Down Expand Up @@ -1468,8 +1500,8 @@ function () {
* new Chart(context, chartjsConfig(resultSet));
* ```
* @param query - [Query object](query-format)
* @param options
* @param callback
* @param [options] - See {@link CubejsApi#loadMethod}
* @param [callback] - See {@link CubejsApi#loadMethod}
* @returns {Promise} for {@link ResultSet} if `callback` isn't passed
*/

Expand All @@ -1491,8 +1523,8 @@ function () {
/**
* Get generated SQL string for given `query`.
* @param query - [Query object](query-format)
* @param options
* @param callback
* @param [options] - See {@link CubejsApi#loadMethod}
* @param [callback] - See {@link CubejsApi#loadMethod}
* @return {Promise} for {@link SqlQuery} if `callback` isn't passed
*/

Expand All @@ -1511,8 +1543,8 @@ function () {
}
/**
* Get meta description of cubes available for querying.
* @param options
* @param callback
* @param [options] - See {@link CubejsApi#loadMethod}
* @param [callback] - See {@link CubejsApi#loadMethod}
* @return {Promise} for {@link Meta} if `callback` isn't passed
*/

Expand Down Expand Up @@ -1561,12 +1593,13 @@ function () {
);
```
* @name cubejs
* @param apiToken - [API token](security) is used to authorize requests and determine SQL database you're accessing.
* @param [apiToken] - [API token](security) is used to authorize requests and determine SQL database you're accessing.
* In the development mode, Cube.js Backend will print the API token to the console on on startup.
* Can be an async function without arguments that returns API token. Optional.
* @param options - options object.
* Can be an async function without arguments that returns API token.
* @param [options] - options object.
* @param options.apiUrl - URL of your Cube.js Backend.
* By default, in the development environment it is `http://localhost:4000/cubejs-api/v1`.
* @param options.transport - transport implementation to use. {@link HttpTransport} will be used by default.
* @returns {CubejsApi}
* @order -10
*/
Expand Down
95 changes: 64 additions & 31 deletions packages/cubejs-client-core/dist/cubejs-client-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,47 @@ Object.defineProperty(exports, '__esModule', { value: true });

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

require('core-js/modules/es.object.to-string');
require('core-js/modules/es.promise');
require('core-js/modules/web.timers');
var _regeneratorRuntime = _interopDefault(require('@babel/runtime/regenerator'));
require('regenerator-runtime/runtime');
var _asyncToGenerator = _interopDefault(require('@babel/runtime/helpers/asyncToGenerator'));
var _objectSpread2 = _interopDefault(require('@babel/runtime/helpers/objectSpread'));
var _typeof = _interopDefault(require('@babel/runtime/helpers/typeof'));
var _classCallCheck = _interopDefault(require('@babel/runtime/helpers/classCallCheck'));
var _createClass = _interopDefault(require('@babel/runtime/helpers/createClass'));
require('core-js/modules/es6.promise');
require('core-js/modules/es6.object.to-string');
var uuid = _interopDefault(require('uuid/v4'));
require('core-js/modules/es6.number.parse-float');
require('core-js/modules/es6.number.constructor');
require('core-js/modules/es6.number.is-nan');
require('core-js/modules/web.dom.iterable');
require('core-js/modules/es6.array.iterator');
require('core-js/modules/es6.object.keys');
require('core-js/modules/es.array.concat');
require('core-js/modules/es.array.filter');
require('core-js/modules/es.array.find');
require('core-js/modules/es.array.from');
require('core-js/modules/es.array.index-of');
require('core-js/modules/es.array.join');
require('core-js/modules/es.array.map');
require('core-js/modules/es.array.reduce');
require('core-js/modules/es.date.to-string');
require('core-js/modules/es.number.constructor');
require('core-js/modules/es.number.is-nan');
require('core-js/modules/es.number.parse-float');
require('core-js/modules/es.object.assign');
require('core-js/modules/es.object.keys');
require('core-js/modules/es.regexp.exec');
require('core-js/modules/es.string.iterator');
require('core-js/modules/es.string.match');
var _slicedToArray = _interopDefault(require('@babel/runtime/helpers/slicedToArray'));
require('core-js/modules/es6.object.assign');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
require('core-js/modules/es6.array.reduce');
require('core-js/modules/es6.regexp.match');
require('core-js/modules/es6.array.index-of');
require('core-js/modules/es6.array.find');
require('core-js/modules/es6.array.filter');
var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties'));
require('core-js/modules/es6.string.iterator');
require('core-js/modules/es6.array.from');
require('core-js/modules/es6.array.map');
var ramda = require('ramda');
var Moment = _interopDefault(require('moment'));
var momentRange = _interopDefault(require('moment-range'));
require('core-js/modules/es6.array.is-array');
require('core-js/modules/es6.regexp.split');
require('core-js/modules/es6.function.name');
require('core-js/modules/es6.regexp.to-string');
require('core-js/modules/es6.date.to-string');
require('core-js/modules/es.array.is-array');
require('core-js/modules/es.function.name');
require('core-js/modules/es.string.split');
require('core-js/modules/es.array.iterator');
require('core-js/modules/es.regexp.to-string');
require('core-js/modules/web.dom-collections.iterator');
require('core-js/modules/web.url');
var fetch = _interopDefault(require('cross-fetch'));
require('url-search-params-polyfill');

Expand Down Expand Up @@ -932,9 +937,19 @@ function () {
return ProgressResult;
}();

/**
* Default transport implementation.
*/

var HttpTransport =
/*#__PURE__*/
function () {
/**
* @param options - mandatory options object
* @param options.authorization - [jwt auth token](security)
* @param options.apiUrl - path to `/cubejs-api/v1`
* @param [options.headers] - object of custom headers
*/
function HttpTransport(_ref) {
var authorization = _ref.authorization,
apiUrl = _ref.apiUrl,
Expand Down Expand Up @@ -1059,6 +1074,23 @@ function () {
baseRequestId: uuid()
}, params));
}
/**
* Base method used to perform all API calls.
* Shouldn't be used directly.
* @param request - function that invoked to perform actual request using `transport.request()` method.
* @param toResult - function that maps results of invocation to method return result
* @param [options] - options object
* @param options.mutexObj - object to use to store MUTEX
* @param [options.mutexKey='default'] - key to use to store current request MUTEX inside `mutexObj`.
* MUTEX object is used to reject orphaned queries results when new queries are sent.
* For example if two queries are sent with same `mutexKey` only last one will return results.
* @param options.subscribe - pass `true` to use continuous fetch behavior.
* @param {Function} options.progressCallback - function that receives `ProgressResult` on each
* `Continue wait` message.
* @param [callback] - if passed `callback` function will be called instead of `Promise` returned
* @return {{unsubscribe: function()}}
*/

}, {
key: "loadMethod",
value: function loadMethod(request, toResult, options, callback) {
Expand Down Expand Up @@ -1474,8 +1506,8 @@ function () {
* new Chart(context, chartjsConfig(resultSet));
* ```
* @param query - [Query object](query-format)
* @param options
* @param callback
* @param [options] - See {@link CubejsApi#loadMethod}
* @param [callback] - See {@link CubejsApi#loadMethod}
* @returns {Promise} for {@link ResultSet} if `callback` isn't passed
*/

Expand All @@ -1497,8 +1529,8 @@ function () {
/**
* Get generated SQL string for given `query`.
* @param query - [Query object](query-format)
* @param options
* @param callback
* @param [options] - See {@link CubejsApi#loadMethod}
* @param [callback] - See {@link CubejsApi#loadMethod}
* @return {Promise} for {@link SqlQuery} if `callback` isn't passed
*/

Expand All @@ -1517,8 +1549,8 @@ function () {
}
/**
* Get meta description of cubes available for querying.
* @param options
* @param callback
* @param [options] - See {@link CubejsApi#loadMethod}
* @param [callback] - See {@link CubejsApi#loadMethod}
* @return {Promise} for {@link Meta} if `callback` isn't passed
*/

Expand Down Expand Up @@ -1567,12 +1599,13 @@ function () {
);
```
* @name cubejs
* @param apiToken - [API token](security) is used to authorize requests and determine SQL database you're accessing.
* @param [apiToken] - [API token](security) is used to authorize requests and determine SQL database you're accessing.
* In the development mode, Cube.js Backend will print the API token to the console on on startup.
* Can be an async function without arguments that returns API token. Optional.
* @param options - options object.
* Can be an async function without arguments that returns API token.
* @param [options] - options object.
* @param options.apiUrl - URL of your Cube.js Backend.
* By default, in the development environment it is `http://localhost:4000/cubejs-api/v1`.
* @param options.transport - transport implementation to use. {@link HttpTransport} will be used by default.
* @returns {CubejsApi}
* @order -10
*/
Expand Down
Loading

0 comments on commit 8bef3b2

Please sign in to comment.