From 75b9511050a230c9c85ddc253dbb826640c37130 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 22 Jul 2022 11:06:35 +0800 Subject: [PATCH] chore: bump @dcloudio/types from 3.0.9 to 3.0.10 --- package.json | 2 +- packages/uni-push/dist/uni-push.es.js | 4 +++- packages/uni-push/src/route.ts | 6 +++++- pnpm-lock.yaml | 8 ++++---- scripts/checkVersion.js | 2 +- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index ec606dc70..4e125e277 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "devDependencies": { "@babel/core": "^7.17.10", "@babel/preset-env": "^7.16.11", - "@dcloudio/types": "^3.0.9", + "@dcloudio/types": "^3.0.10", "@dcloudio/uni-api": "3.0.0-alpha-3050220220719003", "@dcloudio/uni-app": "3.0.0-alpha-3050220220719003", "@jest/types": "^27.0.2", diff --git a/packages/uni-push/dist/uni-push.es.js b/packages/uni-push/dist/uni-push.es.js index 3e8146498..102aa2f89 100644 --- a/packages/uni-push/dist/uni-push.es.js +++ b/packages/uni-push/dist/uni-push.es.js @@ -111,7 +111,9 @@ function initPushNotification() { }); }); uni.onPushMessage((res) => { - if (res.type === 'receive' && res.data && res.data.force_notification) { + if (res.type === 'receive' && + res.data && + res.data.force_notification) { // 创建通知栏 uni.createPushMessage(res.data); res.stopped = true; diff --git a/packages/uni-push/src/route.ts b/packages/uni-push/src/route.ts index 57044e76b..8ca4305db 100644 --- a/packages/uni-push/src/route.ts +++ b/packages/uni-push/src/route.ts @@ -9,7 +9,11 @@ export function initPushNotification() { }) }) uni.onPushMessage((res) => { - if (res.type === 'receive' && res.data && res.data.force_notification) { + if ( + res.type === 'receive' && + res.data && + (res.data as any).force_notification + ) { // 创建通知栏 uni.createPushMessage(res.data) // 阻止其他监听器继续监听 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5aedde26d..05c0a36d8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,7 +6,7 @@ importers: specifiers: '@babel/core': ^7.17.10 '@babel/preset-env': ^7.16.11 - '@dcloudio/types': ^3.0.9 + '@dcloudio/types': ^3.0.10 '@dcloudio/uni-api': 3.0.0-alpha-3050220220719003 '@dcloudio/uni-app': 3.0.0-alpha-3050220220719003 '@jest/types': ^27.0.2 @@ -57,7 +57,7 @@ importers: devDependencies: '@babel/core': 7.18.5 '@babel/preset-env': 7.18.2_@babel+core@7.18.5 - '@dcloudio/types': 3.0.9 + '@dcloudio/types': 3.0.10 '@dcloudio/uni-api': link:packages/uni-api '@dcloudio/uni-app': link:packages/uni-app '@jest/types': 27.5.1 @@ -2137,8 +2137,8 @@ packages: resolution: {integrity: sha512-mrCMwcINy1IFjU9VUqLeWBkj404yWs5paLDttBcA+eqUjanuUQbBcTVPqlrGgkyzLXDcV2oDDZRSNxNpXi4kMQ==} dev: true - /@dcloudio/types/3.0.9: - resolution: {integrity: sha512-k6gjoYrgqDY9qOuHDajvFqP4jMliE/5Mn8JXenz6kAVLVKk1r85Ufy1qIG5+EqHpgDHq3IlyYo6TgTl+LKS0yQ==} + /@dcloudio/types/3.0.10: + resolution: {integrity: sha512-FPffL88ogSqYeobvV0v7F9qYoMJajMfpILCipKHyO73DLSNbWNAbuDg+4tif+qMFeFRroKdLIkKOiYJT5oLSng==} dev: true /@dcloudio/uni-cli-i18n/2.0.0-alpha-33020211130001: diff --git a/scripts/checkVersion.js b/scripts/checkVersion.js index 7e8def9c1..0388e8073 100644 --- a/scripts/checkVersion.js +++ b/scripts/checkVersion.js @@ -37,7 +37,7 @@ const pkgs = { latest: '1.8.2', }, '@dcloudio/types': { - next: '3.0.7', + next: '3.0.10', }, autoprefixer: { latest: '10.4.7', -- GitLab