tnp-helpers 16.5.29 → 16.100.1
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 +213 -1
- package/browser/esm2022/lib/base/commit-data.mjs +46 -3
- package/browser/esm2022/lib/helpers.mjs +140 -111
- package/browser/fesm2022/tnp-helpers.mjs +396 -112
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-project.d.ts +30 -0
- package/browser/lib/base/commit-data.d.ts +3 -1
- package/browser/lib/helpers.d.ts +25 -2
- package/client/esm2022/lib/base/base-project.mjs +213 -1
- package/client/esm2022/lib/base/commit-data.mjs +46 -3
- package/client/esm2022/lib/helpers.mjs +140 -111
- package/client/fesm2022/tnp-helpers.mjs +396 -112
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-project.d.ts +30 -0
- package/client/lib/base/commit-data.d.ts +3 -1
- package/client/lib/helpers.d.ts +25 -2
- package/client/package.json +123 -174
- package/lib/base/base-project.d.ts +31 -1
- package/lib/base/base-project.js +312 -0
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/commit-data.d.ts +3 -1
- package/lib/base/commit-data.js +62 -21
- package/lib/base/commit-data.js.map +1 -1
- package/lib/for-backend/helpers-file-folders.backend.d.ts +1 -1
- package/lib/for-backend/helpers-git.backend.js +4 -4
- package/lib/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/for-backend/helpers-process.backend.d.ts +0 -3
- package/lib/for-backend/helpers-process.backend.js +2 -44
- package/lib/for-backend/helpers-process.backend.js.map +1 -1
- package/lib/for-browser/angular.helper.js +3 -3
- package/lib/helpers.d.ts +15 -3
- package/lib/helpers.js +87 -14
- 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 -5
- package/tmp-environment.json +127 -178
- package/websql/esm2022/lib/base/base-project.mjs +213 -1
- package/websql/esm2022/lib/base/commit-data.mjs +46 -3
- package/websql/esm2022/lib/helpers.mjs +140 -111
- package/websql/fesm2022/tnp-helpers.mjs +396 -112
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-project.d.ts +30 -0
- package/websql/lib/base/commit-data.d.ts +3 -1
- package/websql/lib/helpers.d.ts +25 -2
|
@@ -658,84 +658,6 @@ class HelpersFiredev extends CoreHelpers {
|
|
|
658
658
|
this.numbers = numbers;
|
|
659
659
|
this.browser = browser;
|
|
660
660
|
this.ng = ng;
|
|
661
|
-
/* */
|
|
662
|
-
/* */
|
|
663
|
-
/* */
|
|
664
|
-
/* */
|
|
665
|
-
/* */
|
|
666
|
-
/* */
|
|
667
|
-
/* */
|
|
668
|
-
/* */
|
|
669
|
-
/* */
|
|
670
|
-
/* */
|
|
671
|
-
/* */
|
|
672
|
-
/* */
|
|
673
|
-
/* */
|
|
674
|
-
/* */
|
|
675
|
-
/* */
|
|
676
|
-
/* */
|
|
677
|
-
/* */
|
|
678
|
-
/* */
|
|
679
|
-
/* */
|
|
680
|
-
/* */
|
|
681
|
-
/* */
|
|
682
|
-
/* */
|
|
683
|
-
/* */
|
|
684
|
-
/* */
|
|
685
|
-
/* */
|
|
686
|
-
/* */
|
|
687
|
-
/* */
|
|
688
|
-
/* */
|
|
689
|
-
/* */
|
|
690
|
-
/* */
|
|
691
|
-
/* */
|
|
692
|
-
/* */
|
|
693
|
-
/* */
|
|
694
|
-
/* */
|
|
695
|
-
/* */
|
|
696
|
-
/* */
|
|
697
|
-
/* */
|
|
698
|
-
/* */
|
|
699
|
-
/* */
|
|
700
|
-
/* */
|
|
701
|
-
/* */
|
|
702
|
-
/* */
|
|
703
|
-
/* */
|
|
704
|
-
/* */
|
|
705
|
-
/* */
|
|
706
|
-
/* */
|
|
707
|
-
/* */
|
|
708
|
-
/* */
|
|
709
|
-
/* */
|
|
710
|
-
/* */
|
|
711
|
-
/* */
|
|
712
|
-
/* */
|
|
713
|
-
/* */
|
|
714
|
-
/* */
|
|
715
|
-
/* */
|
|
716
|
-
/* */
|
|
717
|
-
/* */
|
|
718
|
-
/* */
|
|
719
|
-
/* */
|
|
720
|
-
/* */
|
|
721
|
-
/* */
|
|
722
|
-
/* */
|
|
723
|
-
/* */
|
|
724
|
-
/* */
|
|
725
|
-
/* */
|
|
726
|
-
/* */
|
|
727
|
-
/* */
|
|
728
|
-
/* */
|
|
729
|
-
/* */
|
|
730
|
-
/* */
|
|
731
|
-
/* */
|
|
732
|
-
/* */
|
|
733
|
-
/* */
|
|
734
|
-
/* */
|
|
735
|
-
/* */
|
|
736
|
-
/* */
|
|
737
|
-
/* */
|
|
738
|
-
/* */
|
|
739
661
|
this.applyMixins = applyMixins;
|
|
740
662
|
this.isValidIp = Validators.network.isValidIp;
|
|
741
663
|
this.isValidGitRepuUrl = Validators.git.isValidRepoUrl;
|
|
@@ -809,40 +731,66 @@ class HelpersFiredev extends CoreHelpers {
|
|
|
809
731
|
}
|
|
810
732
|
return url;
|
|
811
733
|
}
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
734
|
+
slash(pathFromWindowsOrUnixType) {
|
|
735
|
+
/* */
|
|
736
|
+
/* */
|
|
737
|
+
return (void 0);
|
|
738
|
+
}
|
|
816
739
|
async isElevated() {
|
|
817
740
|
/* */
|
|
818
741
|
/* */
|
|
819
742
|
/* */
|
|
820
743
|
/* */
|
|
821
744
|
}
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
745
|
+
/**
|
|
746
|
+
* TODO fix this methods
|
|
747
|
+
*/
|
|
748
|
+
async localIpAddress() {
|
|
749
|
+
/* */
|
|
750
|
+
/* */
|
|
751
|
+
/* */
|
|
752
|
+
/* */
|
|
753
|
+
/* */
|
|
754
|
+
/* */
|
|
755
|
+
/* */
|
|
756
|
+
/* */
|
|
757
|
+
/* */
|
|
758
|
+
/* */
|
|
759
|
+
/* */
|
|
760
|
+
/* */
|
|
761
|
+
/* */
|
|
762
|
+
/* */
|
|
763
|
+
/* */
|
|
764
|
+
/* */
|
|
765
|
+
/* */
|
|
766
|
+
/* */
|
|
767
|
+
/* */
|
|
768
|
+
/* */
|
|
769
|
+
/* */
|
|
770
|
+
/* */
|
|
771
|
+
return (void 0);
|
|
772
|
+
}
|
|
773
|
+
allLocalIpAddresses() {
|
|
774
|
+
/* */
|
|
775
|
+
/* */
|
|
776
|
+
/* */
|
|
777
|
+
/* */
|
|
778
|
+
/* */
|
|
779
|
+
/* */
|
|
780
|
+
/* */
|
|
781
|
+
/* */
|
|
782
|
+
/* */
|
|
783
|
+
/* */
|
|
784
|
+
/* */
|
|
785
|
+
/* */
|
|
786
|
+
/* */
|
|
787
|
+
/* */
|
|
788
|
+
/* */
|
|
789
|
+
/* */
|
|
790
|
+
/* */
|
|
791
|
+
/* */
|
|
792
|
+
return (void 0);
|
|
793
|
+
}
|
|
846
794
|
async mesureExectionInMs(description, functionToExecute, ...functionArguments) {
|
|
847
795
|
var start = new Date();
|
|
848
796
|
await Helpers.runSyncOrAsync({
|
|
@@ -885,6 +833,9 @@ class HelpersFiredev extends CoreHelpers {
|
|
|
885
833
|
}
|
|
886
834
|
});
|
|
887
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* @deprecated
|
|
838
|
+
*/
|
|
888
839
|
getBrowserVerPath(moduleName, websql = false) {
|
|
889
840
|
/* */
|
|
890
841
|
/* */
|
|
@@ -892,22 +843,25 @@ class HelpersFiredev extends CoreHelpers {
|
|
|
892
843
|
/* */
|
|
893
844
|
/* */
|
|
894
845
|
}
|
|
895
|
-
getMethodName(
|
|
846
|
+
getMethodName(classObject, method) {
|
|
896
847
|
var methodName = null;
|
|
897
|
-
Object.getOwnPropertyNames(
|
|
898
|
-
if (
|
|
848
|
+
Object.getOwnPropertyNames(classObject).forEach(prop => {
|
|
849
|
+
if (classObject[prop] === method) {
|
|
899
850
|
methodName = prop;
|
|
900
851
|
}
|
|
901
852
|
});
|
|
902
853
|
if (methodName !== null) {
|
|
903
854
|
return methodName;
|
|
904
855
|
}
|
|
905
|
-
var proto = Object.getPrototypeOf(
|
|
856
|
+
var proto = Object.getPrototypeOf(classObject);
|
|
906
857
|
if (proto) {
|
|
907
858
|
return Helpers.getMethodName(proto, method);
|
|
908
859
|
}
|
|
909
860
|
return null;
|
|
910
861
|
}
|
|
862
|
+
/**
|
|
863
|
+
* @deprecated
|
|
864
|
+
*/
|
|
911
865
|
fixWebpackEnv(env) {
|
|
912
866
|
_.forIn(env, (v, k) => {
|
|
913
867
|
const value = v;
|
|
@@ -917,6 +871,81 @@ class HelpersFiredev extends CoreHelpers {
|
|
|
917
871
|
env[k] = false;
|
|
918
872
|
});
|
|
919
873
|
}
|
|
874
|
+
/**
|
|
875
|
+
* @deprecated
|
|
876
|
+
*/
|
|
877
|
+
async workerCalculateArray(dataToSplit, operation, options) {
|
|
878
|
+
/* */
|
|
879
|
+
/* */
|
|
880
|
+
/* */
|
|
881
|
+
/* */
|
|
882
|
+
/* */
|
|
883
|
+
/* */
|
|
884
|
+
/* */
|
|
885
|
+
/* */
|
|
886
|
+
/* */
|
|
887
|
+
/* */
|
|
888
|
+
/* */
|
|
889
|
+
/* */
|
|
890
|
+
/* */
|
|
891
|
+
/* */
|
|
892
|
+
/* */
|
|
893
|
+
/* */
|
|
894
|
+
/* */
|
|
895
|
+
/* */
|
|
896
|
+
/* */
|
|
897
|
+
/* */
|
|
898
|
+
/* */
|
|
899
|
+
/* */
|
|
900
|
+
/* */
|
|
901
|
+
/* */
|
|
902
|
+
/* */
|
|
903
|
+
/* */
|
|
904
|
+
/* */
|
|
905
|
+
/* */
|
|
906
|
+
/* */
|
|
907
|
+
/* */
|
|
908
|
+
/* */
|
|
909
|
+
/* */
|
|
910
|
+
/* */
|
|
911
|
+
/* */
|
|
912
|
+
/* */
|
|
913
|
+
/* */
|
|
914
|
+
/* */
|
|
915
|
+
/* */
|
|
916
|
+
/* */
|
|
917
|
+
/* */
|
|
918
|
+
/* */
|
|
919
|
+
/* */
|
|
920
|
+
/* */
|
|
921
|
+
/* */
|
|
922
|
+
/* */
|
|
923
|
+
/* */
|
|
924
|
+
/* */
|
|
925
|
+
/* */
|
|
926
|
+
/* */
|
|
927
|
+
/* */
|
|
928
|
+
/* */
|
|
929
|
+
/* */
|
|
930
|
+
/* */
|
|
931
|
+
/* */
|
|
932
|
+
/* */
|
|
933
|
+
/* */
|
|
934
|
+
/* */
|
|
935
|
+
/* */
|
|
936
|
+
/* */
|
|
937
|
+
/* */
|
|
938
|
+
/* */
|
|
939
|
+
/* */
|
|
940
|
+
/* */
|
|
941
|
+
/* */
|
|
942
|
+
/* */
|
|
943
|
+
}
|
|
944
|
+
checkEnvironment(deps) {
|
|
945
|
+
/* */
|
|
946
|
+
/* */
|
|
947
|
+
return (void 0);
|
|
948
|
+
}
|
|
920
949
|
}
|
|
921
950
|
applyMixins(HelpersFiredev, [
|
|
922
951
|
HelpersStringsRegexes,
|
|
@@ -2166,6 +2195,218 @@ ${proj?.children.map(c => '+' + c.genericName).join('\n')}
|
|
|
2166
2195
|
useGitBranchesAsMetadataForCommits() {
|
|
2167
2196
|
return true;
|
|
2168
2197
|
}
|
|
2198
|
+
/**
|
|
2199
|
+
* angular libraries from angular.json
|
|
2200
|
+
*/
|
|
2201
|
+
get libraries() {
|
|
2202
|
+
/* */
|
|
2203
|
+
/* */
|
|
2204
|
+
/* */
|
|
2205
|
+
/* */
|
|
2206
|
+
/* */
|
|
2207
|
+
/* */
|
|
2208
|
+
/* */
|
|
2209
|
+
/* */
|
|
2210
|
+
/* */
|
|
2211
|
+
return (void 0);
|
|
2212
|
+
}
|
|
2213
|
+
get sortedLibrariesByDeps() {
|
|
2214
|
+
/* */
|
|
2215
|
+
/* */
|
|
2216
|
+
/* */
|
|
2217
|
+
/* */
|
|
2218
|
+
/* */
|
|
2219
|
+
/* */
|
|
2220
|
+
/* */
|
|
2221
|
+
/* */
|
|
2222
|
+
/* */
|
|
2223
|
+
/* */
|
|
2224
|
+
/* */
|
|
2225
|
+
/* */
|
|
2226
|
+
/* */
|
|
2227
|
+
/* */
|
|
2228
|
+
/* */
|
|
2229
|
+
/* */
|
|
2230
|
+
/* */
|
|
2231
|
+
/* */
|
|
2232
|
+
/* */
|
|
2233
|
+
/* */
|
|
2234
|
+
/* */
|
|
2235
|
+
/* */
|
|
2236
|
+
/* */
|
|
2237
|
+
/* */
|
|
2238
|
+
/* */
|
|
2239
|
+
/* */
|
|
2240
|
+
/* */
|
|
2241
|
+
/* */
|
|
2242
|
+
/* */
|
|
2243
|
+
/* */
|
|
2244
|
+
return (void 0);
|
|
2245
|
+
}
|
|
2246
|
+
async getSortedLibrariesByDepsForBuild() {
|
|
2247
|
+
/* */
|
|
2248
|
+
/* */
|
|
2249
|
+
/* */
|
|
2250
|
+
/* */
|
|
2251
|
+
/* */
|
|
2252
|
+
/* */
|
|
2253
|
+
/* */
|
|
2254
|
+
/* */
|
|
2255
|
+
/* */
|
|
2256
|
+
/* */
|
|
2257
|
+
/* */
|
|
2258
|
+
/* */
|
|
2259
|
+
/* */
|
|
2260
|
+
/* */
|
|
2261
|
+
/* */
|
|
2262
|
+
/* */
|
|
2263
|
+
/* */
|
|
2264
|
+
/* */
|
|
2265
|
+
/* */
|
|
2266
|
+
/* */
|
|
2267
|
+
/* */
|
|
2268
|
+
/* */
|
|
2269
|
+
/* */
|
|
2270
|
+
/* */
|
|
2271
|
+
/* */
|
|
2272
|
+
/* */
|
|
2273
|
+
/* */
|
|
2274
|
+
/* */
|
|
2275
|
+
/* */
|
|
2276
|
+
/* */
|
|
2277
|
+
/* */
|
|
2278
|
+
/* */
|
|
2279
|
+
/* */
|
|
2280
|
+
/* */
|
|
2281
|
+
/* */
|
|
2282
|
+
/* */
|
|
2283
|
+
/* */
|
|
2284
|
+
/* */
|
|
2285
|
+
/* */
|
|
2286
|
+
/* */
|
|
2287
|
+
/* */
|
|
2288
|
+
/* */
|
|
2289
|
+
/* */
|
|
2290
|
+
/* */
|
|
2291
|
+
/* */
|
|
2292
|
+
/* */
|
|
2293
|
+
return (void 0);
|
|
2294
|
+
}
|
|
2295
|
+
get getLibraryBuildSuccessComamnd() {
|
|
2296
|
+
/* */
|
|
2297
|
+
/* */
|
|
2298
|
+
/* */
|
|
2299
|
+
/* */
|
|
2300
|
+
/* */
|
|
2301
|
+
/* */
|
|
2302
|
+
/* */
|
|
2303
|
+
return (void 0);
|
|
2304
|
+
}
|
|
2305
|
+
async buildLibraries({ rebuild = false, watch = false, strategy } = {}) {
|
|
2306
|
+
/* */
|
|
2307
|
+
/* */
|
|
2308
|
+
/* */
|
|
2309
|
+
/* */
|
|
2310
|
+
/* */
|
|
2311
|
+
/* */
|
|
2312
|
+
/* */
|
|
2313
|
+
/* */
|
|
2314
|
+
/* */
|
|
2315
|
+
/* */
|
|
2316
|
+
/* */
|
|
2317
|
+
/* */
|
|
2318
|
+
/* */
|
|
2319
|
+
/* */
|
|
2320
|
+
/* */
|
|
2321
|
+
/* */
|
|
2322
|
+
/* */
|
|
2323
|
+
/* */
|
|
2324
|
+
/* */
|
|
2325
|
+
/* */
|
|
2326
|
+
/* */
|
|
2327
|
+
/* */
|
|
2328
|
+
/* */
|
|
2329
|
+
/* */
|
|
2330
|
+
/* */
|
|
2331
|
+
/* */
|
|
2332
|
+
/* */
|
|
2333
|
+
/* */
|
|
2334
|
+
/* */
|
|
2335
|
+
/* */
|
|
2336
|
+
/* */
|
|
2337
|
+
/* */
|
|
2338
|
+
/* */
|
|
2339
|
+
/* */
|
|
2340
|
+
/* */
|
|
2341
|
+
/* */
|
|
2342
|
+
/* */
|
|
2343
|
+
/* */
|
|
2344
|
+
/* */
|
|
2345
|
+
/* */
|
|
2346
|
+
/* */
|
|
2347
|
+
/* */
|
|
2348
|
+
/* */
|
|
2349
|
+
/* */
|
|
2350
|
+
/* */
|
|
2351
|
+
/* */
|
|
2352
|
+
/* */
|
|
2353
|
+
/* */
|
|
2354
|
+
/* */
|
|
2355
|
+
/* */
|
|
2356
|
+
/* */
|
|
2357
|
+
/* */
|
|
2358
|
+
/* */
|
|
2359
|
+
/* */
|
|
2360
|
+
/* */
|
|
2361
|
+
/* */
|
|
2362
|
+
/* */
|
|
2363
|
+
/* */
|
|
2364
|
+
/* */
|
|
2365
|
+
/* */
|
|
2366
|
+
/* */
|
|
2367
|
+
/* */
|
|
2368
|
+
/* */
|
|
2369
|
+
/* */
|
|
2370
|
+
/* */
|
|
2371
|
+
/* */
|
|
2372
|
+
/* */
|
|
2373
|
+
/* */
|
|
2374
|
+
/* */
|
|
2375
|
+
/* */
|
|
2376
|
+
/* */
|
|
2377
|
+
/* */
|
|
2378
|
+
/* */
|
|
2379
|
+
/* */
|
|
2380
|
+
/* */
|
|
2381
|
+
/* */
|
|
2382
|
+
/* */
|
|
2383
|
+
/* */
|
|
2384
|
+
/* */
|
|
2385
|
+
/* */
|
|
2386
|
+
/* */
|
|
2387
|
+
/* */
|
|
2388
|
+
/* */
|
|
2389
|
+
/* */
|
|
2390
|
+
/* */
|
|
2391
|
+
/* */
|
|
2392
|
+
/* */
|
|
2393
|
+
/* */
|
|
2394
|
+
/* */
|
|
2395
|
+
/* */
|
|
2396
|
+
/* */
|
|
2397
|
+
}
|
|
2398
|
+
getLibraryBuildComamnd(options) {
|
|
2399
|
+
/* */
|
|
2400
|
+
/* */
|
|
2401
|
+
/* */
|
|
2402
|
+
/* */
|
|
2403
|
+
/* */
|
|
2404
|
+
/* */
|
|
2405
|
+
/* */
|
|
2406
|
+
/* */
|
|
2407
|
+
/* */
|
|
2408
|
+
return (void 0);
|
|
2409
|
+
}
|
|
2169
2410
|
}
|
|
2170
2411
|
;
|
|
2171
2412
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-project.ts
|
|
@@ -2178,6 +2419,7 @@ class BaseFeatureForProject {
|
|
|
2178
2419
|
;
|
|
2179
2420
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-feature-for-project.ts
|
|
2180
2421
|
|
|
2422
|
+
const regexTeamsID = /[A-Z0-9]+\#/;
|
|
2181
2423
|
const regexCommitModuleInArgs = /\[[a-z|\-]+\]/;
|
|
2182
2424
|
const regexCommitModuleInBranch = /\-\-[a-z|\-]+\-\-/;
|
|
2183
2425
|
class CommitData {
|
|
@@ -2205,6 +2447,15 @@ class CommitData {
|
|
|
2205
2447
|
commitMsg = commitMsg.replace('http://', '');
|
|
2206
2448
|
return commitMsg;
|
|
2207
2449
|
}
|
|
2450
|
+
static getTeamsIdFrom(commitMsg) {
|
|
2451
|
+
let teamID = _.first(commitMsg.match(regexTeamsID));
|
|
2452
|
+
if (teamID) {
|
|
2453
|
+
commitMsg = commitMsg.replace(teamID, '');
|
|
2454
|
+
}
|
|
2455
|
+
return {
|
|
2456
|
+
commitMsgOrBranchName: commitMsg, teamID
|
|
2457
|
+
};
|
|
2458
|
+
}
|
|
2208
2459
|
static getModuleNameFrom(commitMsg) {
|
|
2209
2460
|
let commitModuleName = _.first(commitMsg.match(regexCommitModuleInArgs));
|
|
2210
2461
|
if (commitModuleName) {
|
|
@@ -2217,9 +2468,13 @@ class CommitData {
|
|
|
2217
2468
|
static getModuleNameFromBranch(branchName) {
|
|
2218
2469
|
let commitModuleName = _.first(branchName.match(regexCommitModuleInBranch));
|
|
2219
2470
|
if (commitModuleName) {
|
|
2220
|
-
branchName = branchName.replace(commitModuleName, '
|
|
2471
|
+
branchName = branchName.replace(commitModuleName, '');
|
|
2472
|
+
commitModuleName = commitModuleName?.replace(/^\-\-/, '')?.replace(/\-\-$/, '');
|
|
2473
|
+
if (commitModuleName.startsWith('-')) {
|
|
2474
|
+
commitModuleName = commitModuleName.replace(/^\-/, '');
|
|
2475
|
+
}
|
|
2221
2476
|
}
|
|
2222
|
-
return {
|
|
2477
|
+
return { commitModuleName: commitModuleName?.replace(/^\-\-/, '')?.replace(/\-\-$/, '') };
|
|
2223
2478
|
}
|
|
2224
2479
|
static async getFromArgs(args, typeOfCommit) {
|
|
2225
2480
|
/* */
|
|
@@ -2255,6 +2510,10 @@ class CommitData {
|
|
|
2255
2510
|
/* */
|
|
2256
2511
|
/* */
|
|
2257
2512
|
/* */
|
|
2513
|
+
/* */
|
|
2514
|
+
/* */
|
|
2515
|
+
/* */
|
|
2516
|
+
/* */
|
|
2258
2517
|
return (void 0);
|
|
2259
2518
|
}
|
|
2260
2519
|
static async getFromBranch(currentBranchName) {
|
|
@@ -2290,6 +2549,7 @@ class CommitData {
|
|
|
2290
2549
|
/* */
|
|
2291
2550
|
/* */
|
|
2292
2551
|
/* */
|
|
2552
|
+
/* */
|
|
2293
2553
|
return (void 0);
|
|
2294
2554
|
}
|
|
2295
2555
|
static from(options) {
|
|
@@ -2298,6 +2558,10 @@ class CommitData {
|
|
|
2298
2558
|
return opt;
|
|
2299
2559
|
}
|
|
2300
2560
|
clearMessage(message) {
|
|
2561
|
+
if (this.teamID && _.isString(this.teamID)) {
|
|
2562
|
+
message = message.replace(this.teamID.toLowerCase().replace('-', ' '), ' ');
|
|
2563
|
+
message = message.replace(this.teamID.toUpperCase().replace('-', ' '), ' ');
|
|
2564
|
+
}
|
|
2301
2565
|
for (const jira of (this.jiraNumbers || [])) {
|
|
2302
2566
|
message = message.replace(jira.toLowerCase().replace('-', ' '), ' ');
|
|
2303
2567
|
message = message.replace(jira.toUpperCase().replace('-', ' '), ' ');
|
|
@@ -2307,6 +2571,12 @@ class CommitData {
|
|
|
2307
2571
|
message = message.replace(regexCommitModuleInBranch, ' ');
|
|
2308
2572
|
message = message.replace(/\ \ /g, ' ');
|
|
2309
2573
|
}
|
|
2574
|
+
if (this.teamID && _.isString(this.teamID)) {
|
|
2575
|
+
message = message.replace(/\_/g, ' ');
|
|
2576
|
+
}
|
|
2577
|
+
if (this.commitModuleName) {
|
|
2578
|
+
message = message.replace(this.commitModuleName.replace(/\-/g, ' '), ' ');
|
|
2579
|
+
}
|
|
2310
2580
|
return message;
|
|
2311
2581
|
}
|
|
2312
2582
|
/**
|
|
@@ -2349,9 +2619,23 @@ class CommitData {
|
|
|
2349
2619
|
/* */
|
|
2350
2620
|
/* */
|
|
2351
2621
|
/* */
|
|
2622
|
+
/* */
|
|
2623
|
+
/* */
|
|
2624
|
+
/* */
|
|
2625
|
+
/* */
|
|
2626
|
+
/* */
|
|
2627
|
+
/* */
|
|
2628
|
+
/* */
|
|
2352
2629
|
return (void 0);
|
|
2353
2630
|
}
|
|
2354
2631
|
get branchName() {
|
|
2632
|
+
/* */
|
|
2633
|
+
/* */
|
|
2634
|
+
/* */
|
|
2635
|
+
/* */
|
|
2636
|
+
/* */
|
|
2637
|
+
/* */
|
|
2638
|
+
/* */
|
|
2355
2639
|
/* */
|
|
2356
2640
|
/* */
|
|
2357
2641
|
/* */
|