Skip to content

Commit

Permalink
v1.1.2: fix peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Sep 2, 2021
1 parent abac9a9 commit d4cd894
Show file tree
Hide file tree
Showing 5 changed files with 1,249 additions and 1,469 deletions.
2 changes: 1 addition & 1 deletion dist/cjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const getAssets = async (options) => {
if(options.apiKey == undefined) { throw 'Web3Wallets: Please pass an apiKey. See documentation.' }

let assets = Promise.all(
(options.blockchain ? [options.blockchain] : wallet.blockchains).map((blockchain) =>{
(options.blockchain ? [options.blockchain] : wallet.blockchains).map((blockchain) =>{

return fetch('https://api.depay.pro/v1/assets?account=' + account + '&blockchain=' + blockchain, {
headers: { 'X-Api-Key': options.apiKey }
Expand Down
2 changes: 1 addition & 1 deletion dist/es/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getAssets = async (options) => {
if(options.apiKey == undefined) { throw 'Web3Wallets: Please pass an apiKey. See documentation.' }

let assets = Promise.all(
(options.blockchain ? [options.blockchain] : wallet.blockchains).map((blockchain) =>{
(options.blockchain ? [options.blockchain] : wallet.blockchains).map((blockchain) =>{

return fetch('https://api.depay.pro/v1/assets?account=' + account + '&blockchain=' + blockchain, {
headers: { 'X-Api-Key': options.apiKey }
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
if(options.apiKey == undefined) { throw 'Web3Wallets: Please pass an apiKey. See documentation.' }

let assets = Promise.all(
(options.blockchain ? [options.blockchain] : wallet.blockchains).map((blockchain) =>{
(options.blockchain ? [options.blockchain] : wallet.blockchains).map((blockchain) =>{

return fetch('https://api.depay.pro/v1/assets?account=' + account + '&blockchain=' + blockchain, {
headers: { 'X-Api-Key': options.apiKey }
Expand Down
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "depay-web3-assets",
"moduleName": "Web3Assets",
"version": "1.1.1",
"version": "1.1.2",
"description": "",
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
Expand Down Expand Up @@ -34,12 +34,13 @@
"homepage": "https://github.com/DePayFi/depay-web3-assets#readme",
"private": false,
"dependencies": {
"depay-web3-blockchains": "^2.1.0",
"depay-web3-client": "^4.0.2",
"depay-web3-constants": "^3.0.0",
"depay-web3-wallets": "^5.0.0"
},
"peerDependencies": {},
"peerDependencies": {
"depay-web3-blockchains": "^2.4.0",
"depay-web3-client": "^4.0.3",
"depay-web3-constants": "^3.0.1",
"depay-web3-wallets": "^5.1.1"
},
"engines": {
"node": ">=10"
},
Expand All @@ -53,7 +54,11 @@
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"babel-preset-env": "^1.7.0",
"depay-web3-mock": "^5.3.0",
"depay-web3-blockchains": "^2.4.0",
"depay-web3-client": "^4.0.3",
"depay-web3-constants": "^3.0.1",
"depay-web3-mock": "^5.9.0",
"depay-web3-wallets": "^5.1.1",
"eslint": "^7.15.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.22.1",
Expand Down
Loading

0 comments on commit d4cd894

Please sign in to comment.