@stryke/prisma-better-auth-generator 0.11.0 → 0.11.1
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 -3
- package/dist/generator.js +3 -3
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/generator.cjs
CHANGED
|
@@ -222,7 +222,7 @@ var OMITTED_RESOURCES = [
|
|
|
222
222
|
"account",
|
|
223
223
|
"verification"
|
|
224
224
|
];
|
|
225
|
-
var
|
|
225
|
+
var SOFT_DELETE_OPERATIONS = [
|
|
226
226
|
"softDelete",
|
|
227
227
|
"softDeleteMany"
|
|
228
228
|
];
|
|
@@ -243,9 +243,9 @@ ${modelOperations.filter((modelOperation) => !OMITTED_RESOURCES.includes(lowerCa
|
|
|
243
243
|
const { model, plural: _, ...operations } = modelOperation;
|
|
244
244
|
const operationsList = Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`);
|
|
245
245
|
if (config.withSoftDelete) {
|
|
246
|
-
operationsList.push(...
|
|
246
|
+
operationsList.push(...SOFT_DELETE_OPERATIONS);
|
|
247
247
|
}
|
|
248
|
-
return `${lowerCaseFirst(model)}: [${
|
|
248
|
+
return `${lowerCaseFirst(model)}: [${operationsList.sort().join(", ")}]`;
|
|
249
249
|
}).join(",\n")}
|
|
250
250
|
}`
|
|
251
251
|
);
|
package/dist/generator.js
CHANGED
|
@@ -201,7 +201,7 @@ var OMITTED_RESOURCES = [
|
|
|
201
201
|
"account",
|
|
202
202
|
"verification"
|
|
203
203
|
];
|
|
204
|
-
var
|
|
204
|
+
var SOFT_DELETE_OPERATIONS = [
|
|
205
205
|
"softDelete",
|
|
206
206
|
"softDeleteMany"
|
|
207
207
|
];
|
|
@@ -222,9 +222,9 @@ ${modelOperations.filter((modelOperation) => !OMITTED_RESOURCES.includes(lowerCa
|
|
|
222
222
|
const { model, plural: _, ...operations } = modelOperation;
|
|
223
223
|
const operationsList = Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`);
|
|
224
224
|
if (config.withSoftDelete) {
|
|
225
|
-
operationsList.push(...
|
|
225
|
+
operationsList.push(...SOFT_DELETE_OPERATIONS);
|
|
226
226
|
}
|
|
227
|
-
return `${lowerCaseFirst(model)}: [${
|
|
227
|
+
return `${lowerCaseFirst(model)}: [${operationsList.sort().join(", ")}]`;
|
|
228
228
|
}).join(",\n")}
|
|
229
229
|
}`
|
|
230
230
|
);
|
package/dist/index.cjs
CHANGED
|
@@ -218,7 +218,7 @@ var OMITTED_RESOURCES = [
|
|
|
218
218
|
"account",
|
|
219
219
|
"verification"
|
|
220
220
|
];
|
|
221
|
-
var
|
|
221
|
+
var SOFT_DELETE_OPERATIONS = [
|
|
222
222
|
"softDelete",
|
|
223
223
|
"softDeleteMany"
|
|
224
224
|
];
|
|
@@ -239,9 +239,9 @@ ${modelOperations.filter((modelOperation) => !OMITTED_RESOURCES.includes(lowerCa
|
|
|
239
239
|
const { model, plural: _, ...operations } = modelOperation;
|
|
240
240
|
const operationsList = Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`);
|
|
241
241
|
if (config.withSoftDelete) {
|
|
242
|
-
operationsList.push(...
|
|
242
|
+
operationsList.push(...SOFT_DELETE_OPERATIONS);
|
|
243
243
|
}
|
|
244
|
-
return `${lowerCaseFirst(model)}: [${
|
|
244
|
+
return `${lowerCaseFirst(model)}: [${operationsList.sort().join(", ")}]`;
|
|
245
245
|
}).join(",\n")}
|
|
246
246
|
}`
|
|
247
247
|
);
|
package/dist/index.js
CHANGED
|
@@ -197,7 +197,7 @@ var OMITTED_RESOURCES = [
|
|
|
197
197
|
"account",
|
|
198
198
|
"verification"
|
|
199
199
|
];
|
|
200
|
-
var
|
|
200
|
+
var SOFT_DELETE_OPERATIONS = [
|
|
201
201
|
"softDelete",
|
|
202
202
|
"softDeleteMany"
|
|
203
203
|
];
|
|
@@ -218,9 +218,9 @@ ${modelOperations.filter((modelOperation) => !OMITTED_RESOURCES.includes(lowerCa
|
|
|
218
218
|
const { model, plural: _, ...operations } = modelOperation;
|
|
219
219
|
const operationsList = Object.keys(operations).filter((operation) => !operation.endsWith("ManyAndReturn") && !operation.endsWith("OrThrow")).map((operation) => `"${operation.replace("One", "")}"`);
|
|
220
220
|
if (config.withSoftDelete) {
|
|
221
|
-
operationsList.push(...
|
|
221
|
+
operationsList.push(...SOFT_DELETE_OPERATIONS);
|
|
222
222
|
}
|
|
223
|
-
return `${lowerCaseFirst(model)}: [${
|
|
223
|
+
return `${lowerCaseFirst(model)}: [${operationsList.sort().join(", ")}]`;
|
|
224
224
|
}).join(",\n")}
|
|
225
225
|
}`
|
|
226
226
|
);
|