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.js
CHANGED
|
@@ -12991,7 +12991,7 @@ var setConsumerFn = null;
|
|
|
12991
12991
|
async function useApitally2(app, config) {
|
|
12992
12992
|
const httpAdapter = app.getHttpAdapter();
|
|
12993
12993
|
const instance = httpAdapter.getInstance();
|
|
12994
|
-
const platform =
|
|
12994
|
+
const platform = httpAdapter.constructor.name.toLowerCase().includes("fastify") ? "fastify" : "express";
|
|
12995
12995
|
if (platform === "express") {
|
|
12996
12996
|
const { useApitally: useApitally3, setConsumer: setConsumer4 } = await Promise.resolve().then(() => (init_express(), express_exports));
|
|
12997
12997
|
setConsumerFn = setConsumer4;
|