@dcloudio/uni-stat 2.0.1-33520211229002 → 2.0.1-33920220121003

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -10
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { version } from '../package.json';
2
-
1
+ import { version } from '../package.json';
2
+
3
3
  const STAT_VERSION = version;
4
4
  const STAT_URL = 'https://tongji.dcloud.io/uni/stat';
5
5
  const STAT_H5_URL = 'https://tongji.dcloud.io/uni/stat.gif';
6
6
  const PAGE_PVER_TIME = 1800;
7
7
  const APP_PVER_TIME = 300;
8
- const OPERATING_TIME = 10;
9
- const DIFF_TIME = 60 * 1000 * 60 * 24;
10
-
8
+ const OPERATING_TIME = 10;
9
+ const DIFF_TIME = 60 * 1000 * 60 * 24;
10
+
11
11
  const statConfig = require('uni-stat-config').default || require('uni-stat-config');
12
12
  const UUID_KEY = '__DC_STAT_UUID';
13
13
  const UUID_VALUE = '__DC_UUID_VALUE';
@@ -80,6 +80,7 @@ const getPlatformName = () => {
80
80
  'mp-baidu': 'bd',
81
81
  'mp-toutiao': 'tt',
82
82
  'mp-qq': 'qq',
83
+ 'mp-jd': 'jd',
83
84
  'quickapp-native': 'qn',
84
85
  'mp-kuaishou': 'ks'
85
86
  };
@@ -390,8 +391,8 @@ const requestData = (done) => {
390
391
  });
391
392
  }
392
393
  });
393
- };
394
-
394
+ };
395
+
395
396
  const PagesJson = require('uni-pages?{"type":"style"}').default;
396
397
  const statConfig$1 = require('uni-stat-config').default || require('uni-stat-config');
397
398
 
@@ -927,8 +928,8 @@ class Stat extends Util {
927
928
  };
928
929
  this.request(options);
929
930
  }
930
- }
931
-
931
+ }
932
+
932
933
  const stat = Stat.getInstance();
933
934
  let isHide = false;
934
935
  const lifecycle = {
@@ -981,4 +982,4 @@ function main() {
981
982
  }
982
983
  }
983
984
 
984
- main();
985
+ main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-stat",
3
- "version": "2.0.1-33520211229002",
3
+ "version": "2.0.1-33920220121003",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -34,5 +34,5 @@
34
34
  "rollup-plugin-replace": "^2.2.0",
35
35
  "rollup-plugin-uglify": "^6.0.2"
36
36
  },
37
- "gitHead": "ebe154e13c5b7c5b015a6c31676ddc3ca2f5cc68"
37
+ "gitHead": "56e678aff7260517a4e93d66ae9dd4489f5db604"
38
38
  }