@dynamic-labs/utils 0.0.0-exp20240808.0

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.
Files changed (238) hide show
  1. package/CHANGELOG.md +3746 -0
  2. package/LICENSE +21 -0
  3. package/README.md +0 -0
  4. package/_virtual/_tslib.cjs +51 -0
  5. package/_virtual/_tslib.js +45 -0
  6. package/package.json +37 -0
  7. package/src/CancellablePromise/CancellablePromise.cjs +136 -0
  8. package/src/CancellablePromise/CancellablePromise.d.ts +54 -0
  9. package/src/CancellablePromise/CancellablePromise.js +132 -0
  10. package/src/CancellablePromise/index.d.ts +1 -0
  11. package/src/DeferredPromise/DeferredPromise.cjs +22 -0
  12. package/src/DeferredPromise/DeferredPromise.d.ts +13 -0
  13. package/src/DeferredPromise/DeferredPromise.js +18 -0
  14. package/src/DeferredPromise/index.d.ts +1 -0
  15. package/src/bufferPolyfill.cjs +15 -0
  16. package/src/bufferPolyfill.d.ts +1 -0
  17. package/src/bufferPolyfill.js +13 -0
  18. package/src/bufferToBase64.cjs +15 -0
  19. package/src/bufferToBase64.d.ts +2 -0
  20. package/src/bufferToBase64.js +11 -0
  21. package/src/ceil/ceil.cjs +11 -0
  22. package/src/ceil/ceil.d.ts +1 -0
  23. package/src/ceil/ceil.js +7 -0
  24. package/src/ceil/index.d.ts +1 -0
  25. package/src/eip6963/eip6963Provider.cjs +40 -0
  26. package/src/eip6963/eip6963Provider.d.ts +34 -0
  27. package/src/eip6963/eip6963Provider.js +35 -0
  28. package/src/eip6963/index.d.ts +1 -0
  29. package/src/errors/AccessBlockedError.cjs +11 -0
  30. package/src/errors/AccessBlockedError.d.ts +3 -0
  31. package/src/errors/AccessBlockedError.js +7 -0
  32. package/src/errors/AccountExistsError.cjs +16 -0
  33. package/src/errors/AccountExistsError.d.ts +14 -0
  34. package/src/errors/AccountExistsError.js +12 -0
  35. package/src/errors/ChainalysisError.cjs +15 -0
  36. package/src/errors/ChainalysisError.d.ts +5 -0
  37. package/src/errors/ChainalysisError.js +11 -0
  38. package/src/errors/CookieInvalidError.cjs +14 -0
  39. package/src/errors/CookieInvalidError.d.ts +4 -0
  40. package/src/errors/CookieInvalidError.js +10 -0
  41. package/src/errors/CustomError.cjs +24 -0
  42. package/src/errors/CustomError.d.ts +11 -0
  43. package/src/errors/CustomError.js +20 -0
  44. package/src/errors/CustomFieldNotUniqueError.cjs +14 -0
  45. package/src/errors/CustomFieldNotUniqueError.d.ts +4 -0
  46. package/src/errors/CustomFieldNotUniqueError.js +10 -0
  47. package/src/errors/DynamicError.cjs +11 -0
  48. package/src/errors/DynamicError.d.ts +3 -0
  49. package/src/errors/DynamicError.js +7 -0
  50. package/src/errors/EmailAlreadyExistsError.cjs +14 -0
  51. package/src/errors/EmailAlreadyExistsError.d.ts +4 -0
  52. package/src/errors/EmailAlreadyExistsError.js +10 -0
  53. package/src/errors/EmailProviderError.cjs +14 -0
  54. package/src/errors/EmailProviderError.d.ts +4 -0
  55. package/src/errors/EmailProviderError.js +10 -0
  56. package/src/errors/EmailVerificationError.cjs +14 -0
  57. package/src/errors/EmailVerificationError.d.ts +4 -0
  58. package/src/errors/EmailVerificationError.js +10 -0
  59. package/src/errors/EmbeddedWalletException.cjs +14 -0
  60. package/src/errors/EmbeddedWalletException.d.ts +4 -0
  61. package/src/errors/EmbeddedWalletException.js +10 -0
  62. package/src/errors/ExternalAuthError.cjs +14 -0
  63. package/src/errors/ExternalAuthError.d.ts +4 -0
  64. package/src/errors/ExternalAuthError.js +10 -0
  65. package/src/errors/GateBlockedError.cjs +15 -0
  66. package/src/errors/GateBlockedError.d.ts +5 -0
  67. package/src/errors/GateBlockedError.js +11 -0
  68. package/src/errors/InsufficientFundsError.cjs +25 -0
  69. package/src/errors/InsufficientFundsError.d.ts +9 -0
  70. package/src/errors/InsufficientFundsError.js +21 -0
  71. package/src/errors/InvalidPhoneNumberError.cjs +14 -0
  72. package/src/errors/InvalidPhoneNumberError.d.ts +4 -0
  73. package/src/errors/InvalidPhoneNumberError.js +10 -0
  74. package/src/errors/MergeAccountsConfirmationError.cjs +16 -0
  75. package/src/errors/MergeAccountsConfirmationError.d.ts +12 -0
  76. package/src/errors/MergeAccountsConfirmationError.js +12 -0
  77. package/src/errors/MfaInvalidOtpError.cjs +14 -0
  78. package/src/errors/MfaInvalidOtpError.d.ts +4 -0
  79. package/src/errors/MfaInvalidOtpError.js +10 -0
  80. package/src/errors/MissingEnvironmentIdError.cjs +14 -0
  81. package/src/errors/MissingEnvironmentIdError.d.ts +4 -0
  82. package/src/errors/MissingEnvironmentIdError.js +10 -0
  83. package/src/errors/MissingPublicAddressError.cjs +14 -0
  84. package/src/errors/MissingPublicAddressError.d.ts +4 -0
  85. package/src/errors/MissingPublicAddressError.js +10 -0
  86. package/src/errors/NoAccessError.cjs +19 -0
  87. package/src/errors/NoAccessError.d.ts +15 -0
  88. package/src/errors/NoAccessError.js +15 -0
  89. package/src/errors/NotSupportedError.cjs +11 -0
  90. package/src/errors/NotSupportedError.d.ts +3 -0
  91. package/src/errors/NotSupportedError.js +7 -0
  92. package/src/errors/PasskeyError.d.ts +8 -0
  93. package/src/errors/SmsVerificationError.cjs +11 -0
  94. package/src/errors/SmsVerificationError.d.ts +3 -0
  95. package/src/errors/SmsVerificationError.js +7 -0
  96. package/src/errors/SocialAccountAlreadyExistsError.cjs +14 -0
  97. package/src/errors/SocialAccountAlreadyExistsError.d.ts +4 -0
  98. package/src/errors/SocialAccountAlreadyExistsError.js +10 -0
  99. package/src/errors/TooManyEmailVerificationsError.cjs +14 -0
  100. package/src/errors/TooManyEmailVerificationsError.d.ts +4 -0
  101. package/src/errors/TooManyEmailVerificationsError.js +10 -0
  102. package/src/errors/TransactionGasCannotBeSponsoredError.cjs +25 -0
  103. package/src/errors/TransactionGasCannotBeSponsoredError.d.ts +9 -0
  104. package/src/errors/TransactionGasCannotBeSponsoredError.js +21 -0
  105. package/src/errors/UserHasAccountWithEmailError.cjs +15 -0
  106. package/src/errors/UserHasAccountWithEmailError.d.ts +5 -0
  107. package/src/errors/UserHasAccountWithEmailError.js +11 -0
  108. package/src/errors/UserRejectedTransactionError.cjs +14 -0
  109. package/src/errors/UserRejectedTransactionError.d.ts +4 -0
  110. package/src/errors/UserRejectedTransactionError.js +10 -0
  111. package/src/errors/UsernameAlreadyExistsError.cjs +14 -0
  112. package/src/errors/UsernameAlreadyExistsError.d.ts +4 -0
  113. package/src/errors/UsernameAlreadyExistsError.js +10 -0
  114. package/src/errors/VerificationDataCollectionError.cjs +15 -0
  115. package/src/errors/VerificationDataCollectionError.d.ts +5 -0
  116. package/src/errors/VerificationDataCollectionError.js +11 -0
  117. package/src/errors/WalletAddressMismatchError.cjs +17 -0
  118. package/src/errors/WalletAddressMismatchError.d.ts +11 -0
  119. package/src/errors/WalletAddressMismatchError.js +13 -0
  120. package/src/errors/WalletNotDeployedError.cjs +14 -0
  121. package/src/errors/WalletNotDeployedError.d.ts +4 -0
  122. package/src/errors/WalletNotDeployedError.js +10 -0
  123. package/src/errors/WalletUsedError.cjs +14 -0
  124. package/src/errors/WalletUsedError.d.ts +4 -0
  125. package/src/errors/WalletUsedError.js +10 -0
  126. package/src/errors/index.d.ts +33 -0
  127. package/src/formatNumberText/formatNumberText.cjs +20 -0
  128. package/src/formatNumberText/formatNumberText.d.ts +5 -0
  129. package/src/formatNumberText/formatNumberText.js +16 -0
  130. package/src/formatNumberText/index.d.ts +1 -0
  131. package/src/get/get.cjs +24 -0
  132. package/src/get/get.d.ts +7 -0
  133. package/src/get/get.js +20 -0
  134. package/src/get/index.d.ts +1 -0
  135. package/src/getProvidersFromWindow.cjs +39 -0
  136. package/src/getProvidersFromWindow.d.ts +7 -0
  137. package/src/getProvidersFromWindow.js +35 -0
  138. package/src/getTLD/getTLD.cjs +12 -0
  139. package/src/getTLD/getTLD.d.ts +1 -0
  140. package/src/getTLD/getTLD.js +8 -0
  141. package/src/getTLD/index.d.ts +1 -0
  142. package/src/handleMobileWalletRedirect/handleMobileWalletRedirect.cjs +20 -0
  143. package/src/handleMobileWalletRedirect/handleMobileWalletRedirect.d.ts +4 -0
  144. package/src/handleMobileWalletRedirect/handleMobileWalletRedirect.js +16 -0
  145. package/src/handleMobileWalletRedirect/index.d.ts +1 -0
  146. package/src/hexToString/hexToString.cjs +32 -0
  147. package/src/hexToString/hexToString.d.ts +12 -0
  148. package/src/hexToString/hexToString.js +28 -0
  149. package/src/hexToString/index.d.ts +1 -0
  150. package/src/index.cjs +151 -0
  151. package/src/index.d.ts +32 -0
  152. package/src/index.js +66 -0
  153. package/src/isFunction/index.d.ts +1 -0
  154. package/src/isFunction/isFunction.cjs +9 -0
  155. package/src/isFunction/isFunction.d.ts +1 -0
  156. package/src/isFunction/isFunction.js +5 -0
  157. package/src/isHex/index.d.ts +1 -0
  158. package/src/isHex/isHex.cjs +20 -0
  159. package/src/isHex/isHex.d.ts +6 -0
  160. package/src/isHex/isHex.js +16 -0
  161. package/src/isLedgerAddressViaVerifiedCredentials.cjs +13 -0
  162. package/src/isLedgerAddressViaVerifiedCredentials.d.ts +2 -0
  163. package/src/isLedgerAddressViaVerifiedCredentials.js +9 -0
  164. package/src/isMobile.cjs +146 -0
  165. package/src/isMobile.d.ts +18 -0
  166. package/src/isMobile.js +133 -0
  167. package/src/last.cjs +22 -0
  168. package/src/last.d.ts +15 -0
  169. package/src/last.js +18 -0
  170. package/src/localStorageAsync.cjs +38 -0
  171. package/src/localStorageAsync.d.ts +3 -0
  172. package/src/localStorageAsync.js +32 -0
  173. package/src/logger/index.d.ts +1 -0
  174. package/src/logger/logger.cjs +10 -0
  175. package/src/logger/logger.d.ts +2 -0
  176. package/src/logger/logger.js +6 -0
  177. package/src/nativeMobileOauthStateParam.cjs +13 -0
  178. package/src/nativeMobileOauthStateParam.d.ts +14 -0
  179. package/src/nativeMobileOauthStateParam.js +9 -0
  180. package/src/parseChainId.cjs +8 -0
  181. package/src/parseChainId.d.ts +1 -0
  182. package/src/parseChainId.js +4 -0
  183. package/src/parseEvmNetworks.cjs +17 -0
  184. package/src/parseEvmNetworks.d.ts +2 -0
  185. package/src/parseEvmNetworks.js +13 -0
  186. package/src/pipe/index.d.ts +1 -0
  187. package/src/pipe/pipe.cjs +40 -0
  188. package/src/pipe/pipe.d.ts +27 -0
  189. package/src/pipe/pipe.js +36 -0
  190. package/src/retryableFn.cjs +73 -0
  191. package/src/retryableFn.d.ts +19 -0
  192. package/src/retryableFn.js +68 -0
  193. package/src/runSafe/index.d.ts +1 -0
  194. package/src/runSafe/runSafe.cjs +25 -0
  195. package/src/runSafe/runSafe.d.ts +8 -0
  196. package/src/runSafe/runSafe.js +21 -0
  197. package/src/services/FetchService/FetchService.cjs +29 -0
  198. package/src/services/FetchService/FetchService.d.ts +10 -0
  199. package/src/services/FetchService/FetchService.js +25 -0
  200. package/src/services/FetchService/index.d.ts +2 -0
  201. package/src/services/FetchService/types.d.ts +3 -0
  202. package/src/services/Oauth2Service/Oauth2Service.cjs +38 -0
  203. package/src/services/Oauth2Service/Oauth2Service.d.ts +34 -0
  204. package/src/services/Oauth2Service/Oauth2Service.js +34 -0
  205. package/src/services/Oauth2Service/createWindowOauth2Service/createWindowOauth2Service.cjs +192 -0
  206. package/src/services/Oauth2Service/createWindowOauth2Service/createWindowOauth2Service.d.ts +2 -0
  207. package/src/services/Oauth2Service/createWindowOauth2Service/createWindowOauth2Service.js +188 -0
  208. package/src/services/Oauth2Service/createWindowOauth2Service/index.d.ts +1 -0
  209. package/src/services/Oauth2Service/index.d.ts +2 -0
  210. package/src/services/PlatformService/PlatformService.cjs +40 -0
  211. package/src/services/PlatformService/PlatformService.d.ts +11 -0
  212. package/src/services/PlatformService/PlatformService.js +36 -0
  213. package/src/services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.cjs +30 -0
  214. package/src/services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.d.ts +2 -0
  215. package/src/services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.js +26 -0
  216. package/src/services/PlatformService/createBrowserPlatformService/index.d.ts +1 -0
  217. package/src/services/PlatformService/index.d.ts +3 -0
  218. package/src/services/PlatformService/types.d.ts +25 -0
  219. package/src/sleep/index.d.ts +1 -0
  220. package/src/sleep/sleep.cjs +13 -0
  221. package/src/sleep/sleep.d.ts +11 -0
  222. package/src/sleep/sleep.js +9 -0
  223. package/src/template/index.d.ts +1 -0
  224. package/src/template/template.cjs +25 -0
  225. package/src/template/template.d.ts +18 -0
  226. package/src/template/template.js +21 -0
  227. package/src/trimEnd/index.d.ts +1 -0
  228. package/src/trimEnd/trimEnd.cjs +14 -0
  229. package/src/trimEnd/trimEnd.d.ts +1 -0
  230. package/src/trimEnd/trimEnd.js +10 -0
  231. package/src/uniq/index.d.ts +1 -0
  232. package/src/uniq/uniq.cjs +33 -0
  233. package/src/uniq/uniq.d.ts +17 -0
  234. package/src/uniq/uniq.js +29 -0
  235. package/src/wrapMethodWithCallback/index.d.ts +1 -0
  236. package/src/wrapMethodWithCallback/wrapMethodWithCallback.cjs +47 -0
  237. package/src/wrapMethodWithCallback/wrapMethodWithCallback.d.ts +36 -0
  238. package/src/wrapMethodWithCallback/wrapMethodWithCallback.js +43 -0
