@cubejs-client/core 0.34.32 → 0.34.60

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.
package/index.d.ts CHANGED
@@ -990,6 +990,7 @@ declare module '@cubejs-client/core' {
990
990
  */
991
991
  isVisible?: boolean;
992
992
  public?: boolean;
993
+ meta?: any;
993
994
  };
994
995
 
995
996
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-client/core",
3
- "version": "0.34.32",
3
+ "version": "0.34.60",
4
4
  "engines": {},
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,5 +45,5 @@
45
45
  "eslint-plugin-node": "^5.2.1",
46
46
  "jest": "^27"
47
47
  },
48
- "gitHead": "a6f3644f7efe469e9b086075387e5a322988ad8a"
48
+ "gitHead": "7434929be3e99eb1d1fbb8a6b6c7f2427c6fcae6"
49
49
  }
package/src/utils.js CHANGED
@@ -288,10 +288,17 @@ export function movePivotItem(
288
288
  if (id === 'measures') {
289
289
  destinationIndex = lastIndex + 1;
290
290
  } else if (
291
+ sourceAxis === destinationAxis &&
291
292
  destinationIndex >= lastIndex &&
292
293
  nextPivotConfig[destinationAxis][lastIndex] === 'measures'
293
294
  ) {
294
295
  destinationIndex = lastIndex - 1;
296
+ } else if (
297
+ sourceAxis !== destinationAxis &&
298
+ destinationIndex > lastIndex &&
299
+ nextPivotConfig[destinationAxis][lastIndex] === 'measures'
300
+ ) {
301
+ destinationIndex = lastIndex;
295
302
  }
296
303
 
297
304
  nextPivotConfig[sourceAxis].splice(sourceIndex, 1);