@bayoudhi/moose-lib-serverless 0.3.2 → 0.5.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/README.md +51 -1
- package/dist/index.d.mts +63 -1
- package/dist/index.d.ts +63 -1
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -0
- package/dist/index.mjs.map +1 -1
- package/dist/moose-tspc.js +339 -0
- package/package.json +4 -1
package/dist/index.mjs
CHANGED
|
@@ -3084,6 +3084,39 @@ function getView(name) {
|
|
|
3084
3084
|
return getMooseInternal().views.get(name);
|
|
3085
3085
|
}
|
|
3086
3086
|
init_commons();
|
|
3087
|
+
|
|
3088
|
+
// src/index.ts
|
|
3089
|
+
var _pendingClickHouseConfig = null;
|
|
3090
|
+
function configureClickHouse(config) {
|
|
3091
|
+
const registry = globalThis._mooseConfigRegistry;
|
|
3092
|
+
if (registry && typeof registry.setClickHouseConfig === "function") {
|
|
3093
|
+
registry.setClickHouseConfig(config);
|
|
3094
|
+
_pendingClickHouseConfig = null;
|
|
3095
|
+
return;
|
|
3096
|
+
}
|
|
3097
|
+
_pendingClickHouseConfig = config;
|
|
3098
|
+
let _realRegistry = null;
|
|
3099
|
+
Object.defineProperty(globalThis, "_mooseConfigRegistry", {
|
|
3100
|
+
configurable: true,
|
|
3101
|
+
enumerable: true,
|
|
3102
|
+
get() {
|
|
3103
|
+
return _realRegistry;
|
|
3104
|
+
},
|
|
3105
|
+
set(newRegistry) {
|
|
3106
|
+
_realRegistry = newRegistry;
|
|
3107
|
+
if (_pendingClickHouseConfig && typeof newRegistry.setClickHouseConfig === "function") {
|
|
3108
|
+
newRegistry.setClickHouseConfig(_pendingClickHouseConfig);
|
|
3109
|
+
_pendingClickHouseConfig = null;
|
|
3110
|
+
}
|
|
3111
|
+
Object.defineProperty(globalThis, "_mooseConfigRegistry", {
|
|
3112
|
+
configurable: true,
|
|
3113
|
+
enumerable: true,
|
|
3114
|
+
writable: true,
|
|
3115
|
+
value: newRegistry
|
|
3116
|
+
});
|
|
3117
|
+
}
|
|
3118
|
+
});
|
|
3119
|
+
}
|
|
3087
3120
|
export {
|
|
3088
3121
|
ACKs,
|
|
3089
3122
|
Api,
|
|
@@ -3116,6 +3149,7 @@ export {
|
|
|
3116
3149
|
antiCachePath,
|
|
3117
3150
|
cliLog,
|
|
3118
3151
|
compilerLog,
|
|
3152
|
+
configureClickHouse,
|
|
3119
3153
|
createClickhouseParameter,
|
|
3120
3154
|
getApi,
|
|
3121
3155
|
getApis,
|