@@ -0,0 +1,10 @@
1
+ 'use client'
2
+ import { DynamicError } from './DynamicError.js';
3
+
4
+ class WalletUsedError extends DynamicError {
5
+ constructor(code) {
6
+ super('WalletUsedError', code);
7
+ }
8
+ }
9
+
10
+ export { WalletUsedError };
@@ -0,0 +1,33 @@
1
+ export * from './AccountExistsError';
2
+ export * from './ChainalysisError';
3
+ export * from './CustomError';
4
+ export * from './DynamicError';
5
+ export * from './EmailAlreadyExistsError';
6
+ export * from './EmailProviderError';
7
+ export * from './EmailVerificationError';
8
+ export * from './GateBlockedError';
9
+ export * from './InsufficientFundsError';
10
+ export * from './MissingEnvironmentIdError';
11
+ export * from './MissingPublicAddressError';
12
+ export * from './NoAccessError';
13
+ export * from './NotSupportedError';
14
+ export * from './PasskeyError';
15
+ export * from './SmsVerificationError';
16
+ export * from './SocialAccountAlreadyExistsError';
17
+ export * from './TransactionGasCannotBeSponsoredError';
18
+ export * from './UserHasAccountWithEmailError';
19
+ export * from './UsernameAlreadyExistsError';
20
+ export * from './WalletNotDeployedError';
21
+ export * from './WalletUsedError';
22
+ export * from './UserRejectedTransactionError';
23
+ export * from './TooManyEmailVerificationsError';
24
+ export * from './VerificationDataCollectionError';
25
+ export * from './InvalidPhoneNumberError';
26
+ export * from './MergeAccountsConfirmationError';
27
+ export * from './CustomFieldNotUniqueError';
28
+ export * from './CookieInvalidError';
29
+ export * from './AccessBlockedError';
30
+ export * from './EmbeddedWalletException';
31
+ export * from './MfaInvalidOtpError';
32
+ export * from './ExternalAuthError';
33
+ export * from './WalletAddressMismatchError';
@@ -0,0 +1,20 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var ceil = require('../ceil/ceil.cjs');
7
+ var trimEnd = require('../trimEnd/trimEnd.cjs');
8
+
9
+ const formatNumberText = (value, { precision = 0 } = {}) => {
10
+ if (!precision) {
11
+ return value;
12
+ }
13
+ const floatValue = parseFloat(value);
14
+ const formattedAtPrecision = ceil.ceil(floatValue, precision).toFixed(precision);
15
+ const [integerPart, decimalPart] = formattedAtPrecision.split('.');
16
+ const decimalPartTrimmed = trimEnd.trimEnd(decimalPart, '0');
17
+ return `${integerPart}.${decimalPartTrimmed || '0'}`;
18
+ };
19
+
20
+ exports.formatNumberText = formatNumberText;
@@ -0,0 +1,5 @@
1
+ type FormatNumberTextOptions = {
2
+ precision?: number;
3
+ };
4
+ export declare const formatNumberText: (value: string, { precision }?: FormatNumberTextOptions) => string;
5
+ export {};
@@ -0,0 +1,16 @@
1
+ 'use client'
2
+ import { ceil } from '../ceil/ceil.js';
3
+ import { trimEnd } from '../trimEnd/trimEnd.js';
4
+
5
+ const formatNumberText = (value, { precision = 0 } = {}) => {
6
+ if (!precision) {
7
+ return value;
8
+ }
9
+ const floatValue = parseFloat(value);
10
+ const formattedAtPrecision = ceil(floatValue, precision).toFixed(precision);
11
+ const [integerPart, decimalPart] = formattedAtPrecision.split('.');
12
+ const decimalPartTrimmed = trimEnd(decimalPart, '0');
13
+ return `${integerPart}.${decimalPartTrimmed || '0'}`;
14
+ };
15
+
16
+ export { formatNumberText };
@@ -0,0 +1 @@
1
+ export { formatNumberText } from './formatNumberText';
@@ -0,0 +1,24 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ /**
7
+ * Retrieves the value at the given path of an object.
8
+ * @param obj - The object from which to extract the value.
9
+ * @param path - The path to the desired value within the object, using dot notation.
10
+ * @returns The value from the specified path, or undefined if the path is not valid.
11
+ */
12
+ const get = (obj, path) => {
13
+ try {
14
+ // Split the path into keys considering special characters as part of the keys
15
+ const keys = path.match(/[^.[\]"']+/g) || [];
16
+ return keys.reduce((acc, key) => acc[key], obj);
17
+ }
18
+ catch (error) {
19
+ // If there is an error accessing the properties, return undefined
20
+ return undefined;
21
+ }
22
+ };
23
+
24
+ exports.get = get;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Retrieves the value at the given path of an object.
3
+ * @param obj - The object from which to extract the value.
4
+ * @param path - The path to the desired value within the object, using dot notation.
5
+ * @returns The value from the specified path, or undefined if the path is not valid.
6
+ */
7
+ export declare const get: <T = any>(obj: Record<string, any>, path: string) => T | undefined;
package/src/get/get.js ADDED
@@ -0,0 +1,20 @@
1
+ 'use client'
2
+ /**
3
+ * Retrieves the value at the given path of an object.
4
+ * @param obj - The object from which to extract the value.
5
+ * @param path - The path to the desired value within the object, using dot notation.
6
+ * @returns The value from the specified path, or undefined if the path is not valid.
7
+ */
8
+ const get = (obj, path) => {
9
+ try {
10
+ // Split the path into keys considering special characters as part of the keys
11
+ const keys = path.match(/[^.[\]"']+/g) || [];
12
+ return keys.reduce((acc, key) => acc[key], obj);
13
+ }
14
+ catch (error) {
15
+ // If there is an error accessing the properties, return undefined
16
+ return undefined;
17
+ }
18
+ };
19
+
20
+ export { get };
@@ -0,0 +1 @@
1
+ export { get } from './get';
@@ -0,0 +1,39 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ /**
7
+ * return the destination (value)
8
+ *
9
+ * @param {string} path - path in the obj to the item
10
+ * @returns {T[]} - array of found items
11
+ */
12
+ const getProvidersFromWindow = (path) => {
13
+ const splitPath = path.split('.');
14
+ let result = window;
15
+ const foundProviders = [];
16
+ for (const [index, p] of Object.entries(splitPath)) {
17
+ result = result[p];
18
+ if (typeof result !== 'object' || result === null) {
19
+ return [];
20
+ }
21
+ // we need to check if we have hit the end of the requested path
22
+ if (Number(index) === splitPath.length - 1) {
23
+ if (Array.isArray(result)) {
24
+ result.forEach((p) => foundProviders.push(p));
25
+ }
26
+ else {
27
+ if (result.providers) {
28
+ result.providers.forEach((p) => foundProviders.push(p));
29
+ }
30
+ else {
31
+ foundProviders.push(result);
32
+ }
33
+ }
34
+ }
35
+ }
36
+ return foundProviders;
37
+ };
38
+
39
+ exports.getProvidersFromWindow = getProvidersFromWindow;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * return the destination (value)
3
+ *
4
+ * @param {string} path - path in the obj to the item
5
+ * @returns {T[]} - array of found items
6
+ */
7
+ export declare const getProvidersFromWindow: <T>(path: string) => T[];
@@ -0,0 +1,35 @@
1
+ 'use client'
2
+ /**
3
+ * return the destination (value)
4
+ *
5
+ * @param {string} path - path in the obj to the item
6
+ * @returns {T[]} - array of found items
7
+ */
8
+ const getProvidersFromWindow = (path) => {
9
+ const splitPath = path.split('.');
10
+ let result = window;
11
+ const foundProviders = [];
12
+ for (const [index, p] of Object.entries(splitPath)) {
13
+ result = result[p];
14
+ if (typeof result !== 'object' || result === null) {
15
+ return [];
16
+ }
17
+ // we need to check if we have hit the end of the requested path
18
+ if (Number(index) === splitPath.length - 1) {
19
+ if (Array.isArray(result)) {
20
+ result.forEach((p) => foundProviders.push(p));
21
+ }
22
+ else {
23
+ if (result.providers) {
24
+ result.providers.forEach((p) => foundProviders.push(p));
25
+ }
26
+ else {
27
+ foundProviders.push(result);
28
+ }
29
+ }
30
+ }
31
+ }
32
+ return foundProviders;
33
+ };
34
+
35
+ export { getProvidersFromWindow };
@@ -0,0 +1,12 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var PlatformService = require('../services/PlatformService/PlatformService.cjs');
7
+ require('../../_virtual/_tslib.cjs');
8
+ require('tldts');
9
+
10
+ const getTLD = () => PlatformService.PlatformService.getTLD();
11
+
12
+ exports.getTLD = getTLD;
@@ -0,0 +1 @@
1
+ export declare const getTLD: () => string | undefined;
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ import { PlatformService } from '../services/PlatformService/PlatformService.js';
3
+ import '../../_virtual/_tslib.js';
4
+ import 'tldts';
5
+
6
+ const getTLD = () => PlatformService.getTLD();
7
+
8
+ export { getTLD };
@@ -0,0 +1 @@
1
+ export { getTLD } from './getTLD';
@@ -0,0 +1,20 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var isMobile = require('../isMobile.cjs');
7
+
8
+ const handleMobileWalletRedirect = ({ nativeLink, universalLink, }) => {
9
+ const url = encodeURIComponent(window.location.toString());
10
+ const ref = encodeURIComponent(window.location.origin);
11
+ // samsung browser only supports native links, not universal links
12
+ if (isMobile.isSamsungBrowser()) {
13
+ window.location.assign(`${nativeLink}/${url}?ref=${ref}`);
14
+ }
15
+ else {
16
+ window.location.assign(`${universalLink}/${url}?ref=${ref}`);
17
+ }
18
+ };
19
+
20
+ exports.handleMobileWalletRedirect = handleMobileWalletRedirect;
@@ -0,0 +1,4 @@
1
+ export declare const handleMobileWalletRedirect: ({ nativeLink, universalLink, }: {
2
+ nativeLink: string;
3
+ universalLink: string;
4
+ }) => void;
@@ -0,0 +1,16 @@
1
+ 'use client'
2
+ import { isSamsungBrowser } from '../isMobile.js';
3
+
4
+ const handleMobileWalletRedirect = ({ nativeLink, universalLink, }) => {
5
+ const url = encodeURIComponent(window.location.toString());
6
+ const ref = encodeURIComponent(window.location.origin);
7
+ // samsung browser only supports native links, not universal links
8
+ if (isSamsungBrowser()) {
9
+ window.location.assign(`${nativeLink}/${url}?ref=${ref}`);
10
+ }
11
+ else {
12
+ window.location.assign(`${universalLink}/${url}?ref=${ref}`);
13
+ }
14
+ };
15
+
16
+ export { handleMobileWalletRedirect };
@@ -0,0 +1 @@
1
+ export * from './handleMobileWalletRedirect';
@@ -0,0 +1,32 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ /**
7
+ * Converts a hexadecimal string to a regular string by interpreting each pair of characters in the
8
+ * hexadecimal string as a byte in ASCII. It automatically handles hex strings prefixed with '0x'.
9
+ *
10
+ * @param {string} hexString - The hexadecimal string to convert. It can optionally start with '0x'.
11
+ * @returns {string} The decoded ASCII string.
12
+ *
13
+ * @example
14
+ * hexToString('68656c6c6f'); // returns 'hello'
15
+ * hexToString('0x68656c6c6f'); // also returns 'hello'
16
+ */
17
+ const hexToString = (hexString) => {
18
+ const normalizedHexString = hexString.startsWith('0x')
19
+ ? hexString.substring(2)
20
+ : hexString;
21
+ let text = '';
22
+ // Ensure we only process complete pairs by rounding down to the nearest even length
23
+ const length = normalizedHexString.length - (normalizedHexString.length % 2);
24
+ for (let i = 0; i < length; i += 2) {
25
+ const hexCode = normalizedHexString.substring(i, i + 2);
26
+ const decimal = parseInt(hexCode, 16);
27
+ text += String.fromCharCode(decimal);
28
+ }
29
+ return text;
30
+ };
31
+
32
+ exports.hexToString = hexToString;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Converts a hexadecimal string to a regular string by interpreting each pair of characters in the
3
+ * hexadecimal string as a byte in ASCII. It automatically handles hex strings prefixed with '0x'.
4
+ *
5
+ * @param {string} hexString - The hexadecimal string to convert. It can optionally start with '0x'.
6
+ * @returns {string} The decoded ASCII string.
7
+ *
8
+ * @example
9
+ * hexToString('68656c6c6f'); // returns 'hello'
10
+ * hexToString('0x68656c6c6f'); // also returns 'hello'
11
+ */
12
+ export declare const hexToString: (hexString: string) => string;
@@ -0,0 +1,28 @@
1
+ 'use client'
2
+ /**
3
+ * Converts a hexadecimal string to a regular string by interpreting each pair of characters in the
4
+ * hexadecimal string as a byte in ASCII. It automatically handles hex strings prefixed with '0x'.
5
+ *
6
+ * @param {string} hexString - The hexadecimal string to convert. It can optionally start with '0x'.
7
+ * @returns {string} The decoded ASCII string.
8
+ *
9
+ * @example
10
+ * hexToString('68656c6c6f'); // returns 'hello'
11
+ * hexToString('0x68656c6c6f'); // also returns 'hello'
12
+ */
13
+ const hexToString = (hexString) => {
14
+ const normalizedHexString = hexString.startsWith('0x')
15
+ ? hexString.substring(2)
16
+ : hexString;
17
+ let text = '';
18
+ // Ensure we only process complete pairs by rounding down to the nearest even length
19
+ const length = normalizedHexString.length - (normalizedHexString.length % 2);
20
+ for (let i = 0; i < length; i += 2) {
21
+ const hexCode = normalizedHexString.substring(i, i + 2);
22
+ const decimal = parseInt(hexCode, 16);
23
+ text += String.fromCharCode(decimal);
24
+ }
25
+ return text;
26
+ };
27
+
28
+ export { hexToString };
@@ -0,0 +1 @@
1
+ export { hexToString } from './hexToString';
package/src/index.cjs ADDED
@@ -0,0 +1,151 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var parseChainId = require('./parseChainId.cjs');
7
+ var parseEvmNetworks = require('./parseEvmNetworks.cjs');
8
+ var AccountExistsError = require('./errors/AccountExistsError.cjs');
9
+ var ChainalysisError = require('./errors/ChainalysisError.cjs');
10
+ var CustomError = require('./errors/CustomError.cjs');
11
+ var DynamicError = require('./errors/DynamicError.cjs');
12
+ var EmailAlreadyExistsError = require('./errors/EmailAlreadyExistsError.cjs');
13
+ var EmailProviderError = require('./errors/EmailProviderError.cjs');
14
+ var EmailVerificationError = require('./errors/EmailVerificationError.cjs');
15
+ var GateBlockedError = require('./errors/GateBlockedError.cjs');
16
+ var InsufficientFundsError = require('./errors/InsufficientFundsError.cjs');
17
+ var MissingEnvironmentIdError = require('./errors/MissingEnvironmentIdError.cjs');
18
+ var MissingPublicAddressError = require('./errors/MissingPublicAddressError.cjs');
19
+ var NoAccessError = require('./errors/NoAccessError.cjs');
20
+ var NotSupportedError = require('./errors/NotSupportedError.cjs');
21
+ var SmsVerificationError = require('./errors/SmsVerificationError.cjs');
22
+ var SocialAccountAlreadyExistsError = require('./errors/SocialAccountAlreadyExistsError.cjs');
23
+ var TransactionGasCannotBeSponsoredError = require('./errors/TransactionGasCannotBeSponsoredError.cjs');
24
+ var UserHasAccountWithEmailError = require('./errors/UserHasAccountWithEmailError.cjs');
25
+ var UsernameAlreadyExistsError = require('./errors/UsernameAlreadyExistsError.cjs');
26
+ var WalletNotDeployedError = require('./errors/WalletNotDeployedError.cjs');
27
+ var WalletUsedError = require('./errors/WalletUsedError.cjs');
28
+ var UserRejectedTransactionError = require('./errors/UserRejectedTransactionError.cjs');
29
+ var TooManyEmailVerificationsError = require('./errors/TooManyEmailVerificationsError.cjs');
30
+ var VerificationDataCollectionError = require('./errors/VerificationDataCollectionError.cjs');
31
+ var InvalidPhoneNumberError = require('./errors/InvalidPhoneNumberError.cjs');
32
+ var MergeAccountsConfirmationError = require('./errors/MergeAccountsConfirmationError.cjs');
33
+ var CustomFieldNotUniqueError = require('./errors/CustomFieldNotUniqueError.cjs');
34
+ var CookieInvalidError = require('./errors/CookieInvalidError.cjs');
35
+ var AccessBlockedError = require('./errors/AccessBlockedError.cjs');
36
+ var EmbeddedWalletException = require('./errors/EmbeddedWalletException.cjs');
37
+ var MfaInvalidOtpError = require('./errors/MfaInvalidOtpError.cjs');
38
+ var ExternalAuthError = require('./errors/ExternalAuthError.cjs');
39
+ var WalletAddressMismatchError = require('./errors/WalletAddressMismatchError.cjs');
40
+ var CancellablePromise = require('./CancellablePromise/CancellablePromise.cjs');
41
+ var isFunction = require('./isFunction/isFunction.cjs');
42
+ var isMobile = require('./isMobile.cjs');
43
+ var localStorageAsync = require('./localStorageAsync.cjs');
44
+ var bufferToBase64 = require('./bufferToBase64.cjs');
45
+ var last = require('./last.cjs');
46
+ var getProvidersFromWindow = require('./getProvidersFromWindow.cjs');
47
+ var sleep = require('./sleep/sleep.cjs');
48
+ var retryableFn = require('./retryableFn.cjs');
49
+ var wrapMethodWithCallback = require('./wrapMethodWithCallback/wrapMethodWithCallback.cjs');
50
+ var DeferredPromise = require('./DeferredPromise/DeferredPromise.cjs');
51
+ var handleMobileWalletRedirect = require('./handleMobileWalletRedirect/handleMobileWalletRedirect.cjs');
52
+ var uniq = require('./uniq/uniq.cjs');
53
+ var getTLD = require('./getTLD/getTLD.cjs');
54
+ var pipe = require('./pipe/pipe.cjs');
55
+ var formatNumberText = require('./formatNumberText/formatNumberText.cjs');
56
+ var ceil = require('./ceil/ceil.cjs');
57
+ var trimEnd = require('./trimEnd/trimEnd.cjs');
58
+ var isLedgerAddressViaVerifiedCredentials = require('./isLedgerAddressViaVerifiedCredentials.cjs');
59
+ var nativeMobileOauthStateParam = require('./nativeMobileOauthStateParam.cjs');
60
+ var eip6963Provider = require('./eip6963/eip6963Provider.cjs');
61
+ var runSafe = require('./runSafe/runSafe.cjs');
62
+ var PlatformService = require('./services/PlatformService/PlatformService.cjs');
63
+ var createBrowserPlatformService = require('./services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.cjs');
64
+ var FetchService = require('./services/FetchService/FetchService.cjs');
65
+ var Oauth2Service = require('./services/Oauth2Service/Oauth2Service.cjs');
66
+ var createWindowOauth2Service = require('./services/Oauth2Service/createWindowOauth2Service/createWindowOauth2Service.cjs');
67
+ var template = require('./template/template.cjs');
68
+ var get = require('./get/get.cjs');
69
+ var hexToString = require('./hexToString/hexToString.cjs');
70
+ var isHex = require('./isHex/isHex.cjs');
71
+
72
+
73
+
74
+ exports.parseChainId = parseChainId.parseChainId;
75
+ exports.parseEvmNetworks = parseEvmNetworks.parseEvmNetworks;
76
+ exports.AccountExistsError = AccountExistsError.AccountExistsError;
77
+ exports.ChainalysisError = ChainalysisError.ChainalysisError;
78
+ exports.CustomError = CustomError.CustomError;
79
+ exports.DynamicError = DynamicError.DynamicError;
80
+ exports.EmailAlreadyExistsError = EmailAlreadyExistsError.EmailAlreadyExistsError;
81
+ exports.EmailProviderError = EmailProviderError.EmailProviderError;
82
+ exports.EmailVerificationError = EmailVerificationError.EmailVerificationError;
83
+ exports.GateBlockedError = GateBlockedError.GateBlockedError;
84
+ exports.InsufficientFundsError = InsufficientFundsError.InsufficientFundsError;
85
+ exports.MissingEnvironmentIdError = MissingEnvironmentIdError.MissingEnvironmentIdError;
86
+ exports.MissingPublicAddressError = MissingPublicAddressError.MissingPublicAddressError;
87
+ exports.NoAccessError = NoAccessError.NoAccessError;
88
+ exports.NotSupportedError = NotSupportedError.NotSupportedError;
89
+ exports.SmsVerificationError = SmsVerificationError.SmsVerificationError;
90
+ exports.SocialAccountAlreadyExistsError = SocialAccountAlreadyExistsError.SocialAccountAlreadyExistsError;
91
+ exports.TransactionGasCannotBeSponsoredError = TransactionGasCannotBeSponsoredError.TransactionGasCannotBeSponsoredError;
92
+ exports.UserHasAccountWithEmailError = UserHasAccountWithEmailError.UserHasAccountWithEmailError;
93
+ exports.UsernameAlreadyExistsError = UsernameAlreadyExistsError.UsernameAlreadyExistsError;
94
+ exports.WalletNotDeployedError = WalletNotDeployedError.WalletNotDeployedError;
95
+ exports.WalletUsedError = WalletUsedError.WalletUsedError;
96
+ exports.UserRejectedTransactionError = UserRejectedTransactionError.UserRejectedTransactionError;
97
+ exports.TooManyEmailVerificationsError = TooManyEmailVerificationsError.TooManyEmailVerificationsError;
98
+ exports.VerificationDataCollectionError = VerificationDataCollectionError.VerificationDataCollectionError;
99
+ exports.InvalidPhoneNumberError = InvalidPhoneNumberError.InvalidPhoneNumberError;
100
+ exports.MergeAccountsConfirmationError = MergeAccountsConfirmationError.MergeAccountsConfirmationError;
101
+ exports.CustomFieldNotUniqueError = CustomFieldNotUniqueError.CustomFieldNotUniqueError;
102
+ exports.CookieInvalidError = CookieInvalidError.CookieInvalidError;
103
+ exports.AccessBlockedError = AccessBlockedError.AccessBlockedError;
104
+ exports.EmbeddedWalletException = EmbeddedWalletException.EmbeddedWalletException;
105
+ exports.MfaInvalidOtpError = MfaInvalidOtpError.MfaInvalidOtpError;
106
+ exports.ExternalAuthError = ExternalAuthError.ExternalAuthError;
107
+ exports.WalletAddressMismatchError = WalletAddressMismatchError.WalletAddressMismatchError;
108
+ exports.CancellablePromise = CancellablePromise.CancellablePromise;
109
+ exports.isFunction = isFunction.isFunction;
110
+ exports.getAndroidVersion = isMobile.getAndroidVersion;
111
+ exports.isAndroid = isMobile.isAndroid;
112
+ exports.isIOS = isMobile.isIOS;
113
+ exports.isIPad = isMobile.isIPad;
114
+ exports.isIPhone = isMobile.isIPhone;
115
+ exports.isIPhone8OrEarlier = isMobile.isIPhone8OrEarlier;
116
+ exports.isLegacySafari = isMobile.isLegacySafari;
117
+ exports.isMobile = isMobile.isMobile;
118
+ exports.isSamsungBrowser = isMobile.isSamsungBrowser;
119
+ exports.isWindows = isMobile.isWindows;
120
+ exports.getItemAsync = localStorageAsync.getItemAsync;
121
+ exports.removeItemAsync = localStorageAsync.removeItemAsync;
122
+ exports.setItemAsync = localStorageAsync.setItemAsync;
123
+ exports.bufferToBase64 = bufferToBase64.bufferToBase64;
124
+ exports.last = last.last;
125
+ exports.getProvidersFromWindow = getProvidersFromWindow.getProvidersFromWindow;
126
+ exports.sleep = sleep.sleep;
127
+ exports.FALLBACK_UNDEFINED = retryableFn.FALLBACK_UNDEFINED;
128
+ exports.retryableFn = retryableFn.retryableFn;
129
+ exports.wrapMethodWithCallback = wrapMethodWithCallback.wrapMethodWithCallback;
130
+ exports.DeferredPromise = DeferredPromise.DeferredPromise;
131
+ exports.handleMobileWalletRedirect = handleMobileWalletRedirect.handleMobileWalletRedirect;
132
+ exports.uniq = uniq.uniq;
133
+ exports.getTLD = getTLD.getTLD;
134
+ exports.pipe = pipe.pipe;
135
+ exports.formatNumberText = formatNumberText.formatNumberText;
136
+ exports.ceil = ceil.ceil;
137
+ exports.trimEnd = trimEnd.trimEnd;
138
+ exports.isLedgerAddressViaVerifiedCredentials = isLedgerAddressViaVerifiedCredentials.isLedgerAddressViaVerifiedCredentials;
139
+ exports.nativeMobileOauthStateParam = nativeMobileOauthStateParam.nativeMobileOauthStateParam;
140
+ exports.Eip6963Provider = eip6963Provider.Eip6963Provider;
141
+ exports.Eip6963ProviderSingleton = eip6963Provider.Eip6963ProviderSingleton;
142
+ exports.runSafe = runSafe.runSafe;
143
+ exports.PlatformService = PlatformService.PlatformService;
144
+ exports.createBrowserPlatformService = createBrowserPlatformService.createBrowserPlatformService;
145
+ exports.FetchService = FetchService.FetchService;
146
+ exports.Oauth2Service = Oauth2Service.Oauth2Service;
147
+ exports.createWindowOauth2Service = createWindowOauth2Service.createWindowOauth2Service;
148
+ exports.template = template.template;
149
+ exports.get = get.get;
150
+ exports.hexToString = hexToString.hexToString;
151
+ exports.isHex = isHex.isHex;
package/src/index.d.ts ADDED
@@ -0,0 +1,32 @@
1
+ export * from './parseChainId';
2
+ export * from './parseEvmNetworks';
3
+ export * from './errors';
4
+ export * from './CancellablePromise';
5
+ export * from './isFunction';
6
+ export * from './isMobile';
7
+ export * from './localStorageAsync';
8
+ export * from './bufferToBase64';
9
+ export * from './last';
10
+ export * from './getProvidersFromWindow';
11
+ export * from './sleep';
12
+ export * from './retryableFn';
13
+ export * from './wrapMethodWithCallback';
14
+ export * from './DeferredPromise';
15
+ export * from './handleMobileWalletRedirect';
16
+ export * from './uniq';
17
+ export * from './getTLD';
18
+ export * from './pipe';
19
+ export * from './formatNumberText';
20
+ export * from './ceil';
21
+ export * from './trimEnd';
22
+ export * from './isLedgerAddressViaVerifiedCredentials';
23
+ export * from './nativeMobileOauthStateParam';
24
+ export * from './eip6963';
25
+ export { runSafe } from './runSafe';
26
+ export { PlatformService, createBrowserPlatformService, type IPlatformService, } from './services/PlatformService';
27
+ export { FetchService } from './services/FetchService';
28
+ export { Oauth2Service, type GetOauthCodeError, type GetOauthCodeProps, type IOauth2Service, createWindowOauth2Service, } from './services/Oauth2Service';
29
+ export { template } from './template';
30
+ export { get } from './get';
31
+ export { hexToString } from './hexToString';
32
+ export { isHex } from './isHex';
package/src/index.js ADDED
@@ -0,0 +1,66 @@
1
+ 'use client'
2
+ export { parseChainId } from './parseChainId.js';
3
+ export { parseEvmNetworks } from './parseEvmNetworks.js';
4
+ export { AccountExistsError } from './errors/AccountExistsError.js';
5
+ export { ChainalysisError } from './errors/ChainalysisError.js';
6
+ export { CustomError } from './errors/CustomError.js';
7
+ export { DynamicError } from './errors/DynamicError.js';
8
+ export { EmailAlreadyExistsError } from './errors/EmailAlreadyExistsError.js';
9
+ export { EmailProviderError } from './errors/EmailProviderError.js';
10
+ export { EmailVerificationError } from './errors/EmailVerificationError.js';
11
+ export { GateBlockedError } from './errors/GateBlockedError.js';
12
+ export { InsufficientFundsError } from './errors/InsufficientFundsError.js';
13
+ export { MissingEnvironmentIdError } from './errors/MissingEnvironmentIdError.js';
14
+ export { MissingPublicAddressError } from './errors/MissingPublicAddressError.js';
15
+ export { NoAccessError } from './errors/NoAccessError.js';
16
+ export { NotSupportedError } from './errors/NotSupportedError.js';
17
+ export { SmsVerificationError } from './errors/SmsVerificationError.js';
18
+ export { SocialAccountAlreadyExistsError } from './errors/SocialAccountAlreadyExistsError.js';
19
+ export { TransactionGasCannotBeSponsoredError } from './errors/TransactionGasCannotBeSponsoredError.js';
20
+ export { UserHasAccountWithEmailError } from './errors/UserHasAccountWithEmailError.js';
21
+ export { UsernameAlreadyExistsError } from './errors/UsernameAlreadyExistsError.js';
22
+ export { WalletNotDeployedError } from './errors/WalletNotDeployedError.js';
23
+ export { WalletUsedError } from './errors/WalletUsedError.js';
24
+ export { UserRejectedTransactionError } from './errors/UserRejectedTransactionError.js';
25
+ export { TooManyEmailVerificationsError } from './errors/TooManyEmailVerificationsError.js';
26
+ export { VerificationDataCollectionError } from './errors/VerificationDataCollectionError.js';
27
+ export { InvalidPhoneNumberError } from './errors/InvalidPhoneNumberError.js';
28
+ export { MergeAccountsConfirmationError } from './errors/MergeAccountsConfirmationError.js';
29
+ export { CustomFieldNotUniqueError } from './errors/CustomFieldNotUniqueError.js';
30
+ export { CookieInvalidError } from './errors/CookieInvalidError.js';
31
+ export { AccessBlockedError } from './errors/AccessBlockedError.js';
32
+ export { EmbeddedWalletException } from './errors/EmbeddedWalletException.js';
33
+ export { MfaInvalidOtpError } from './errors/MfaInvalidOtpError.js';
34
+ export { ExternalAuthError } from './errors/ExternalAuthError.js';
35
+ export { WalletAddressMismatchError } from './errors/WalletAddressMismatchError.js';
36
+ export { CancellablePromise } from './CancellablePromise/CancellablePromise.js';
37
+ export { isFunction } from './isFunction/isFunction.js';
38
+ export { getAndroidVersion, isAndroid, isIOS, isIPad, isIPhone, isIPhone8OrEarlier, isLegacySafari, isMobile, isSamsungBrowser, isWindows } from './isMobile.js';
39
+ export { getItemAsync, removeItemAsync, setItemAsync } from './localStorageAsync.js';
40
+ export { bufferToBase64 } from './bufferToBase64.js';
41
+ export { last } from './last.js';
42
+ export { getProvidersFromWindow } from './getProvidersFromWindow.js';
43
+ export { sleep } from './sleep/sleep.js';
44
+ export { FALLBACK_UNDEFINED, retryableFn } from './retryableFn.js';
45
+ export { wrapMethodWithCallback } from './wrapMethodWithCallback/wrapMethodWithCallback.js';
46
+ export { DeferredPromise } from './DeferredPromise/DeferredPromise.js';
47
+ export { handleMobileWalletRedirect } from './handleMobileWalletRedirect/handleMobileWalletRedirect.js';
48
+ export { uniq } from './uniq/uniq.js';
49
+ export { getTLD } from './getTLD/getTLD.js';
50
+ export { pipe } from './pipe/pipe.js';
51
+ export { formatNumberText } from './formatNumberText/formatNumberText.js';
52
+ export { ceil } from './ceil/ceil.js';
53
+ export { trimEnd } from './trimEnd/trimEnd.js';
54
+ export { isLedgerAddressViaVerifiedCredentials } from './isLedgerAddressViaVerifiedCredentials.js';
55
+ export { nativeMobileOauthStateParam } from './nativeMobileOauthStateParam.js';
56
+ export { Eip6963Provider, Eip6963ProviderSingleton } from './eip6963/eip6963Provider.js';
57
+ export { runSafe } from './runSafe/runSafe.js';
58
+ export { PlatformService } from './services/PlatformService/PlatformService.js';
59
+ export { createBrowserPlatformService } from './services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.js';
60
+ export { FetchService } from './services/FetchService/FetchService.js';
61
+ export { Oauth2Service } from './services/Oauth2Service/Oauth2Service.js';
62
+ export { createWindowOauth2Service } from './services/Oauth2Service/createWindowOauth2Service/createWindowOauth2Service.js';
63
+ export { template } from './template/template.js';
64
+ export { get } from './get/get.js';
65
+ export { hexToString } from './hexToString/hexToString.js';
66
+ export { isHex } from './isHex/isHex.js';