@cubejs-client/core 0.34.37 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8712,8 +8712,10 @@
8712
8712
 
8713
8713
  if (id === 'measures') {
8714
8714
  destinationIndex = lastIndex + 1;
8715
- } else if (destinationIndex >= lastIndex && nextPivotConfig[destinationAxis][lastIndex] === 'measures') {
8715
+ } else if (sourceAxis === destinationAxis && destinationIndex >= lastIndex && nextPivotConfig[destinationAxis][lastIndex] === 'measures') {
8716
8716
  destinationIndex = lastIndex - 1;
8717
+ } else if (sourceAxis !== destinationAxis && destinationIndex > lastIndex && nextPivotConfig[destinationAxis][lastIndex] === 'measures') {
8718
+ destinationIndex = lastIndex;
8717
8719
  }
8718
8720
 
8719
8721
  nextPivotConfig[sourceAxis].splice(sourceIndex, 1);
@@ -11878,9 +11880,9 @@
11878
11880
  }());
11879
11881
  }
11880
11882
 
11881
- var CubejsApi = /*#__PURE__*/function () {
11882
- function CubejsApi(apiToken, options) {
11883
- _classCallCheck(this, CubejsApi);
11883
+ var CubeApi = /*#__PURE__*/function () {
11884
+ function CubeApi(apiToken, options) {
11885
+ _classCallCheck(this, CubeApi);
11884
11886
 
11885
11887
  if (apiToken !== null && !Array.isArray(apiToken) && _typeof(apiToken) === 'object') {
11886
11888
  options = apiToken;
@@ -11910,7 +11912,7 @@
11910
11912
  this.updateAuthorizationPromise = null;
11911
11913
  }
11912
11914
 
11913
- _createClass(CubejsApi, [{
11915
+ _createClass(CubeApi, [{
11914
11916
  key: "request",
11915
11917
  value: function request(method, params) {
11916
11918
  return this.transport.request(method, _objectSpread({
@@ -12530,18 +12532,17 @@
12530
12532
  }
12531
12533
  }]);
12532
12534
 
12533
- return CubejsApi;
12535
+ return CubeApi;
12534
12536
  }();
12535
12537
 
12536
- var cubejs = (function (apiToken, options) {
12537
- return new CubejsApi(apiToken, options);
12538
+ var cube = (function (apiToken, options) {
12539
+ return new CubeApi(apiToken, options);
12538
12540
  });
12539
12541
 
12540
12542
  var clientCoreExports = /*#__PURE__*/Object.freeze({
12541
12543
  __proto__: null,
12542
- 'default': cubejs,
12543
- CubejsApi: CubejsApi,
12544
- CubeApi: CubejsApi,
12544
+ 'default': cube,
12545
+ CubeApi: CubeApi,
12545
12546
  HttpTransport: HttpTransport,
12546
12547
  ResultSet: ResultSet,
12547
12548
  RequestError: RequestError,
@@ -12563,10 +12564,10 @@
12563
12564
  });
12564
12565
 
12565
12566
  Object.keys(clientCoreExports).forEach(function (key) {
12566
- cubejs[key] = clientCoreExports[key];
12567
+ cube[key] = clientCoreExports[key];
12567
12568
  });
12568
12569
 
12569
- return cubejs;
12570
+ return cube;
12570
12571
 
12571
12572
  })));
12572
12573
  //# sourceMappingURL=cubejs-client-core.umd.js.map