Socket
Socket
Sign inDemoInstall

@cubejs-client/core

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cubejs-client/core - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

56

dist/cubejs-client-core.js

@@ -1,20 +0,24 @@

import 'core-js/modules/es6.number.constructor';
import 'core-js/modules/es6.number.parse-float';
import 'core-js/modules/es6.object.assign';
import _defineProperty from '@babel/runtime/helpers/defineProperty';
import 'core-js/modules/es6.array.reduce';
import _objectSpread from '@babel/runtime/helpers/objectSpread';
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
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.array.map';
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
import _createClass from '@babel/runtime/helpers/createClass';
import { groupBy, pipe, toPairs, uniq, map, unnest, dropLast } from 'ramda';
import _regeneratorRuntime from '@babel/runtime/regenerator';
import 'regenerator-runtime/runtime';
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
import { fetch } from 'whatwg-fetch';
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
require('core-js/modules/es6.number.constructor');
require('core-js/modules/es6.number.parse-float');
require('core-js/modules/es6.object.assign');
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty'));
require('core-js/modules/es6.array.reduce');
var _objectSpread = _interopDefault(require('@babel/runtime/helpers/objectSpread'));
var _slicedToArray = _interopDefault(require('@babel/runtime/helpers/slicedToArray'));
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.array.map');
var _classCallCheck = _interopDefault(require('@babel/runtime/helpers/classCallCheck'));
var _createClass = _interopDefault(require('@babel/runtime/helpers/createClass'));
var ramda = require('ramda');
var _regeneratorRuntime = _interopDefault(require('@babel/runtime/regenerator'));
require('regenerator-runtime/runtime');
var _asyncToGenerator = _interopDefault(require('@babel/runtime/helpers/asyncToGenerator'));
var whatwgFetch = require('whatwg-fetch');
var ResultSet =

@@ -112,3 +116,3 @@ /*#__PURE__*/

pivotConfig = this.normalizePivotConfig(pivotConfig);
return pipe(map(function (row) {
return ramda.pipe(ramda.map(function (row) {
return _this2.axisValues(pivotConfig.x)(row).map(function (xValues) {

@@ -120,6 +124,6 @@ return {

});
}), unnest, groupBy(function (_ref3) {
}), ramda.unnest, ramda.groupBy(function (_ref3) {
var xValues = _ref3.xValues;
return _this2.axisValuesString(xValues);
}), toPairs)(this.loadResponse.data).map(function (_ref4) {
}), ramda.toPairs)(this.loadResponse.data).map(function (_ref4) {
var _ref5 = _slicedToArray(_ref4, 2),

@@ -165,3 +169,3 @@ xValuesString = _ref5[0],

category: _this3.axisValuesString(xValues, ', ')
}, map(function (m) {
}, ramda.map(function (m) {
return m && Number.parseFloat(m);

@@ -188,7 +192,7 @@ }, measures));

pivotConfig = this.normalizePivotConfig(pivotConfig);
return pipe(map(this.axisValues(pivotConfig.y)), unnest, uniq)(this.loadResponse.data).map(function (axisValues) {
return ramda.pipe(ramda.map(this.axisValues(pivotConfig.y)), ramda.unnest, ramda.uniq)(this.loadResponse.data).map(function (axisValues) {
return {
title: _this4.axisValuesString(pivotConfig.y.find(function (d) {
return d === 'measures';
}) ? dropLast(1, axisValues).concat(_this4.loadResponse.annotation.measures[ResultSet.measureFromAxis(axisValues)].title) : axisValues, ', '),
}) ? ramda.dropLast(1, axisValues).concat(_this4.loadResponse.annotation.measures[ResultSet.measureFromAxis(axisValues)].title) : axisValues, ', '),
key: _this4.axisValuesString(axisValues)

@@ -256,3 +260,3 @@ };

value: function request(url, config) {
return fetch("".concat(API_URL).concat(url), Object.assign({
return whatwgFetch.fetch("".concat(API_URL).concat(url), Object.assign({
headers: {

@@ -361,2 +365,2 @@ Authorization: this.apiToken,

export default index;
module.exports = index;
{
"name": "@cubejs-client/core",
"version": "0.1.2",
"version": "0.1.3",
"description": "cube.js client",

@@ -5,0 +5,0 @@ "main": "dist/cubejs-client-core.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc