@dcloudio/uni-push 3.0.0-alpha-3050020220622001 → 3.0.0-alpha-3050020220622002

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.
@@ -103,6 +103,10 @@ var GtPush = /*@__PURE__*/getDefaultExportFromCjs(gtpushMin);
103
103
  // if (process.env.UNI_PUSH_DEBUG) {
104
104
  // GtPush.setDebugMode(true)
105
105
  // }
106
+ // @ts-expect-error
107
+ uni.invokePushCallback({
108
+ type: 'enabled',
109
+ });
106
110
  const appid = process.env.UNI_APP_ID;
107
111
  if (!appid) {
108
112
  Promise.resolve().then(() => {
@@ -1,3 +1,7 @@
1
+ // @ts-expect-error
2
+ uni.invokePushCallback({
3
+ type: 'enabled',
4
+ });
1
5
  Promise.resolve().then(() => {
2
6
  plus.push.setAutoNotification && plus.push.setAutoNotification(false);
3
7
  const info = plus.push.getClientInfo();
package/lib/uni.plugin.js CHANGED
@@ -45,7 +45,7 @@ var index = () => [
45
45
  }
46
46
  if (isEnable) {
47
47
  return {
48
- code: code + `;import '@dcloudio/uni-push';`,
48
+ code: `import '@dcloudio/uni-push';` + code,
49
49
  map: null,
50
50
  };
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-push",
3
- "version": "3.0.0-alpha-3050020220622001",
3
+ "version": "3.0.0-alpha-3050020220622002",
4
4
  "description": "@dcloudio/uni-push",
5
5
  "main": "lib/uni-push.js",
6
6
  "module": "lib/uni-push.js",
@@ -20,6 +20,6 @@
20
20
  },
21
21
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
22
22
  "dependencies": {
23
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-3050020220622001"
23
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-3050020220622002"
24
24
  }
25
25
  }