tnp-helpers 16.5.27 → 16.5.29
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/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2022/lib/base/base-project.mjs +26 -1
- package/browser/esm2022/lib/base/commit-data.mjs +43 -1
- package/browser/esm2022/lib/helpers-array-obj.mjs +4 -1
- package/browser/esm2022/lib/helpers.mjs +35 -1
- package/browser/fesm2022/tnp-helpers.mjs +104 -0
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-project.d.ts +8 -6
- package/browser/lib/base/commit-data.d.ts +4 -1
- package/browser/lib/helpers-array-obj.d.ts +3 -0
- package/browser/lib/helpers.d.ts +2 -0
- package/client/esm2022/lib/base/base-project.mjs +26 -1
- package/client/esm2022/lib/base/commit-data.mjs +43 -1
- package/client/esm2022/lib/helpers-array-obj.mjs +4 -1
- package/client/esm2022/lib/helpers.mjs +35 -1
- package/client/fesm2022/tnp-helpers.mjs +104 -0
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-project.d.ts +8 -6
- package/client/lib/base/commit-data.d.ts +4 -1
- package/client/lib/helpers-array-obj.d.ts +3 -0
- package/client/lib/helpers.d.ts +2 -0
- package/client/package.json +33 -32
- package/lib/base/base-command-line.backend.d.ts +2 -0
- package/lib/base/base-command-line.backend.js +31 -1
- package/lib/base/base-command-line.backend.js.map +1 -1
- package/lib/base/base-project.d.ts +9 -7
- package/lib/base/base-project.js +51 -21
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/commit-data.d.ts +4 -1
- package/lib/base/commit-data.js +45 -4
- package/lib/base/commit-data.js.map +1 -1
- package/lib/for-backend/helpers-git.backend.d.ts +1 -0
- package/lib/for-backend/helpers-git.backend.js +19 -1
- package/lib/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/for-backend/helpers-process.backend.d.ts +4 -0
- package/lib/for-backend/helpers-process.backend.js +4 -0
- package/lib/for-backend/helpers-process.backend.js.map +1 -1
- package/lib/for-backend/ts-code/ts-code-extractor.js.map +1 -1
- package/lib/for-browser/angular.helper.js +3 -3
- package/lib/helpers-array-obj.d.ts +3 -0
- package/lib/helpers-array-obj.js +3 -0
- package/lib/helpers-array-obj.js.map +1 -1
- package/lib/helpers.d.ts +2 -0
- package/lib/helpers.js +50 -0
- package/lib/helpers.js.map +1 -1
- package/lib/old/base-component.js +3 -3
- package/lib/old/base-formly-component.js +3 -3
- package/lib/old/dual-component-ctrl.js +3 -3
- package/package.json +4 -4
- package/tmp-environment.json +37 -36
- package/websql/esm2022/lib/base/base-project.mjs +26 -1
- package/websql/esm2022/lib/base/commit-data.mjs +43 -1
- package/websql/esm2022/lib/helpers-array-obj.mjs +4 -1
- package/websql/esm2022/lib/helpers.mjs +35 -1
- package/websql/fesm2022/tnp-helpers.mjs +104 -0
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-project.d.ts +8 -6
- package/websql/lib/base/commit-data.d.ts +4 -1
- package/websql/lib/helpers-array-obj.d.ts +3 -0
- package/websql/lib/helpers.d.ts +2 -0
|
@@ -199,6 +199,9 @@ class HelpersArrayObj {
|
|
|
199
199
|
newArray.splice(afterIndex + 1, 0, target);
|
|
200
200
|
return newArray;
|
|
201
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* @deprecated
|
|
204
|
+
*/
|
|
202
205
|
uniqArray(array, uniqueProperty) {
|
|
203
206
|
var seen = {};
|
|
204
207
|
return array
|
|
@@ -741,6 +744,40 @@ class HelpersFiredev extends CoreHelpers {
|
|
|
741
744
|
CLASS.setName(f, name);
|
|
742
745
|
return f;
|
|
743
746
|
}
|
|
747
|
+
async ncc(pathToJsFile, outputFile) {
|
|
748
|
+
/* */
|
|
749
|
+
/* */
|
|
750
|
+
/* */
|
|
751
|
+
/* */
|
|
752
|
+
/* */
|
|
753
|
+
/* */
|
|
754
|
+
/* */
|
|
755
|
+
/* */
|
|
756
|
+
/* */
|
|
757
|
+
/* */
|
|
758
|
+
/* */
|
|
759
|
+
/* */
|
|
760
|
+
/* */
|
|
761
|
+
/* */
|
|
762
|
+
/* */
|
|
763
|
+
/* */
|
|
764
|
+
/* */
|
|
765
|
+
/* */
|
|
766
|
+
/* */
|
|
767
|
+
/* */
|
|
768
|
+
/* */
|
|
769
|
+
/* */
|
|
770
|
+
/* */
|
|
771
|
+
/* */
|
|
772
|
+
/* */
|
|
773
|
+
/* */
|
|
774
|
+
return (void 0);
|
|
775
|
+
}
|
|
776
|
+
uniqArray(array, uniqueProperty) {
|
|
777
|
+
/* */
|
|
778
|
+
/* */
|
|
779
|
+
return (void 0);
|
|
780
|
+
}
|
|
744
781
|
urlParse(portOrHost, forceDomain = false) {
|
|
745
782
|
let url;
|
|
746
783
|
if (portOrHost instanceof URL) {
|
|
@@ -1674,6 +1711,12 @@ class BaseProject {
|
|
|
1674
1711
|
/* */
|
|
1675
1712
|
/* */
|
|
1676
1713
|
/* */
|
|
1714
|
+
/* */
|
|
1715
|
+
/* */
|
|
1716
|
+
/* */
|
|
1717
|
+
/* */
|
|
1718
|
+
/* */
|
|
1719
|
+
/* */
|
|
1677
1720
|
return (void 0);
|
|
1678
1721
|
}
|
|
1679
1722
|
_beforeAnyActionOnGitRoot() {
|
|
@@ -1843,6 +1886,11 @@ class BaseProject {
|
|
|
1843
1886
|
/* */
|
|
1844
1887
|
return (void 0);
|
|
1845
1888
|
},
|
|
1889
|
+
get uncommitedFiles() {
|
|
1890
|
+
/* */
|
|
1891
|
+
/* */
|
|
1892
|
+
return (void 0);
|
|
1893
|
+
},
|
|
1846
1894
|
get thereAreSomeUncommitedChange() {
|
|
1847
1895
|
/* */
|
|
1848
1896
|
/* */
|
|
@@ -2028,6 +2076,20 @@ class BaseProject {
|
|
|
2028
2076
|
/* */
|
|
2029
2077
|
return (void 0);
|
|
2030
2078
|
}
|
|
2079
|
+
tryKillAllElectronInstances() {
|
|
2080
|
+
/* */
|
|
2081
|
+
/* */
|
|
2082
|
+
/* */
|
|
2083
|
+
/* */
|
|
2084
|
+
/* */
|
|
2085
|
+
/* */
|
|
2086
|
+
/* */
|
|
2087
|
+
/* */
|
|
2088
|
+
/* */
|
|
2089
|
+
/* */
|
|
2090
|
+
/* */
|
|
2091
|
+
return (void 0);
|
|
2092
|
+
}
|
|
2031
2093
|
/**
|
|
2032
2094
|
* init project files structure and depedencies
|
|
2033
2095
|
*/
|
|
@@ -2116,6 +2178,8 @@ class BaseFeatureForProject {
|
|
|
2116
2178
|
;
|
|
2117
2179
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-feature-for-project.ts
|
|
2118
2180
|
|
|
2181
|
+
const regexCommitModuleInArgs = /\[[a-z|\-]+\]/;
|
|
2182
|
+
const regexCommitModuleInBranch = /\-\-[a-z|\-]+\-\-/;
|
|
2119
2183
|
class CommitData {
|
|
2120
2184
|
/**
|
|
2121
2185
|
*
|
|
@@ -2141,6 +2205,22 @@ class CommitData {
|
|
|
2141
2205
|
commitMsg = commitMsg.replace('http://', '');
|
|
2142
2206
|
return commitMsg;
|
|
2143
2207
|
}
|
|
2208
|
+
static getModuleNameFrom(commitMsg) {
|
|
2209
|
+
let commitModuleName = _.first(commitMsg.match(regexCommitModuleInArgs));
|
|
2210
|
+
if (commitModuleName) {
|
|
2211
|
+
commitMsg = commitMsg.replace(commitModuleName, '');
|
|
2212
|
+
}
|
|
2213
|
+
return {
|
|
2214
|
+
commitMsg, commitModuleName: commitModuleName?.replace(/\[/g, '').replace(/\]/g, '')
|
|
2215
|
+
};
|
|
2216
|
+
}
|
|
2217
|
+
static getModuleNameFromBranch(branchName) {
|
|
2218
|
+
let commitModuleName = _.first(branchName.match(regexCommitModuleInBranch));
|
|
2219
|
+
if (commitModuleName) {
|
|
2220
|
+
branchName = branchName.replace(commitModuleName, '-');
|
|
2221
|
+
}
|
|
2222
|
+
return { commitMsg: branchName, commitModuleName: commitModuleName?.replace(/\-/g, '') };
|
|
2223
|
+
}
|
|
2144
2224
|
static async getFromArgs(args, typeOfCommit) {
|
|
2145
2225
|
/* */
|
|
2146
2226
|
/* */
|
|
@@ -2170,6 +2250,11 @@ class CommitData {
|
|
|
2170
2250
|
/* */
|
|
2171
2251
|
/* */
|
|
2172
2252
|
/* */
|
|
2253
|
+
/* */
|
|
2254
|
+
/* */
|
|
2255
|
+
/* */
|
|
2256
|
+
/* */
|
|
2257
|
+
/* */
|
|
2173
2258
|
return (void 0);
|
|
2174
2259
|
}
|
|
2175
2260
|
static async getFromBranch(currentBranchName) {
|
|
@@ -2199,6 +2284,12 @@ class CommitData {
|
|
|
2199
2284
|
/* */
|
|
2200
2285
|
/* */
|
|
2201
2286
|
/* */
|
|
2287
|
+
/* */
|
|
2288
|
+
/* */
|
|
2289
|
+
/* */
|
|
2290
|
+
/* */
|
|
2291
|
+
/* */
|
|
2292
|
+
/* */
|
|
2202
2293
|
return (void 0);
|
|
2203
2294
|
}
|
|
2204
2295
|
static from(options) {
|
|
@@ -2212,6 +2303,9 @@ class CommitData {
|
|
|
2212
2303
|
message = message.replace(jira.toUpperCase().replace('-', ' '), ' ');
|
|
2213
2304
|
message = message.replace(jira, ' ');
|
|
2214
2305
|
message = message.replace(jira.toLowerCase(), ' ');
|
|
2306
|
+
message = message.replace(regexCommitModuleInArgs, ' ');
|
|
2307
|
+
message = message.replace(regexCommitModuleInBranch, ' ');
|
|
2308
|
+
message = message.replace(/\ \ /g, ' ');
|
|
2215
2309
|
}
|
|
2216
2310
|
return message;
|
|
2217
2311
|
}
|
|
@@ -2248,9 +2342,19 @@ class CommitData {
|
|
|
2248
2342
|
/* */
|
|
2249
2343
|
/* */
|
|
2250
2344
|
/* */
|
|
2345
|
+
/* */
|
|
2346
|
+
/* */
|
|
2347
|
+
/* */
|
|
2348
|
+
/* */
|
|
2349
|
+
/* */
|
|
2350
|
+
/* */
|
|
2351
|
+
/* */
|
|
2251
2352
|
return (void 0);
|
|
2252
2353
|
}
|
|
2253
2354
|
get branchName() {
|
|
2355
|
+
/* */
|
|
2356
|
+
/* */
|
|
2357
|
+
/* */
|
|
2254
2358
|
/* */
|
|
2255
2359
|
/* */
|
|
2256
2360
|
return (void 0);
|