@ng-openapi/zod 0.1.1 → 0.1.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/index.cjs +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -2768,7 +2768,7 @@ function listGeneratedFileNames(project, directoryPath, suffix) {
|
|
|
2768
2768
|
__name(listGeneratedFileNames, "listGeneratedFileNames");
|
|
2769
2769
|
|
|
2770
2770
|
// ../../shared/src/config/constants.ts
|
|
2771
|
-
var disableLinting =
|
|
2771
|
+
var disableLinting = `// @ts-nocheck
|
|
2772
2772
|
/* eslint-disable */
|
|
2773
2773
|
/* @noformat */
|
|
2774
2774
|
/* @formatter:off */
|
|
@@ -3369,7 +3369,6 @@ var ZodGenerator = class {
|
|
|
3369
3369
|
const sourceFile = this.project.createSourceFile(filePath, "", {
|
|
3370
3370
|
overwrite: true
|
|
3371
3371
|
});
|
|
3372
|
-
sourceFile.insertText(0, ZOD_PLUGIN_GENERATOR_HEADER_COMMENT(validatorName));
|
|
3373
3372
|
this.addImports(sourceFile, operations);
|
|
3374
3373
|
const _statements = [];
|
|
3375
3374
|
for (const operation of operations) {
|
|
@@ -3378,6 +3377,7 @@ var ZodGenerator = class {
|
|
|
3378
3377
|
}
|
|
3379
3378
|
if (_statements.length > 0) {
|
|
3380
3379
|
sourceFile.formatText();
|
|
3380
|
+
sourceFile.insertText(0, ZOD_PLUGIN_GENERATOR_HEADER_COMMENT(validatorName));
|
|
3381
3381
|
sourceFile.saveSync();
|
|
3382
3382
|
} else {
|
|
3383
3383
|
this.project.removeSourceFile(sourceFile);
|
package/index.js
CHANGED
|
@@ -2734,7 +2734,7 @@ function listGeneratedFileNames(project, directoryPath, suffix) {
|
|
|
2734
2734
|
__name(listGeneratedFileNames, "listGeneratedFileNames");
|
|
2735
2735
|
|
|
2736
2736
|
// ../../shared/src/config/constants.ts
|
|
2737
|
-
var disableLinting =
|
|
2737
|
+
var disableLinting = `// @ts-nocheck
|
|
2738
2738
|
/* eslint-disable */
|
|
2739
2739
|
/* @noformat */
|
|
2740
2740
|
/* @formatter:off */
|
|
@@ -3335,7 +3335,6 @@ var ZodGenerator = class {
|
|
|
3335
3335
|
const sourceFile = this.project.createSourceFile(filePath, "", {
|
|
3336
3336
|
overwrite: true
|
|
3337
3337
|
});
|
|
3338
|
-
sourceFile.insertText(0, ZOD_PLUGIN_GENERATOR_HEADER_COMMENT(validatorName));
|
|
3339
3338
|
this.addImports(sourceFile, operations);
|
|
3340
3339
|
const _statements = [];
|
|
3341
3340
|
for (const operation of operations) {
|
|
@@ -3344,6 +3343,7 @@ var ZodGenerator = class {
|
|
|
3344
3343
|
}
|
|
3345
3344
|
if (_statements.length > 0) {
|
|
3346
3345
|
sourceFile.formatText();
|
|
3346
|
+
sourceFile.insertText(0, ZOD_PLUGIN_GENERATOR_HEADER_COMMENT(validatorName));
|
|
3347
3347
|
sourceFile.saveSync();
|
|
3348
3348
|
} else {
|
|
3349
3349
|
this.project.removeSourceFile(sourceFile);
|