@m1212e/rumble 0.23.0 → 0.23.4
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.cjs +175 -61
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +10 -3
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +11 -4
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +176 -62
- package/out/index.mjs.map +1 -1
- package/package.json +19 -19
package/out/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GraphQLError, GraphQLSchema } from "graphql";
|
|
2
|
-
import {
|
|
2
|
+
import { MySqlAsyncDatabase } from "drizzle-orm/mysql-core";
|
|
3
3
|
import { PgAsyncDatabase } from "drizzle-orm/pg-core";
|
|
4
|
-
import {
|
|
4
|
+
import { SQLiteAsyncDatabase } from "drizzle-orm/sqlite-core";
|
|
5
5
|
import { IncomingMessage, RequestListener, ServerResponse } from "node:http";
|
|
6
6
|
import { Http2ServerRequest, Http2ServerResponse } from "node:http2";
|
|
7
7
|
import { Socket } from "node:net";
|
|
@@ -148,7 +148,7 @@ declare const assertFirstEntryExists: <T>(value: T[]) => T;
|
|
|
148
148
|
declare function mapNullFieldsToUndefined<T extends object>(obj: T): { [K in keyof T]: T[K] extends null ? undefined : Exclude<T[K], null> };
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region lib/types/drizzleInstanceType.d.ts
|
|
151
|
-
type DrizzleInstance = PgAsyncDatabase<any, any> |
|
|
151
|
+
type DrizzleInstance = PgAsyncDatabase<any, any> | SQLiteAsyncDatabase<any, any, any> | MySqlAsyncDatabase<any, any>;
|
|
152
152
|
/**
|
|
153
153
|
* Type representing the query function of a Drizzle instance.
|
|
154
154
|
*/
|
|
@@ -4340,6 +4340,13 @@ type RumbleInput<UserContext extends Record<string, any>, DB extends DrizzleInst
|
|
|
4340
4340
|
* The logger instance to use. Must satisfy the RumbleLogger interface (pino satisfies this).
|
|
4341
4341
|
*/
|
|
4342
4342
|
logger: RumbleLogger;
|
|
4343
|
+
/**
|
|
4344
|
+
* When both logger and otel are enabled, inject `traceId` and `spanId` fields into every
|
|
4345
|
+
* log entry emitted during a GraphQL operation. Useful for correlating log lines with
|
|
4346
|
+
* traces in backends like Jaeger or Grafana Tempo.
|
|
4347
|
+
* @default true
|
|
4348
|
+
*/
|
|
4349
|
+
injectTraceId?: boolean;
|
|
4343
4350
|
};
|
|
4344
4351
|
};
|
|
4345
4352
|
//#endregion
|