@dcloudio/vue-cli-plugin-uni 2.0.1-alpha-35220220719001 → 2.0.1-alpha-35220220719002

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.
@@ -104,8 +104,8 @@ module.exports = function chainWebpack (platformOptions, vueOptions, api) {
104
104
  'process.env.UNICLOUD_DEBUG': process.env.UNICLOUD_DEBUG,
105
105
  'process.env.RUN_BY_HBUILDERX': process.env.RUN_BY_HBUILDERX,
106
106
  'process.env.UNI_AUTOMATOR_WS_ENDPOINT': JSON.stringify(process.env.UNI_AUTOMATOR_WS_ENDPOINT),
107
- 'process.env.UNI_STAT_UNI_CLOUD': process.env.UNI_STAT_UNI_CLOUD || '',
108
- 'process.env.UNI_STAT_DEBUG': process.env.UNI_STAT_DEBUG || '',
107
+ 'process.env.UNI_STAT_UNI_CLOUD': process.env.UNI_STAT_UNI_CLOUD || '""',
108
+ 'process.env.UNI_STAT_DEBUG': process.env.UNI_STAT_DEBUG || '""',
109
109
  'process.env.UNI_COMPILER_VERSION': JSON.stringify(process.env.UNI_COMPILER_VERSION),
110
110
  'process.env.UNI_APP_VERSION_NAME': JSON.stringify(process.env.UNI_APP_VERSION_NAME),
111
111
  'process.env.UNI_APP_VERSION_CODE': JSON.stringify(process.env.UNI_APP_VERSION_CODE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-uni",
3
- "version": "2.0.1-alpha-35220220719001",
3
+ "version": "2.0.1-alpha-35220220719002",
4
4
  "description": "uni-app plugin for vue-cli 3",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "author": "fxy060608",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "@dcloudio/uni-stat": "^2.0.1-alpha-35220220719001",
20
+ "@dcloudio/uni-stat": "^2.0.1-alpha-35220220719002",
21
21
  "buffer-json": "^2.0.0",
22
22
  "clone-deep": "^4.0.1",
23
23
  "copy-webpack-plugin": "^5.1.1",
@@ -39,5 +39,5 @@
39
39
  "wrap-loader": "^0.2.0",
40
40
  "xregexp": "4.0.0"
41
41
  },
42
- "gitHead": "a496984f027e2fa2e35c7c02f76ce14982edd18d"
42
+ "gitHead": "6f2fdbfa632fd7b9da6cbdf4faea5ac863f0eb67"
43
43
  }
@@ -4,14 +4,22 @@ uni.invokePushCallback({
4
4
  });
5
5
  Promise.resolve().then(() => {
6
6
  plus.push.setAutoNotification && plus.push.setAutoNotification(false);
7
- const info = plus.push.getClientInfo();
8
- if (info.clientid) {
7
+ plus.push.getClientInfoAsync((info) => {
8
+ if (info.clientid) {
9
+ // @ts-expect-error
10
+ uni.invokePushCallback({
11
+ type: 'clientId',
12
+ cid: info.clientid,
13
+ });
14
+ }
15
+ }, (res) => {
9
16
  // @ts-expect-error
10
17
  uni.invokePushCallback({
11
18
  type: 'clientId',
12
- cid: info.clientid,
19
+ cid: '',
20
+ errMsg: res.code + ': ' + res.message,
13
21
  });
14
- }
22
+ });
15
23
  plus.push.addEventListener('click', (result) => {
16
24
  // @ts-expect-error
17
25
  uni.invokePushCallback({