@dcloudio/uni-cli-shared 3.0.0-alpha-5010220260529001 → 3.0.0-alpha-5010320260611001

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.
@@ -117,7 +117,15 @@ function initUniStatistics(manifestJson) {
117
117
  if (!uniStatistics) {
118
118
  return;
119
119
  }
120
- if (uniStatistics.version === 2 || uniStatistics.version === '2') {
120
+ /**
121
+ * 判断是否为私有版统计:
122
+ * - 新配置:type === 'private'
123
+ * - 旧配置兼容:version === 2
124
+ */
125
+ const isPrivateStat = uniStatistics.type === 'private' ||
126
+ uniStatistics.version === 2 ||
127
+ uniStatistics.version === '2';
128
+ if (isPrivateStat) {
121
129
  if (uniStatistics.uniCloud && uniStatistics.uniCloud.spaceId) {
122
130
  return;
123
131
  }
@@ -19,8 +19,8 @@ declare const _default: {
19
19
  readonly 'build.failed': "DONE Build failed.";
20
20
  readonly 'compiler.build.failed': "Build failed with errors.";
21
21
  readonly 'stat.warn.appid': "The current application is not configured with Appid, and uni statistics cannot be used. For details, see https://ask.dcloud.net.cn/article/36303";
22
- readonly 'stat.warn.version': "The uni statistics version is not configured. The default version is 1.0.uni statistics version 2.0 is recommended, private deployment data is more secure and code is open source and customizable. details: https://uniapp.dcloud.io/uni-stat";
23
- readonly 'stat.warn.tip': "uni statistics version: {version}";
22
+ readonly 'stat.warn.version': "The uni statistics type is not configured. The default type is public. You can set it to public or private. Details: https://uniapp.dcloud.io/uni-stat";
23
+ readonly 'stat.warn.tip': "uni statistics enabled: {type}";
24
24
  readonly 'i18n.fallbackLocale.default': "fallbackLocale is missing in manifest.json, use: {locale}";
25
25
  readonly 'i18n.fallbackLocale.missing': "./local/{locale}.json is missing";
26
26
  readonly 'easycom.conflict': "easycom component conflict: ";
@@ -21,8 +21,8 @@ exports.default = {
21
21
  'build.failed': 'DONE Build failed.',
22
22
  'compiler.build.failed': 'Build failed with errors.',
23
23
  'stat.warn.appid': 'The current application is not configured with Appid, and uni statistics cannot be used. For details, see https://ask.dcloud.net.cn/article/36303',
24
- 'stat.warn.version': 'The uni statistics version is not configured. The default version is 1.0.uni statistics version 2.0 is recommended, private deployment data is more secure and code is open source and customizable. details: https://uniapp.dcloud.io/uni-stat',
25
- 'stat.warn.tip': 'uni statistics version: {version}',
24
+ 'stat.warn.version': 'The uni statistics type is not configured. The default type is public. You can set it to public or private. Details: https://uniapp.dcloud.io/uni-stat',
25
+ 'stat.warn.tip': 'uni statistics enabled: {type}',
26
26
  'i18n.fallbackLocale.default': 'fallbackLocale is missing in manifest.json, use: {locale}',
27
27
  'i18n.fallbackLocale.missing': './local/{locale}.json is missing',
28
28
  'easycom.conflict': 'easycom component conflict: ',
@@ -19,8 +19,8 @@ export declare const M: {
19
19
  readonly 'build.failed': "DONE Build failed.";
20
20
  readonly 'compiler.build.failed': "编译失败";
21
21
  readonly 'stat.warn.appid': "当前应用未配置 appid,无法使用 uni 统计,详情参考:https://ask.dcloud.net.cn/article/36303";
22
- readonly 'stat.warn.version': "当前应用未配置uni统计版本,默认使用1.0版本;建议使用uni统计2.0版本 ,私有部署数据更安全,代码开源可定制。详情:https://uniapp.dcloud.io/uni-stat";
23
- readonly 'stat.warn.tip': "已开启 uni统计{version} 版本";
22
+ readonly 'stat.warn.version': "当前应用未配置 uni 统计版本,默认使用公有版;可配置为公有版或私有版。详情:https://uniapp.dcloud.io/uni-stat";
23
+ readonly 'stat.warn.tip': "已开启uni 统计 2.0{type}";
24
24
  readonly 'i18n.fallbackLocale.default': "当前应用未在 manifest.json 配置 fallbackLocale,默认使用:{locale}";
25
25
  readonly 'i18n.fallbackLocale.missing': "当前应用配置的 fallbackLocale 或 locale 为:{locale},但 locale 目录缺少该语言文件";
26
26
  readonly 'easycom.conflict': "easycom组件冲突:";
@@ -76,8 +76,8 @@ export declare const M: {
76
76
  readonly 'build.failed': "DONE Build failed.";
77
77
  readonly 'compiler.build.failed': "Build failed with errors.";
78
78
  readonly 'stat.warn.appid': "The current application is not configured with Appid, and uni statistics cannot be used. For details, see https://ask.dcloud.net.cn/article/36303";
79
- readonly 'stat.warn.version': "The uni statistics version is not configured. The default version is 1.0.uni statistics version 2.0 is recommended, private deployment data is more secure and code is open source and customizable. details: https://uniapp.dcloud.io/uni-stat";
80
- readonly 'stat.warn.tip': "uni statistics version: {version}";
79
+ readonly 'stat.warn.version': "The uni statistics type is not configured. The default type is public. You can set it to public or private. Details: https://uniapp.dcloud.io/uni-stat";
80
+ readonly 'stat.warn.tip': "uni statistics enabled: {type}";
81
81
  readonly 'i18n.fallbackLocale.default': "fallbackLocale is missing in manifest.json, use: {locale}";
82
82
  readonly 'i18n.fallbackLocale.missing': "./local/{locale}.json is missing";
83
83
  readonly 'easycom.conflict': "easycom component conflict: ";
@@ -19,8 +19,8 @@ declare const _default: {
19
19
  readonly 'build.failed': "DONE Build failed.";
20
20
  readonly 'compiler.build.failed': "编译失败";
21
21
  readonly 'stat.warn.appid': "当前应用未配置 appid,无法使用 uni 统计,详情参考:https://ask.dcloud.net.cn/article/36303";
22
- readonly 'stat.warn.version': "当前应用未配置uni统计版本,默认使用1.0版本;建议使用uni统计2.0版本 ,私有部署数据更安全,代码开源可定制。详情:https://uniapp.dcloud.io/uni-stat";
23
- readonly 'stat.warn.tip': "已开启 uni统计{version} 版本";
22
+ readonly 'stat.warn.version': "当前应用未配置 uni 统计版本,默认使用公有版;可配置为公有版或私有版。详情:https://uniapp.dcloud.io/uni-stat";
23
+ readonly 'stat.warn.tip': "已开启uni 统计 2.0{type}";
24
24
  readonly 'i18n.fallbackLocale.default': "当前应用未在 manifest.json 配置 fallbackLocale,默认使用:{locale}";
25
25
  readonly 'i18n.fallbackLocale.missing': "当前应用配置的 fallbackLocale 或 locale 为:{locale},但 locale 目录缺少该语言文件";
26
26
  readonly 'easycom.conflict': "easycom组件冲突:";
@@ -21,8 +21,8 @@ exports.default = {
21
21
  'build.failed': 'DONE Build failed.',
22
22
  'compiler.build.failed': '编译失败',
23
23
  'stat.warn.appid': '当前应用未配置 appid,无法使用 uni 统计,详情参考:https://ask.dcloud.net.cn/article/36303',
24
- 'stat.warn.version': '当前应用未配置uni统计版本,默认使用1.0版本;建议使用uni统计2.0版本 ,私有部署数据更安全,代码开源可定制。详情:https://uniapp.dcloud.io/uni-stat',
25
- 'stat.warn.tip': '已开启 uni统计{version} 版本',
24
+ 'stat.warn.version': '当前应用未配置 uni 统计版本,默认使用公有版;可配置为公有版或私有版。详情:https://uniapp.dcloud.io/uni-stat',
25
+ 'stat.warn.tip': '已开启uni 统计 2.0{type}',
26
26
  'i18n.fallbackLocale.default': '当前应用未在 manifest.json 配置 fallbackLocale,默认使用:{locale}',
27
27
  'i18n.fallbackLocale.missing': '当前应用配置的 fallbackLocale 或 locale 为:{locale},但 locale 目录缺少该语言文件',
28
28
  'easycom.conflict': 'easycom组件冲突:',