@m1212e/rumble 0.17.3 → 0.18.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/out/index.mjs CHANGED
@@ -7,7 +7,6 @@ import { SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { AttributeNames, SpanNames, createOpenTelemetryWrapper } from "@pothos/tracing-opentelemetry";
8
8
  import { capitalize, cloneDeep, debounce, merge, toMerged } from "es-toolkit";
9
9
  import { createPubSub, createYoga } from "graphql-yoga";
10
- import { useSofa } from "sofa-api";
11
10
  import { One, count, relationsFilterToSQL, sql } from "drizzle-orm";
12
11
  import { CasingCache, toCamelCase } from "drizzle-orm/casing";
13
12
  import { PgEnumColumn, PgTable } from "drizzle-orm/pg-core";
@@ -181,7 +180,7 @@ function mapNullFieldsToUndefined(obj) {
181
180
  }
182
181
  //#endregion
183
182
  //#region package.json
184
- var version = "0.17.3";
183
+ var version = "0.18.0";
185
184
  //#endregion
186
185
  //#region lib/helpers/mergeFilters.ts
187
186
  function mergeFilters(filterA, filterB) {
@@ -1751,7 +1750,8 @@ export const db = drizzle(
1751
1750
  ].filter(Boolean)
1752
1751
  });
1753
1752
  };
1754
- const createSofa = (args) => {
1753
+ const createSofa = async (args) => {
1754
+ const { useSofa: useSofaFn } = await import("sofa-api");
1755
1755
  if (args.openAPI) merge(args.openAPI, sofaOpenAPIWebhookDocs);
1756
1756
  if (args.errorHandler) {
1757
1757
  const originalHandler = args.errorHandler;
@@ -1762,7 +1762,7 @@ export const db = drizzle(
1762
1762
  return originalHandler(errors);
1763
1763
  };
1764
1764
  }
1765
- return useSofa({
1765
+ return useSofaFn({
1766
1766
  ...args,
1767
1767
  schema: builtSchema(),
1768
1768
  context,