Skip to content

Commit

Permalink
fix: replace native structuredClone() with a polyfill (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeworxet authored Aug 8, 2024
1 parent 012dcb2 commit 0c2bd0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@apidevtools/json-schema-ref-parser": "^11.5.4",
"@asyncapi/parser": "^3.1.0",
"@types/json-schema": "^7.0.11",
"@ungap/structured-clone": "^1.2.0",
"js-yaml": "^4.1.0",
"jsonpath-plus": "^6.0.1",
"lodash": "^4.17.21"
Expand All @@ -56,6 +57,7 @@
"@types/js-yaml": "^4.0.5",
"@types/lodash": "^4.14.186",
"@types/node": "^18.8.2",
"@types/ungap__structured-clone": "^1.2.0",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"eslint": "^8.24.0",
Expand Down
1 change: 1 addition & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { readFileSync } from 'fs';
import path from 'path';
import yaml from 'js-yaml';
import { merge } from 'lodash';
import structuredClone from '@ungap/structured-clone';
import { parse } from './parser';
import { ParserError } from './errors';

Expand Down

0 comments on commit 0c2bd0c

Please sign in to comment.