tnp-helpers 13.0.37 → 13.1.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/app.d.ts +1 -1
- package/app.js +6 -6
- package/app.js.map +1 -1
- package/browser/README.md +24 -24
- package/browser/esm2020/lib/base-component.mjs +48 -48
- package/browser/esm2020/lib/base-formly-component.mjs +126 -126
- package/browser/esm2020/lib/condition-wait.mjs +53 -53
- package/browser/esm2020/lib/constants.mjs +7 -2
- package/browser/esm2020/lib/dual-component-ctrl.mjs +120 -120
- package/browser/esm2020/lib/helpers-array-obj.mjs +80 -80
- package/browser/esm2020/lib/helpers-environment.mjs +30 -30
- package/browser/esm2020/lib/helpers-numbers.mjs +5 -5
- package/browser/esm2020/lib/helpers-strings-regexes.mjs +48 -48
- package/browser/esm2020/lib/helpers-strings.mjs +258 -256
- package/browser/esm2020/lib/helpers.mjs +276 -276
- package/browser/esm2020/lib/index.mjs +14 -14
- package/browser/esm2020/lib/long-press.directive.mjs +112 -112
- package/browser/esm2020/lib/project.mjs +414 -405
- package/browser/esm2020/lib/resize-service.mjs +20 -20
- package/browser/esm2020/public-api.mjs +1 -1
- package/browser/esm2020/tnp-helpers.mjs +4 -4
- package/browser/fesm2015/tnp-helpers.mjs +1537 -1522
- package/browser/fesm2015/tnp-helpers.mjs.map +1 -1
- package/browser/fesm2020/tnp-helpers.mjs +1529 -1514
- package/browser/fesm2020/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base-component.d.ts +17 -17
- package/browser/lib/base-formly-component.d.ts +31 -31
- package/browser/lib/condition-wait.d.ts +8 -8
- package/browser/lib/constants.d.ts +6 -1
- package/browser/lib/dual-component-ctrl.d.ts +25 -25
- package/browser/lib/helpers-array-obj.d.ts +15 -15
- package/browser/lib/helpers-environment.d.ts +5 -5
- package/browser/lib/helpers-numbers.d.ts +3 -3
- package/browser/lib/helpers-strings-regexes.d.ts +28 -28
- package/browser/lib/helpers-strings.d.ts +50 -50
- package/browser/lib/helpers.d.ts +28 -28
- package/browser/lib/index.d.ts +10 -10
- package/browser/lib/long-press.directive.d.ts +25 -25
- package/browser/lib/project.d.ts +91 -91
- package/browser/lib/resize-service.d.ts +9 -9
- package/browser/public-api.d.ts +1 -1
- package/browser/tnp-helpers.d.ts +5 -5
- package/client/README.md +24 -24
- package/client/esm2020/lib/base-component.mjs +48 -48
- package/client/esm2020/lib/base-formly-component.mjs +126 -126
- package/client/esm2020/lib/condition-wait.mjs +53 -53
- package/client/esm2020/lib/constants.mjs +7 -2
- package/client/esm2020/lib/dual-component-ctrl.mjs +120 -120
- package/client/esm2020/lib/helpers-array-obj.mjs +80 -80
- package/client/esm2020/lib/helpers-environment.mjs +30 -30
- package/client/esm2020/lib/helpers-numbers.mjs +5 -5
- package/client/esm2020/lib/helpers-strings-regexes.mjs +48 -48
- package/client/esm2020/lib/helpers-strings.mjs +258 -256
- package/client/esm2020/lib/helpers.mjs +276 -276
- package/client/esm2020/lib/index.mjs +14 -14
- package/client/esm2020/lib/long-press.directive.mjs +112 -112
- package/client/esm2020/lib/project.mjs +414 -405
- package/client/esm2020/lib/resize-service.mjs +20 -20
- package/client/esm2020/public-api.mjs +1 -1
- package/client/esm2020/tnp-helpers.mjs +4 -4
- package/client/fesm2015/tnp-helpers.mjs +1537 -1522
- package/client/fesm2015/tnp-helpers.mjs.map +1 -1
- package/client/fesm2020/tnp-helpers.mjs +1529 -1514
- package/client/fesm2020/tnp-helpers.mjs.map +1 -1
- package/client/lib/base-component.d.ts +17 -17
- package/client/lib/base-formly-component.d.ts +31 -31
- package/client/lib/condition-wait.d.ts +8 -8
- package/client/lib/constants.d.ts +6 -1
- package/client/lib/dual-component-ctrl.d.ts +25 -25
- package/client/lib/helpers-array-obj.d.ts +15 -15
- package/client/lib/helpers-environment.d.ts +5 -5
- package/client/lib/helpers-numbers.d.ts +3 -3
- package/client/lib/helpers-strings-regexes.d.ts +28 -28
- package/client/lib/helpers-strings.d.ts +50 -50
- package/client/lib/helpers.d.ts +28 -28
- package/client/lib/index.d.ts +10 -10
- package/client/lib/long-press.directive.d.ts +25 -25
- package/client/lib/project.d.ts +91 -91
- package/client/lib/resize-service.d.ts +9 -9
- package/client/public-api.d.ts +1 -1
- package/client/tnp-helpers.d.ts +5 -5
- package/index.d.ts +1 -1
- package/index.js +5 -5
- package/index.js.map +1 -1
- package/lib/angular.helper.d.ts +22 -22
- package/lib/angular.helper.js +50 -49
- package/lib/angular.helper.js.map +1 -1
- package/lib/base-component.d.ts +1 -1
- package/lib/base-component.js +6 -6
- package/lib/base-component.js.map +1 -1
- package/lib/base-formly-component.d.ts +1 -1
- package/lib/base-formly-component.js +6 -6
- package/lib/base-formly-component.js.map +1 -1
- package/lib/condition-wait.d.ts +8 -8
- package/lib/condition-wait.js +94 -94
- package/lib/condition-wait.js.map +1 -1
- package/lib/constants.d.ts +6 -1
- package/lib/constants.js +10 -5
- package/lib/constants.js.map +1 -1
- package/lib/dual-component-ctrl.d.ts +1 -1
- package/lib/dual-component-ctrl.js +6 -6
- package/lib/dual-component-ctrl.js.map +1 -1
- package/lib/git-project.d.ts +44 -44
- package/lib/git-project.js +195 -191
- package/lib/git-project.js.map +1 -1
- package/lib/helpers-array-obj.d.ts +15 -15
- package/lib/helpers-array-obj.js +88 -88
- package/lib/helpers-array-obj.js.map +1 -1
- package/lib/helpers-cli-tool.backend.d.ts +45 -45
- package/lib/helpers-cli-tool.backend.js +293 -293
- package/lib/helpers-cli-tool.backend.js.map +1 -1
- package/lib/helpers-dependencies.backend.d.ts +11 -11
- package/lib/helpers-dependencies.backend.js +105 -105
- package/lib/helpers-dependencies.backend.js.map +1 -1
- package/lib/helpers-environment.d.ts +5 -5
- package/lib/helpers-environment.js +35 -35
- package/lib/helpers-environment.js.map +1 -1
- package/lib/helpers-file-folders.backend.d.ts +84 -73
- package/lib/helpers-file-folders.backend.js +736 -707
- package/lib/helpers-file-folders.backend.js.map +1 -1
- package/lib/helpers-git.backend.d.ts +35 -35
- package/lib/helpers-git.backend.js +545 -534
- package/lib/helpers-git.backend.js.map +1 -1
- package/lib/helpers-json5.backend.d.ts +16 -16
- package/lib/helpers-json5.backend.js +70 -70
- package/lib/helpers-json5.backend.js.map +1 -1
- package/lib/helpers-morphi-framework.backend.d.ts +4 -4
- package/lib/helpers-morphi-framework.backend.js +49 -49
- package/lib/helpers-morphi-framework.backend.js.map +1 -1
- package/lib/helpers-network.backend.d.ts +8 -8
- package/lib/helpers-network.backend.js +48 -48
- package/lib/helpers-network.backend.js.map +1 -1
- package/lib/helpers-npm.backend.d.ts +3 -3
- package/lib/helpers-npm.backend.js +17 -17
- package/lib/helpers-npm.backend.js.map +1 -1
- package/lib/helpers-numbers.d.ts +3 -3
- package/lib/helpers-numbers.js +11 -11
- package/lib/helpers-numbers.js.map +1 -1
- package/lib/helpers-path.backend.d.ts +7 -7
- package/lib/helpers-path.backend.js +36 -35
- package/lib/helpers-path.backend.js.map +1 -1
- package/lib/helpers-process.backend.d.ts +57 -51
- package/lib/helpers-process.backend.js +529 -523
- package/lib/helpers-process.backend.js.map +1 -1
- package/lib/helpers-strings-regexes.d.ts +28 -28
- package/lib/helpers-strings-regexes.js +60 -60
- package/lib/helpers-strings-regexes.js.map +1 -1
- package/lib/helpers-strings.d.ts +50 -50
- package/lib/helpers-strings.js +265 -263
- package/lib/helpers-strings.js.map +1 -1
- package/lib/helpers-system-terminal.backend.d.ts +5 -5
- package/lib/helpers-system-terminal.backend.js +53 -53
- package/lib/helpers-system-terminal.backend.js.map +1 -1
- package/lib/helpers.d.ts +67 -67
- package/lib/helpers.js +391 -372
- package/lib/helpers.js.map +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.js +19 -19
- package/lib/index.js.map +1 -1
- package/lib/long-press.directive.d.ts +22 -22
- package/lib/long-press.directive.js +141 -141
- package/lib/long-press.directive.js.map +1 -1
- package/lib/merge-helpers.backend.d.ts +23 -23
- package/lib/merge-helpers.backend.js +108 -108
- package/lib/merge-helpers.backend.js.map +1 -1
- package/lib/project.d.ts +94 -94
- package/lib/project.js +422 -419
- package/lib/project.js.map +1 -1
- package/lib/resize-service.d.ts +6 -6
- package/lib/resize-service.js +24 -24
- package/lib/resize-service.js.map +1 -1
- package/lib/ts-code/index.d.ts +1 -1
- package/lib/ts-code/index.js +7 -7
- package/lib/ts-code/index.js.map +1 -1
- package/lib/ts-code/ts-code-extractor.d.ts +14 -14
- package/lib/ts-code/ts-code-extractor.js +46 -46
- package/lib/ts-code/ts-code-extractor.js.map +1 -1
- package/lib/ts-code/ts-code-modifier.backend.d.ts +12 -12
- package/lib/ts-code/ts-code-modifier.backend.js +70 -70
- package/lib/ts-code/ts-code-modifier.backend.js.map +1 -1
- package/package.json +3 -3
- package/package.json_devDependencies.json +222 -222
- package/package.json_tnp.json5 +41 -33
- package/tmp-environment.json +48 -45
- package/websql/README.md +24 -24
- package/websql/esm2020/lib/base-component.mjs +48 -48
- package/websql/esm2020/lib/base-formly-component.mjs +126 -126
- package/websql/esm2020/lib/condition-wait.mjs +53 -53
- package/websql/esm2020/lib/constants.mjs +7 -2
- package/websql/esm2020/lib/dual-component-ctrl.mjs +120 -120
- package/websql/esm2020/lib/helpers-array-obj.mjs +80 -80
- package/websql/esm2020/lib/helpers-environment.mjs +30 -30
- package/websql/esm2020/lib/helpers-numbers.mjs +5 -5
- package/websql/esm2020/lib/helpers-strings-regexes.mjs +48 -48
- package/websql/esm2020/lib/helpers-strings.mjs +258 -256
- package/websql/esm2020/lib/helpers.mjs +276 -276
- package/websql/esm2020/lib/index.mjs +14 -14
- package/websql/esm2020/lib/long-press.directive.mjs +112 -112
- package/websql/esm2020/lib/project.mjs +414 -405
- package/websql/esm2020/lib/resize-service.mjs +20 -20
- package/websql/esm2020/public-api.mjs +1 -1
- package/websql/esm2020/tnp-helpers.mjs +4 -4
- package/websql/fesm2015/tnp-helpers.mjs +1537 -1522
- package/websql/fesm2015/tnp-helpers.mjs.map +1 -1
- package/websql/fesm2020/tnp-helpers.mjs +1529 -1514
- package/websql/fesm2020/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base-component.d.ts +17 -17
- package/websql/lib/base-formly-component.d.ts +31 -31
- package/websql/lib/condition-wait.d.ts +8 -8
- package/websql/lib/constants.d.ts +6 -1
- package/websql/lib/dual-component-ctrl.d.ts +25 -25
- package/websql/lib/helpers-array-obj.d.ts +15 -15
- package/websql/lib/helpers-environment.d.ts +5 -5
- package/websql/lib/helpers-numbers.d.ts +3 -3
- package/websql/lib/helpers-strings-regexes.d.ts +28 -28
- package/websql/lib/helpers-strings.d.ts +50 -50
- package/websql/lib/helpers.d.ts +28 -28
- package/websql/lib/index.d.ts +10 -10
- package/websql/lib/long-press.directive.d.ts +25 -25
- package/websql/lib/project.d.ts +91 -91
- package/websql/lib/resize-service.d.ts +9 -9
- package/websql/public-api.d.ts +1 -1
- package/websql/tnp-helpers.d.ts +5 -5
package/lib/angular.helper.js
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AngularHelpers = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
console.log(this.sassFile.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AngularHelpers = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var AngularHelpers = /** @class */ (function () {
|
|
6
|
+
function AngularHelpers() {
|
|
7
|
+
/**
|
|
8
|
+
get properties from scss file
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import styles from './tasks-ngrx-data.component.scss';
|
|
12
|
+
|
|
13
|
+
export class ExampleComponent {
|
|
14
|
+
sassFile = sassFile(styles);
|
|
15
|
+
|
|
16
|
+
async ngOnInit() {
|
|
17
|
+
this.tasksService.getAll();
|
|
18
|
+
console.log(this.sassFile.stringValue('--max-container-size'))
|
|
19
|
+
console.log(this.sassFile.numberValue('--max-container-size'))
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
*/
|
|
23
|
+
this.sassFile = function (styles) {
|
|
24
|
+
var lines = (styles.split('\n'));
|
|
25
|
+
return {
|
|
26
|
+
stringValue: function (name) {
|
|
27
|
+
for (var index = 0; index < lines.length; index++) {
|
|
28
|
+
var l = lines[index];
|
|
29
|
+
var _a = tslib_1.__read(l.trim().split(':'), 2), varName = _a[0], value = _a[1];
|
|
30
|
+
if (varName === name) {
|
|
31
|
+
return value.replace(';', '');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
numberValue: function (name) {
|
|
36
|
+
for (var index = 0; index < lines.length; index++) {
|
|
37
|
+
var l = lines[index];
|
|
38
|
+
var _a = tslib_1.__read(l.trim().split(':'), 2), varName = _a[0], value = _a[1];
|
|
39
|
+
if (varName === name) {
|
|
40
|
+
return Number(value.replace('px', '').replace(';', ''));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return AngularHelpers;
|
|
48
|
+
}());
|
|
49
|
+
exports.AngularHelpers = AngularHelpers;
|
|
50
|
+
//# sourceMappingURL=C:/Users/darek/projects/npm/tnp-helpers/tmp-bundle-release/bundle/project/tnp-helpers/bundle-nocutsrc/lib/angular.helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular.helper.js","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"angular.helper.js","sourceRoot":"","sources":["../../src/lib/angular.helper.ts"],"names":[],"mappings":";;;;AAAA;IAAA;QAEA;;;;;;;;;;;;;;;aAeK;QACH,aAAQ,GAAG,UAAC,MAAc;YACxB,IAAM,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;YACnC,OAAO;gBACL,WAAW,EAAE,UAAC,IAAY;oBACxB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;wBACjD,IAAM,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;wBACjB,IAAA,KAAA,eAAmB,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAA,EAArC,OAAO,QAAA,EAAE,KAAK,QAAuB,CAAC;wBAC7C,IAAI,OAAO,KAAK,IAAI,EAAE;4BACpB,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;yBAC/B;qBACF;gBACH,CAAC;gBACD,WAAW,EAAE,UAAC,IAAY;oBACxB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;wBACjD,IAAM,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;wBACjB,IAAA,KAAA,eAAmB,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAA,EAArC,OAAO,QAAA,EAAE,KAAK,QAAuB,CAAC;wBAC7C,IAAI,OAAO,KAAK,IAAI,EAAE;4BACpB,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;yBACzD;qBACF;gBACH,CAAC;aACF,CAAA;QACH,CAAC,CAAA;IAGH,CAAC;IAAD,qBAAC;AAAD,CAAC,AA3CD,IA2CC;AA3CY,wCAAc"}
|
package/lib/base-component.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function dummy1668426219809(): void;
|
package/lib/base-component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
exports.
|
|
6
|
-
//# sourceMappingURL
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dummy1668426219809 = void 0;
|
|
4
|
+
function dummy1668426219809() { }
|
|
5
|
+
exports.dummy1668426219809 = dummy1668426219809;
|
|
6
|
+
//# sourceMappingURL=C:/Users/darek/projects/npm/tnp-helpers/tmp-bundle-release/bundle/project/tnp-helpers/bundle-nocutsrc/lib/base-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-component.js","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"base-component.js","sourceRoot":"","sources":["../../src/lib/base-component.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,KAAK,CAAC;AAAxC,gDAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function dummy1668426219823(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
exports.
|
|
6
|
-
//# sourceMappingURL
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dummy1668426219823 = void 0;
|
|
4
|
+
function dummy1668426219823() { }
|
|
5
|
+
exports.dummy1668426219823 = dummy1668426219823;
|
|
6
|
+
//# sourceMappingURL=C:/Users/darek/projects/npm/tnp-helpers/tmp-bundle-release/bundle/project/tnp-helpers/bundle-nocutsrc/lib/base-formly-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-formly-component.js","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"base-formly-component.js","sourceRoot":"","sources":["../../src/lib/base-formly-component.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,KAAK,CAAC;AAAxC,gDAAwC"}
|
package/lib/condition-wait.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare type Condition = {
|
|
2
|
-
name?: string;
|
|
3
|
-
timeoutCheck?: number;
|
|
4
|
-
timeoutNext?: number;
|
|
5
|
-
callback: (c: Condition) => boolean | Promise<boolean>;
|
|
6
|
-
errorMessage: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function conditionWait(conditionAndTimeout: Condition[]): Promise<void>;
|
|
1
|
+
export declare type Condition = {
|
|
2
|
+
name?: string;
|
|
3
|
+
timeoutCheck?: number;
|
|
4
|
+
timeoutNext?: number;
|
|
5
|
+
callback: (c: Condition) => boolean | Promise<boolean>;
|
|
6
|
+
errorMessage: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function conditionWait(conditionAndTimeout: Condition[]): Promise<void>;
|
package/lib/condition-wait.js
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.conditionWait = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var tnp_core_1 = require("tnp-core");
|
|
6
|
-
var index_1 = require("./index");
|
|
7
|
-
function conditionWait(conditionAndTimeout) {
|
|
8
|
-
return
|
|
9
|
-
return
|
|
10
|
-
switch (_a.label) {
|
|
11
|
-
case 0: return [4 /*yield*/, waitFor(conditionAndTimeout)];
|
|
12
|
-
case 1:
|
|
13
|
-
_a.sent();
|
|
14
|
-
return [2 /*return*/];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
exports.conditionWait = conditionWait;
|
|
20
|
-
function waitFor(arr, messageToShow) {
|
|
21
|
-
var _this = this;
|
|
22
|
-
if (messageToShow === void 0) { messageToShow = void 0; }
|
|
23
|
-
return new Promise(function (resolve, reject) { return
|
|
24
|
-
var check_1, timeoutCheck, timeoutNext, name_1, resultTrue;
|
|
25
|
-
var _this = this;
|
|
26
|
-
return
|
|
27
|
-
switch (_a.label) {
|
|
28
|
-
case 0:
|
|
29
|
-
if (!(arr.length === 0)) return [3 /*break*/, 1];
|
|
30
|
-
resolve(void 0);
|
|
31
|
-
return [3 /*break*/, 3];
|
|
32
|
-
case 1:
|
|
33
|
-
check_1 = arr.shift();
|
|
34
|
-
if (tnp_core_1._.isUndefined(check_1.timeoutCheck)) {
|
|
35
|
-
check_1.timeoutCheck = 2000;
|
|
36
|
-
}
|
|
37
|
-
if (tnp_core_1._.isUndefined(check_1.timeoutNext)) {
|
|
38
|
-
check_1.timeoutNext = 4000;
|
|
39
|
-
}
|
|
40
|
-
timeoutCheck = check_1.timeoutCheck, timeoutNext = check_1.timeoutNext, name_1 = check_1.name;
|
|
41
|
-
return [4 /*yield*/, index_1.Helpers.runSyncOrAsync(check_1.callback, check_1)];
|
|
42
|
-
case 2:
|
|
43
|
-
resultTrue = _a.sent();
|
|
44
|
-
// console.log(`after: ${name}`)
|
|
45
|
-
if (resultTrue) {
|
|
46
|
-
// console.log(`timeout 1 is set to ${timeoutNext}`)
|
|
47
|
-
setTimeout(function () { return
|
|
48
|
-
return
|
|
49
|
-
switch (_a.label) {
|
|
50
|
-
case 0:
|
|
51
|
-
// console.log(`timeout 1 is over`)
|
|
52
|
-
return [4 /*yield*/, waitFor(arr).then(function () {
|
|
53
|
-
resolve(void 0);
|
|
54
|
-
})];
|
|
55
|
-
case 1:
|
|
56
|
-
// console.log(`timeout 1 is over`)
|
|
57
|
-
_a.sent();
|
|
58
|
-
return [2 /*return*/];
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}); }, timeoutNext);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
arr.unshift(check_1);
|
|
65
|
-
if (!messageToShow || check_1.errorMessage !== messageToShow) {
|
|
66
|
-
index_1.Helpers.info(check_1.errorMessage);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
// console.log(`dont show error message ${check.errorMessage}`)
|
|
70
|
-
}
|
|
71
|
-
// console.log(`timeout 2 is set to ${timeoutCheck}, arr.length is ${arr.length}`)
|
|
72
|
-
setTimeout(function () { return
|
|
73
|
-
return
|
|
74
|
-
switch (_a.label) {
|
|
75
|
-
case 0:
|
|
76
|
-
// console.log(`timeout 2 ${timeoutCheck} ovef`)
|
|
77
|
-
return [4 /*yield*/, waitFor(arr, check_1.errorMessage).then(function () {
|
|
78
|
-
resolve(void 0);
|
|
79
|
-
})];
|
|
80
|
-
case 1:
|
|
81
|
-
// console.log(`timeout 2 ${timeoutCheck} ovef`)
|
|
82
|
-
_a.sent();
|
|
83
|
-
return [2 /*return*/];
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}); }, timeoutCheck);
|
|
87
|
-
}
|
|
88
|
-
_a.label = 3;
|
|
89
|
-
case 3: return [2 /*return*/];
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}); });
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conditionWait = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var tnp_core_1 = require("tnp-core");
|
|
6
|
+
var index_1 = require("./index");
|
|
7
|
+
function conditionWait(conditionAndTimeout) {
|
|
8
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
9
|
+
return tslib_1.__generator(this, function (_a) {
|
|
10
|
+
switch (_a.label) {
|
|
11
|
+
case 0: return [4 /*yield*/, waitFor(conditionAndTimeout)];
|
|
12
|
+
case 1:
|
|
13
|
+
_a.sent();
|
|
14
|
+
return [2 /*return*/];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.conditionWait = conditionWait;
|
|
20
|
+
function waitFor(arr, messageToShow) {
|
|
21
|
+
var _this = this;
|
|
22
|
+
if (messageToShow === void 0) { messageToShow = void 0; }
|
|
23
|
+
return new Promise(function (resolve, reject) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
24
|
+
var check_1, timeoutCheck, timeoutNext, name_1, resultTrue;
|
|
25
|
+
var _this = this;
|
|
26
|
+
return tslib_1.__generator(this, function (_a) {
|
|
27
|
+
switch (_a.label) {
|
|
28
|
+
case 0:
|
|
29
|
+
if (!(arr.length === 0)) return [3 /*break*/, 1];
|
|
30
|
+
resolve(void 0);
|
|
31
|
+
return [3 /*break*/, 3];
|
|
32
|
+
case 1:
|
|
33
|
+
check_1 = arr.shift();
|
|
34
|
+
if (tnp_core_1._.isUndefined(check_1.timeoutCheck)) {
|
|
35
|
+
check_1.timeoutCheck = 2000;
|
|
36
|
+
}
|
|
37
|
+
if (tnp_core_1._.isUndefined(check_1.timeoutNext)) {
|
|
38
|
+
check_1.timeoutNext = 4000;
|
|
39
|
+
}
|
|
40
|
+
timeoutCheck = check_1.timeoutCheck, timeoutNext = check_1.timeoutNext, name_1 = check_1.name;
|
|
41
|
+
return [4 /*yield*/, index_1.Helpers.runSyncOrAsync(check_1.callback, check_1)];
|
|
42
|
+
case 2:
|
|
43
|
+
resultTrue = _a.sent();
|
|
44
|
+
// console.log(`after: ${name}`)
|
|
45
|
+
if (resultTrue) {
|
|
46
|
+
// console.log(`timeout 1 is set to ${timeoutNext}`)
|
|
47
|
+
setTimeout(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
48
|
+
return tslib_1.__generator(this, function (_a) {
|
|
49
|
+
switch (_a.label) {
|
|
50
|
+
case 0:
|
|
51
|
+
// console.log(`timeout 1 is over`)
|
|
52
|
+
return [4 /*yield*/, waitFor(arr).then(function () {
|
|
53
|
+
resolve(void 0);
|
|
54
|
+
})];
|
|
55
|
+
case 1:
|
|
56
|
+
// console.log(`timeout 1 is over`)
|
|
57
|
+
_a.sent();
|
|
58
|
+
return [2 /*return*/];
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}); }, timeoutNext);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
arr.unshift(check_1);
|
|
65
|
+
if (!messageToShow || check_1.errorMessage !== messageToShow) {
|
|
66
|
+
index_1.Helpers.info(check_1.errorMessage);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
// console.log(`dont show error message ${check.errorMessage}`)
|
|
70
|
+
}
|
|
71
|
+
// console.log(`timeout 2 is set to ${timeoutCheck}, arr.length is ${arr.length}`)
|
|
72
|
+
setTimeout(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
73
|
+
return tslib_1.__generator(this, function (_a) {
|
|
74
|
+
switch (_a.label) {
|
|
75
|
+
case 0:
|
|
76
|
+
// console.log(`timeout 2 ${timeoutCheck} ovef`)
|
|
77
|
+
return [4 /*yield*/, waitFor(arr, check_1.errorMessage).then(function () {
|
|
78
|
+
resolve(void 0);
|
|
79
|
+
})];
|
|
80
|
+
case 1:
|
|
81
|
+
// console.log(`timeout 2 ${timeoutCheck} ovef`)
|
|
82
|
+
_a.sent();
|
|
83
|
+
return [2 /*return*/];
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}); }, timeoutCheck);
|
|
87
|
+
}
|
|
88
|
+
_a.label = 3;
|
|
89
|
+
case 3: return [2 /*return*/];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}); });
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=C:/Users/darek/projects/npm/tnp-helpers/tmp-bundle-release/bundle/project/tnp-helpers/bundle-nocutsrc/lib/condition-wait.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition-wait.js","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"condition-wait.js","sourceRoot":"","sources":["../../src/lib/condition-wait.ts"],"names":[],"mappings":";;;;AAAA,qCAA6B;AAC7B,iCAAkC;AAUlC,SAAsB,aAAa,CAAC,mBAAgC;;;;wBAClE,qBAAM,OAAO,CAAC,mBAAmB,CAAC,EAAA;;oBAAlC,SAAkC,CAAC;;;;;CACpC;AAFD,sCAEC;AAED,SAAS,OAAO,CAAC,GAAgB,EAAE,aAA8B;IAAjE,iBA6CC;IA7CkC,8BAAA,EAAA,qBAA6B,CAAC;IAC/D,OAAO,IAAI,OAAO,CAAC,UAAO,OAAO,EAAE,MAAM;;;;;;yBACnC,CAAA,GAAG,CAAC,MAAM,KAAK,CAAC,CAAA,EAAhB,wBAAgB;oBAClB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAA;;;oBAGT,UAAQ,GAAG,CAAC,KAAK,EAAE,CAAC;oBAC1B,IAAI,YAAC,CAAC,WAAW,CAAC,OAAK,CAAC,YAAY,CAAC,EAAE;wBACrC,OAAK,CAAC,YAAY,GAAG,IAAI,CAAC;qBAC3B;oBACD,IAAI,YAAC,CAAC,WAAW,CAAC,OAAK,CAAC,WAAW,CAAC,EAAE;wBACpC,OAAK,CAAC,WAAW,GAAG,IAAI,CAAC;qBAC1B;oBACO,YAAY,GAAwB,OAAK,aAA7B,EAAE,WAAW,GAAW,OAAK,YAAhB,EAAE,SAAS,OAAK,KAAV,CAAW;oBAI/B,qBAAM,eAAO,CAAC,cAAc,CAAC,OAAK,CAAC,QAAQ,EAAE,OAAK,CAAC,EAAA;;oBAAhE,UAAU,GAAG,SAAmD;oBACtE,gCAAgC;oBAChC,IAAI,UAAU,EAAE;wBACd,oDAAoD;wBACpD,UAAU,CAAC;;;;oCACT,mCAAmC;oCACnC,qBAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;4CACtB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;wCAClB,CAAC,CAAC,EAAA;;wCAHF,mCAAmC;wCACnC,SAEE,CAAC;;;;6BACJ,EAAE,WAAW,CAAC,CAAC;qBACjB;yBAAM;wBAEL,GAAG,CAAC,OAAO,CAAC,OAAK,CAAC,CAAC;wBACnB,IAAI,CAAC,aAAa,IAAI,OAAK,CAAC,YAAY,KAAK,aAAa,EAAE;4BAC1D,eAAO,CAAC,IAAI,CAAC,OAAK,CAAC,YAAY,CAAC,CAAC;yBAClC;6BAAM;4BACL,gEAAgE;yBACjE;wBACD,kFAAkF;wBAClF,UAAU,CAAC;;;;oCACT,gDAAgD;oCAChD,qBAAM,OAAO,CAAC,GAAG,EAAE,OAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;4CAC1C,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;wCAClB,CAAC,CAAC,EAAA;;wCAHF,gDAAgD;wCAChD,SAEE,CAAC;;;;6BACJ,EAAE,YAAY,CAAC,CAAC;qBAClB;;;;;SAEJ,CAAC,CAAA;AACJ,CAAC"}
|
package/lib/constants.d.ts
CHANGED
package/lib/constants.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaselineSiteJoinprefix = void 0;
|
|
4
|
-
exports.BaselineSiteJoinprefix = '__';
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PREFIXES = exports.BaselineSiteJoinprefix = void 0;
|
|
4
|
+
exports.BaselineSiteJoinprefix = '__';
|
|
5
|
+
exports.PREFIXES = {
|
|
6
|
+
BASELINE: exports.BaselineSiteJoinprefix,
|
|
7
|
+
DELETED: '____DELETED____',
|
|
8
|
+
ORIGINAL: '____ORIGINAL____',
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=C:/Users/darek/projects/npm/tnp-helpers/tmp-bundle-release/bundle/project/tnp-helpers/bundle-nocutsrc/lib/constants.js.map
|
package/lib/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,IAAI,CAAC;AAE9B,QAAA,QAAQ,GAAG;IACtB,QAAQ,EAAE,8BAAsB;IAChC,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,kBAAkB;CAC7B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function dummy1668426219857(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
exports.
|
|
6
|
-
//# sourceMappingURL
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dummy1668426219857 = void 0;
|
|
4
|
+
function dummy1668426219857() { }
|
|
5
|
+
exports.dummy1668426219857 = dummy1668426219857;
|
|
6
|
+
//# sourceMappingURL=C:/Users/darek/projects/npm/tnp-helpers/tmp-bundle-release/bundle/project/tnp-helpers/bundle-nocutsrc/lib/dual-component-ctrl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dual-component-ctrl.js","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"dual-component-ctrl.js","sourceRoot":"","sources":["../../src/lib/dual-component-ctrl.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,KAAK,CAAC;AAAxC,gDAAwC"}
|
package/lib/git-project.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { child_process } from 'tnp-core';
|
|
2
|
-
import { Project } from './project';
|
|
3
|
-
import { RunOptions, ExecuteOptions } from 'tnp-core';
|
|
4
|
-
export declare abstract class ProjectGit {
|
|
5
|
-
runCommandGetString(this: Project, command: string): string;
|
|
6
|
-
execute(this: Project, command: string, options?: ExecuteOptions & {
|
|
7
|
-
showCommand?: boolean;
|
|
8
|
-
}): Promise<unknown>;
|
|
9
|
-
run(this: Project, command: string, options?: RunOptions): {
|
|
10
|
-
sync(): string;
|
|
11
|
-
async(detach?: boolean): child_process.ChildProcess;
|
|
12
|
-
asyncAsPromise(): any;
|
|
13
|
-
unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[]): Promise<any>;
|
|
14
|
-
};
|
|
15
|
-
get git(this: Project): {
|
|
16
|
-
clone(url: string, destinationFolderName?: string): void;
|
|
17
|
-
restoreLastVersion(localFilePath: string): void;
|
|
18
|
-
resetFiles(...relativePathes: string[]): void;
|
|
19
|
-
readonly isGitRepo: boolean;
|
|
20
|
-
readonly isGitRoot: boolean;
|
|
21
|
-
readonly originURL: string;
|
|
22
|
-
updateOrigin(askToRetry?: boolean): Promise<void>;
|
|
23
|
-
commit(args?: string): void;
|
|
24
|
-
pushCurrentBranch(force?: boolean, origin?: string): void;
|
|
25
|
-
readonly thereAreSomeUncommitedChange: boolean;
|
|
26
|
-
thereAreSomeUncommitedChangeExcept(filesList?: string[]): boolean;
|
|
27
|
-
pullCurrentBranch(askToRetry?: boolean): Promise<void>;
|
|
28
|
-
readonly currentBranchName: string;
|
|
29
|
-
getBranchesNamesBy(pattern: string | RegExp): string[];
|
|
30
|
-
resetHard(): void;
|
|
31
|
-
countComits(): number;
|
|
32
|
-
lastCommitDate(): Date;
|
|
33
|
-
lastCommitHash(): string;
|
|
34
|
-
lastCommitMessage(): string;
|
|
35
|
-
penultimageCommitHash(): string;
|
|
36
|
-
checkTagExists(tag: string): boolean;
|
|
37
|
-
lastTagHash(): string;
|
|
38
|
-
readonly lastTagVersionName: string;
|
|
39
|
-
/**
|
|
40
|
-
* TODO does this make any sense
|
|
41
|
-
*/
|
|
42
|
-
renameOrigin(newNameOrUlr: string): void;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
1
|
+
import { child_process } from 'tnp-core';
|
|
2
|
+
import { Project } from './project';
|
|
3
|
+
import { RunOptions, ExecuteOptions } from 'tnp-core';
|
|
4
|
+
export declare abstract class ProjectGit {
|
|
5
|
+
runCommandGetString(this: Project, command: string): string;
|
|
6
|
+
execute(this: Project, command: string, options?: ExecuteOptions & {
|
|
7
|
+
showCommand?: boolean;
|
|
8
|
+
}): Promise<unknown>;
|
|
9
|
+
run(this: Project, command: string, options?: RunOptions): {
|
|
10
|
+
sync(): string;
|
|
11
|
+
async(detach?: boolean): child_process.ChildProcess;
|
|
12
|
+
asyncAsPromise(): any;
|
|
13
|
+
unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[]): Promise<any>;
|
|
14
|
+
};
|
|
15
|
+
get git(this: Project): {
|
|
16
|
+
clone(url: string, destinationFolderName?: string): void;
|
|
17
|
+
restoreLastVersion(localFilePath: string): void;
|
|
18
|
+
resetFiles(...relativePathes: string[]): void;
|
|
19
|
+
readonly isGitRepo: boolean;
|
|
20
|
+
readonly isGitRoot: boolean;
|
|
21
|
+
readonly originURL: string;
|
|
22
|
+
updateOrigin(askToRetry?: boolean): Promise<void>;
|
|
23
|
+
commit(args?: string): void;
|
|
24
|
+
pushCurrentBranch(force?: boolean, origin?: string): void;
|
|
25
|
+
readonly thereAreSomeUncommitedChange: boolean;
|
|
26
|
+
thereAreSomeUncommitedChangeExcept(filesList?: string[]): boolean;
|
|
27
|
+
pullCurrentBranch(askToRetry?: boolean): Promise<void>;
|
|
28
|
+
readonly currentBranchName: string;
|
|
29
|
+
getBranchesNamesBy(pattern: string | RegExp): string[];
|
|
30
|
+
resetHard(): void;
|
|
31
|
+
countComits(): number;
|
|
32
|
+
lastCommitDate(): Date;
|
|
33
|
+
lastCommitHash(): string;
|
|
34
|
+
lastCommitMessage(): string;
|
|
35
|
+
penultimageCommitHash(): string;
|
|
36
|
+
checkTagExists(tag: string): boolean;
|
|
37
|
+
lastTagHash(): string;
|
|
38
|
+
readonly lastTagVersionName: string;
|
|
39
|
+
/**
|
|
40
|
+
* TODO does this make any sense
|
|
41
|
+
*/
|
|
42
|
+
renameOrigin(newNameOrUlr: string): void;
|
|
43
|
+
};
|
|
44
|
+
}
|