@blocklet/store 1.16.26-beta-5251ab18 → 1.16.26-beta-351de484
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 +5 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +5 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -96,9 +96,11 @@ async function createConnect({
|
|
|
96
96
|
openPage,
|
|
97
97
|
fetchTimeout = 30 * 1e3,
|
|
98
98
|
fetchInterval = 3 * 1e3,
|
|
99
|
-
retry =
|
|
99
|
+
retry = 1500,
|
|
100
100
|
connectAction = "connect-cli",
|
|
101
101
|
wrapSpinner = baseWrapSpinner,
|
|
102
|
+
projectId,
|
|
103
|
+
userDid,
|
|
102
104
|
enableEncrypt = false,
|
|
103
105
|
...restParams
|
|
104
106
|
} = {}) {
|
|
@@ -128,6 +130,8 @@ async function createConnect({
|
|
|
128
130
|
const mergeParams = {
|
|
129
131
|
_ek_: security.encodeEncryptionKey(keyPair.publicKey),
|
|
130
132
|
sourceAppPid: masterSite?.appPid || void 0,
|
|
133
|
+
projectId,
|
|
134
|
+
userDid,
|
|
131
135
|
...restParams
|
|
132
136
|
};
|
|
133
137
|
const res = await request({
|
package/dist/index.d.cts
CHANGED
|
@@ -9,8 +9,10 @@ interface CreateConnectOptions {
|
|
|
9
9
|
connectAction?: string;
|
|
10
10
|
enableEncrypt?: boolean;
|
|
11
11
|
wrapSpinner?: typeof baseWrapSpinner;
|
|
12
|
+
projectId?: string;
|
|
13
|
+
userDid?: string;
|
|
12
14
|
}
|
|
13
|
-
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, connectAction, wrapSpinner, enableEncrypt, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
15
|
+
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, connectAction, wrapSpinner, projectId, userDid, enableEncrypt, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
14
16
|
|
|
15
17
|
interface BlockletMeta {
|
|
16
18
|
name: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -9,8 +9,10 @@ interface CreateConnectOptions {
|
|
|
9
9
|
connectAction?: string;
|
|
10
10
|
enableEncrypt?: boolean;
|
|
11
11
|
wrapSpinner?: typeof baseWrapSpinner;
|
|
12
|
+
projectId?: string;
|
|
13
|
+
userDid?: string;
|
|
12
14
|
}
|
|
13
|
-
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, connectAction, wrapSpinner, enableEncrypt, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
15
|
+
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, connectAction, wrapSpinner, projectId, userDid, enableEncrypt, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
14
16
|
|
|
15
17
|
interface BlockletMeta {
|
|
16
18
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,8 +9,10 @@ interface CreateConnectOptions {
|
|
|
9
9
|
connectAction?: string;
|
|
10
10
|
enableEncrypt?: boolean;
|
|
11
11
|
wrapSpinner?: typeof baseWrapSpinner;
|
|
12
|
+
projectId?: string;
|
|
13
|
+
userDid?: string;
|
|
12
14
|
}
|
|
13
|
-
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, connectAction, wrapSpinner, enableEncrypt, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
15
|
+
declare function createConnect({ connectUrl, openPage, fetchTimeout, fetchInterval, retry, connectAction, wrapSpinner, projectId, userDid, enableEncrypt, ...restParams }?: CreateConnectOptions): Promise<unknown>;
|
|
14
16
|
|
|
15
17
|
interface BlockletMeta {
|
|
16
18
|
name: string;
|
package/dist/index.mjs
CHANGED
|
@@ -79,9 +79,11 @@ async function createConnect({
|
|
|
79
79
|
openPage,
|
|
80
80
|
fetchTimeout = 30 * 1e3,
|
|
81
81
|
fetchInterval = 3 * 1e3,
|
|
82
|
-
retry =
|
|
82
|
+
retry = 1500,
|
|
83
83
|
connectAction = "connect-cli",
|
|
84
84
|
wrapSpinner = baseWrapSpinner,
|
|
85
|
+
projectId,
|
|
86
|
+
userDid,
|
|
85
87
|
enableEncrypt = false,
|
|
86
88
|
...restParams
|
|
87
89
|
} = {}) {
|
|
@@ -111,6 +113,8 @@ async function createConnect({
|
|
|
111
113
|
const mergeParams = {
|
|
112
114
|
_ek_: encodeEncryptionKey(keyPair.publicKey),
|
|
113
115
|
sourceAppPid: masterSite?.appPid || void 0,
|
|
116
|
+
projectId,
|
|
117
|
+
userDid,
|
|
114
118
|
...restParams
|
|
115
119
|
};
|
|
116
120
|
const res = await request({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/store",
|
|
3
|
-
"version": "1.16.26-beta-
|
|
3
|
+
"version": "1.16.26-beta-351de484",
|
|
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.26-beta-
|
|
31
|
-
"@abtnode/util": "1.16.26-beta-
|
|
30
|
+
"@abtnode/constant": "1.16.26-beta-351de484",
|
|
31
|
+
"@abtnode/util": "1.16.26-beta-351de484",
|
|
32
32
|
"@arcblock/did": "1.18.115",
|
|
33
|
-
"@blocklet/constant": "1.16.26-beta-
|
|
34
|
-
"@blocklet/meta": "1.16.26-beta-
|
|
33
|
+
"@blocklet/constant": "1.16.26-beta-351de484",
|
|
34
|
+
"@blocklet/meta": "1.16.26-beta-351de484",
|
|
35
35
|
"@ocap/client": "^1.18.115",
|
|
36
36
|
"@ocap/util": "1.18.115",
|
|
37
37
|
"@ocap/wallet": "1.18.115",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"typescript": "^5.0.4",
|
|
60
60
|
"unbuild": "^2.0.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "00eba435a21506382c7823ea804abea196390a0f"
|
|
63
63
|
}
|