Skip to content

Commit

Permalink
v7.1.3: do not print catched errors
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Aug 21, 2023
1 parent c776034 commit fe04f36
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 31 deletions.
8 changes: 4 additions & 4 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var getAssets = async (options) => {
const controller = new AbortController();
setTimeout(()=>controller.abort(), 10000);
fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]); })
.catch(() => { resolve([]); })
.then((response) => {
if(response && response.ok) {
return response.json()
Expand All @@ -74,7 +74,7 @@ var getAssets = async (options) => {
}
})
.then(resolve)
.catch((error) => { console.log(error); resolve([]); });
.catch(() => { resolve([]); });
})
}),
).then((responses) => responses.flat());
Expand Down Expand Up @@ -220,7 +220,7 @@ var dripAssets = async (options) => {
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); });
}}).catch(()=>{ resolve(); });
})
})));

Expand Down Expand Up @@ -250,7 +250,7 @@ var dripAssets = async (options) => {
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); })
}}).catch(()=>{ resolve(); })
})
})));
}
Expand Down
8 changes: 4 additions & 4 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var getAssets = async (options) => {
const controller = new AbortController();
setTimeout(()=>controller.abort(), 10000);
fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]); })
.catch(() => { resolve([]); })
.then((response) => {
if(response && response.ok) {
return response.json()
Expand All @@ -74,7 +74,7 @@ var getAssets = async (options) => {
}
})
.then(resolve)
.catch((error) => { console.log(error); resolve([]); });
.catch(() => { resolve([]); });
})
}),
).then((responses) => responses.flat());
Expand Down Expand Up @@ -220,7 +220,7 @@ var dripAssets = async (options) => {
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); });
}}).catch(()=>{ resolve(); });
})
})));

Expand Down Expand Up @@ -250,7 +250,7 @@ var dripAssets = async (options) => {
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); })
}}).catch(()=>{ resolve(); })
})
})));
}
Expand Down
8 changes: 4 additions & 4 deletions dist/esm/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var getAssets = async (options) => {
const controller = new AbortController();
setTimeout(()=>controller.abort(), 10000);
fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]); })
.catch(() => { resolve([]); })
.then((response) => {
if(response && response.ok) {
return response.json()
Expand All @@ -74,7 +74,7 @@ var getAssets = async (options) => {
}
})
.then(resolve)
.catch((error) => { console.log(error); resolve([]); });
.catch(() => { resolve([]); });
})
}),
).then((responses) => responses.flat());
Expand Down Expand Up @@ -220,7 +220,7 @@ var dripAssets = async (options) => {
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); });
}}).catch(()=>{ resolve(); });
})
})));

Expand Down Expand Up @@ -250,7 +250,7 @@ var dripAssets = async (options) => {
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); })
}}).catch(()=>{ resolve(); })
})
})));
}
Expand Down
8 changes: 4 additions & 4 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
const controller = new AbortController();
setTimeout(()=>controller.abort(), 10000);
fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]); })
.catch(() => { resolve([]); })
.then((response) => {
if(response && response.ok) {
return response.json()
Expand All @@ -81,7 +81,7 @@
}
})
.then(resolve)
.catch((error) => { console.log(error); resolve([]); });
.catch(() => { resolve([]); });
})
}),
).then((responses) => responses.flat());
Expand Down Expand Up @@ -227,7 +227,7 @@
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); });
}}).catch(()=>{ resolve(); });
})
})));

Expand Down Expand Up @@ -257,7 +257,7 @@
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); })
}}).catch(()=>{ resolve(); })
})
})));
}
Expand Down
8 changes: 4 additions & 4 deletions dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
const controller = new AbortController();
setTimeout(()=>controller.abort(), 10000);
fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]); })
.catch(() => { resolve([]); })
.then((response) => {
if(response && response.ok) {
return response.json()
Expand All @@ -81,7 +81,7 @@
}
})
.then(resolve)
.catch((error) => { console.log(error); resolve([]); });
.catch(() => { resolve([]); });
})
}),
).then((responses) => responses.flat());
Expand Down Expand Up @@ -227,7 +227,7 @@
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); });
}}).catch(()=>{ resolve(); });
})
})));

Expand Down Expand Up @@ -257,7 +257,7 @@
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); })
}}).catch(()=>{ resolve(); })
})
})));
}
Expand Down
8 changes: 4 additions & 4 deletions dist/umd/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
const controller = new AbortController();
setTimeout(()=>controller.abort(), 10000);
fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]); })
.catch(() => { resolve([]); })
.then((response) => {
if(response && response.ok) {
return response.json()
Expand All @@ -81,7 +81,7 @@
}
})
.then(resolve)
.catch((error) => { console.log(error); resolve([]); });
.catch(() => { resolve([]); });
})
}),
).then((responses) => responses.flat());
Expand Down Expand Up @@ -227,7 +227,7 @@
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); });
}}).catch(()=>{ resolve(); });
})
})));

Expand Down Expand Up @@ -257,7 +257,7 @@
resolve(assetWithBalance);
} else {
resolve();
}}).catch((error)=>{ console.log(error); resolve(); })
}}).catch(()=>{ resolve(); })
})
})));
}
Expand Down
2 changes: 1 addition & 1 deletion package.evm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-assets-evm",
"moduleName": "Web3Assets",
"version": "7.1.2",
"version": "7.1.3",
"description": "JavaScript library to retrieve Web3 assets of a given or connected wallet/account.",
"main": "dist/umd/index.evm.js",
"module": "dist/esm/index.evm.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-assets",
"moduleName": "Web3Assets",
"version": "7.1.2",
"version": "7.1.3",
"description": "JavaScript library to retrieve Web3 assets of a given or connected wallet/account.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-assets-solana",
"moduleName": "Web3Assets",
"version": "7.1.2",
"version": "7.1.3",
"description": "JavaScript library to retrieve Web3 assets of a given or connected wallet/account.",
"main": "dist/umd/index.solana.js",
"module": "dist/esm/index.solana.js",
Expand Down
4 changes: 2 additions & 2 deletions src/dripAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default async (options) => {
resolve(assetWithBalance)
} else {
resolve()
}}).catch((error)=>{ console.log(error); resolve() })
}}).catch(()=>{ resolve() })
})
})))

Expand Down Expand Up @@ -182,7 +182,7 @@ export default async (options) => {
resolve(assetWithBalance)
} else {
resolve()
}}).catch((error)=>{ console.log(error); resolve() })
}}).catch(()=>{ resolve() })
})
})))
}
Expand Down
4 changes: 2 additions & 2 deletions src/getAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default async (options) => {
const controller = new AbortController()
setTimeout(()=>controller.abort(), 10000)
fetch(`https://public.depay.com/accounts/${blockchain}/${address}/assets`, { signal: controller.signal })
.catch((error) => { console.log(error); resolve([]) })
.catch(() => { resolve([]) })
.then((response) => {
if(response && response.ok) {
return response.json()
Expand All @@ -86,7 +86,7 @@ export default async (options) => {
}
})
.then(resolve)
.catch((error) => { console.log(error); resolve([]) })
.catch(() => { resolve([]) })
})
}),
).then((responses) => responses.flat())
Expand Down

0 comments on commit fe04f36

Please sign in to comment.