Skip to content

Commit

Permalink
v12.3.13: minor package upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Dec 14, 2023
1 parent 8cf8a54 commit 07007ec
Show file tree
Hide file tree
Showing 22 changed files with 99 additions and 70 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/Payment/preflight.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Payment Widget: preflight', () => {
})
})
cy.wait(200).then(()=>{
expect(criticalError.toString()).to.eq('You need to set the blockchain your want to receive the payment on!')
expect(criticalError.toString()).to.eq('You need to set the blockchain you want to receive the payment on!')
})
})
})
Expand Down
39 changes: 37 additions & 2 deletions dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/react-dialog-stack@8"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/react-shadow-dom@5"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/js-verify-signature-web@3"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/[email protected].8"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/[email protected].9"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/[email protected]"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-tokens@10"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/react-token-image@5"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/coinbase-wallet-sdk@3"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/walletconnect-v1@1"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/walletconnect-v2@2"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/[email protected].5"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/[email protected].6"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/[email protected]"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/[email protected]"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@depay/web3-payments@13"></script>
Expand Down Expand Up @@ -244,6 +244,41 @@ <h5 class="px-4">Payment: multichain</h5>
DePayWidgets.Payment({
accept: [
{
blockchain: 'ethereum',
amount: 0.0001,
token: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
receiver: '0x08B277154218CCF3380CAE48d630DA13462E3950'
},{
blockchain: 'bsc',
amount: 0.0001,
token: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
receiver: '0x08B277154218CCF3380CAE48d630DA13462E3950'
},{
blockchain: 'fantom',
amount: 0.0001,
token: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
receiver: '0x08B277154218CCF3380CAE48d630DA13462E3950'
},{
blockchain: 'avalanche',
amount: 0.0001,
token: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
receiver: '0x08B277154218CCF3380CAE48d630DA13462E3950'
},{
blockchain: 'arbitrum',
amount: 0.0001,
token: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
receiver: '0x08B277154218CCF3380CAE48d630DA13462E3950'
},{
blockchain: 'optimism',
amount: 0.0001,
token: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
receiver: '0x08B277154218CCF3380CAE48d630DA13462E3950'
},{
blockchain: 'base',
amount: 0.0001,
token: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
receiver: '0x08B277154218CCF3380CAE48d630DA13462E3950'
},{
blockchain: 'polygon',
amount: 0.0001,
token: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
Expand Down
6 changes: 3 additions & 3 deletions dist/esm/index.bundle.js

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -25583,20 +25583,19 @@ var PaymentRoutingProvider = (function (props) {
return;
}

if (firstRouteDisplayed) {
if (allRoutesLoaded) {
return;
}

firstRouteDisplayed = true;

if (allRoutesLoaded) {
if (route.approvalRequired) {
return;
}

if (route.approvalRequired) {
if (firstRouteDisplayed) {
return;
}

firstRouteDisplayed = true;
clearInterval(slowRoutingTimeout);
setUpdatedRoutes([route]);
}
Expand Down Expand Up @@ -29454,7 +29453,7 @@ var preflight$1 = /*#__PURE__*/function () {
case 3:
accept.forEach(function (configuration) {
if (typeof configuration.blockchain === 'undefined') {
throw 'You need to set the blockchain your want to receive the payment on!';
throw 'You need to set the blockchain you want to receive the payment on!';
}

if (!supported.includes(configuration.blockchain)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.evm.js.map

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25546,20 +25546,19 @@ var PaymentRoutingProvider = (function (props) {
return;
}

if (firstRouteDisplayed) {
if (allRoutesLoaded) {
return;
}

firstRouteDisplayed = true;

if (allRoutesLoaded) {
if (route.approvalRequired) {
return;
}

if (route.approvalRequired) {
if (firstRouteDisplayed) {
return;
}

firstRouteDisplayed = true;
clearInterval(slowRoutingTimeout);
setUpdatedRoutes([route]);
}
Expand Down Expand Up @@ -30853,7 +30852,7 @@ var preflight$1 = /*#__PURE__*/function () {
case 3:
accept.forEach(function (configuration) {
if (typeof configuration.blockchain === 'undefined') {
throw 'You need to set the blockchain your want to receive the payment on!';
throw 'You need to set the blockchain you want to receive the payment on!';
}

if (!supported.includes(configuration.blockchain)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions dist/esm/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -25584,20 +25584,19 @@ var PaymentRoutingProvider = (function (props) {
return;
}

if (firstRouteDisplayed) {
if (allRoutesLoaded) {
return;
}

firstRouteDisplayed = true;

if (allRoutesLoaded) {
if (route.approvalRequired) {
return;
}

if (route.approvalRequired) {
if (firstRouteDisplayed) {
return;
}

firstRouteDisplayed = true;
clearInterval(slowRoutingTimeout);
setUpdatedRoutes([route]);
}
Expand Down Expand Up @@ -38415,7 +38414,7 @@ var preflight$1 = /*#__PURE__*/function () {
case 3:
accept.forEach(function (configuration) {
if (typeof configuration.blockchain === 'undefined') {
throw 'You need to set the blockchain your want to receive the payment on!';
throw 'You need to set the blockchain you want to receive the payment on!';
}

if (!supported$4.includes(configuration.blockchain)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.solana.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/umd/index.bundle.js

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -25581,20 +25581,19 @@
return;
}

if (firstRouteDisplayed) {
if (allRoutesLoaded) {
return;
}

firstRouteDisplayed = true;

if (allRoutesLoaded) {
if (route.approvalRequired) {
return;
}

if (route.approvalRequired) {
if (firstRouteDisplayed) {
return;
}

firstRouteDisplayed = true;
clearInterval(slowRoutingTimeout);
setUpdatedRoutes([route]);
}
Expand Down Expand Up @@ -29452,7 +29451,7 @@
case 3:
accept.forEach(function (configuration) {
if (typeof configuration.blockchain === 'undefined') {
throw 'You need to set the blockchain your want to receive the payment on!';
throw 'You need to set the blockchain you want to receive the payment on!';
}

if (!supported.includes(configuration.blockchain)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.evm.js.map

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25542,20 +25542,19 @@
return;
}

if (firstRouteDisplayed) {
if (allRoutesLoaded) {
return;
}

firstRouteDisplayed = true;

if (allRoutesLoaded) {
if (route.approvalRequired) {
return;
}

if (route.approvalRequired) {
if (firstRouteDisplayed) {
return;
}

firstRouteDisplayed = true;
clearInterval(slowRoutingTimeout);
setUpdatedRoutes([route]);
}
Expand Down Expand Up @@ -30849,7 +30848,7 @@
case 3:
accept.forEach(function (configuration) {
if (typeof configuration.blockchain === 'undefined') {
throw 'You need to set the blockchain your want to receive the payment on!';
throw 'You need to set the blockchain you want to receive the payment on!';
}

if (!supported.includes(configuration.blockchain)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.js.map

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions dist/umd/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -25582,20 +25582,19 @@
return;
}

if (firstRouteDisplayed) {
if (allRoutesLoaded) {
return;
}

firstRouteDisplayed = true;

if (allRoutesLoaded) {
if (route.approvalRequired) {
return;
}

if (route.approvalRequired) {
if (firstRouteDisplayed) {
return;
}

firstRouteDisplayed = true;
clearInterval(slowRoutingTimeout);
setUpdatedRoutes([route]);
}
Expand Down Expand Up @@ -38413,7 +38412,7 @@
case 3:
accept.forEach(function (configuration) {
if (typeof configuration.blockchain === 'undefined') {
throw 'You need to set the blockchain your want to receive the payment on!';
throw 'You need to set the blockchain you want to receive the payment on!';
}

if (!supported$4.includes(configuration.blockchain)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.solana.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.evm.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"@depay/walletconnect-v1": "^1.8.0",
"@depay/walletconnect-v2": "^2.9.2",
"@depay/web3-assets-evm": "^7.2.0",
"@depay/web3-blockchains": "^9.2.8",
"@depay/web3-blockchains": "^9.2.9",
"@depay/web3-client-evm": "^10.18.4",
"@depay/web3-exchanges-evm": "^13.7.0",
"@depay/web3-payments-evm": "^13.6.5",
"@depay/web3-tokens-evm": "^10.3.0",
"@depay/web3-wallets-evm": "^16.3.5",
"@depay/web3-wallets-evm": "^16.3.6",
"@tanstack/react-virtual": "^3.0.0-beta.54",
"@uiw/copy-to-clipboard": "^1.0.14",
"decimal.js": "^10.4.3",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/widgets",
"moduleName": "DePayWidgets",
"version": "12.3.12",
"version": "12.3.13",
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -44,12 +44,12 @@
"@depay/walletconnect-v1": "^1.8.0",
"@depay/walletconnect-v2": "^2.9.2",
"@depay/web3-assets": "^7.2.0",
"@depay/web3-blockchains": "^9.2.8",
"@depay/web3-blockchains": "^9.2.9",
"@depay/web3-client": "^10.18.4",
"@depay/web3-exchanges": "^13.7.0",
"@depay/web3-payments": "^13.6.5",
"@depay/web3-tokens": "^10.3.0",
"@depay/web3-wallets": "^16.3.5",
"@depay/web3-wallets": "^16.3.6",
"@tanstack/react-virtual": "^3.0.0-beta.54",
"@uiw/copy-to-clipboard": "^1.0.14",
"decimal.js": "^10.4.3",
Expand Down
6 changes: 3 additions & 3 deletions package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/widgets-solana",
"moduleName": "DePayWidgets",
"version": "12.3.12",
"version": "12.3.13",
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -31,12 +31,12 @@
"@depay/walletconnect-v1": "^1.8.0",
"@depay/walletconnect-v2": "^2.9.2",
"@depay/web3-assets-solana": "^7.2.0",
"@depay/web3-blockchains": "^9.2.8",
"@depay/web3-blockchains": "^9.2.9",
"@depay/web3-client-solana": "^10.18.4",
"@depay/web3-exchanges-solana": "^13.7.0",
"@depay/web3-payments-solana": "^13.6.5",
"@depay/web3-tokens-solana": "^10.3.0",
"@depay/web3-wallets-solana": "^16.3.5",
"@depay/web3-wallets-solana": "^16.3.6",
"@tanstack/react-virtual": "^3.0.0-beta.54",
"@uiw/copy-to-clipboard": "^1.0.14",
"decimal.js": "^10.4.3",
Expand Down
2 changes: 1 addition & 1 deletion src/Payment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { supported } from './blockchains'
let preflight = async({ accept, recover, integration }) => {
if(integration || recover){ return }
accept.forEach((configuration)=>{
if(typeof configuration.blockchain === 'undefined') { throw('You need to set the blockchain your want to receive the payment on!') }
if(typeof configuration.blockchain === 'undefined') { throw('You need to set the blockchain you want to receive the payment on!') }
if(!supported.includes(configuration.blockchain)) { throw('You need to set a supported blockchain!') }
if(typeof configuration.token === 'undefined' && typeof configuration.fromToken === 'undefined' && typeof configuration.fromAmount === 'undefined' && typeof configuration.toToken === 'undefined') { throw('You need to set the token you want to receive as payment!') }
if(typeof configuration.token === 'undefined' && typeof configuration.fromToken !== 'undefined' && typeof configuration.fromAmount === 'undefined' && typeof configuration.toToken === 'undefined') { throw('You need to set the fromToken, fromAmount and toToken!') }
Expand Down
4 changes: 2 additions & 2 deletions src/providers/PaymentRoutingProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export default (props)=>{
route.fromToken.address !== route.toToken.address &&
!Blockchains[route.blockchain].tokens.find((token)=>token.address.toLowerCase() === route.fromToken.address.toLowerCase())
) { return }
if(firstRouteDisplayed) { return }
firstRouteDisplayed = true
if(allRoutesLoaded) { return }
if(route.approvalRequired) { return }
if(firstRouteDisplayed) { return }
firstRouteDisplayed = true
clearInterval(slowRoutingTimeout)
selectedRouteFromDrip = route
setUpdatedRoutes([route])
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1306,10 +1306,10 @@
resolved "https://registry.yarnpkg.com/@depay/web3-blockchains/-/web3-blockchains-9.2.0.tgz#22ed38c94fc61293f117419ae118320d96588e37"
integrity sha512-w7UOZqsCjNg+wwfhQ5vF1vV0qTcMJpIJj8dMmGo31PWu7eiL301zYfVEWyxPUDd4xIJY3hcUeB78xapfhrxKRQ==

"@depay/web3-blockchains@^9.2.8":
version "9.2.8"
resolved "https://registry.yarnpkg.com/@depay/web3-blockchains/-/web3-blockchains-9.2.8.tgz#4c597326bf7966f3b983694f0d047085960b6db7"
integrity sha512-d43QvCh5gPvJXoHXAFWxLucC7hi9SctmxpUgGOWJFbXys1BnX1UkYb1E+48hWG7RAFthzkzH2dSlRAtmj+C6zw==
"@depay/web3-blockchains@^9.2.9":
version "9.2.9"
resolved "https://registry.yarnpkg.com/@depay/web3-blockchains/-/web3-blockchains-9.2.9.tgz#c6969deae3b80eb9319105669f3f3fe9c74a6efe"
integrity sha512-97752s0GlybrXV3NxbcOxB6xP5vMKAKuJfL/CDRc0702ZdgEj43sIQMKxrSkjt6rbWnRRT/gLbU6c4/vaZfr2w==

"@depay/web3-client@^10.18.4":
version "10.18.4"
Expand Down Expand Up @@ -1340,10 +1340,10 @@
resolved "https://registry.yarnpkg.com/@depay/web3-tokens/-/web3-tokens-10.3.0.tgz#11f19ed154c65329739afc29e74cd254030f811f"
integrity sha512-r/98yZx+j0NLm5Z6wiUwyJvsWE/sq4//B1j4S4q1zzm62S3kLs3+H/5XEVEcInzekvr2NruC0oFgV+1Lfvwmtw==

"@depay/web3-wallets@^16.3.5":
version "16.3.5"
resolved "https://registry.yarnpkg.com/@depay/web3-wallets/-/web3-wallets-16.3.5.tgz#7875af94665bcdaf696ec47baa7a987df6c59503"
integrity sha512-DKQoK2B4dzmq5YMT8LlX/otQSRTTW086Kvu2zoG2cXAtR6sKkxvSl+a8rZHHqiEJDu1STSHxJGaNdXfupPu6XA==
"@depay/web3-wallets@^16.3.6":
version "16.3.6"
resolved "https://registry.yarnpkg.com/@depay/web3-wallets/-/web3-wallets-16.3.6.tgz#abfffe7bd1dfc90bd7d90e5cbbec3206f9fa94da"
integrity sha512-HJUadbc971BmXV4hAkTfSm2DGFTJASOCVGw/vnROIupnXAwqlzdXK2B6CK/dg9kj7BlUa2t8U0DBE+PPa3BmIg==

"@eslint/eslintrc@^0.4.3":
version "0.4.3"
Expand Down

0 comments on commit 07007ec

Please sign in to comment.