@dcloudio/uni-cli-shared 3.0.0-alpha-3060420220922008 → 3.0.0-alpha-3060720221014001
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.
- package/dist/hbx/log.js +6 -6
- package/dist/json/manifest.js +3 -3
- package/dist/messages/en.d.ts +1 -0
- package/dist/messages/en.js +1 -0
- package/dist/messages/index.d.ts +2 -0
- package/dist/messages/zh_CN.d.ts +1 -0
- package/dist/messages/zh_CN.js +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -2
- package/package.json +3 -3
- package/lib/.DS_Store +0 -0
- package/lib/vue-i18n/.DS_Store +0 -0
package/dist/hbx/log.js
CHANGED
|
@@ -12,8 +12,8 @@ const utils_1 = require("../utils");
|
|
|
12
12
|
const constants_1 = require("../constants");
|
|
13
13
|
const ast_1 = require("../vite/utils/ast");
|
|
14
14
|
const utils_2 = require("../vite/plugins/vitejs/utils");
|
|
15
|
-
const SIGNAL_H5_LOCAL = '
|
|
16
|
-
const SIGNAL_H5_NETWORK = '
|
|
15
|
+
const SIGNAL_H5_LOCAL = ' ➜ Local:';
|
|
16
|
+
const SIGNAL_H5_NETWORK = ' ➜ Network:';
|
|
17
17
|
const networkLogs = [];
|
|
18
18
|
function formatAtFilename(filename, line, column) {
|
|
19
19
|
return `at ${picocolors_1.default.cyan((0, utils_1.normalizePath)(path_1.default.relative(process.env.UNI_INPUT_DIR, filename.split('?')[0])) +
|
|
@@ -29,19 +29,19 @@ exports.h5ServeFormatter = {
|
|
|
29
29
|
},
|
|
30
30
|
format(msg) {
|
|
31
31
|
if (msg.includes(SIGNAL_H5_NETWORK)) {
|
|
32
|
-
networkLogs.push(msg);
|
|
32
|
+
networkLogs.push(msg.replace('➜ ', '➜'));
|
|
33
33
|
process.nextTick(() => {
|
|
34
34
|
if (networkLogs.length) {
|
|
35
|
-
// 延迟打印所有 network,仅最后一个 network 替换
|
|
35
|
+
// 延迟打印所有 network,仅最后一个 network 替换 ➜ 为 -,通知 hbx
|
|
36
36
|
const len = networkLogs.length - 1;
|
|
37
|
-
networkLogs[len] = networkLogs[len].replace('
|
|
37
|
+
networkLogs[len] = networkLogs[len].replace('➜', '-');
|
|
38
38
|
console.log(networkLogs.join('\n'));
|
|
39
39
|
networkLogs.length = 0;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
return '';
|
|
43
43
|
}
|
|
44
|
-
return msg.replace('
|
|
44
|
+
return msg.replace('➜ ', '-');
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
const REMOVED_MSGS = [
|
package/dist/json/manifest.js
CHANGED
|
@@ -73,12 +73,12 @@ function isEnableUniPushV2(inputDir, platform) {
|
|
|
73
73
|
}
|
|
74
74
|
exports.isEnableUniPushV2 = isEnableUniPushV2;
|
|
75
75
|
function isEnableSecureNetwork(inputDir, platform) {
|
|
76
|
-
var _a, _b;
|
|
76
|
+
var _a, _b, _c, _d;
|
|
77
77
|
const manifest = (0, exports.parseManifestJsonOnce)(inputDir);
|
|
78
78
|
if (platform === 'app') {
|
|
79
|
-
return
|
|
79
|
+
return !!((_b = (_a = manifest['app-plus']) === null || _a === void 0 ? void 0 : _a.modules) === null || _b === void 0 ? void 0 : _b.SecureNetwork);
|
|
80
80
|
}
|
|
81
|
-
return ((
|
|
81
|
+
return ((_d = (_c = manifest[platform]) === null || _c === void 0 ? void 0 : _c.secureNetwork) === null || _d === void 0 ? void 0 : _d.enable) === true;
|
|
82
82
|
}
|
|
83
83
|
exports.isEnableSecureNetwork = isEnableSecureNetwork;
|
|
84
84
|
function isUniPushOffline(inputDir) {
|
package/dist/messages/en.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ declare const _default: {
|
|
|
19
19
|
readonly 'mp.component.args[1]': "{0} requires two parameters";
|
|
20
20
|
readonly 'mp.360.unsupported': "360 is unsupported";
|
|
21
21
|
readonly 'file.notfound': "{file} is not found";
|
|
22
|
+
readonly 'uts.ios.tips': "The project uses the uts plug-in. After the uts plug-in code is modified, the [Custom playground native runner](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground) needs to be regenerated to take effect";
|
|
22
23
|
};
|
|
23
24
|
export default _default;
|
package/dist/messages/en.js
CHANGED
|
@@ -21,4 +21,5 @@ exports.default = {
|
|
|
21
21
|
'mp.component.args[1]': '{0} requires two parameters',
|
|
22
22
|
'mp.360.unsupported': '360 is unsupported',
|
|
23
23
|
'file.notfound': '{file} is not found',
|
|
24
|
+
'uts.ios.tips': 'The project uses the uts plug-in. After the uts plug-in code is modified, the [Custom playground native runner](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground) needs to be regenerated to take effect',
|
|
24
25
|
};
|
package/dist/messages/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const M: {
|
|
|
19
19
|
readonly 'mp.component.args[1]': "{0}需要两个参数";
|
|
20
20
|
readonly 'mp.360.unsupported': "vue3暂不支持360小程序";
|
|
21
21
|
readonly 'file.notfound': "{file} 文件不存在";
|
|
22
|
+
readonly 'uts.ios.tips': "项目使用了uts插件,iOS平台uts插件代码修改后需要重新生成[自定义基座](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground)才能生效";
|
|
22
23
|
} | {
|
|
23
24
|
readonly 'app.compiler.version': "Compiler version: {version}";
|
|
24
25
|
readonly compiling: "Compiling...";
|
|
@@ -40,4 +41,5 @@ export declare const M: {
|
|
|
40
41
|
readonly 'mp.component.args[1]': "{0} requires two parameters";
|
|
41
42
|
readonly 'mp.360.unsupported': "360 is unsupported";
|
|
42
43
|
readonly 'file.notfound': "{file} is not found";
|
|
44
|
+
readonly 'uts.ios.tips': "The project uses the uts plug-in. After the uts plug-in code is modified, the [Custom playground native runner](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground) needs to be regenerated to take effect";
|
|
43
45
|
};
|
package/dist/messages/zh_CN.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ declare const _default: {
|
|
|
19
19
|
readonly 'mp.component.args[1]': "{0}需要两个参数";
|
|
20
20
|
readonly 'mp.360.unsupported': "vue3暂不支持360小程序";
|
|
21
21
|
readonly 'file.notfound': "{file} 文件不存在";
|
|
22
|
+
readonly 'uts.ios.tips': "项目使用了uts插件,iOS平台uts插件代码修改后需要重新生成[自定义基座](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground)才能生效";
|
|
22
23
|
};
|
|
23
24
|
export default _default;
|
package/dist/messages/zh_CN.js
CHANGED
|
@@ -21,4 +21,5 @@ exports.default = {
|
|
|
21
21
|
'mp.component.args[1]': '{0}需要两个参数',
|
|
22
22
|
'mp.360.unsupported': 'vue3暂不支持360小程序',
|
|
23
23
|
'file.notfound': '{file} 文件不存在',
|
|
24
|
+
'uts.ios.tips': '项目使用了uts插件,iOS平台uts插件代码修改后需要重新生成[自定义基座](https://uniapp.dcloud.net.cn/tutorial/run/run-app.html#customplayground)才能生效',
|
|
24
25
|
};
|
package/dist/utils.d.ts
CHANGED
|
@@ -15,4 +15,4 @@ export declare function pathToGlob(pathString: string, glob: string, options?: {
|
|
|
15
15
|
windows?: boolean;
|
|
16
16
|
escape?: boolean;
|
|
17
17
|
}): string;
|
|
18
|
-
export declare function resolveSourceMapPath(): string;
|
|
18
|
+
export declare function resolveSourceMapPath(outputDir?: string, platform?: UniApp.PLATFORM): string;
|
package/dist/utils.js
CHANGED
|
@@ -87,7 +87,7 @@ function pathToGlob(pathString, glob, options = {}) {
|
|
|
87
87
|
return path_1.default.posix.join(safeStr, glob);
|
|
88
88
|
}
|
|
89
89
|
exports.pathToGlob = pathToGlob;
|
|
90
|
-
function resolveSourceMapPath() {
|
|
91
|
-
return path_1.default.resolve(process.env.UNI_OUTPUT_DIR, '../.sourcemap/' + (0, platform_1.getPlatformDir)());
|
|
90
|
+
function resolveSourceMapPath(outputDir, platform) {
|
|
91
|
+
return path_1.default.resolve(outputDir || process.env.UNI_OUTPUT_DIR, '../.sourcemap/' + (platform || (0, platform_1.getPlatformDir)()));
|
|
92
92
|
}
|
|
93
93
|
exports.resolveSourceMapPath = resolveSourceMapPath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3060720221014001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@babel/core": "^7.18.13",
|
|
26
26
|
"@babel/parser": "^7.18.13",
|
|
27
27
|
"@babel/types": "^7.17.0",
|
|
28
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
29
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
28
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3060720221014001",
|
|
29
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3060720221014001",
|
|
30
30
|
"@intlify/core-base": "9.1.9",
|
|
31
31
|
"@intlify/shared": "9.1.9",
|
|
32
32
|
"@intlify/vue-devtools": "9.1.9",
|
package/lib/.DS_Store
DELETED
|
Binary file
|
package/lib/vue-i18n/.DS_Store
DELETED
|
Binary file
|