@dynamic-labs/global-wallet 4.0.0-alpha.2 → 4.0.0-alpha.21
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.cjs +8 -0
- package/package.js +4 -0
- package/package.json +4 -11
- package/src/GlobalWalletConnector.cjs +2 -2
- package/src/GlobalWalletConnector.js +2 -2
- package/src/index.cjs +3 -1
- package/src/index.js +4 -0
package/package.cjs
ADDED
package/package.js
ADDED
package/package.json
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/global-wallet",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
4
|
-
"repository": {
|
|
5
|
-
"type": "git",
|
|
6
|
-
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
7
|
-
"directory": "packages/global-wallet"
|
|
8
|
-
},
|
|
3
|
+
"version": "4.0.0-alpha.21",
|
|
9
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "https://github.com/dynamic-labs/DynamicAuth/issues"
|
|
12
|
-
},
|
|
13
|
-
"homepage": "https://github.com/dynamic-labs/DynamicAuth#readme",
|
|
14
5
|
"author": "Dynamic Labs, Inc.",
|
|
15
6
|
"license": "MIT",
|
|
16
7
|
"main": "./index.cjs",
|
|
@@ -25,12 +16,14 @@
|
|
|
25
16
|
},
|
|
26
17
|
"./package.json": "./package.json"
|
|
27
18
|
},
|
|
19
|
+
"homepage": "https://www.dynamic.xyz/",
|
|
28
20
|
"dependencies": {
|
|
29
21
|
"@walletconnect/core": "2.13.1",
|
|
30
22
|
"@walletconnect/utils": "2.13.1",
|
|
31
23
|
"@walletconnect/web3wallet": "1.12.1",
|
|
32
24
|
"jsqr": "1.4.0",
|
|
33
|
-
"@dynamic-labs/
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.21",
|
|
26
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.21"
|
|
34
27
|
},
|
|
35
28
|
"peerDependencies": {
|
|
36
29
|
"viem": "^2.7.6",
|
|
@@ -38,7 +38,7 @@ const buildCombinedNamespaces = (params) => {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
const GlobalWalletExtension = {
|
|
41
|
-
extend: (connector) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
+
extend: (connector, settings) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
42
42
|
let web3wallet$1;
|
|
43
43
|
let WCListenersOn = false;
|
|
44
44
|
let pendingSessionProposal;
|
|
@@ -85,7 +85,7 @@ const GlobalWalletExtension = {
|
|
|
85
85
|
initWeb3Wallet: () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
86
86
|
if (!web3wallet$1) {
|
|
87
87
|
const core$1 = new core.Core({
|
|
88
|
-
projectId:
|
|
88
|
+
projectId: settings.walletConnectDappProjectId,
|
|
89
89
|
});
|
|
90
90
|
web3wallet$1 = yield web3wallet.Web3Wallet.init({
|
|
91
91
|
core: core$1,
|
|
@@ -30,7 +30,7 @@ const buildCombinedNamespaces = (params) => {
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
const GlobalWalletExtension = {
|
|
33
|
-
extend: (connector) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
|
+
extend: (connector, settings) => __awaiter(void 0, void 0, void 0, function* () {
|
|
34
34
|
let web3wallet;
|
|
35
35
|
let WCListenersOn = false;
|
|
36
36
|
let pendingSessionProposal;
|
|
@@ -77,7 +77,7 @@ const GlobalWalletExtension = {
|
|
|
77
77
|
initWeb3Wallet: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
78
78
|
if (!web3wallet) {
|
|
79
79
|
const core = new Core({
|
|
80
|
-
projectId:
|
|
80
|
+
projectId: settings.walletConnectDappProjectId,
|
|
81
81
|
});
|
|
82
82
|
web3wallet = yield Web3Wallet.init({
|
|
83
83
|
core,
|
package/src/index.cjs
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
+
var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
7
|
+
var _package = require('../package.cjs');
|
|
6
8
|
var GlobalWalletConnector = require('./GlobalWalletConnector.cjs');
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
assertPackageVersion.assertPackageVersion('@dynamic-labs/global-wallet', _package.version);
|
|
9
11
|
|
|
10
12
|
exports.GlobalWalletExtension = GlobalWalletConnector.GlobalWalletExtension;
|
|
11
13
|
exports.buildCombinedNamespaces = GlobalWalletConnector.buildCombinedNamespaces;
|
package/src/index.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
3
|
+
import { version } from '../package.js';
|
|
2
4
|
export { GlobalWalletExtension, buildCombinedNamespaces } from './GlobalWalletConnector.js';
|
|
5
|
+
|
|
6
|
+
assertPackageVersion('@dynamic-labs/global-wallet', version);
|