@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.
- package/dist/cubejs-client-core.esm.js +6 -4
- package/dist/cubejs-client-core.esm.js.map +1 -1
- package/dist/cubejs-client-core.js +10 -9
- package/dist/cubejs-client-core.js.map +1 -1
- package/dist/cubejs-client-core.umd.js +14 -13
- package/dist/cubejs-client-core.umd.js.map +1 -1
- package/index.d.ts +17 -17
- package/package.json +2 -2
- package/src/index.js +3 -3
- package/src/index.test.js +15 -15
- package/src/index.umd.js +3 -3
- package/src/utils.js +7 -0
|
@@ -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
|
|
11882
|
-
function
|
|
11883
|
-
_classCallCheck(this,
|
|
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(
|
|
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
|
|
12535
|
+
return CubeApi;
|
|
12534
12536
|
}();
|
|
12535
12537
|
|
|
12536
|
-
var
|
|
12537
|
-
return new
|
|
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':
|
|
12543
|
-
|
|
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
|
-
|
|
12567
|
+
cube[key] = clientCoreExports[key];
|
|
12567
12568
|
});
|
|
12568
12569
|
|
|
12569
|
-
return
|
|
12570
|
+
return cube;
|
|
12570
12571
|
|
|
12571
12572
|
})));
|
|
12572
12573
|
//# sourceMappingURL=cubejs-client-core.umd.js.map
|