@easy-breezy/generator-api
Advanced tools
Comparing version 2.0.32 to 2.0.33
@@ -90,7 +90,10 @@ import { dirname, join, relative } from 'path'; | ||
if (payload) { | ||
fs.updateFile(path, this.schemaStringify(deepSortObject(payload)), true); | ||
// Stringify перед сортировкой для удаление circular structure | ||
const stringPayload = this.schemaStringify(payload); | ||
const sortedPayload = deepSortObject(JSON.parse(stringPayload)); | ||
fs.updateFile(path, this.schemaStringify(sortedPayload), true); | ||
} | ||
}; | ||
schemaToType = async (filename, payload) => { | ||
const schema = JSON.parse(this.schemaStringify(deepSortObject(payload))); | ||
const schema = deepSortObject(JSON.parse(this.schemaStringify(payload))); | ||
const result = await compile(schema, filename, { | ||
@@ -97,0 +100,0 @@ bannerComment: '', |
{ | ||
"name": "@easy-breezy/generator-api", | ||
"version": "2.0.32", | ||
"version": "2.0.33", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
69269
1129