@cubejs-client/core 0.30.29 → 0.30.64
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 +27 -0
- package/dist/cubejs-client-core.esm.js +1032 -1852
- package/dist/cubejs-client-core.esm.js.map +1 -1
- package/dist/cubejs-client-core.js +0 -21
- package/dist/cubejs-client-core.js.map +1 -1
- package/dist/cubejs-client-core.umd.js +1 -22
- package/dist/cubejs-client-core.umd.js.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +3 -4
- package/src/index.js +0 -19
package/index.d.ts
CHANGED
|
@@ -815,7 +815,7 @@ declare module '@cubejs-client/core' {
|
|
|
815
815
|
|
|
816
816
|
type QueryArrayRecordType<T extends DeeplyReadonly<Query[]>> =
|
|
817
817
|
T extends readonly [infer First, ...infer Rest]
|
|
818
|
-
? SingleQueryRecordType<First> | QueryArrayRecordType<Rest
|
|
818
|
+
? SingleQueryRecordType<First> | QueryArrayRecordType<Rest & DeeplyReadonly<Query[]>>
|
|
819
819
|
: never;
|
|
820
820
|
|
|
821
821
|
// If we can't infer any members at all, then return any.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-client/core",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.64",
|
|
4
4
|
"engines": {},
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
"types": "index.d.ts",
|
|
14
14
|
"author": "Cube Dev, Inc.",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
17
|
-
"@babel/runtime": "^7.1.2",
|
|
18
16
|
"core-js": "^3.6.5",
|
|
19
17
|
"cross-fetch": "^3.0.2",
|
|
20
18
|
"dayjs": "^1.10.4",
|
|
@@ -37,6 +35,7 @@
|
|
|
37
35
|
"devDependencies": {
|
|
38
36
|
"@babel/core": "^7.3.3",
|
|
39
37
|
"@babel/preset-env": "^7.3.1",
|
|
38
|
+
"@babel/runtime": "^7.1.2",
|
|
40
39
|
"@types/jest": "^26.0.9",
|
|
41
40
|
"@types/moment-range": "^4.0.0",
|
|
42
41
|
"babel-jest": "^26.0.1",
|
|
@@ -46,5 +45,5 @@
|
|
|
46
45
|
"eslint-plugin-node": "^5.2.1",
|
|
47
46
|
"jest": "^26.0.1"
|
|
48
47
|
},
|
|
49
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "f5123837220235430a0eabf921e2c9cd4f513261"
|
|
50
49
|
}
|
package/src/index.js
CHANGED
|
@@ -280,15 +280,6 @@ class CubejsApi {
|
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
/**
|
|
284
|
-
* Fetch data for the passed `query`. Operates with the
|
|
285
|
-
* `ApiGateway#load` method to fetch the data.
|
|
286
|
-
* @param {Query | Query[]} query
|
|
287
|
-
* @param {LoadMethodOptions | undefined} options
|
|
288
|
-
* @param {LoadMethodCallback<ResultSet> | undefined} callback
|
|
289
|
-
* @param {string} responseFormat
|
|
290
|
-
* @returns {undefined | Promise<ResultSet>}
|
|
291
|
-
*/
|
|
292
283
|
load(query, options, callback, responseFormat = ResultType.DEFAULT) {
|
|
293
284
|
if (responseFormat === ResultType.COMPACT) {
|
|
294
285
|
if (Array.isArray(query)) {
|
|
@@ -308,16 +299,6 @@ class CubejsApi {
|
|
|
308
299
|
);
|
|
309
300
|
}
|
|
310
301
|
|
|
311
|
-
/**
|
|
312
|
-
* Allows you to fetch data and receive updates over time. Operates
|
|
313
|
-
* with the `ApiGateway#load` method to fetch the data.
|
|
314
|
-
* @link real-time-data-fetch
|
|
315
|
-
* @param {Query | Query[]} query
|
|
316
|
-
* @param {LoadMethodOptions | null} options
|
|
317
|
-
* @param {LoadMethodCallback<ResultSet> | undefined} callback
|
|
318
|
-
* @param {string} responseFormat
|
|
319
|
-
* @returns {void}
|
|
320
|
-
*/
|
|
321
302
|
subscribe(query, options, callback, responseFormat = ResultType.DEFAULT) {
|
|
322
303
|
if (responseFormat === ResultType.COMPACT) {
|
|
323
304
|
if (Array.isArray(query)) {
|