@stryke/prisma-better-auth-generator 0.10.1 → 0.10.2
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 +1 -1
- package/dist/generator.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/generator.cjs
CHANGED
|
@@ -231,7 +231,7 @@ export const statements = {
|
|
|
231
231
|
...defaultStatements,
|
|
232
232
|
${modelOperations.map((modelOperation) => {
|
|
233
233
|
const { model, plural: _, ...operations } = modelOperation;
|
|
234
|
-
return `${lowerCaseFirst(model)}: [${Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
|
|
234
|
+
return `${lowerCaseFirst(model)}: [${Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
|
|
235
235
|
}).join(",\n")}
|
|
236
236
|
}`
|
|
237
237
|
);
|
package/dist/generator.js
CHANGED
|
@@ -210,7 +210,7 @@ export const statements = {
|
|
|
210
210
|
...defaultStatements,
|
|
211
211
|
${modelOperations.map((modelOperation) => {
|
|
212
212
|
const { model, plural: _, ...operations } = modelOperation;
|
|
213
|
-
return `${lowerCaseFirst(model)}: [${Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
|
|
213
|
+
return `${lowerCaseFirst(model)}: [${Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
|
|
214
214
|
}).join(",\n")}
|
|
215
215
|
}`
|
|
216
216
|
);
|
package/dist/index.cjs
CHANGED
|
@@ -227,7 +227,7 @@ export const statements = {
|
|
|
227
227
|
...defaultStatements,
|
|
228
228
|
${modelOperations.map((modelOperation) => {
|
|
229
229
|
const { model, plural: _, ...operations } = modelOperation;
|
|
230
|
-
return `${lowerCaseFirst(model)}: [${Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
|
|
230
|
+
return `${lowerCaseFirst(model)}: [${Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
|
|
231
231
|
}).join(",\n")}
|
|
232
232
|
}`
|
|
233
233
|
);
|
package/dist/index.js
CHANGED
|
@@ -206,7 +206,7 @@ export const statements = {
|
|
|
206
206
|
...defaultStatements,
|
|
207
207
|
${modelOperations.map((modelOperation) => {
|
|
208
208
|
const { model, plural: _, ...operations } = modelOperation;
|
|
209
|
-
return `${lowerCaseFirst(model)}: [${Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
|
|
209
|
+
return `${lowerCaseFirst(model)}: [${Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
|
|
210
210
|
}).join(",\n")}
|
|
211
211
|
}`
|
|
212
212
|
);
|