Skip to content

Commit

Permalink
fix: avoid to pass apikey (#277)
Browse files Browse the repository at this point in the history
* build: update dependencies

* fix: avoid to pass apikey

avoid pass around component to prevent leaked it
  • Loading branch information
Kikobeats committed Mar 13, 2022
1 parent e9e8b42 commit 747243f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"react"
],
"dependencies": {
"@microlink/mql": "~0.10.0",
"@microlink/mql": "~0.10.19",
"is-localhost-url": "~1.0.3",
"nanoclamp": "~1.4.1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const Card = props => {
media: mediaProp,
setData,
url,
apiKey, // destructuring to avoid pass it
...restProps
} = props

Expand Down

0 comments on commit 747243f

Please sign in to comment.