@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.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(JSON.parse(JSON.stringify(config.input.data)), { oasClass });
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) {