@tmsfe/tmskit 0.0.36 → 0.0.37
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/index.cjs.js +2 -3
- package/package.json +1 -1
- package/src/core/cloneModules.js +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1544,7 +1544,7 @@ function replaceGitUrlAccount(httpRepoUrl, moduleName) {
|
|
|
1544
1544
|
} = (tmsConfig === null || tmsConfig === void 0 ? void 0 : (_tmsConfig$gitAccount = tmsConfig.gitAccount) === null || _tmsConfig$gitAccount === void 0 ? void 0 : _tmsConfig$gitAccount[moduleName]) || (tmsConfig === null || tmsConfig === void 0 ? void 0 : (_tmsConfig$gitAccount2 = tmsConfig.gitAccount) === null || _tmsConfig$gitAccount2 === void 0 ? void 0 : _tmsConfig$gitAccount2[httpRepoUrl]) || (tmsConfig === null || tmsConfig === void 0 ? void 0 : (_tmsConfig$gitAccount3 = tmsConfig.gitAccount) === null || _tmsConfig$gitAccount3 === void 0 ? void 0 : _tmsConfig$gitAccount3[group]) || {};
|
|
1545
1545
|
const urlPrefixReg = /http(s)?:\/\//;
|
|
1546
1546
|
if (username && pass && urlPrefixReg.test(gitUrl)) {
|
|
1547
|
-
gitUrl = gitUrl.replace(urlPrefixReg, val => `${val}${encodeURIComponent(username)}:${pass}@`);
|
|
1547
|
+
gitUrl = gitUrl.replace(urlPrefixReg, val => `${val}${encodeURIComponent(username)}:${encodeURIComponent(pass)}@`);
|
|
1548
1548
|
}
|
|
1549
1549
|
return gitUrl;
|
|
1550
1550
|
}
|
|
@@ -3075,7 +3075,6 @@ function delOtherPackages(tmsConfig, targetSubPackages) {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
});
|
|
3077
3077
|
}
|
|
3078
|
-
|
|
3079
3078
|
async function dev$3(tmsConfig, targetModules) {
|
|
3080
3079
|
var _tmsConfig$hooks;
|
|
3081
3080
|
const {
|
|
@@ -3904,7 +3903,7 @@ var entry = [{
|
|
|
3904
3903
|
|
|
3905
3904
|
var require$$12 = {
|
|
3906
3905
|
name: "@tmsfe/tmskit",
|
|
3907
|
-
version: "0.0.
|
|
3906
|
+
version: "0.0.37",
|
|
3908
3907
|
description: "tmskit",
|
|
3909
3908
|
main: "dist/index.cjs",
|
|
3910
3909
|
bin: {
|
package/package.json
CHANGED
package/src/core/cloneModules.js
CHANGED
|
@@ -31,7 +31,7 @@ function replaceGitUrlAccount(httpRepoUrl, moduleName) {
|
|
|
31
31
|
const urlPrefixReg = /http(s)?:\/\//;
|
|
32
32
|
|
|
33
33
|
if (username && pass && urlPrefixReg.test(gitUrl)) {
|
|
34
|
-
gitUrl = gitUrl.replace(urlPrefixReg, val => `${val}${encodeURIComponent(username)}:${pass}@`);
|
|
34
|
+
gitUrl = gitUrl.replace(urlPrefixReg, val => `${val}${encodeURIComponent(username)}:${encodeURIComponent(pass)}@`);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
return gitUrl;
|