@depay/widgets 7.14.3 → 7.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -14
- package/dist/esm/index.bundle.js +2 -2
- package/dist/esm/index.js +9 -9
- package/dist/umd/index.bundle.js +2 -2
- package/dist/umd/index.js +9 -9
- package/package.json +6 -6
package/dist/umd/index.js
CHANGED
|
@@ -1467,7 +1467,7 @@
|
|
|
1467
1467
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1468
1468
|
className: "PoweredByWrapper"
|
|
1469
1469
|
}, /*#__PURE__*/React__default["default"].createElement("a", {
|
|
1470
|
-
href: 'https://depay.
|
|
1470
|
+
href: 'https://depay.com',
|
|
1471
1471
|
rel: "noopener noreferrer",
|
|
1472
1472
|
target: "_blank",
|
|
1473
1473
|
className: "PoweredByLink"
|
|
@@ -21194,7 +21194,7 @@
|
|
|
21194
21194
|
set = _useContext4.set;
|
|
21195
21195
|
|
|
21196
21196
|
var openSocket = function openSocket(transaction) {
|
|
21197
|
-
var socket = new WebSocket('wss://integrate.depay.
|
|
21197
|
+
var socket = new WebSocket('wss://integrate.depay.com/cable');
|
|
21198
21198
|
|
|
21199
21199
|
socket.onopen = function (event) {
|
|
21200
21200
|
var msg = {
|
|
@@ -21298,7 +21298,7 @@
|
|
|
21298
21298
|
to_decimals: paymentRoute.toDecimals,
|
|
21299
21299
|
fee_amount: paymentRoute === null || paymentRoute === void 0 ? void 0 : (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString()
|
|
21300
21300
|
}).then(function (response) {
|
|
21301
|
-
if (response.status != 200) {
|
|
21301
|
+
if (response.status != 200 && response.status != 201) {
|
|
21302
21302
|
retryStartTracking(transaction, afterBlock, paymentRoute, attempt);
|
|
21303
21303
|
}
|
|
21304
21304
|
})["catch"](function (error) {
|
|
@@ -21322,7 +21322,7 @@
|
|
|
21322
21322
|
};
|
|
21323
21323
|
|
|
21324
21324
|
var handleResponse = function handleResponse(response) {
|
|
21325
|
-
if (response.status == 200) {
|
|
21325
|
+
if (response.status == 200 || response.status == 201) {
|
|
21326
21326
|
response.json().then(function (data) {
|
|
21327
21327
|
if (data && data.forward_to) {
|
|
21328
21328
|
setForwardTo(data.forward_to);
|
|
@@ -21375,7 +21375,7 @@
|
|
|
21375
21375
|
return;
|
|
21376
21376
|
}
|
|
21377
21377
|
|
|
21378
|
-
fetch('https://public.depay.
|
|
21378
|
+
fetch('https://public.depay.com/payments', {
|
|
21379
21379
|
headers: {
|
|
21380
21380
|
'Content-Type': 'application/json'
|
|
21381
21381
|
},
|
|
@@ -21468,7 +21468,7 @@
|
|
|
21468
21468
|
React.useEffect(function () {
|
|
21469
21469
|
if (polling) {
|
|
21470
21470
|
var poll = function poll() {
|
|
21471
|
-
fetch("https://public.depay.
|
|
21471
|
+
fetch("https://public.depay.com/transactions/".concat(givenTransaction.blockchain, "/").concat(givenTransaction.from.toLowerCase(), "/").concat(givenTransaction.nonce)).then(function (response) {
|
|
21472
21472
|
if (response.status == 200) {
|
|
21473
21473
|
response.json().then(function (data) {
|
|
21474
21474
|
if (data.status != 'pending') {
|
|
@@ -21497,7 +21497,7 @@
|
|
|
21497
21497
|
return;
|
|
21498
21498
|
}
|
|
21499
21499
|
|
|
21500
|
-
fetch('https://public.depay.
|
|
21500
|
+
fetch('https://public.depay.com/transactions', {
|
|
21501
21501
|
method: 'POST',
|
|
21502
21502
|
headers: {
|
|
21503
21503
|
'Content-Type': 'application/json'
|
|
@@ -21527,7 +21527,7 @@
|
|
|
21527
21527
|
};
|
|
21528
21528
|
|
|
21529
21529
|
var openSocket = function openSocket(transaction) {
|
|
21530
|
-
var socket = new WebSocket('wss://integrate.depay.
|
|
21530
|
+
var socket = new WebSocket('wss://integrate.depay.com/cable');
|
|
21531
21531
|
|
|
21532
21532
|
socket.onopen = function (event) {
|
|
21533
21533
|
var msg = {
|
|
@@ -23037,7 +23037,7 @@
|
|
|
23037
23037
|
};
|
|
23038
23038
|
|
|
23039
23039
|
var searchTokens = React.useCallback(lodash.debounce(function (term, blockchainName) {
|
|
23040
|
-
fetch("https://public.depay.
|
|
23040
|
+
fetch("https://public.depay.com/tokens/search?blockchain=".concat(blockchainName, "&term=").concat(term)).then(function (response) {
|
|
23041
23041
|
if (response.status == 200) {
|
|
23042
23042
|
response.json().then(function (tokens) {
|
|
23043
23043
|
setTokens(tokens);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/widgets",
|
|
3
3
|
"moduleName": "DePayWidgets",
|
|
4
|
-
"version": "7.14.
|
|
4
|
+
"version": "7.14.4",
|
|
5
5
|
"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.",
|
|
6
6
|
"main": "./dist/umd/index.js",
|
|
7
7
|
"module": "./dist/esm/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"crypto",
|
|
19
19
|
"cryptocurrencies"
|
|
20
20
|
],
|
|
21
|
-
"author": "
|
|
21
|
+
"author": "depay.com",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "rm -rf dist && npx rollup --config rollup.module.config.js && npx rollup --config rollup.bundle.config.js",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@depay/coinbase-wallet-sdk": "^1.0.5",
|
|
37
|
-
"@depay/local-currency": "^3.5.
|
|
37
|
+
"@depay/local-currency": "^3.5.3",
|
|
38
38
|
"@depay/react-dialog-stack": "^7.0.0",
|
|
39
39
|
"@depay/react-shadow-dom": "^5.0.2",
|
|
40
|
-
"@depay/react-token-image": "^4.
|
|
40
|
+
"@depay/react-token-image": "^4.2.2",
|
|
41
41
|
"@depay/walletconnect-v1": "^1.7.8",
|
|
42
|
-
"@depay/web3-assets": "^6.5.
|
|
42
|
+
"@depay/web3-assets": "^6.5.1",
|
|
43
43
|
"@depay/web3-blockchains": "^5.0.1",
|
|
44
44
|
"@depay/web3-client": "^8.5.0",
|
|
45
45
|
"@depay/web3-constants": "^6.0.0",
|
|
46
46
|
"@depay/web3-exchanges": "^9.2.0",
|
|
47
|
-
"@depay/web3-payments": "^10.6.
|
|
47
|
+
"@depay/web3-payments": "^10.6.1",
|
|
48
48
|
"@depay/web3-tokens": "^8.2.0",
|
|
49
49
|
"@depay/web3-wallets": "^11.1.1",
|
|
50
50
|
"decimal.js": "^10.3.1"
|