Skip to content

Commit 747243f

Browse files
authored
fix: avoid to pass apikey (#277)
* build: update dependencies * fix: avoid to pass apikey avoid pass around component to prevent leaked it
1 parent e9e8b42 commit 747243f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"react"
2525
],
2626
"dependencies": {
27-
"@microlink/mql": "~0.10.0",
27+
"@microlink/mql": "~0.10.19",
2828
"is-localhost-url": "~1.0.3",
2929
"nanoclamp": "~1.4.1"
3030
},

packages/react/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const Card = props => {
3838
media: mediaProp,
3939
setData,
4040
url,
41+
apiKey, // destructuring to avoid pass it
4142
...restProps
4243
} = props
4344

0 commit comments

Comments
 (0)