@cubejs-client/core 0.29.8 → 0.29.23
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/CHANGELOG.md +12 -0
- package/dist/cubejs-client-core.esm.js +2 -2
- package/dist/cubejs-client-core.esm.js.map +1 -1
- package/dist/cubejs-client-core.js +2 -2
- package/dist/cubejs-client-core.js.map +1 -1
- package/dist/cubejs-client-core.umd.js +7 -7
- package/dist/cubejs-client-core.umd.js.map +1 -1
- package/index.d.ts +4 -5
- package/package.json +2 -3
- package/src/index.js +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @title @cubejs-client/core
|
|
3
3
|
* @permalink /@cubejs-client-core
|
|
4
|
-
* @menuCategory
|
|
4
|
+
* @menuCategory Frontend Integrations
|
|
5
5
|
* @subcategory Reference
|
|
6
6
|
* @menuOrder 2
|
|
7
7
|
* @description Vanilla JavaScript Cube.js client.
|
|
@@ -825,7 +825,7 @@ declare module '@cubejs-client/core' {
|
|
|
825
825
|
type TCubeMemberType = 'time' | 'number' | 'string' | 'boolean';
|
|
826
826
|
|
|
827
827
|
// @see BaseCubeMember
|
|
828
|
-
// @
|
|
828
|
+
// @deprecated
|
|
829
829
|
export type TCubeMember = {
|
|
830
830
|
type: TCubeMemberType;
|
|
831
831
|
name: string;
|
|
@@ -841,6 +841,7 @@ declare module '@cubejs-client/core' {
|
|
|
841
841
|
title: string;
|
|
842
842
|
shortTitle: string;
|
|
843
843
|
isVisible?: boolean;
|
|
844
|
+
meta?: any;
|
|
844
845
|
};
|
|
845
846
|
|
|
846
847
|
export type TCubeMeasure = BaseCubeMember & {
|
|
@@ -1060,7 +1061,7 @@ declare module '@cubejs-client/core' {
|
|
|
1060
1061
|
* );
|
|
1061
1062
|
* ```
|
|
1062
1063
|
*
|
|
1063
|
-
* @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
|
|
1064
|
+
* @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 startup. In case of async function `authorization` is updated for `options.transport` on each request.
|
|
1064
1065
|
* @order 1
|
|
1065
1066
|
*/
|
|
1066
1067
|
export default function cubejs(apiToken: string | (() => Promise<string>), options: CubeJSApiOptions): CubejsApi;
|
|
@@ -1154,5 +1155,3 @@ declare module '@cubejs-client/core' {
|
|
|
1154
1155
|
timeElapsed: number;
|
|
1155
1156
|
};
|
|
1156
1157
|
}
|
|
1157
|
-
|
|
1158
|
-
import '@cubejs-client/dx';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-client/core",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.23",
|
|
4
4
|
"engines": {},
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"author": "Cube Dev, Inc.",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime": "^7.1.2",
|
|
17
|
-
"@cubejs-client/dx": "^0.29.5",
|
|
18
17
|
"core-js": "^3.6.5",
|
|
19
18
|
"cross-fetch": "^3.0.2",
|
|
20
19
|
"dayjs": "^1.10.4",
|
|
@@ -46,5 +45,5 @@
|
|
|
46
45
|
"eslint-plugin-node": "^5.2.1",
|
|
47
46
|
"jest": "^26.0.1"
|
|
48
47
|
},
|
|
49
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "da516571691c103ecbd035c3319653766622b083"
|
|
50
49
|
}
|
package/src/index.js
CHANGED
|
@@ -24,7 +24,7 @@ function mutexPromise(promise) {
|
|
|
24
24
|
|
|
25
25
|
class CubejsApi {
|
|
26
26
|
constructor(apiToken, options) {
|
|
27
|
-
if (typeof apiToken === 'object') {
|
|
27
|
+
if (apiToken !== null && !Array.isArray(apiToken) && typeof apiToken === 'object') {
|
|
28
28
|
options = apiToken;
|
|
29
29
|
apiToken = undefined;
|
|
30
30
|
}
|