@dynamic-labs/utils 4.0.0-alpha.46 → 4.0.0-alpha.48
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 +22 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +4 -4
- package/src/index.cjs +2 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/solToLamports/index.d.ts +1 -0
- package/src/solToLamports/solToLamports.cjs +11 -0
- package/src/solToLamports/solToLamports.d.ts +1 -0
- package/src/solToLamports/solToLamports.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.48](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.47...v4.0.0-alpha.48) (2024-12-17)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* Temp disable refreshing blockhash for solana transactions ([#7638](https://github.com/dynamic-labs/dynamic-auth/issues/7638)) ([fd457bf](https://github.com/dynamic-labs/dynamic-auth/commit/fd457bf0579ad35ba17fc2c7aa18a9feb49d8c7b))
|
|
8
|
+
|
|
9
|
+
## [4.0.0-alpha.47](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.46...v4.0.0-alpha.47) (2024-12-17)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### ⚠ BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* stop exposing authToken and minAuthToken from dynamic context (#7629)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* allow re-linking unknown wallet when there's another account of the same wallet provider already linked ([#7628](https://github.com/dynamic-labs/dynamic-auth/issues/7628)) ([20c6dc3](https://github.com/dynamic-labs/dynamic-auth/commit/20c6dc3b1847d82bd46f0df5abaef4efe1e24e38))
|
|
19
|
+
* ensure wallet connector will not get removed ([#7625](https://github.com/dynamic-labs/dynamic-auth/issues/7625)) ([b764846](https://github.com/dynamic-labs/dynamic-auth/commit/b764846b56428e2997d33858e29a87f44359eb6c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* stop exposing authToken and minAuthToken from dynamic context ([#7629](https://github.com/dynamic-labs/dynamic-auth/issues/7629)) ([9648870](https://github.com/dynamic-labs/dynamic-auth/commit/9648870478cdcecde279117ada2a1095dab54e2c))
|
|
23
|
+
|
|
2
24
|
## [4.0.0-alpha.46](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.45...v4.0.0-alpha.46) (2024-12-17)
|
|
3
25
|
|
|
4
26
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/utils",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.48",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.576",
|
|
22
22
|
"tldts": "6.0.16",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
24
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.48",
|
|
24
|
+
"@dynamic-labs/logger": "4.0.0-alpha.48",
|
|
25
|
+
"@dynamic-labs/types": "4.0.0-alpha.48",
|
|
26
26
|
"buffer": "6.0.3",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
package/src/index.cjs
CHANGED
|
@@ -92,6 +92,7 @@ var StorageService = require('./services/StorageService/StorageService.cjs');
|
|
|
92
92
|
var createStorageService = require('./services/StorageService/createStorageService/createStorageService.cjs');
|
|
93
93
|
var applyPostfixToStorageService = require('./services/StorageService/applyPostfixToStorageService/applyPostfixToStorageService.cjs');
|
|
94
94
|
var connectWithAppleId = require('./services/Oauth2Service/utils/connectWithAppleId/connectWithAppleId.cjs');
|
|
95
|
+
var solToLamports = require('./solToLamports/solToLamports.cjs');
|
|
95
96
|
|
|
96
97
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/utils', _package.version);
|
|
97
98
|
|
|
@@ -199,3 +200,4 @@ exports.StorageService = StorageService.StorageService;
|
|
|
199
200
|
exports.createStorageService = createStorageService.createStorageService;
|
|
200
201
|
exports.applyPostfixToStorageService = applyPostfixToStorageService.applyPostfixToStorageService;
|
|
201
202
|
exports.connectWithAppleId = connectWithAppleId.connectWithAppleId;
|
|
203
|
+
exports.solToLamports = solToLamports.solToLamports;
|
package/src/index.d.ts
CHANGED
|
@@ -39,3 +39,4 @@ export { FetchService } from './services/FetchService';
|
|
|
39
39
|
export { Oauth2Service, type GetOauthCodeError, type GetOauthCodeProps, type IOauth2Service, createWindowOauth2Service, } from './services/Oauth2Service';
|
|
40
40
|
export { type IStorageService, type StorageOptions, StorageService, createStorageService, applyPostfixToStorageService, } from './services/StorageService';
|
|
41
41
|
export { connectWithAppleId } from './services/Oauth2Service/utils/connectWithAppleId';
|
|
42
|
+
export { solToLamports } from './solToLamports';
|
package/src/index.js
CHANGED
|
@@ -88,5 +88,6 @@ export { StorageService } from './services/StorageService/StorageService.js';
|
|
|
88
88
|
export { createStorageService } from './services/StorageService/createStorageService/createStorageService.js';
|
|
89
89
|
export { applyPostfixToStorageService } from './services/StorageService/applyPostfixToStorageService/applyPostfixToStorageService.js';
|
|
90
90
|
export { connectWithAppleId } from './services/Oauth2Service/utils/connectWithAppleId/connectWithAppleId.js';
|
|
91
|
+
export { solToLamports } from './solToLamports/solToLamports.js';
|
|
91
92
|
|
|
92
93
|
assertPackageVersion('@dynamic-labs/utils', version);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { solToLamports } from './solToLamports';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
const solToLamports = (solAmount) => {
|
|
7
|
+
const lamportsPerSol = 1000000000; // 1 SOL = 1,000,000,000 Lamports
|
|
8
|
+
return solAmount * lamportsPerSol;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.solToLamports = solToLamports;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const solToLamports: (solAmount: number) => number;
|