@dcloudio/uni-quickapp-webview 3.0.0-alpha-3050220220719002 → 3.0.0-alpha-3050320220727002
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/uni.api.esm.js +12 -6
- package/package.json +5 -5
package/dist/uni.api.esm.js
CHANGED
|
@@ -671,12 +671,18 @@ function invokePushCallback(args) {
|
|
|
671
671
|
invokeGetPushCidCallbacks(cid, args.errMsg);
|
|
672
672
|
}
|
|
673
673
|
else if (args.type === 'pushMsg') {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
674
|
+
const message = {
|
|
675
|
+
type: 'receive',
|
|
676
|
+
data: normalizePushMessage(args.message),
|
|
677
|
+
};
|
|
678
|
+
for (let i = 0; i < onPushMessageCallbacks.length; i++) {
|
|
679
|
+
const callback = onPushMessageCallbacks[i];
|
|
680
|
+
callback(message);
|
|
681
|
+
// 该消息已被阻止
|
|
682
|
+
if (message.stopped) {
|
|
683
|
+
break;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
680
686
|
}
|
|
681
687
|
else if (args.type === 'click') {
|
|
682
688
|
onPushMessageCallbacks.forEach((callback) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-quickapp-webview",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3050320220727002",
|
|
4
4
|
"description": "uni-app quickapp-webview",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@vue/compiler-core": "3.2.37"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dcloudio/uni-cli-shared": "3.0.0-alpha-
|
|
29
|
-
"@dcloudio/uni-mp-vite": "3.0.0-alpha-
|
|
30
|
-
"@dcloudio/uni-mp-vue": "3.0.0-alpha-
|
|
31
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
28
|
+
"@dcloudio/uni-cli-shared": "3.0.0-alpha-3050320220727002",
|
|
29
|
+
"@dcloudio/uni-mp-vite": "3.0.0-alpha-3050320220727002",
|
|
30
|
+
"@dcloudio/uni-mp-vue": "3.0.0-alpha-3050320220727002",
|
|
31
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3050320220727002",
|
|
32
32
|
"@vue/shared": "3.2.37"
|
|
33
33
|
}
|
|
34
34
|
}
|