@axiom-lattice/gateway 4.8.2 → 4.8.3

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/index.js CHANGED
@@ -10178,23 +10178,13 @@ var import_core20 = require("@axiom-lattice/core");
10178
10178
 
10179
10179
  // src/services/plugins/tenantPluginResolver.ts
10180
10180
  var import_core19 = require("@axiom-lattice/core");
10181
- async function listTenantPlugins(tenantId) {
10182
- let tenantPlugins = [];
10183
- try {
10184
- tenantPlugins = (await (0, import_core19.getSandboxPluginCatalog)().ensureLoaded(tenantId)).plugins;
10185
- } catch {
10186
- tenantPlugins = [];
10187
- }
10188
- const globalPlugins = import_core19.PluginRegistry.list().map((type) => import_core19.PluginRegistry.get(type)).filter((p) => Boolean(p));
10189
- return (0, import_core19.mergePluginSources)(globalPlugins, tenantPlugins);
10190
- }
10191
10181
  async function resolveTenantPluginByType(tenantId, type) {
10192
- return (await listTenantPlugins(tenantId)).find((p) => p.meta.type === type);
10182
+ return (await (0, import_core19.listTenantPlugins)(tenantId)).find((p) => p.meta.type === type);
10193
10183
  }
10194
10184
 
10195
10185
  // src/controllers/middleware-types.ts
10196
10186
  async function collectMiddlewareMetas(tenantId) {
10197
- return (await listTenantPlugins(tenantId)).map(import_core20.serializePluginMeta);
10187
+ return (await (0, import_core19.listTenantPlugins)(tenantId)).map(import_core20.serializePluginMeta);
10198
10188
  }
10199
10189
  function middlewareTypesRoutes(fastify2) {
10200
10190
  fastify2.get("/api/middleware-types", async (request, reply) => {