Skip to content

Commit

Permalink
chore(deps): migrate react-file-download to js-file-download (#3488)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lai authored Sep 22, 2022
1 parent 839a99f commit e987485
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
13 changes: 1 addition & 12 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"file-dialog": "0.0.8",
"immutable": "^3.x.x",
"is-json": "^2.0.1",
"js-file-download": "=0.4.12",
"js-yaml": "=4.1.0",
"json-beautify": "^1.0.1",
"json-refs": "^3.0.4",
Expand All @@ -81,7 +82,6 @@
"react-dd-menu": "^2.0.0",
"react-dom": "=17.0.2",
"react-dropzone": "^12.0.4",
"react-file-download": "^0.3.2",
"react-immutable-proptypes": "^2.1.0",
"react-redux": "=7.2.8",
"react-split-pane": "^0.1.82",
Expand Down
4 changes: 2 additions & 2 deletions src/standalone/topbar/topbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from "prop-types"
import Swagger from "swagger-client"
import URL from "url"
import DropdownMenu from "./DropdownMenu"
import reactFileDownload from "react-file-download"
import fileDownload from "js-file-download"
import YAML from "js-yaml"
import beautifyJson from "json-beautify"
import { petStoreOas2Def, petStoreOas3Def } from "../../plugins/default-definitions"
Expand Down Expand Up @@ -86,7 +86,7 @@ export default class Topbar extends React.Component {
// allows e2e tests to proceed without choking on file download native event
return
}
return reactFileDownload(content, fileName)
return fileDownload(content, fileName)
}

// Menu actions
Expand Down

0 comments on commit e987485

Please sign in to comment.