Skip to content

Commit

Permalink
audit: axios + reservior client bump (#5184)
Browse files Browse the repository at this point in the history
* audit: axios + reservior client bump

* ts
  • Loading branch information
skylarbarrera authored Nov 13, 2023
1 parent 1decd95 commit bdb8139
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 26 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"@react-navigation/material-top-tabs": "6.6.2",
"@react-navigation/native": "6.1.6",
"@react-navigation/stack": "6.3.16",
"@reservoir0x/reservoir-sdk": "1.5.4",
"@reservoir0x/reservoir-sdk": "1.8.4",
"@segment/analytics-react-native": "2.15.0",
"@segment/sovran-react-native": "1.0.4",
"@sentry/react-native": "3.4.1",
Expand Down Expand Up @@ -431,7 +431,8 @@
"**/socket.io-parser": "4.2.3",
"**/get-func-name": "3.0.0",
"**/@babel/traverse": "7.23.2",
"**/browserify-sign": "4.2.2"
"**/browserify-sign": "4.2.2",
"**/axios": "1.6.1"
},
"react-native": {
"@tanstack/query-async-storage-persister": "@tanstack/query-async-storage-persister/build/esm/index",
Expand Down
8 changes: 4 additions & 4 deletions src/screens/NFTSingleOfferSheet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,16 +346,16 @@ export function NFTSingleOfferSheet() {
}
step.items?.forEach(item => {
if (
item.txHash &&
!txsRef.current.includes(item.txHash) &&
item.txHashes?.[0] &&
!txsRef.current.includes(item.txHashes?.[0]) &&
item.status === 'incomplete'
) {
let tx;
if (step.id === 'sale') {
tx = {
to: item.data?.to,
from: item.data?.from,
hash: item.txHash,
hash: item.txHashes[0],
network: offer.network,
amount: offer.netAmount.decimal,
asset: {
Expand All @@ -370,7 +370,7 @@ export function NFTSingleOfferSheet() {
tx = {
to: item.data?.to,
from: item.data?.from,
hash: item.txHash,
hash: item.txHashes[0],
network: offer.network,
nft,
type: TransactionType.authorize,
Expand Down
6 changes: 3 additions & 3 deletions src/screens/mints/MintSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -479,14 +479,14 @@ const MintSheet = () => {
}
step.items?.forEach(item => {
if (
item.txHash &&
txRef.current !== item.txHash &&
item.txHashes?.[0] &&
txRef.current !== item.txHashes?.[0] &&
item.status === 'incomplete'
) {
const tx = {
to: item.data?.to,
from: item.data?.from,
hash: item.txHash,
hash: item.txHashes[0],
network: currentNetwork,
amount: mintPriceAmount,
asset: {
Expand Down
28 changes: 11 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3566,10 +3566,10 @@
color "^4.2.3"
warn-once "^0.1.0"

"@reservoir0x/reservoir-sdk@1.5.4":
version "1.5.4"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.5.4.tgz#5390e6d23bf9009c6bcebe68744fc1d514bc5443"
integrity sha512-1sStxOp6PcvDvYUx1mKzWP+/Bu5n0v6lEu1PbLtPylCkr8Yh4aWU+00ABA+jM27VdqW3I7R/oJZBTlqWuVjnAQ==
"@reservoir0x/reservoir-sdk@1.8.4":
version "1.8.4"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.8.4.tgz#f5b0d4ea5924ffea7fd666fcb2ffdd9ac289c919"
integrity sha512-7gznkMz8HfpmS04fIs4Q4XgpvAVHTCdIpMxeF+jY4ewazUJRJqpli0VgUHCeEwSG7u33eCcA1xZ5PyZxYhVSog==
dependencies:
axios "^0.27.2"

Expand Down Expand Up @@ -5903,20 +5903,14 @@ aws4@^1.8.0:
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.12.0.tgz#ce1c9d143389679e253b314241ea9aa5cec980d3"
integrity sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==

axios@^0.26.1:
version "0.26.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9"
integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==
dependencies:
follow-redirects "^1.14.8"

axios@^0.27.2:
version "0.27.2"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972"
integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==
[email protected], axios@^0.26.1, axios@^0.27.2:
version "1.6.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.1.tgz#76550d644bf0a2d469a01f9244db6753208397d7"
integrity sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==
dependencies:
follow-redirects "^1.14.9"
follow-redirects "^1.15.0"
form-data "^4.0.0"
proxy-from-env "^1.1.0"

[email protected], babel-core@^7.0.0-bridge.0:
version "7.0.0-bridge.0"
Expand Down Expand Up @@ -9723,7 +9717,7 @@ flow-parser@^0.206.0:
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.206.0.tgz#f4f794f8026535278393308e01ea72f31000bfef"
integrity sha512-HVzoK3r6Vsg+lKvlIZzaWNBVai+FXTX1wdYhz/wVlH13tb/gOdLXmlTqy6odmTBhT5UoWUbq0k8263Qhr9d88w==

[email protected], follow-redirects@^1.12.1, follow-redirects@^1.14.8, follow-redirects@^1.14.9:
[email protected], follow-redirects@^1.12.1, follow-redirects@^1.15.0:
version "1.14.8"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.8.tgz#016996fb9a11a100566398b1c6839337d7bfa8fc"
integrity sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==
Expand Down

0 comments on commit bdb8139

Please sign in to comment.