@514labs/moose-lib 0.6.244-ci-6-gbb6c4d8d → 0.6.244-ci-1-g1f019cce
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/{browserCompatible-91E-CWRB.d.ts → browserCompatible-2eoeppzc.d.ts} +1 -1
- package/dist/{browserCompatible-BjzQVzW-.d.mts → browserCompatible-CwNwv0e0.d.mts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +5 -11
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +5 -11
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.d.mts +1 -1
- package/dist/dmv2/index.d.ts +1 -1
- package/dist/dmv2/index.js +5 -11
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +5 -11
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-CBTXNlql.d.mts → index-bZEbqrMe.d.mts} +3 -44
- package/dist/{index-CBTXNlql.d.ts → index-bZEbqrMe.d.ts} +3 -44
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -13
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +0 -34
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +0 -34
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -617,8 +617,6 @@ var ClickHouseEngines = /* @__PURE__ */ ((ClickHouseEngines2) => {
|
|
|
617
617
|
ClickHouseEngines2["ReplicatedReplacingMergeTree"] = "ReplicatedReplacingMergeTree";
|
|
618
618
|
ClickHouseEngines2["ReplicatedAggregatingMergeTree"] = "ReplicatedAggregatingMergeTree";
|
|
619
619
|
ClickHouseEngines2["ReplicatedSummingMergeTree"] = "ReplicatedSummingMergeTree";
|
|
620
|
-
ClickHouseEngines2["ReplicatedCollapsingMergeTree"] = "ReplicatedCollapsingMergeTree";
|
|
621
|
-
ClickHouseEngines2["ReplicatedVersionedCollapsingMergeTree"] = "ReplicatedVersionedCollapsingMergeTree";
|
|
622
620
|
return ClickHouseEngines2;
|
|
623
621
|
})(ClickHouseEngines || {});
|
|
624
622
|
function dropView(name) {
|
|
@@ -2509,16 +2507,9 @@ var WebApp = class {
|
|
|
2509
2507
|
if (typeof app.callback === "function") {
|
|
2510
2508
|
return app.callback();
|
|
2511
2509
|
}
|
|
2512
|
-
if (
|
|
2513
|
-
return
|
|
2514
|
-
|
|
2515
|
-
if (fastifyApp.routing && typeof fastifyApp.routing.handle === "function") {
|
|
2516
|
-
fastifyApp.routing.handle(req, res);
|
|
2517
|
-
} else {
|
|
2518
|
-
throw new Error(
|
|
2519
|
-
"Fastify app detected but not properly initialized. Ensure .ready() is called before passing to WebApp."
|
|
2520
|
-
);
|
|
2521
|
-
}
|
|
2510
|
+
if (typeof app.routing === "function") {
|
|
2511
|
+
return (req, res) => {
|
|
2512
|
+
app.routing(req, res);
|
|
2522
2513
|
};
|
|
2523
2514
|
}
|
|
2524
2515
|
throw new Error(
|
|
@@ -2526,11 +2517,12 @@ var WebApp = class {
|
|
|
2526
2517
|
- A function (raw Node.js handler)
|
|
2527
2518
|
- An object with .handle() method (Express, Connect)
|
|
2528
2519
|
- An object with .callback() method (Koa)
|
|
2529
|
-
- An object with .routing
|
|
2520
|
+
- An object with .routing function (Fastify)
|
|
2530
2521
|
|
|
2531
2522
|
Examples:
|
|
2532
2523
|
Express: new WebApp("name", expressApp)
|
|
2533
2524
|
Koa: new WebApp("name", koaApp)
|
|
2525
|
+
Fastify: new WebApp("name", fastifyApp)
|
|
2534
2526
|
Raw: new WebApp("name", (req, res) => { ... })
|
|
2535
2527
|
`
|
|
2536
2528
|
);
|