@kubb/oas 4.12.4 → 4.12.5
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -4392,7 +4392,7 @@ async function merge(pathOrApi, { oasClass = Oas } = {}) {
|
|
|
4392
4392
|
}
|
|
4393
4393
|
function parseFromConfig(config, oasClass = Oas) {
|
|
4394
4394
|
if ("data" in config.input) {
|
|
4395
|
-
if (typeof config.input.data === "object") return parse(
|
|
4395
|
+
if (typeof config.input.data === "object") return parse(structuredClone(config.input.data), { oasClass });
|
|
4396
4396
|
try {
|
|
4397
4397
|
return parse(import_yaml.parse(config.input.data), { oasClass });
|
|
4398
4398
|
} catch (_e) {
|