@kubb/oas 4.12.4 → 4.12.6

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 CHANGED
@@ -4395,7 +4395,7 @@ async function merge(pathOrApi, { oasClass = Oas } = {}) {
4395
4395
  }
4396
4396
  function parseFromConfig(config, oasClass = Oas) {
4397
4397
  if ("data" in config.input) {
4398
- if (typeof config.input.data === "object") return parse(JSON.parse(JSON.stringify(config.input.data)), { oasClass });
4398
+ if (typeof config.input.data === "object") return parse(structuredClone(config.input.data), { oasClass });
4399
4399
  try {
4400
4400
  return parse(import_yaml.parse(config.input.data), { oasClass });
4401
4401
  } catch (_e) {