@dcloudio/uni-cli-shared 3.0.0-alpha-3030020211201003 → 3.0.0-alpha-3030020211208002
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/constants.d.ts +1 -0
- package/dist/constants.js +9 -1
- package/dist/env/define.d.ts +1 -0
- package/dist/env/define.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/json/app/index.d.ts +1 -0
- package/dist/json/app/index.js +3 -0
- package/dist/json/app/manifest/arguments.d.ts +1 -0
- package/dist/json/app/manifest/arguments.js +11 -5
- package/dist/json/app/manifest/nvue.d.ts +1 -1
- package/dist/json/app/manifest/nvue.js +3 -0
- package/dist/json/app/pages/uniConfig.js +32 -1
- package/dist/messages/index.d.ts +18 -17
- package/dist/messages/index.js +1 -0
- package/dist/mp/constants.d.ts +1 -0
- package/dist/mp/constants.js +2 -1
- package/dist/mp/index.d.ts +1 -0
- package/dist/mp/index.js +3 -1
- package/dist/mp/plugin.d.ts +2 -0
- package/dist/mp/plugin.js +13 -0
- package/dist/mp/template.d.ts +5 -1
- package/dist/resolve.d.ts +1 -0
- package/dist/resolve.js +7 -3
- package/dist/url.d.ts +2 -0
- package/dist/url.js +15 -0
- package/dist/vite/plugins/jsonJs.js +2 -2
- package/package.json +9 -8
package/dist/constants.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const EXTNAME_VUE: string[];
|
|
|
5
5
|
export declare const EXTNAME_VUE_RE: RegExp;
|
|
6
6
|
export declare const EXTNAME_JS_RE: RegExp;
|
|
7
7
|
export declare const EXTNAME_TS_RE: RegExp;
|
|
8
|
+
export declare const extensions: string[];
|
|
8
9
|
export declare const ASSETS_INLINE_LIMIT: number;
|
|
9
10
|
export declare const APP_SERVICE_FILENAME = "app-service.js";
|
|
10
11
|
export declare const BINDING_COMPONENTS = "__BINDING_COMPONENTS__";
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COMMON_EXCLUDE = exports.BASE_COMPONENTS_STYLE_PATH = exports.H5_COMPONENTS_STYLE_PATH = exports.H5_FRAMEWORK_STYLE_PATH = exports.H5_API_STYLE_PATH = exports.PAGE_EXTNAME = exports.PAGE_EXTNAME_APP = exports.BINDING_COMPONENTS = exports.APP_SERVICE_FILENAME = exports.ASSETS_INLINE_LIMIT = exports.EXTNAME_TS_RE = exports.EXTNAME_JS_RE = exports.EXTNAME_VUE_RE = exports.EXTNAME_VUE = exports.EXTNAME_TS = exports.EXTNAME_JS = exports.PUBLIC_DIR = void 0;
|
|
3
|
+
exports.COMMON_EXCLUDE = exports.BASE_COMPONENTS_STYLE_PATH = exports.H5_COMPONENTS_STYLE_PATH = exports.H5_FRAMEWORK_STYLE_PATH = exports.H5_API_STYLE_PATH = exports.PAGE_EXTNAME = exports.PAGE_EXTNAME_APP = exports.BINDING_COMPONENTS = exports.APP_SERVICE_FILENAME = exports.ASSETS_INLINE_LIMIT = exports.extensions = exports.EXTNAME_TS_RE = exports.EXTNAME_JS_RE = exports.EXTNAME_VUE_RE = exports.EXTNAME_VUE = exports.EXTNAME_TS = exports.EXTNAME_JS = exports.PUBLIC_DIR = void 0;
|
|
4
4
|
exports.PUBLIC_DIR = 'static';
|
|
5
5
|
exports.EXTNAME_JS = ['.js', '.ts', '.jsx', '.tsx'];
|
|
6
6
|
exports.EXTNAME_TS = ['.ts', '.tsx'];
|
|
@@ -8,6 +8,14 @@ exports.EXTNAME_VUE = ['.vue', '.nvue'];
|
|
|
8
8
|
exports.EXTNAME_VUE_RE = /\.(vue|nvue)$/;
|
|
9
9
|
exports.EXTNAME_JS_RE = /\.[jt]sx?$/;
|
|
10
10
|
exports.EXTNAME_TS_RE = /\.tsx?$/;
|
|
11
|
+
exports.extensions = [
|
|
12
|
+
'.mjs',
|
|
13
|
+
'.js',
|
|
14
|
+
'.ts',
|
|
15
|
+
'.jsx',
|
|
16
|
+
'.tsx',
|
|
17
|
+
'.json',
|
|
18
|
+
].concat(exports.EXTNAME_VUE);
|
|
11
19
|
exports.ASSETS_INLINE_LIMIT = 40 * 1024;
|
|
12
20
|
exports.APP_SERVICE_FILENAME = 'app-service.js';
|
|
13
21
|
exports.BINDING_COMPONENTS = '__BINDING_COMPONENTS__';
|
package/dist/env/define.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare function initDefine(stringifyBoolean?: boolean): {
|
|
|
4
4
|
'process.env.UNI_APP_ID': string;
|
|
5
5
|
'process.env.UNI_APP_NAME': string;
|
|
6
6
|
'process.env.UNI_PLATFORM': string;
|
|
7
|
+
'process.env.UNI_MP_PLUGIN': string;
|
|
7
8
|
'process.env.UNI_SUBPACKAGE': string;
|
|
8
9
|
'process.env.UNI_COMPILER_VERSION': string;
|
|
9
10
|
'process.env.RUN_BY_HBUILDERX': string | boolean;
|
package/dist/env/define.js
CHANGED
|
@@ -15,6 +15,7 @@ function initDefine(stringifyBoolean = false) {
|
|
|
15
15
|
'process.env.UNI_APP_ID': JSON.stringify(manifestJson.appid || ''),
|
|
16
16
|
'process.env.UNI_APP_NAME': JSON.stringify(manifestJson.name || ''),
|
|
17
17
|
'process.env.UNI_PLATFORM': JSON.stringify(process.env.UNI_PLATFORM),
|
|
18
|
+
'process.env.UNI_MP_PLUGIN': JSON.stringify(process.env.UNI_MP_PLUGIN),
|
|
18
19
|
'process.env.UNI_SUBPACKAGE': JSON.stringify(process.env.UNI_SUBPACKAGE),
|
|
19
20
|
'process.env.UNI_COMPILER_VERSION': JSON.stringify(process.env.UNI_COMPILER_VERSION),
|
|
20
21
|
'process.env.RUN_BY_HBUILDERX': stringifyBoolean
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.checkUpdate = exports.M = void 0;
|
|
14
14
|
__exportStar(require("./fs"), exports);
|
|
15
15
|
__exportStar(require("./mp"), exports);
|
|
16
|
+
__exportStar(require("./url"), exports);
|
|
16
17
|
__exportStar(require("./env"), exports);
|
|
17
18
|
__exportStar(require("./hbx"), exports);
|
|
18
19
|
__exportStar(require("./ssr"), exports);
|
package/dist/json/app/index.d.ts
CHANGED
package/dist/json/app/index.js
CHANGED
|
@@ -10,5 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.polyfillCode = void 0;
|
|
13
14
|
__exportStar(require("./pages"), exports);
|
|
14
15
|
__exportStar(require("./manifest"), exports);
|
|
16
|
+
var code_1 = require("./pages/code");
|
|
17
|
+
Object.defineProperty(exports, "polyfillCode", { enumerable: true, get: function () { return code_1.polyfillCode; } });
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initArguments = void 0;
|
|
3
|
+
exports.parseArguments = exports.initArguments = void 0;
|
|
4
4
|
function initArguments(manifestJson, pagesJson) {
|
|
5
|
+
const args = parseArguments(pagesJson);
|
|
6
|
+
if (args) {
|
|
7
|
+
manifestJson.plus.arguments = args;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.initArguments = initArguments;
|
|
11
|
+
function parseArguments(pagesJson) {
|
|
5
12
|
var _a;
|
|
6
13
|
if (process.env.NODE_ENV !== 'development') {
|
|
7
14
|
return;
|
|
8
15
|
}
|
|
9
16
|
// 指定了入口
|
|
10
17
|
if (process.env.UNI_CLI_LAUNCH_PAGE_PATH) {
|
|
11
|
-
|
|
18
|
+
return JSON.stringify({
|
|
12
19
|
path: process.env.UNI_CLI_LAUNCH_PAGE_PATH,
|
|
13
20
|
query: process.env.UNI_CLI_LAUNCH_PAGE_QUERY,
|
|
14
21
|
});
|
|
15
|
-
return;
|
|
16
22
|
}
|
|
17
23
|
const condition = pagesJson.condition;
|
|
18
24
|
if (condition && ((_a = condition.list) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
@@ -24,7 +30,7 @@ function initArguments(manifestJson, pagesJson) {
|
|
|
24
30
|
if (current >= list.length) {
|
|
25
31
|
current = 0;
|
|
26
32
|
}
|
|
27
|
-
|
|
33
|
+
return JSON.stringify(list[current]);
|
|
28
34
|
}
|
|
29
35
|
}
|
|
30
|
-
exports.
|
|
36
|
+
exports.parseArguments = parseArguments;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function initNVue(manifestJson: Record<string, any>, pagesJson: UniApp.PagesJson): void;
|
|
2
|
-
export declare function getNVueCompiler(manifestJson: Record<string, any>): "uni-app" | "weex" | "vue";
|
|
2
|
+
export declare function getNVueCompiler(manifestJson: Record<string, any>): "uni-app" | "weex" | "vue" | "vite";
|
|
3
3
|
export declare function getNVueStyleCompiler(manifestJson: Record<string, any>): "uni-app" | "weex";
|
|
4
4
|
export declare function getNVueFlexDirection(manifestJson: Record<string, any>): "row" | "row-reverse" | "column" | "column-reverse";
|
|
@@ -8,6 +8,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
8
8
|
const i18n_1 = require("../../../i18n");
|
|
9
9
|
const manifest_1 = require("../../manifest");
|
|
10
10
|
const manifest_2 = require("../manifest");
|
|
11
|
+
const arguments_1 = require("../manifest/arguments");
|
|
11
12
|
const splashscreen_1 = require("../manifest/splashscreen");
|
|
12
13
|
function normalizeAppUniConfig(pagesJson, manifestJson) {
|
|
13
14
|
var _a;
|
|
@@ -27,7 +28,7 @@ function normalizeAppUniConfig(pagesJson, manifestJson) {
|
|
|
27
28
|
autoclose,
|
|
28
29
|
},
|
|
29
30
|
compilerVersion: process.env.UNI_COMPILER_VERSION,
|
|
30
|
-
|
|
31
|
+
...parseEntryPagePath(pagesJson),
|
|
31
32
|
networkTimeout: (0, manifest_1.normalizeNetworkTimeout)(manifestJson.networkTimeout),
|
|
32
33
|
tabBar: pagesJson.tabBar,
|
|
33
34
|
locales: (0, i18n_1.initLocales)(path_1.default.join(process.env.UNI_INPUT_DIR, 'locale')),
|
|
@@ -36,3 +37,33 @@ function normalizeAppUniConfig(pagesJson, manifestJson) {
|
|
|
36
37
|
return JSON.stringify(config);
|
|
37
38
|
}
|
|
38
39
|
exports.normalizeAppUniConfig = normalizeAppUniConfig;
|
|
40
|
+
function parseEntryPagePath(pagesJson) {
|
|
41
|
+
var _a;
|
|
42
|
+
const res = {
|
|
43
|
+
entryPagePath: '',
|
|
44
|
+
entryPageQuery: '',
|
|
45
|
+
realEntryPagePath: '',
|
|
46
|
+
};
|
|
47
|
+
if (!pagesJson.pages.length) {
|
|
48
|
+
return res;
|
|
49
|
+
}
|
|
50
|
+
res.entryPagePath = pagesJson.pages[0].path;
|
|
51
|
+
const argsJsonStr = (0, arguments_1.parseArguments)(pagesJson);
|
|
52
|
+
if (argsJsonStr) {
|
|
53
|
+
try {
|
|
54
|
+
const args = JSON.parse(argsJsonStr);
|
|
55
|
+
const entryPagePath = args.path || args.pathName;
|
|
56
|
+
const realEntryPagePath = res.entryPagePath;
|
|
57
|
+
if (entryPagePath && realEntryPagePath !== entryPagePath) {
|
|
58
|
+
res.entryPagePath = entryPagePath;
|
|
59
|
+
res.entryPageQuery = args.query ? '?' + args.query : '';
|
|
60
|
+
// non tabBar page
|
|
61
|
+
if (!(((_a = pagesJson.tabBar) === null || _a === void 0 ? void 0 : _a.list) || []).find((page) => page.pagePath === entryPagePath)) {
|
|
62
|
+
res.realEntryPagePath = realEntryPagePath;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (e) { }
|
|
67
|
+
}
|
|
68
|
+
return res;
|
|
69
|
+
}
|
package/dist/messages/index.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
export declare const M: {
|
|
2
|
-
'app.compiler.version':
|
|
3
|
-
compiling:
|
|
4
|
-
'dev.performance':
|
|
5
|
-
'dev.performance.nvue':
|
|
6
|
-
'dev.performance.mp':
|
|
7
|
-
'build.done':
|
|
8
|
-
'dev.watching.start':
|
|
9
|
-
'dev.watching.end':
|
|
10
|
-
'dev.watching.end.pages':
|
|
11
|
-
'dev.watching.end.files':
|
|
12
|
-
'stat.warn.appid':
|
|
13
|
-
'i18n.fallbackLocale.default':
|
|
14
|
-
'i18n.fallbackLocale.missing':
|
|
15
|
-
'easycom.conflict':
|
|
16
|
-
'mp.component.args[0]':
|
|
17
|
-
'mp.component.args[1]':
|
|
18
|
-
'mp.360.unsupported':
|
|
2
|
+
readonly 'app.compiler.version': "编译器版本:{version}";
|
|
3
|
+
readonly compiling: "正在编译中...";
|
|
4
|
+
readonly 'dev.performance': "请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。";
|
|
5
|
+
readonly 'dev.performance.nvue': "尤其是 app-nvue 的 sourcemap 影响较大";
|
|
6
|
+
readonly 'dev.performance.mp': "若要正式发布,请点击发行菜单或使用 cli 发布命令进行发布";
|
|
7
|
+
readonly 'build.done': "DONE Build complete.";
|
|
8
|
+
readonly 'dev.watching.start': "开始差量编译...";
|
|
9
|
+
readonly 'dev.watching.end': "DONE Build complete. Watching for changes...";
|
|
10
|
+
readonly 'dev.watching.end.pages': "DONE Build complete. PAGES:{pages}";
|
|
11
|
+
readonly 'dev.watching.end.files': "DONE Build complete. FILES:{files}";
|
|
12
|
+
readonly 'stat.warn.appid': "当前应用未配置 appid,无法使用 uni 统计,详情参考:https://ask.dcloud.net.cn/article/36303";
|
|
13
|
+
readonly 'i18n.fallbackLocale.default': "当前应用未在 manifest.json 配置 fallbackLocale,默认使用:{locale}";
|
|
14
|
+
readonly 'i18n.fallbackLocale.missing': "当前应用配置的 fallbackLocale 或 locale 为:{locale},但 locale 目录缺少该语言文件";
|
|
15
|
+
readonly 'easycom.conflict': "easycom组件冲突:";
|
|
16
|
+
readonly 'mp.component.args[0]': "{0}的第一个参数必须为静态字符串";
|
|
17
|
+
readonly 'mp.component.args[1]': "{0}需要两个参数";
|
|
18
|
+
readonly 'mp.360.unsupported': "vue3暂不支持360小程序";
|
|
19
|
+
readonly 'file.notfound': "{file} 文件不存在";
|
|
19
20
|
};
|
package/dist/messages/index.js
CHANGED
package/dist/mp/constants.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export declare const COMPONENT_ON_LINK = "onVI";
|
|
|
2
2
|
export declare const COMPONENT_BIND_LINK = "__l";
|
|
3
3
|
export declare const COMPONENT_CUSTOM_HIDDEN = "data-c-h";
|
|
4
4
|
export declare const COMPONENT_CUSTOM_HIDDEN_BIND: string;
|
|
5
|
+
export declare const MP_PLUGIN_JSON_NAME = "plugin.json";
|
package/dist/mp/constants.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COMPONENT_CUSTOM_HIDDEN_BIND = exports.COMPONENT_CUSTOM_HIDDEN = exports.COMPONENT_BIND_LINK = exports.COMPONENT_ON_LINK = void 0;
|
|
3
|
+
exports.MP_PLUGIN_JSON_NAME = exports.COMPONENT_CUSTOM_HIDDEN_BIND = exports.COMPONENT_CUSTOM_HIDDEN = exports.COMPONENT_BIND_LINK = exports.COMPONENT_ON_LINK = void 0;
|
|
4
4
|
exports.COMPONENT_ON_LINK = 'onVI';
|
|
5
5
|
exports.COMPONENT_BIND_LINK = '__l';
|
|
6
6
|
exports.COMPONENT_CUSTOM_HIDDEN = 'data-c-h';
|
|
7
7
|
exports.COMPONENT_CUSTOM_HIDDEN_BIND = 'bind:-' + exports.COMPONENT_CUSTOM_HIDDEN;
|
|
8
|
+
exports.MP_PLUGIN_JSON_NAME = 'plugin.json';
|
package/dist/mp/index.d.ts
CHANGED
package/dist/mp/index.js
CHANGED
|
@@ -10,11 +10,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.transformVueComponentImports = void 0;
|
|
13
|
+
exports.transformVueComponentImports = exports.copyMiniProgramPluginJson = void 0;
|
|
14
14
|
__exportStar(require("./nvue"), exports);
|
|
15
15
|
__exportStar(require("./event"), exports);
|
|
16
16
|
__exportStar(require("./style"), exports);
|
|
17
17
|
__exportStar(require("./template"), exports);
|
|
18
18
|
__exportStar(require("./constants"), exports);
|
|
19
|
+
var plugin_1 = require("./plugin");
|
|
20
|
+
Object.defineProperty(exports, "copyMiniProgramPluginJson", { enumerable: true, get: function () { return plugin_1.copyMiniProgramPluginJson; } });
|
|
19
21
|
var transformImports_1 = require("./transformImports");
|
|
20
22
|
Object.defineProperty(exports, "transformVueComponentImports", { enumerable: true, get: function () { return transformImports_1.transformVueComponentImports; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.copyMiniProgramPluginJson = void 0;
|
|
4
|
+
const json_1 = require("../json/json");
|
|
5
|
+
exports.copyMiniProgramPluginJson = {
|
|
6
|
+
src: ['plugin.json'],
|
|
7
|
+
get dest() {
|
|
8
|
+
return process.env.UNI_OUTPUT_DIR;
|
|
9
|
+
},
|
|
10
|
+
transform(source) {
|
|
11
|
+
return JSON.stringify((0, json_1.parseJson)(source.toString(), true), null, 2);
|
|
12
|
+
},
|
|
13
|
+
};
|
package/dist/mp/template.d.ts
CHANGED
|
@@ -43,7 +43,11 @@ export interface MiniProgramCompilerOptions {
|
|
|
43
43
|
/**
|
|
44
44
|
* 自定义组件自定义 hidden 属性用于实现 v-show
|
|
45
45
|
*/
|
|
46
|
-
vShow
|
|
46
|
+
vShow?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 父组件 setData 后,子组件的 properties 是否可以同步获取,目前仅 mp-weixin,mp-qq,mp-alipay 支持
|
|
49
|
+
*/
|
|
50
|
+
getPropertySync?: boolean;
|
|
47
51
|
};
|
|
48
52
|
directive: string;
|
|
49
53
|
emitFile?: (emittedFile: EmittedAsset) => string;
|
package/dist/resolve.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function requireResolve(filename: string, basedir: string): string;
|
|
1
2
|
export declare function relativeFile(from: string, to: string): string;
|
|
2
3
|
export declare const resolveMainPathOnce: (inputDir: string) => string;
|
|
3
4
|
export declare function getBuiltInPaths(): string[];
|
package/dist/resolve.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.resolveComponentsLibPath = exports.resolveBuiltIn = exports.getBuiltInPaths = exports.resolveMainPathOnce = exports.relativeFile = void 0;
|
|
6
|
+
exports.resolveComponentsLibPath = exports.resolveBuiltIn = exports.getBuiltInPaths = exports.resolveMainPathOnce = exports.relativeFile = exports.requireResolve = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const debug_1 = __importDefault(require("debug"));
|
|
@@ -11,11 +11,15 @@ const resolve_1 = __importDefault(require("resolve"));
|
|
|
11
11
|
const uni_shared_1 = require("@dcloudio/uni-shared");
|
|
12
12
|
const utils_1 = require("./utils");
|
|
13
13
|
const env_1 = require("./hbx/env");
|
|
14
|
-
const
|
|
14
|
+
const constants_1 = require("./constants");
|
|
15
|
+
function requireResolve(filename, basedir) {
|
|
16
|
+
return resolveWithSymlinks(filename, basedir);
|
|
17
|
+
}
|
|
18
|
+
exports.requireResolve = requireResolve;
|
|
15
19
|
function resolveWithSymlinks(id, basedir) {
|
|
16
20
|
return resolve_1.default.sync(id, {
|
|
17
21
|
basedir,
|
|
18
|
-
extensions:
|
|
22
|
+
extensions: constants_1.extensions,
|
|
19
23
|
// necessary to work with pnpm
|
|
20
24
|
preserveSymlinks: true,
|
|
21
25
|
});
|
package/dist/url.d.ts
ADDED
package/dist/url.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.decodeBase64Url = exports.encodeBase64Url = void 0;
|
|
7
|
+
const base64url_1 = __importDefault(require("base64url"));
|
|
8
|
+
function encodeBase64Url(str) {
|
|
9
|
+
return base64url_1.default.encode(str);
|
|
10
|
+
}
|
|
11
|
+
exports.encodeBase64Url = encodeBase64Url;
|
|
12
|
+
function decodeBase64Url(str) {
|
|
13
|
+
return base64url_1.default.decode(str);
|
|
14
|
+
}
|
|
15
|
+
exports.decodeBase64Url = decodeBase64Url;
|
|
@@ -23,8 +23,8 @@ function createDefineJsonJsPlugin(name) {
|
|
|
23
23
|
const origResolveId = plugin.resolveId;
|
|
24
24
|
const origConfigResolved = plugin.configResolved;
|
|
25
25
|
let jsonPath = '';
|
|
26
|
-
plugin.resolveId = function (id, importer, options
|
|
27
|
-
const res = origResolveId && origResolveId.call(this, id, importer, options
|
|
26
|
+
plugin.resolveId = function (id, importer, options) {
|
|
27
|
+
const res = origResolveId && origResolveId.call(this, id, importer, options);
|
|
28
28
|
if (res) {
|
|
29
29
|
return res;
|
|
30
30
|
}
|
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-3030020211208002",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,19 +20,20 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/parser": "^7.15.0",
|
|
22
22
|
"@babel/types": "^7.15.0",
|
|
23
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
24
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
23
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3030020211208002",
|
|
24
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3030020211208002",
|
|
25
25
|
"@rollup/pluginutils": "^4.1.1",
|
|
26
|
-
"@vue/compiler-core": "3.2.
|
|
27
|
-
"@vue/compiler-dom": "3.2.
|
|
28
|
-
"@vue/compiler-sfc": "3.2.
|
|
29
|
-
"@vue/shared": "3.2.
|
|
26
|
+
"@vue/compiler-core": "3.2.24",
|
|
27
|
+
"@vue/compiler-dom": "3.2.24",
|
|
28
|
+
"@vue/compiler-sfc": "3.2.24",
|
|
29
|
+
"@vue/shared": "3.2.24",
|
|
30
|
+
"base64url": "^3.0.1",
|
|
30
31
|
"chalk": "^4.1.1",
|
|
31
32
|
"chokidar": "^3.5.2",
|
|
32
33
|
"compare-versions": "^3.6.0",
|
|
33
34
|
"debug": "^4.3.2",
|
|
34
35
|
"es-module-lexer": "^0.9.3",
|
|
35
|
-
"esbuild": "^0.13.
|
|
36
|
+
"esbuild": "^0.13.12",
|
|
36
37
|
"estree-walker": "^2.0.2",
|
|
37
38
|
"fast-glob": "^3.2.7",
|
|
38
39
|
"fs-extra": "^10.0.0",
|