@dcloudio/vue-cli-plugin-uni 2.0.1-35320220729001 → 2.0.1-35420220803001

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,9 @@ 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_STATISTICS_CONFIG': process.env.UNI_STATISTICS_CONFIG,
108
+ 'process.env.UNI_STAT_UNI_CLOUD': process.env.UNI_STAT_UNI_CLOUD,
109
+ 'process.env.UNI_STAT_DEBUG': process.env.UNI_STAT_DEBUG,
109
110
  'process.env.UNI_COMPILER_VERSION': JSON.stringify(process.env.UNI_COMPILER_VERSION),
110
111
  'process.env.UNI_APP_VERSION_NAME': JSON.stringify(process.env.UNI_APP_VERSION_NAME),
111
112
  'process.env.UNI_APP_VERSION_CODE': JSON.stringify(process.env.UNI_APP_VERSION_CODE)
package/lib/env.js CHANGED
@@ -324,8 +324,9 @@ if ((process.env.UNI_PLATFORM === 'mp-kuaishou' || process.env.UNI_PLATFORM ===
324
324
 
325
325
  process.env.MERGE_VIRTUAL_HOST_ATTRIBUTES = (!!platformOptions.mergeVirtualHostAttributes).toString()
326
326
 
327
- process.env.UNI_STAT_UNI_CLOUD = ''
328
- process.env.UNI_STAT_DEBUG = ''
327
+ process.env.UNI_STATISTICS_CONFIG = '""'
328
+ process.env.UNI_STAT_UNI_CLOUD = '""'
329
+ process.env.UNI_STAT_DEBUG = '""'
329
330
  if (
330
331
  process.env.UNI_USING_COMPONENTS ||
331
332
  process.env.UNI_PLATFORM === 'h5'
@@ -336,9 +337,10 @@ if (
336
337
  )
337
338
 
338
339
  if (uniStatistics.enable === true) {
339
- process.env.UNI_USING_STAT = uniStatistics.version === '2' ? '2' : '1'
340
+ process.env.UNI_USING_STAT = Number(uniStatistics.version) === 2 ? '2' : '1'
340
341
  // 获取服务空间配置信息
341
342
  const uniCloudConfig = uniStatistics.uniCloud || {}
343
+ process.env.UNI_STATISTICS_CONFIG = JSON.stringify(uniStatistics)
342
344
  process.env.UNI_STAT_UNI_CLOUD = JSON.stringify(uniCloudConfig)
343
345
  process.env.UNI_STAT_DEBUG = uniStatistics.debug === true ? 'true' : 'false'
344
346
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-uni",
3
- "version": "2.0.1-35320220729001",
3
+ "version": "2.0.1-35420220803001",
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-35320220729001",
20
+ "@dcloudio/uni-stat": "^2.0.1-35420220803001",
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": "6f1c61f2ad2c22bde3d36f42e3ccc1a077a5292c"
42
+ "gitHead": "4616fac056201ef6f3db91c550c421c713fc973f"
43
43
  }