@stryke/prisma-trpc-generator 0.10.3 → 0.10.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/dist/generator.cjs +3 -2
- package/dist/generator.js +3 -2
- package/dist/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/generator.cjs
CHANGED
|
@@ -7641,7 +7641,8 @@ async function generateTRPCExports(sourceFile, config, options, outputDir) {
|
|
|
7641
7641
|
/* ts */
|
|
7642
7642
|
`import { createContext } from '${relativePath(outputDir, joinPaths(outputDir, config.contextPath))}';
|
|
7643
7643
|
import { initTRPC } from '@trpc/server';
|
|
7644
|
-
import { createTRPCServerActionHandler } from '@stryke/trpc-next/action-handler'
|
|
7644
|
+
import { createTRPCServerActionHandler } from '@stryke/trpc-next/action-handler';
|
|
7645
|
+
import { cookies } from "next/headers";`
|
|
7645
7646
|
);
|
|
7646
7647
|
}
|
|
7647
7648
|
sourceFile.addStatements(
|
|
@@ -7738,7 +7739,7 @@ export const ${procName} = t.procedure`
|
|
|
7738
7739
|
/* ts */
|
|
7739
7740
|
`
|
|
7740
7741
|
export const createAction: ReturnType<typeof createTRPCServerActionHandler> =
|
|
7741
|
-
createTRPCServerActionHandler(t, createContext);
|
|
7742
|
+
createTRPCServerActionHandler(cookies, t, createContext);
|
|
7742
7743
|
`
|
|
7743
7744
|
);
|
|
7744
7745
|
}
|
package/dist/generator.js
CHANGED
|
@@ -7646,7 +7646,8 @@ async function generateTRPCExports(sourceFile, config, options, outputDir) {
|
|
|
7646
7646
|
/* ts */
|
|
7647
7647
|
`import { createContext } from '${relativePath(outputDir, joinPaths(outputDir, config.contextPath))}';
|
|
7648
7648
|
import { initTRPC } from '@trpc/server';
|
|
7649
|
-
import { createTRPCServerActionHandler } from '@stryke/trpc-next/action-handler'
|
|
7649
|
+
import { createTRPCServerActionHandler } from '@stryke/trpc-next/action-handler';
|
|
7650
|
+
import { cookies } from "next/headers";`
|
|
7650
7651
|
);
|
|
7651
7652
|
}
|
|
7652
7653
|
sourceFile.addStatements(
|
|
@@ -7743,7 +7744,7 @@ export const ${procName} = t.procedure`
|
|
|
7743
7744
|
/* ts */
|
|
7744
7745
|
`
|
|
7745
7746
|
export const createAction: ReturnType<typeof createTRPCServerActionHandler> =
|
|
7746
|
-
createTRPCServerActionHandler(t, createContext);
|
|
7747
|
+
createTRPCServerActionHandler(cookies, t, createContext);
|
|
7747
7748
|
`
|
|
7748
7749
|
);
|
|
7749
7750
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -7637,7 +7637,8 @@ async function generateTRPCExports(sourceFile, config, options, outputDir) {
|
|
|
7637
7637
|
/* ts */
|
|
7638
7638
|
`import { createContext } from '${relativePath(outputDir, joinPaths(outputDir, config.contextPath))}';
|
|
7639
7639
|
import { initTRPC } from '@trpc/server';
|
|
7640
|
-
import { createTRPCServerActionHandler } from '@stryke/trpc-next/action-handler'
|
|
7640
|
+
import { createTRPCServerActionHandler } from '@stryke/trpc-next/action-handler';
|
|
7641
|
+
import { cookies } from "next/headers";`
|
|
7641
7642
|
);
|
|
7642
7643
|
}
|
|
7643
7644
|
sourceFile.addStatements(
|
|
@@ -7734,7 +7735,7 @@ export const ${procName} = t.procedure`
|
|
|
7734
7735
|
/* ts */
|
|
7735
7736
|
`
|
|
7736
7737
|
export const createAction: ReturnType<typeof createTRPCServerActionHandler> =
|
|
7737
|
-
createTRPCServerActionHandler(t, createContext);
|
|
7738
|
+
createTRPCServerActionHandler(cookies, t, createContext);
|
|
7738
7739
|
`
|
|
7739
7740
|
);
|
|
7740
7741
|
}
|
package/dist/index.js
CHANGED
|
@@ -7642,7 +7642,8 @@ async function generateTRPCExports(sourceFile, config, options, outputDir) {
|
|
|
7642
7642
|
/* ts */
|
|
7643
7643
|
`import { createContext } from '${relativePath(outputDir, joinPaths(outputDir, config.contextPath))}';
|
|
7644
7644
|
import { initTRPC } from '@trpc/server';
|
|
7645
|
-
import { createTRPCServerActionHandler } from '@stryke/trpc-next/action-handler'
|
|
7645
|
+
import { createTRPCServerActionHandler } from '@stryke/trpc-next/action-handler';
|
|
7646
|
+
import { cookies } from "next/headers";`
|
|
7646
7647
|
);
|
|
7647
7648
|
}
|
|
7648
7649
|
sourceFile.addStatements(
|
|
@@ -7739,7 +7740,7 @@ export const ${procName} = t.procedure`
|
|
|
7739
7740
|
/* ts */
|
|
7740
7741
|
`
|
|
7741
7742
|
export const createAction: ReturnType<typeof createTRPCServerActionHandler> =
|
|
7742
|
-
createTRPCServerActionHandler(t, createContext);
|
|
7743
|
+
createTRPCServerActionHandler(cookies, t, createContext);
|
|
7743
7744
|
`
|
|
7744
7745
|
);
|
|
7745
7746
|
}
|