@diviswap/sdk 1.7.7 → 1.7.9
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/dist/cli/index.js +59 -11
- package/dist/cli/templates/nextjs-app/provider.tsx.hbs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/{wallet-BEGvzNtB.d.mts → wallet-CNiPxV5L.d.mts} +1 -1
- package/dist/{wallet-BEGvzNtB.d.ts → wallet-CNiPxV5L.d.ts} +1 -1
- package/package.json +1 -1
- package/src/cli/templates/nextjs-app/provider.tsx.hbs +1 -1
package/dist/react/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { U as User, T as Transaction, P as Payee, D as Diviswap, d as Address, e as CreateAddressRequest, g as ChainName, l as WalletTrackingConfig, W as WalletConnection, k as EthereumWallet, i as WalletTracker } from '../wallet-
|
|
2
|
+
import { U as User, T as Transaction, P as Payee, D as Diviswap, d as Address, e as CreateAddressRequest, g as ChainName, l as WalletTrackingConfig, W as WalletConnection, k as EthereumWallet, i as WalletTracker } from '../wallet-CNiPxV5L.mjs';
|
|
3
3
|
|
|
4
4
|
interface DiviswapContextValue {
|
|
5
5
|
user: User | null;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { U as User, T as Transaction, P as Payee, D as Diviswap, d as Address, e as CreateAddressRequest, g as ChainName, l as WalletTrackingConfig, W as WalletConnection, k as EthereumWallet, i as WalletTracker } from '../wallet-
|
|
2
|
+
import { U as User, T as Transaction, P as Payee, D as Diviswap, d as Address, e as CreateAddressRequest, g as ChainName, l as WalletTrackingConfig, W as WalletConnection, k as EthereumWallet, i as WalletTracker } from '../wallet-CNiPxV5L.js';
|
|
3
3
|
|
|
4
4
|
interface DiviswapContextValue {
|
|
5
5
|
user: User | null;
|
|
@@ -1444,7 +1444,7 @@ declare class Diviswap {
|
|
|
1444
1444
|
* const token = await diviswap.getAccessToken();
|
|
1445
1445
|
* if (token) {
|
|
1446
1446
|
* // Use token for custom API calls
|
|
1447
|
-
* fetch('https://api.
|
|
1447
|
+
* fetch('https://api.liberex.sv/custom-endpoint', {
|
|
1448
1448
|
* headers: { 'Authorization': `Bearer ${token}` }
|
|
1449
1449
|
* });
|
|
1450
1450
|
* }
|
|
@@ -1444,7 +1444,7 @@ declare class Diviswap {
|
|
|
1444
1444
|
* const token = await diviswap.getAccessToken();
|
|
1445
1445
|
* if (token) {
|
|
1446
1446
|
* // Use token for custom API calls
|
|
1447
|
-
* fetch('https://api.
|
|
1447
|
+
* fetch('https://api.liberex.sv/custom-endpoint', {
|
|
1448
1448
|
* headers: { 'Authorization': `Bearer ${token}` }
|
|
1449
1449
|
* });
|
|
1450
1450
|
* }
|
package/package.json
CHANGED
|
@@ -192,7 +192,7 @@ export function DiviswapProvider({ children }: { children: React.ReactNode }) {
|
|
|
192
192
|
useEffect(() => {
|
|
193
193
|
if (customerId && customerEmail) {
|
|
194
194
|
const socketInstance = io(
|
|
195
|
-
process.env.NEXT_PUBLIC_DIVISWAP_WS_URL || 'wss://ws.
|
|
195
|
+
process.env.NEXT_PUBLIC_DIVISWAP_WS_URL || 'wss://ws.liberex.sv',
|
|
196
196
|
{
|
|
197
197
|
auth: {
|
|
198
198
|
customerId,
|