@dynamic-labs/utils 2.1.2-alpha.1 → 2.2.0-alpha.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.
package/CHANGELOG.md CHANGED
@@ -1,25 +1,10 @@
1
1
 
2
- ### [2.1.2-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.2-alpha.0...v2.1.2-alpha.1) (2024-06-07)
3
-
4
-
5
- ### Bug Fixes
6
-
7
- * find phantom solana provider when opening dapp on new tab ([#5902](https://github.com/dynamic-labs/DynamicAuth/issues/5902)) ([99daf87](https://github.com/dynamic-labs/DynamicAuth/commit/99daf87f17caed870a76e4f89a257a14da37c7ab)), closes [#5895](https://github.com/dynamic-labs/DynamicAuth/issues/5895) [#5896](https://github.com/dynamic-labs/DynamicAuth/issues/5896) [#5897](https://github.com/dynamic-labs/DynamicAuth/issues/5897)
8
-
9
- ### [2.1.2-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.1...v2.1.2-alpha.0) (2024-06-07)
2
+ ## [2.2.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0...v2.2.0-alpha.0) (2024-06-04)
10
3
 
11
4
 
12
5
  ### Features
13
6
 
14
- * display enabled countries in phone number field ([#5825](https://github.com/dynamic-labs/DynamicAuth/issues/5825)) ([#5868](https://github.com/dynamic-labs/DynamicAuth/issues/5868)) ([640a4a7](https://github.com/dynamic-labs/DynamicAuth/commit/640a4a77c994390ceed759faf186717b38f393a4))
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * btc getBalance should use ordinal address if payment not available ([#5883](https://github.com/dynamic-labs/DynamicAuth/issues/5883)) ([bc5ac55](https://github.com/dynamic-labs/DynamicAuth/commit/bc5ac5589e90193d41282d23ce037db360dd23e6))
20
- * phone number in kyc step ([#5875](https://github.com/dynamic-labs/DynamicAuth/issues/5875)) ([#5879](https://github.com/dynamic-labs/DynamicAuth/issues/5879)) ([3d8a5be](https://github.com/dynamic-labs/DynamicAuth/commit/3d8a5bef35d4a13a1068aaf80d2c39e795b097cd))
21
-
22
- ### [2.1.1](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0...v2.1.1) (2024-06-04)
7
+ * add multi-asset wallet header ([#5608](https://github.com/dynamic-labs/DynamicAuth/issues/5608)) ([47998b1](https://github.com/dynamic-labs/DynamicAuth/commit/47998b1999ddf786bf88b86248c79fc92f278331)), closes [#5655](https://github.com/dynamic-labs/DynamicAuth/issues/5655) [#5643](https://github.com/dynamic-labs/DynamicAuth/issues/5643) [#5673](https://github.com/dynamic-labs/DynamicAuth/issues/5673) [#5762](https://github.com/dynamic-labs/DynamicAuth/issues/5762) [#5766](https://github.com/dynamic-labs/DynamicAuth/issues/5766) [#5777](https://github.com/dynamic-labs/DynamicAuth/issues/5777)
23
8
 
24
9
  ## [2.1.0](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.32...v2.1.0) (2024-06-04)
25
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "2.1.2-alpha.1",
3
+ "version": "2.2.0-alpha.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -26,10 +26,10 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api-core": "0.0.460",
29
+ "@dynamic-labs/sdk-api-core": "0.0.453",
30
30
  "tldts": "6.0.16",
31
- "@dynamic-labs/logger": "2.1.2-alpha.1",
32
- "@dynamic-labs/types": "2.1.2-alpha.1",
31
+ "@dynamic-labs/logger": "2.2.0-alpha.0",
32
+ "@dynamic-labs/types": "2.2.0-alpha.0",
33
33
  "buffer": "6.0.3"
34
34
  },
35
35
  "peerDependencies": {
package/src/index.cjs CHANGED
@@ -60,7 +60,6 @@ var PlatformService = require('./services/PlatformService/PlatformService.cjs');
60
60
  var createBrowserPlatformService = require('./services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.cjs');
61
61
  var FetchService = require('./services/FetchService/FetchService.cjs');
62
62
  var template = require('./template/template.cjs');
63
- var get = require('./get/get.cjs');
64
63
 
65
64
 
66
65
 
@@ -135,4 +134,3 @@ exports.PlatformService = PlatformService.PlatformService;
135
134
  exports.createBrowserPlatformService = createBrowserPlatformService.createBrowserPlatformService;
136
135
  exports.FetchService = FetchService.FetchService;
137
136
  exports.template = template.template;
138
- exports.get = get.get;
package/src/index.d.ts CHANGED
@@ -25,4 +25,3 @@ export { runSafe } from './runSafe';
25
25
  export { PlatformService, createBrowserPlatformService, type IPlatformService, } from './services/PlatformService';
26
26
  export { FetchService } from './services/FetchService';
27
27
  export { template } from './template';
28
- export { get } from './get';
package/src/index.js CHANGED
@@ -56,4 +56,3 @@ export { PlatformService } from './services/PlatformService/PlatformService.js';
56
56
  export { createBrowserPlatformService } from './services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.js';
57
57
  export { FetchService } from './services/FetchService/FetchService.js';
58
58
  export { template } from './template/template.js';
59
- export { get } from './get/get.js';
package/src/get/get.cjs DELETED
@@ -1,24 +0,0 @@
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;
package/src/get/get.d.ts DELETED
@@ -1,7 +0,0 @@
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 DELETED
@@ -1,20 +0,0 @@
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 };
@@ -1 +0,0 @@
1
- export { get } from './get';