apitally 0.18.0 → 0.18.1
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/nestjs/index.cjs
CHANGED
|
@@ -12996,7 +12996,7 @@ var setConsumerFn = null;
|
|
|
12996
12996
|
async function useApitally2(app, config) {
|
|
12997
12997
|
const httpAdapter = app.getHttpAdapter();
|
|
12998
12998
|
const instance = httpAdapter.getInstance();
|
|
12999
|
-
const platform =
|
|
12999
|
+
const platform = httpAdapter.constructor.name.toLowerCase().includes("fastify") ? "fastify" : "express";
|
|
13000
13000
|
if (platform === "express") {
|
|
13001
13001
|
const { useApitally: useApitally3, setConsumer: setConsumer4 } = await Promise.resolve().then(() => (init_express(), express_exports));
|
|
13002
13002
|
setConsumerFn = setConsumer4;
|