@dcloudio/uni-cli-shared 3.0.0-alpha-3080720230627002 → 3.0.0-alpha-3081020230714001
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/json/manifest.d.ts +1 -0
- package/dist/json/manifest.js +6 -1
- package/dist/uni_modules.js +5 -2
- package/package.json +4 -4
package/dist/json/manifest.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare function getUniStatistics(inputDir: string, platform: UniApp.PLAT
|
|
|
22
22
|
export declare function isEnableUniPushV1(inputDir: string, platform: UniApp.PLATFORM): boolean;
|
|
23
23
|
export declare function isEnableUniPushV2(inputDir: string, platform: UniApp.PLATFORM): boolean;
|
|
24
24
|
export declare function isEnableSecureNetwork(inputDir: string, platform: UniApp.PLATFORM): boolean;
|
|
25
|
+
export declare function hasPushModule(inputDir: string): boolean;
|
|
25
26
|
export declare function isUniPushOffline(inputDir: string): boolean;
|
|
26
27
|
export declare function getRouterOptions(manifestJson: Record<string, any>): {
|
|
27
28
|
mode?: 'history' | 'hash';
|
package/dist/json/manifest.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.getPlatformManifestJsonOnce = exports.getDevServerOptions = exports.isEnableTreeShaking = exports.getRouterOptions = exports.isUniPushOffline = exports.isEnableSecureNetwork = exports.isEnableUniPushV2 = exports.isEnableUniPushV1 = exports.getUniStatistics = exports.normalizeNetworkTimeout = exports.parseCompatConfigOnce = exports.parseRpx2UnitOnce = exports.parseManifestJsonOnce = exports.parseManifestJson = void 0;
|
|
6
|
+
exports.getPlatformManifestJsonOnce = exports.getDevServerOptions = exports.isEnableTreeShaking = exports.getRouterOptions = exports.isUniPushOffline = exports.hasPushModule = exports.isEnableSecureNetwork = exports.isEnableUniPushV2 = exports.isEnableUniPushV1 = exports.getUniStatistics = exports.normalizeNetworkTimeout = exports.parseCompatConfigOnce = exports.parseRpx2UnitOnce = exports.parseManifestJsonOnce = exports.parseManifestJson = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const shared_1 = require("@vue/shared");
|
|
@@ -81,6 +81,11 @@ function isEnableSecureNetwork(inputDir, platform) {
|
|
|
81
81
|
return manifest[platform]?.secureNetwork?.enable === true;
|
|
82
82
|
}
|
|
83
83
|
exports.isEnableSecureNetwork = isEnableSecureNetwork;
|
|
84
|
+
function hasPushModule(inputDir) {
|
|
85
|
+
const manifest = (0, exports.parseManifestJsonOnce)(inputDir);
|
|
86
|
+
return !!manifest['app-plus']?.modules?.Push;
|
|
87
|
+
}
|
|
88
|
+
exports.hasPushModule = hasPushModule;
|
|
84
89
|
function isUniPushOffline(inputDir) {
|
|
85
90
|
const manifest = (0, exports.parseManifestJsonOnce)(inputDir);
|
|
86
91
|
return (manifest['app-plus']?.distribute?.sdkConfigs?.push?.unipush?.offline ===
|
package/dist/uni_modules.js
CHANGED
|
@@ -26,8 +26,11 @@ function parseUniExtApis(vite = true, platform, language = 'javascript') {
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
try {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
let exports;
|
|
30
|
+
const pkg = JSON.parse(fs_extra_1.default.readFileSync(pkgPath, 'utf8'));
|
|
31
|
+
if (pkg && pkg.uni_modules && pkg.uni_modules['uni-ext-api']) {
|
|
32
|
+
exports = pkg.uni_modules['uni-ext-api'];
|
|
33
|
+
}
|
|
31
34
|
if (exports) {
|
|
32
35
|
const curInjects = parseInjects(vite, platform, language, `@/uni_modules/${uniModuleDir}`, uniModuleRootDir, exports);
|
|
33
36
|
Object.assign(injects, curInjects);
|
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-3081020230714001",
|
|
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.21.3",
|
|
26
26
|
"@babel/parser": "^7.16.4",
|
|
27
27
|
"@babel/types": "^7.20.7",
|
|
28
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
29
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
28
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3081020230714001",
|
|
29
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3081020230714001",
|
|
30
30
|
"@intlify/core-base": "9.1.9",
|
|
31
31
|
"@intlify/shared": "9.1.9",
|
|
32
32
|
"@intlify/vue-devtools": "9.1.9",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
67
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-3081020230714001",
|
|
68
68
|
"@types/babel__core": "^7.1.19",
|
|
69
69
|
"@types/debug": "^4.1.7",
|
|
70
70
|
"@types/estree": "^0.0.51",
|