@dcloudio/uni-stat 3.0.0-alpha-3030820220114005 → 3.0.0-alpha-3030820220114007

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-3030820220114005";
3
+ var version = "3.0.0-alpha-3030820220114007";
4
4
 
5
5
  const STAT_VERSION = version;
6
6
  const STAT_URL = 'https://tongji.dcloud.io/uni/stat';
@@ -1,4 +1,4 @@
1
- var version = "3.0.0-alpha-3030820220114005";
1
+ var version = "3.0.0-alpha-3030820220114007";
2
2
 
3
3
  const STAT_VERSION = version;
4
4
  const STAT_URL = 'https://tongji.dcloud.io/uni/stat';
package/lib/uni.plugin.js CHANGED
@@ -14,7 +14,7 @@ var index = [
14
14
  name: 'uni:stat',
15
15
  enforce: 'pre',
16
16
  config(config, env) {
17
- if (isSsr(env.command, config)) {
17
+ if (uniCliShared.isSsr(env.command, config)) {
18
18
  return;
19
19
  }
20
20
  const inputDir = process.env.UNI_INPUT_DIR;
@@ -64,15 +64,6 @@ var index = [
64
64
  },
65
65
  };
66
66
  }),
67
- ];
68
- function isSsr(command, config) {
69
- if (command === 'serve') {
70
- return !!(config.server && config.server.middlewareMode);
71
- }
72
- if (command === 'build') {
73
- return !!(config.build && config.build.ssr);
74
- }
75
- return false;
76
- }
67
+ ];
77
68
 
78
69
  module.exports = index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-stat",
3
- "version": "3.0.0-alpha-3030820220114005",
3
+ "version": "3.0.0-alpha-3030820220114007",
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-3030820220114005",
23
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030820220114007",
24
24
  "debug": "^4.3.2"
25
25
  },
26
26
  "devDependencies": {