@cubejs-backend/native 0.33.34 → 0.33.37
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/js/index.d.ts +1 -1
- package/dist/js/index.js +2 -2
- package/package.json +2 -2
package/dist/js/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface PyConfiguration {
|
|
|
54
54
|
queryRewrite?: (query: unknown, ctx: unknown) => Promise<unknown>;
|
|
55
55
|
contextToApiScopes?: () => Promise<string[]>;
|
|
56
56
|
}
|
|
57
|
-
export declare const pythonLoadConfig: (
|
|
57
|
+
export declare const pythonLoadConfig: (content: string, options: {
|
|
58
58
|
file: string;
|
|
59
59
|
}) => Promise<PyConfiguration>;
|
|
60
60
|
export type PythonCtx = {
|
package/dist/js/index.js
CHANGED
|
@@ -170,12 +170,12 @@ const shutdownInterface = async (instance) => {
|
|
|
170
170
|
await new Promise((resolve) => setTimeout(resolve, 2000));
|
|
171
171
|
};
|
|
172
172
|
exports.shutdownInterface = shutdownInterface;
|
|
173
|
-
const pythonLoadConfig = async (
|
|
173
|
+
const pythonLoadConfig = async (content, options) => {
|
|
174
174
|
if ((0, exports.isFallbackBuild)()) {
|
|
175
175
|
throw new Error('Python is not supported in fallback build');
|
|
176
176
|
}
|
|
177
177
|
const native = loadNative();
|
|
178
|
-
const config = await native.pythonLoadConfig(
|
|
178
|
+
const config = await native.pythonLoadConfig(content, options);
|
|
179
179
|
if (config.checkAuth) {
|
|
180
180
|
const nativeCheckAuth = config.checkAuth;
|
|
181
181
|
config.checkAuth = async (req, authorization) => nativeCheckAuth(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/native",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.37",
|
|
4
4
|
"author": "Cube Dev, Inc.",
|
|
5
5
|
"description": "Native module for Cube.js (binding to Rust codebase)",
|
|
6
6
|
"main": "dist/js/index.js",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "3e07c0c255105060a96f6e1510f59fc48fbac302"
|
|
98
98
|
}
|