ezlogs-nextjs 0.1.4 → 0.3.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/README.md +106 -11
- package/bin/install-triggers.cjs +49 -11
- package/dist/actors/index.d.cts +1 -1
- package/dist/actors/index.d.ts +1 -1
- package/dist/{configuration-3Pei_XZ_.d.cts → configuration-OHLNivON.d.cts} +11 -20
- package/dist/{configuration-3Pei_XZ_.d.ts → configuration-OHLNivON.d.ts} +11 -20
- package/dist/db/drizzle.cjs +154 -18
- package/dist/db/drizzle.js +154 -18
- package/dist/db/prisma.cjs +242 -45
- package/dist/db/prisma.d.cts +39 -1
- package/dist/db/prisma.d.ts +39 -1
- package/dist/db/prisma.js +241 -46
- package/dist/db/supabase.cjs +154 -18
- package/dist/db/supabase.js +154 -18
- package/dist/index.cjs +761 -245
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +761 -245
- package/dist/jobs/bullmq.cjs +973 -16
- package/dist/jobs/bullmq.d.cts +8 -3
- package/dist/jobs/bullmq.d.ts +8 -3
- package/dist/jobs/bullmq.js +973 -16
- package/dist/jobs/inngest.cjs +880 -14
- package/dist/jobs/inngest.d.cts +7 -5
- package/dist/jobs/inngest.d.ts +7 -5
- package/dist/jobs/inngest.js +880 -14
- package/dist/jobs/supabase-queues.cjs +878 -16
- package/dist/jobs/supabase-queues.js +878 -16
- package/dist/jobs/trigger.cjs +914 -42
- package/dist/jobs/trigger.js +914 -42
- package/dist/jobs/upstash-workflow.cjs +914 -14
- package/dist/jobs/upstash-workflow.d.cts +16 -2
- package/dist/jobs/upstash-workflow.d.ts +16 -2
- package/dist/jobs/upstash-workflow.js +914 -15
- package/dist/triggers/index.cjs +405 -76
- package/dist/triggers/index.d.cts +36 -41
- package/dist/triggers/index.d.ts +36 -41
- package/dist/triggers/index.js +404 -74
- package/package.json +5 -1
- package/sql/postgres/00_install.sql +244 -21
package/dist/jobs/inngest.d.cts
CHANGED
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
declare function ezlogsInngestMiddleware(): unknown;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* correlation scope
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* Run an Inngest function body (or a step) inside the run's
|
|
11
|
+
* correlation scope, so its DB writes are tagged and emitted under the
|
|
12
|
+
* action that sent the event. Inngest middleware can't wrap the body
|
|
13
|
+
* itself, so without this the job event is captured but the body's DB
|
|
14
|
+
* writes ship as their own actions:
|
|
14
15
|
*
|
|
15
|
-
*
|
|
16
|
+
* inngest.createFunction({ id: "send-invoice" }, { event: "invoice/created" },
|
|
17
|
+
* ({ event, step }) => runInsideInngestCorrelation(event, async () => { ... }))
|
|
16
18
|
*/
|
|
17
19
|
declare function runInsideInngestCorrelation<T>(event: {
|
|
18
20
|
data?: unknown;
|
package/dist/jobs/inngest.d.ts
CHANGED
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
declare function ezlogsInngestMiddleware(): unknown;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* correlation scope
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* Run an Inngest function body (or a step) inside the run's
|
|
11
|
+
* correlation scope, so its DB writes are tagged and emitted under the
|
|
12
|
+
* action that sent the event. Inngest middleware can't wrap the body
|
|
13
|
+
* itself, so without this the job event is captured but the body's DB
|
|
14
|
+
* writes ship as their own actions:
|
|
14
15
|
*
|
|
15
|
-
*
|
|
16
|
+
* inngest.createFunction({ id: "send-invoice" }, { event: "invoice/created" },
|
|
17
|
+
* ({ event, step }) => runInsideInngestCorrelation(event, async () => { ... }))
|
|
16
18
|
*/
|
|
17
19
|
declare function runInsideInngestCorrelation<T>(event: {
|
|
18
20
|
data?: unknown;
|