@lemon-fe/mini-app 0.1.86 → 0.1.97
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/es/global.d.ts +4 -0
- package/es/global.js +3 -0
- package/package.json +2 -2
package/es/global.d.ts
CHANGED
|
@@ -43,6 +43,10 @@ export declare const mini: {
|
|
|
43
43
|
getAccessToken(opts: {
|
|
44
44
|
success?: ((token: string | null) => void) | undefined;
|
|
45
45
|
}): void;
|
|
46
|
+
checkAccessToken(opts: {
|
|
47
|
+
success?: ((token: string | null) => void) | undefined;
|
|
48
|
+
fail?: ((err: Error) => void) | undefined;
|
|
49
|
+
}): void;
|
|
46
50
|
setCapsule(opts: {
|
|
47
51
|
visible: boolean;
|
|
48
52
|
}): void;
|
package/es/global.js
CHANGED
|
@@ -92,6 +92,9 @@ export var mini = {
|
|
|
92
92
|
getAccessToken: function getAccessToken(opts) {
|
|
93
93
|
mini.methodRegister('GET_ACCESS_TOKEN', opts);
|
|
94
94
|
},
|
|
95
|
+
checkAccessToken: function checkAccessToken(opts) {
|
|
96
|
+
mini.methodRegister('CHECK_ACCESS_TOKEN', opts);
|
|
97
|
+
},
|
|
95
98
|
setCapsule: function setCapsule(opts) {
|
|
96
99
|
mini.methodRegister('SET_CAPSULE', {
|
|
97
100
|
params: opts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/mini-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.97",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "鲁盛杰 <lusj@cnlemon.net>",
|
|
6
6
|
"homepage": "",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"react": "^17.0.2",
|
|
36
36
|
"react-dom": "17.0.2"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "7823b5e252d052d697f8f4c584d39ee3c2014d92"
|
|
39
39
|
}
|