@tarojs/helper 3.3.14 → 3.5.0-canary.0
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/babelRegister.js +0 -1
- package/dist/constants.js +3 -3
- package/dist/utils.js +4 -4
- package/package.json +16 -17
- package/types/constants.d.ts +3 -3
package/dist/babelRegister.js
CHANGED
|
@@ -12,7 +12,6 @@ function createBabelRegister({ only }) {
|
|
|
12
12
|
[require.resolve('@babel/plugin-proposal-decorators'), {
|
|
13
13
|
legacy: true
|
|
14
14
|
}],
|
|
15
|
-
require.resolve('@babel/plugin-proposal-class-properties'),
|
|
16
15
|
require.resolve('@babel/plugin-proposal-object-rest-spread'),
|
|
17
16
|
[require.resolve('@babel/plugin-transform-runtime'), {
|
|
18
17
|
corejs: false,
|
package/dist/constants.js
CHANGED
|
@@ -164,9 +164,9 @@ exports.taroJsMobx = '@tarojs/mobx';
|
|
|
164
164
|
exports.taroJsMobxCommon = '@tarojs/mobx-common';
|
|
165
165
|
exports.DEVICE_RATIO_NAME = 'deviceRatio';
|
|
166
166
|
exports.isWindows = os.platform() === 'win32';
|
|
167
|
-
exports.DEFAULT_TEMPLATE_SRC = 'github:NervJS/taro-project-templates#v3.
|
|
168
|
-
exports.DEFAULT_TEMPLATE_SRC_GITEE = 'direct:https://gitee.com/o2team/taro-project-templates.git#v3.
|
|
169
|
-
exports.TARO_CONFIG_FLODER = '.taro3.
|
|
167
|
+
exports.DEFAULT_TEMPLATE_SRC = 'github:NervJS/taro-project-templates#v3.4';
|
|
168
|
+
exports.DEFAULT_TEMPLATE_SRC_GITEE = 'direct:https://gitee.com/o2team/taro-project-templates.git#v3.4';
|
|
169
|
+
exports.TARO_CONFIG_FLODER = '.taro3.4';
|
|
170
170
|
exports.TARO_BASE_CONFIG = 'index.json';
|
|
171
171
|
exports.OUTPUT_DIR = 'dist';
|
|
172
172
|
exports.SOURCE_DIR = 'src';
|
package/dist/utils.js
CHANGED
|
@@ -57,7 +57,7 @@ function replaceAliasPath(filePath, name, pathAlias = {}) {
|
|
|
57
57
|
return promoteRelativePath(path.relative(filePath, fs.realpathSync(resolveScriptPath(pathAlias[name]))));
|
|
58
58
|
}
|
|
59
59
|
const reg = new RegExp(`^(${prefixs.join('|')})/(.*)`);
|
|
60
|
-
name = name.replace(reg, function (
|
|
60
|
+
name = name.replace(reg, function (_m, $1, $2) {
|
|
61
61
|
return promoteRelativePath(path.relative(filePath, path.join(pathAlias[$1], $2)));
|
|
62
62
|
});
|
|
63
63
|
return name;
|
|
@@ -397,7 +397,7 @@ exports.applyArrayedVisitors = applyArrayedVisitors;
|
|
|
397
397
|
function unzip(zipPath) {
|
|
398
398
|
return new Promise((resolve, reject) => {
|
|
399
399
|
yauzl.open(zipPath, { lazyEntries: true }, (err, zipfile) => {
|
|
400
|
-
if (err)
|
|
400
|
+
if (err || !zipfile)
|
|
401
401
|
throw err;
|
|
402
402
|
zipfile.on('close', () => {
|
|
403
403
|
fs.removeSync(zipPath);
|
|
@@ -417,10 +417,10 @@ function unzip(zipPath) {
|
|
|
417
417
|
}
|
|
418
418
|
else {
|
|
419
419
|
zipfile.openReadStream(entry, (err, readStream) => {
|
|
420
|
-
if (err)
|
|
420
|
+
if (err || !readStream)
|
|
421
421
|
throw err;
|
|
422
422
|
const filter = new stream_1.Transform();
|
|
423
|
-
filter._transform = function (chunk,
|
|
423
|
+
filter._transform = function (chunk, _encoding, cb) {
|
|
424
424
|
cb(undefined, chunk);
|
|
425
425
|
};
|
|
426
426
|
filter._flush = function (cb) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/helper",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0-canary.0",
|
|
4
4
|
"description": "Taro Helper",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -32,25 +32,24 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/NervJS/taro#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/core": "^7.
|
|
36
|
-
"@babel/plugin-proposal-
|
|
37
|
-
"@babel/plugin-proposal-
|
|
38
|
-
"@babel/plugin-
|
|
39
|
-
"@babel/
|
|
40
|
-
"@babel/preset-
|
|
41
|
-
"@babel/
|
|
42
|
-
"@babel/
|
|
43
|
-
"@
|
|
44
|
-
"@tarojs/taro": "3.3.14",
|
|
35
|
+
"@babel/core": "^7.14.5",
|
|
36
|
+
"@babel/plugin-proposal-decorators": "^7.14.5",
|
|
37
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.14.5",
|
|
38
|
+
"@babel/plugin-transform-runtime": "^7.14.5",
|
|
39
|
+
"@babel/preset-env": "^7.14.5",
|
|
40
|
+
"@babel/preset-typescript": "^7.14.5",
|
|
41
|
+
"@babel/register": "^7.14.5",
|
|
42
|
+
"@babel/runtime": "^7.14.5",
|
|
43
|
+
"@tarojs/taro": "3.5.0-canary.0",
|
|
45
44
|
"chalk": "3.0.0",
|
|
46
|
-
"chokidar": "3.3.1",
|
|
47
|
-
"cross-spawn": "7.0.3",
|
|
45
|
+
"chokidar": "^3.3.1",
|
|
46
|
+
"cross-spawn": "^7.0.3",
|
|
48
47
|
"debug": "4.1.1",
|
|
49
48
|
"find-yarn-workspace-root": "2.0.0",
|
|
50
|
-
"fs-extra": "8.1
|
|
51
|
-
"lodash": "4.17.21",
|
|
52
|
-
"resolve": "1.
|
|
49
|
+
"fs-extra": "^8.0.1",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"resolve": "^1.6.0",
|
|
53
52
|
"yauzl": "2.10.0"
|
|
54
53
|
},
|
|
55
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "a0222bc41bc05b0e34413d6db3de963d777a5015"
|
|
56
55
|
}
|
package/types/constants.d.ts
CHANGED
|
@@ -73,9 +73,9 @@ export declare const taroJsMobx = "@tarojs/mobx";
|
|
|
73
73
|
export declare const taroJsMobxCommon = "@tarojs/mobx-common";
|
|
74
74
|
export declare const DEVICE_RATIO_NAME = "deviceRatio";
|
|
75
75
|
export declare const isWindows: boolean;
|
|
76
|
-
export declare const DEFAULT_TEMPLATE_SRC = "github:NervJS/taro-project-templates#v3";
|
|
77
|
-
export declare const DEFAULT_TEMPLATE_SRC_GITEE = "direct:https://gitee.com/o2team/taro-project-templates.git#v3";
|
|
78
|
-
export declare const TARO_CONFIG_FLODER = ".taro3";
|
|
76
|
+
export declare const DEFAULT_TEMPLATE_SRC = "github:NervJS/taro-project-templates#v3.4";
|
|
77
|
+
export declare const DEFAULT_TEMPLATE_SRC_GITEE = "direct:https://gitee.com/o2team/taro-project-templates.git#v3.4";
|
|
78
|
+
export declare const TARO_CONFIG_FLODER = ".taro3.4";
|
|
79
79
|
export declare const TARO_BASE_CONFIG = "index.json";
|
|
80
80
|
export declare const OUTPUT_DIR = "dist";
|
|
81
81
|
export declare const SOURCE_DIR = "src";
|