2024.5.0 (#39)

This commit is contained in:
Gregory Schier authored and GitHub committed 2024-06-03 14:08:24 -07:00
1 parent 60e469a1c9
commit 4f9a7e9c88
197 files changed
+12283 -3505

No files matched your search

+2
View File
@@ -180,6 +180,7 @@ function importBody(rawBody: any): Pick<HttpRequest, 'body' | 'bodyType' | 'head
f.src != null
? {
enabled: !f.disabled,
contentType: f.contentType ?? null,
name: f.key ?? '',
file: f.src ?? '',
}
@@ -244,6 +245,7 @@ function convertTemplateSyntax<T>(obj: T): T {
}
const idCount: Partial<Record<Model['model'], number>> = {};
function generateId(model: Model['model']): string {
idCount[model] = (idCount[model] ?? -1) + 1;
return `GENERATE_ID::${model.toUpperCase()}_${idCount[model]}`;