@diviswap/sdk 1.7.18 → 1.7.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviswap/sdk",
3
- "version": "1.7.18",
3
+ "version": "1.7.20",
4
4
  "description": "Official Diviswap SDK - Crypto rails made simple",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -71,7 +71,6 @@
71
71
  "typescript": "^5.7.3"
72
72
  },
73
73
  "dependencies": {
74
- "@diviswap/sdk": "1.7.12",
75
74
  "@solana/wallet-adapter-base": "0.9.27",
76
75
  "@solana/wallet-adapter-react": "0.15.39",
77
76
  "@solana/wallet-adapter-react-ui": "0.9.39",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useEffect, useState } from 'react';
4
- import { use{{prefix}}Auth } from '~/context/diviswap-auth-context';
4
+ import { use{{prefix}}Auth } from '../context/diviswap-auth-context';
5
5
 
6
6
  export function use{{prefix}}Dashboard() {
7
7
  const { customerId, customerEmail, isAuthenticated } = use{{prefix}}Auth();
@@ -12,7 +12,7 @@ export function use{{prefix}}Dashboard() {
12
12
  const queryParams = new URLSearchParams({
13
13
  resource: 'transactions',
14
14
  customerId,
15
- customerEmail,
15
+ ...(customerEmail && { customerEmail }),
16
16
  ...params
17
17
  });
18
18
  const response = await fetch(`/api/diviswap?${queryParams}`);
@@ -32,7 +32,7 @@ export function use{{prefix}}Dashboard() {
32
32
  const queryParams = new URLSearchParams({
33
33
  resource: 'addresses',
34
34
  customerId,
35
- customerEmail,
35
+ ...(customerEmail && { customerEmail }),
36
36
  ...(params?.chain_id && { chain_id: params.chain_id.toString() }),
37
37
  ...(params?.is_default !== undefined && { is_default: params.is_default.toString() })
38
38
  });
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useState } from 'react';
4
- import { use{{prefix}}Auth } from '~/context/diviswap-auth-context';
4
+ import { use{{prefix}}Auth } from '../context/diviswap-auth-context';
5
5
 
6
6
  interface KYCFormData {
7
7
  firstName: string;