Skip to content

update js-yaml #546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update js-yaml
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Nov 21, 2021
commit c1dcafe98770f14f09ddf28c688d151f327c382e
14 changes: 7 additions & 7 deletions web-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@xstate/react": "^1.6.2",
"babel-jest": "26.6.3",
"emotion-theming": "10.0.27",
"js-yaml": "3.14.1",
"js-yaml": "4.1.0",
"markdown-it": "11.0.1",
"markdown-it-emoji": "1.4.0",
"moment": "2.29.1",
Expand All @@ -45,12 +45,12 @@
},
"devDependencies": {
"@babel/core": "7.14.0",
"@storybook/addon-actions": "6.2.9",
"@storybook/addon-knobs": "6.2.9",
"@storybook/addon-links": "6.2.9",
"@storybook/addons": "6.2.9",
"@storybook/addon-actions": "6.3.12",
"@storybook/addon-knobs": "6.3.1",
"@storybook/addon-links": "6.3.12",
"@storybook/addons": "6.3.12",
"@storybook/preset-create-react-app": "3.1.7",
"@storybook/react": "6.2.9",
"@storybook/react": "6.3.12",
"@types/graphql": "14.5.0",
"@types/highlight.js": "9.12.4",
"@types/jest": "26.0.23",
Expand All @@ -66,7 +66,7 @@
"customize-cra": "1.0.0",
"mini-css-extract-plugin": "0.11.2",
"node-sass": "4.14.1",
"prettier": "2.3.0",
"prettier": "2.4.1",
"react-app-rewired": "2.1.8",
"react-scripts": "4.0.3",
"sass-loader": "8.0.2",
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/services/hooks/useFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const useFetch = <T>(url: string, options: object = {}): { data: T | null; error
case 'text/plain':
case 'text/yaml':
const text = await res.text()
data = yaml.safeLoad(text)
data = yaml.load(text)
break
default:
throw new Error(`Unsupported content-type "${contentType}"`)
Expand Down
Loading