@dcloudio/uni-stat 3.0.0-alpha-3030720220111002 → 3.0.0-alpha-3030820220114002

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "3.0.0-alpha-3030720220111002";
3
+ var version = "3.0.0-alpha-3030820220114002";
4
4
 
5
5
  const STAT_VERSION = version;
6
6
  const STAT_URL = 'https://tongji.dcloud.io/uni/stat';
@@ -939,8 +939,8 @@ function main() {
939
939
  } else {
940
940
  uni.onAppLaunch((options) => {
941
941
  stat.report(options);
942
- // 小程序平台此时也无法获取getApp,统一在options中传递一个app对象
943
- options.app.$vm.$.appContext.app.mixin(lifecycle);
942
+ // 小程序平台此时也无法获取getApp,统一在options中传递一个app mixin对象
943
+ options.app.mixin(lifecycle);
944
944
  uni.report = function (type, options) {
945
945
  stat.sendEvent(type, options);
946
946
  };
@@ -1,4 +1,4 @@
1
- var version = "3.0.0-alpha-3030720220111002";
1
+ var version = "3.0.0-alpha-3030820220114002";
2
2
 
3
3
  const STAT_VERSION = version;
4
4
  const STAT_URL = 'https://tongji.dcloud.io/uni/stat';
@@ -937,8 +937,8 @@ function main() {
937
937
  } else {
938
938
  uni.onAppLaunch((options) => {
939
939
  stat.report(options);
940
- // 小程序平台此时也无法获取getApp,统一在options中传递一个app对象
941
- options.app.$vm.$.appContext.app.mixin(lifecycle);
940
+ // 小程序平台此时也无法获取getApp,统一在options中传递一个app mixin对象
941
+ options.app.mixin(lifecycle);
942
942
  uni.report = function (type, options) {
943
943
  stat.sendEvent(type, options);
944
944
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-stat",
3
- "version": "3.0.0-alpha-3030720220111002",
3
+ "version": "3.0.0-alpha-3030820220114002",
4
4
  "description": "@dcloudio/uni-stat",
5
5
  "main": "dist/uni-stat.es.js",
6
6
  "module": "dist/uni-stat.es.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
22
22
  "dependencies": {
23
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030720220111002",
23
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030820220114002",
24
24
  "debug": "^4.3.2"
25
25
  },
26
26
  "devDependencies": {