@blocklet/store 1.16.29-beta-44e63d18 → 1.16.29-beta-0c32fe15
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/dist/index.cjs +3 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +3 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -106,6 +106,7 @@ async function createConnect({
|
|
|
106
106
|
projectId,
|
|
107
107
|
userDid,
|
|
108
108
|
enableEncrypt = false,
|
|
109
|
+
closeOnSuccess,
|
|
109
110
|
monikers,
|
|
110
111
|
...restParams
|
|
111
112
|
} = {}) {
|
|
@@ -151,7 +152,8 @@ async function createConnect({
|
|
|
151
152
|
const { url, token } = res.data;
|
|
152
153
|
const pageUrl = ufo.withQuery(ufo.joinURL(connectUrl, DID_CONNECT_URL), {
|
|
153
154
|
__connect_url__: Buffer.from(url).toString("base64"),
|
|
154
|
-
source
|
|
155
|
+
source,
|
|
156
|
+
closeOnSuccess
|
|
155
157
|
});
|
|
156
158
|
openPage?.(pageUrl);
|
|
157
159
|
return await wrapSpinner(`Waiting for connection: ${connectUrl}`, async () => {
|
package/dist/index.d.cts
CHANGED
|
@@ -13,8 +13,9 @@ interface CreateConnectOptions {
|
|
|
13
13
|
projectId?: string;
|
|
14
14
|
monikers?: string;
|
|
15
15
|
userDid?: string;
|
|
16
|
+
closeOnSuccess?: boolean;
|
|
16
17
|
}
|
|
17
|
-
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, source, connectAction, wrapSpinner, projectId, userDid, enableEncrypt, monikers, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
18
|
+
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, source, connectAction, wrapSpinner, projectId, userDid, enableEncrypt, closeOnSuccess, monikers, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
18
19
|
|
|
19
20
|
interface BlockletMeta {
|
|
20
21
|
name: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -13,8 +13,9 @@ interface CreateConnectOptions {
|
|
|
13
13
|
projectId?: string;
|
|
14
14
|
monikers?: string;
|
|
15
15
|
userDid?: string;
|
|
16
|
+
closeOnSuccess?: boolean;
|
|
16
17
|
}
|
|
17
|
-
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, source, connectAction, wrapSpinner, projectId, userDid, enableEncrypt, monikers, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
18
|
+
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, source, connectAction, wrapSpinner, projectId, userDid, enableEncrypt, closeOnSuccess, monikers, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
18
19
|
|
|
19
20
|
interface BlockletMeta {
|
|
20
21
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,8 +13,9 @@ interface CreateConnectOptions {
|
|
|
13
13
|
projectId?: string;
|
|
14
14
|
monikers?: string;
|
|
15
15
|
userDid?: string;
|
|
16
|
+
closeOnSuccess?: boolean;
|
|
16
17
|
}
|
|
17
|
-
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, source, connectAction, wrapSpinner, projectId, userDid, enableEncrypt, monikers, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
18
|
+
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, source, connectAction, wrapSpinner, projectId, userDid, enableEncrypt, closeOnSuccess, monikers, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
18
19
|
|
|
19
20
|
interface BlockletMeta {
|
|
20
21
|
name: string;
|
package/dist/index.mjs
CHANGED
|
@@ -90,6 +90,7 @@ async function createConnect({
|
|
|
90
90
|
projectId,
|
|
91
91
|
userDid,
|
|
92
92
|
enableEncrypt = false,
|
|
93
|
+
closeOnSuccess,
|
|
93
94
|
monikers,
|
|
94
95
|
...restParams
|
|
95
96
|
} = {}) {
|
|
@@ -135,7 +136,8 @@ async function createConnect({
|
|
|
135
136
|
const { url, token } = res.data;
|
|
136
137
|
const pageUrl = withQuery(joinURL(connectUrl, DID_CONNECT_URL), {
|
|
137
138
|
__connect_url__: Buffer.from(url).toString("base64"),
|
|
138
|
-
source
|
|
139
|
+
source,
|
|
140
|
+
closeOnSuccess
|
|
139
141
|
});
|
|
140
142
|
openPage?.(pageUrl);
|
|
141
143
|
return await wrapSpinner(`Waiting for connection: ${connectUrl}`, async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/store",
|
|
3
|
-
"version": "1.16.29-beta-
|
|
3
|
+
"version": "1.16.29-beta-0c32fe15",
|
|
4
4
|
"description": "Connect Store and upload blocklet to Store",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"author": "",
|
|
28
28
|
"license": "ISC",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@abtnode/constant": "1.16.29-beta-
|
|
31
|
-
"@abtnode/util": "1.16.29-beta-
|
|
30
|
+
"@abtnode/constant": "1.16.29-beta-0c32fe15",
|
|
31
|
+
"@abtnode/util": "1.16.29-beta-0c32fe15",
|
|
32
32
|
"@arcblock/did": "1.18.124",
|
|
33
|
-
"@blocklet/constant": "1.16.29-beta-
|
|
34
|
-
"@blocklet/meta": "1.16.29-beta-
|
|
33
|
+
"@blocklet/constant": "1.16.29-beta-0c32fe15",
|
|
34
|
+
"@blocklet/meta": "1.16.29-beta-0c32fe15",
|
|
35
35
|
"@ocap/client": "^1.18.124",
|
|
36
36
|
"@ocap/util": "1.18.124",
|
|
37
37
|
"@ocap/wallet": "1.18.124",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"typescript": "^5.0.4",
|
|
60
60
|
"unbuild": "^2.0.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "38987125da4365838cc40c38a34daaf1bc364763"
|
|
63
63
|
}
|