@stryke/prisma-better-auth-generator 0.10.2 → 0.10.3

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.
@@ -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") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
234
+ return `${lowerCaseFirst(model)}: [${Object.keys(operations).sort().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") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
213
+ return `${lowerCaseFirst(model)}: [${Object.keys(operations).sort().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") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
230
+ return `${lowerCaseFirst(model)}: [${Object.keys(operations).sort().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") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
209
+ return `${lowerCaseFirst(model)}: [${Object.keys(operations).sort().filter((operation) => !operation.endsWith("ManyAndReturn") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`).join(", ")}]`;
210
210
  }).join(",\n")}
211
211
  }`
212
212
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/prisma-better-auth-generator",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "type": "module",
5
5
  "description": "A package containing a Prisma v6 generator for Better-Auth authentication.",
6
6
  "repository": {