tnp-core 13.1.58 → 13.1.61
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/README.md +5 -5
- package/app.js +3 -3
- package/browser/README.md +24 -24
- package/browser/esm2020/lib/core-config.mjs +6 -6
- package/browser/esm2020/lib/core-imports.mjs +78 -77
- package/browser/esm2020/lib/core-models.mjs +3 -3
- package/browser/esm2020/lib/framework-name.mjs +10 -0
- package/browser/esm2020/lib/helpers-isomorphic.mjs +35 -35
- package/browser/esm2020/lib/helpers-messages.mjs +454 -453
- package/browser/esm2020/lib/helpers.mjs +1163 -1055
- package/browser/esm2020/lib/index.mjs +11 -10
- package/browser/esm2020/lib/progress-data.mjs +51 -51
- package/browser/esm2020/public-api.mjs +1 -1
- package/browser/esm2020/tnp-core.mjs +4 -4
- package/browser/fesm2015/tnp-core.mjs +1770 -1649
- package/browser/fesm2020/tnp-core.mjs +1768 -1647
- package/browser/lib/core-config.d.ts +4 -4
- package/browser/lib/core-imports.d.ts +7 -6
- package/browser/lib/core-models.d.ts +41 -41
- package/browser/lib/framework-name.d.ts +3 -0
- package/browser/lib/helpers-isomorphic.d.ts +5 -5
- package/browser/lib/helpers-messages.d.ts +16 -16
- package/browser/lib/helpers.d.ts +49 -45
- package/browser/lib/index.d.ts +7 -6
- package/browser/lib/progress-data.d.ts +17 -17
- package/browser/tnp-core.d.ts +4 -4
- package/cli.backend.js +3 -3
- package/client/README.md +24 -24
- package/client/esm2020/lib/core-config.mjs +6 -6
- package/client/esm2020/lib/core-imports.mjs +78 -77
- package/client/esm2020/lib/core-models.mjs +3 -3
- package/client/esm2020/lib/framework-name.mjs +10 -0
- package/client/esm2020/lib/helpers-isomorphic.mjs +35 -35
- package/client/esm2020/lib/helpers-messages.mjs +454 -453
- package/client/esm2020/lib/helpers.mjs +1163 -1055
- package/client/esm2020/lib/index.mjs +11 -10
- package/client/esm2020/lib/progress-data.mjs +51 -51
- package/client/esm2020/public-api.mjs +1 -1
- package/client/esm2020/tnp-core.mjs +4 -4
- package/client/fesm2015/tnp-core.mjs +1770 -1649
- package/client/fesm2020/tnp-core.mjs +1768 -1647
- package/client/lib/core-config.d.ts +4 -4
- package/client/lib/core-imports.d.ts +7 -6
- package/client/lib/core-models.d.ts +41 -41
- package/client/lib/framework-name.d.ts +3 -0
- package/client/lib/helpers-isomorphic.d.ts +5 -5
- package/client/lib/helpers-messages.d.ts +16 -16
- package/client/lib/helpers.d.ts +49 -45
- package/client/lib/index.d.ts +7 -6
- package/client/lib/progress-data.d.ts +17 -17
- package/client/tnp-core.d.ts +4 -4
- package/index.d.ts +1 -1
- package/lib/core-config.d.ts +5 -5
- package/lib/core-imports.d.ts +31 -31
- package/lib/core-imports.js +3 -3
- package/lib/core-models.d.ts +42 -42
- package/lib/framework-name.d.ts +2 -0
- package/lib/framework-name.js +13 -0
- package/lib/helpers-isomorphic.d.ts +6 -6
- package/lib/helpers-messages.d.ts +17 -17
- package/lib/helpers.d.ts +129 -127
- package/lib/helpers.js +131 -5
- package/lib/index.d.ts +8 -7
- package/lib/index.js +1 -0
- package/lib/progress-data.d.ts +18 -18
- package/lib/public-api.d.ts +7 -7
- package/package.json +2 -2
- package/package.json_devDependencies.json +202 -202
- package/package.json_tnp.json5 +65 -65
- package/tmp-environment.json +15 -14
- package/websql/README.md +24 -24
- package/websql/esm2020/lib/core-config.mjs +6 -6
- package/websql/esm2020/lib/core-imports.mjs +84 -82
- package/websql/esm2020/lib/core-models.mjs +3 -3
- package/websql/esm2020/lib/framework-name.mjs +10 -0
- package/websql/esm2020/lib/helpers-isomorphic.mjs +34 -34
- package/websql/esm2020/lib/helpers-messages.mjs +454 -453
- package/websql/esm2020/lib/helpers.mjs +1161 -1055
- package/websql/esm2020/lib/index.mjs +11 -10
- package/websql/esm2020/lib/progress-data.mjs +51 -51
- package/websql/esm2020/public-api.mjs +1 -1
- package/websql/esm2020/tnp-core.mjs +4 -4
- package/websql/fesm2015/tnp-core.mjs +1766 -1647
- package/websql/fesm2020/tnp-core.mjs +1764 -1645
- package/websql/lib/core-config.d.ts +4 -4
- package/websql/lib/core-imports.d.ts +8 -7
- package/websql/lib/core-models.d.ts +41 -41
- package/websql/lib/framework-name.d.ts +3 -0
- package/websql/lib/helpers-isomorphic.d.ts +5 -5
- package/websql/lib/helpers-messages.d.ts +16 -16
- package/websql/lib/helpers.d.ts +49 -45
- package/websql/lib/index.d.ts +7 -6
- package/websql/lib/progress-data.d.ts +17 -17
- package/websql/tnp-core.d.ts +4 -4
package/lib/helpers.d.ts
CHANGED
@@ -1,127 +1,129 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
import { child_process } from './core-imports';
|
3
|
-
import { HelpersMessages } from './helpers-messages';
|
4
|
-
import { ExecuteOptions, RunOptions } from './core-models';
|
5
|
-
export interface RunSyncOrAsyncOptions {
|
6
|
-
functionFn: Function;
|
7
|
-
context?: object;
|
8
|
-
arrayOfParams?: any[];
|
9
|
-
}
|
10
|
-
export interface CommandOutputOptions {
|
11
|
-
biggerBuffer?: boolean;
|
12
|
-
showWholeCommandNotOnlyLastLine?: boolean;
|
13
|
-
showStder?: boolean;
|
14
|
-
gatherColors?: boolean;
|
15
|
-
showErrorWarning?: boolean;
|
16
|
-
}
|
17
|
-
export declare class HelpersCore extends HelpersMessages {
|
18
|
-
private static _instanceCore;
|
19
|
-
static get InstanceCore(): HelpersCore;
|
20
|
-
remove(fileOrFolderPathOrPatter: string | string[], exactFolder?: boolean): void;
|
21
|
-
cleanExit(): void;
|
22
|
-
readonly bigMaxBuffer: number;
|
23
|
-
constructor();
|
24
|
-
removeSlashAtEnd(s: string): string;
|
25
|
-
removeSlashAtBegin(s: string): string;
|
26
|
-
stringify(inputObject: any): string;
|
27
|
-
runSyncOrAsync(fnOrOptions: Function | [string, object] | RunSyncOrAsyncOptions, ...firstArg: any[]): Promise<any>;
|
28
|
-
readonly processes: child_process.ChildProcess[];
|
29
|
-
createSymLink(existedFileOrFolder: string, destinationPath: string, options?: {
|
30
|
-
continueWhenExistedFolderDoesntExists?: boolean;
|
31
|
-
windowsHardLink?: boolean;
|
32
|
-
dontRenameWhenSlashAtEnd?: boolean;
|
33
|
-
allowNotAbsolutePathes?: boolean;
|
34
|
-
/**
|
35
|
-
* only if you know that symlink can be created
|
36
|
-
*/
|
37
|
-
speedUpProcess?: boolean;
|
38
|
-
}): void;
|
39
|
-
mkdirp(folderPath: string | string[]): void;
|
40
|
-
/**
|
41
|
-
* symlink may have existed or unexisted destiantion url
|
42
|
-
* @param destUrl M
|
43
|
-
*/
|
44
|
-
isSymlinkThatMatchesUrl(possibleSymlink: string, destUrl: string, absoluteFileMatch?: boolean): boolean;
|
45
|
-
isSymlinkFileExitedOrUnexisted(filePath: string): boolean;
|
46
|
-
/**
|
47
|
-
* If symbolnk link that target file does not exits
|
48
|
-
*/
|
49
|
-
isUnexistedLink(filePath: string): boolean;
|
50
|
-
/**
|
51
|
-
* @param existedLink check if source of link exists
|
52
|
-
*/
|
53
|
-
isExistedSymlink(filePath: string): boolean;
|
54
|
-
pathContainLink(p: string): boolean;
|
55
|
-
exists(folderOrFilePath: string | string[]): boolean;
|
56
|
-
_fixCommand(command: string): string;
|
57
|
-
command(command: string): {
|
58
|
-
getherOutput(options?: {
|
59
|
-
ommitStder?: boolean;
|
60
|
-
cwd?: string;
|
61
|
-
biggerBuffer?: boolean;
|
62
|
-
gatherColors?: boolean;
|
63
|
-
}): Promise<string>;
|
64
|
-
};
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { child_process } from './core-imports';
|
3
|
+
import { HelpersMessages } from './helpers-messages';
|
4
|
+
import { ExecuteOptions, RunOptions } from './core-models';
|
5
|
+
export interface RunSyncOrAsyncOptions {
|
6
|
+
functionFn: Function;
|
7
|
+
context?: object;
|
8
|
+
arrayOfParams?: any[];
|
9
|
+
}
|
10
|
+
export interface CommandOutputOptions {
|
11
|
+
biggerBuffer?: boolean;
|
12
|
+
showWholeCommandNotOnlyLastLine?: boolean;
|
13
|
+
showStder?: boolean;
|
14
|
+
gatherColors?: boolean;
|
15
|
+
showErrorWarning?: boolean;
|
16
|
+
}
|
17
|
+
export declare class HelpersCore extends HelpersMessages {
|
18
|
+
private static _instanceCore;
|
19
|
+
static get InstanceCore(): HelpersCore;
|
20
|
+
remove(fileOrFolderPathOrPatter: string | string[], exactFolder?: boolean): void;
|
21
|
+
cleanExit(): void;
|
22
|
+
readonly bigMaxBuffer: number;
|
23
|
+
constructor();
|
24
|
+
removeSlashAtEnd(s: string): string;
|
25
|
+
removeSlashAtBegin(s: string): string;
|
26
|
+
stringify(inputObject: any): string;
|
27
|
+
runSyncOrAsync(fnOrOptions: Function | [string, object] | RunSyncOrAsyncOptions, ...firstArg: any[]): Promise<any>;
|
28
|
+
readonly processes: child_process.ChildProcess[];
|
29
|
+
createSymLink(existedFileOrFolder: string, destinationPath: string, options?: {
|
30
|
+
continueWhenExistedFolderDoesntExists?: boolean;
|
31
|
+
windowsHardLink?: boolean;
|
32
|
+
dontRenameWhenSlashAtEnd?: boolean;
|
33
|
+
allowNotAbsolutePathes?: boolean;
|
34
|
+
/**
|
35
|
+
* only if you know that symlink can be created
|
36
|
+
*/
|
37
|
+
speedUpProcess?: boolean;
|
38
|
+
}): void;
|
39
|
+
mkdirp(folderPath: string | string[]): void;
|
40
|
+
/**
|
41
|
+
* symlink may have existed or unexisted destiantion url
|
42
|
+
* @param destUrl M
|
43
|
+
*/
|
44
|
+
isSymlinkThatMatchesUrl(possibleSymlink: string, destUrl: string, absoluteFileMatch?: boolean): boolean;
|
45
|
+
isSymlinkFileExitedOrUnexisted(filePath: string): boolean;
|
46
|
+
/**
|
47
|
+
* If symbolnk link that target file does not exits
|
48
|
+
*/
|
49
|
+
isUnexistedLink(filePath: string): boolean;
|
50
|
+
/**
|
51
|
+
* @param existedLink check if source of link exists
|
52
|
+
*/
|
53
|
+
isExistedSymlink(filePath: string): boolean;
|
54
|
+
pathContainLink(p: string): boolean;
|
55
|
+
exists(folderOrFilePath: string | string[]): boolean;
|
56
|
+
_fixCommand(command: string): string;
|
57
|
+
command(command: string): {
|
58
|
+
getherOutput(options?: {
|
59
|
+
ommitStder?: boolean;
|
60
|
+
cwd?: string;
|
61
|
+
biggerBuffer?: boolean;
|
62
|
+
gatherColors?: boolean;
|
63
|
+
}): Promise<string>;
|
64
|
+
};
|
65
|
+
wait(second: number): Promise<unknown>;
|
66
|
+
commnadOutputAsStringAsync(command: string, cwd?: string, options?: CommandOutputOptions): Promise<string>;
|
67
|
+
commnadOutputAsString(command: string, cwd?: string, options?: CommandOutputOptions): string;
|
68
|
+
killProcess(byPid: number): void;
|
69
|
+
run(command: string, options?: RunOptions): {
|
70
|
+
sync(): string;
|
71
|
+
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number): any;
|
72
|
+
asyncAsPromise(): any;
|
73
|
+
unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[]): Promise<any>;
|
74
|
+
};
|
75
|
+
get isRunningIn(): {
|
76
|
+
mochaTest(): boolean;
|
77
|
+
cliMode(): boolean;
|
78
|
+
};
|
79
|
+
getStdio(options?: RunOptions): any;
|
80
|
+
runSyncIn(command: string, options?: RunOptions): string;
|
81
|
+
runAsyncIn(command: string, options?: RunOptions): child_process.ChildProcess;
|
82
|
+
logProc(proc: child_process.ChildProcess, output: boolean, stdio: any, outputLineReplace: (outputLine: string) => string, prefix: string, extractFromLine?: (string | Function)[]): child_process.ChildProcess;
|
83
|
+
execute(command: string, cwd: string, options?: ExecuteOptions): Promise<unknown>;
|
84
|
+
checkProcess(dirPath: string, command: string): void;
|
85
|
+
modifyLineByLine(data: string | Buffer | Error, outputLineReplace: (outputLine: string) => string, prefix: string, extractFromLine?: (string | Function)[]): string;
|
86
|
+
isFolder(pathToFileOrMaybeFolder: string): boolean;
|
87
|
+
/**
|
88
|
+
* Quick fix for object values
|
89
|
+
*/
|
90
|
+
values(obj: any): any[];
|
91
|
+
/**
|
92
|
+
* does not make sense
|
93
|
+
*/
|
94
|
+
private isFile;
|
95
|
+
/**
|
96
|
+
* wrapper for fs.readFileSync
|
97
|
+
*/
|
98
|
+
readFile(absoluteFilePath: string | string[], defaultValueWhenNotExists?: string, notTrim?: boolean): string | undefined;
|
99
|
+
readJson(absoluteFilePath: string | string[], defaultValue?: {}, useJson5?: boolean): any;
|
100
|
+
parse<T = any>(jsonInstring: string, useJson5?: boolean): T;
|
101
|
+
compilationWrapper(fn: () => void, taskName?: string, executionType?: 'Compilation of' | 'Code execution of' | 'Event:'): Promise<void>;
|
102
|
+
/**
|
103
|
+
* wrapper for fs.writeFileSync
|
104
|
+
*/
|
105
|
+
writeFile(absoluteFilePath: string | (string[]), input: string | object, options?: {
|
106
|
+
overrideSameFile?: boolean;
|
107
|
+
preventParentFile?: boolean;
|
108
|
+
}): boolean;
|
109
|
+
/**
|
110
|
+
* wrapper for fs.writeFileSync
|
111
|
+
*/
|
112
|
+
writeJson(absoluteFilePath: string | (string[]), input: object, optoins?: {
|
113
|
+
preventParentFile?: boolean;
|
114
|
+
}): boolean;
|
115
|
+
/**
|
116
|
+
* return absolute paths for folders inside folders
|
117
|
+
*/
|
118
|
+
foldersFrom(pathToFolder: string | string[]): string[];
|
119
|
+
linksToFoldersFrom(pathToFolder: string | string[], outputRealPath?: boolean): string[];
|
120
|
+
/**
|
121
|
+
* return absolute paths for folders inside folders
|
122
|
+
*/
|
123
|
+
linksToFolderFrom(pathToFolder: string | string[]): string[];
|
124
|
+
/**
|
125
|
+
* return absolute paths for folders inside folders
|
126
|
+
*/
|
127
|
+
filesFrom(pathToFolder: string | string[], recrusive?: boolean): string[];
|
128
|
+
openFolderInFileExploer(folderPath: string): void;
|
129
|
+
}
|
package/lib/helpers.js
CHANGED
@@ -8,6 +8,8 @@ var helpers_messages_1 = require("./helpers-messages");
|
|
8
8
|
var encoding = 'utf8';
|
9
9
|
//#region @backend
|
10
10
|
var trace = !global.hideLog;
|
11
|
+
var WEBSQL_PROC_MOCK_PROCESSES_PID = {};
|
12
|
+
var WEBSQL_PROC_MOCK_PROCESSES_PPID = {};
|
11
13
|
var HelpersCore = /** @class */ (function (_super) {
|
12
14
|
tslib_1.__extends(HelpersCore, _super);
|
13
15
|
function HelpersCore() {
|
@@ -263,7 +265,7 @@ var HelpersCore = /** @class */ (function (_super) {
|
|
263
265
|
index_1.Helpers.remove(folderPath);
|
264
266
|
}
|
265
267
|
if (core_imports_1.fse.existsSync(folderPath)) {
|
266
|
-
index_1.Helpers.
|
268
|
+
index_1.Helpers.log("[firedev-core][mkdirp] folder path already exists: ".concat(folderPath));
|
267
269
|
}
|
268
270
|
else {
|
269
271
|
// if(Helpers.isSymlinkFileExitedOrUnexisted(folderPath)) {
|
@@ -445,6 +447,13 @@ var HelpersCore = /** @class */ (function (_super) {
|
|
445
447
|
//#endregion
|
446
448
|
};
|
447
449
|
};
|
450
|
+
HelpersCore.prototype.wait = function (second) {
|
451
|
+
return new Promise(function (resolve, reject) {
|
452
|
+
setTimeout(function () {
|
453
|
+
resolve(void 0);
|
454
|
+
}, second * 1000);
|
455
|
+
});
|
456
|
+
};
|
448
457
|
//#region command output as string async
|
449
458
|
//#region @backend
|
450
459
|
HelpersCore.prototype.commnadOutputAsStringAsync = function (command, cwd, options) {
|
@@ -526,20 +535,43 @@ var HelpersCore = /** @class */ (function (_super) {
|
|
526
535
|
};
|
527
536
|
//#endregion
|
528
537
|
//#endregion
|
538
|
+
HelpersCore.prototype.killProcess = function (byPid) {
|
539
|
+
/* */
|
540
|
+
/* */
|
541
|
+
/* */
|
542
|
+
/* */
|
543
|
+
/* */
|
544
|
+
/* */
|
545
|
+
/* */
|
546
|
+
/* */
|
547
|
+
/* */
|
548
|
+
/* */
|
549
|
+
/* */
|
550
|
+
/* */
|
551
|
+
/* */
|
552
|
+
/* */
|
553
|
+
/* */
|
554
|
+
/* */
|
555
|
+
/* */
|
556
|
+
/* */
|
557
|
+
//#region @backend
|
558
|
+
index_1.Helpers.run("kill -9 ".concat(byPid)).sync();
|
559
|
+
//#endregion
|
560
|
+
};
|
529
561
|
HelpersCore.prototype.run = function (command, options) {
|
530
562
|
command = index_1.Helpers._fixCommand(command);
|
531
563
|
// console.log({ command })
|
532
564
|
//#region @backend
|
533
565
|
if (!options)
|
534
566
|
options = {};
|
535
|
-
if (options.output ===
|
567
|
+
if (options.output === void 0)
|
536
568
|
options.output = true;
|
537
|
-
if (options.biggerBuffer ===
|
569
|
+
if (options.biggerBuffer === void 0)
|
538
570
|
options.biggerBuffer = false;
|
539
|
-
if (options.cwd ===
|
571
|
+
if (options.cwd === void 0)
|
540
572
|
options.cwd = (0, core_imports_1.crossPlatformPath)(process.cwd());
|
541
573
|
if (!core_imports_1._.isString(command)) {
|
542
|
-
index_1.Helpers.error("[
|
574
|
+
index_1.Helpers.error("[firedev-helpers] command is not a string");
|
543
575
|
}
|
544
576
|
//#endregion
|
545
577
|
return {
|
@@ -560,11 +592,103 @@ var HelpersCore = /** @class */ (function (_super) {
|
|
560
592
|
}
|
561
593
|
return index_1.Helpers.runSyncIn(command, options);
|
562
594
|
},
|
595
|
+
//#endregion
|
596
|
+
//#region websql
|
563
597
|
async: function (detach) {
|
598
|
+
//#region mock of process
|
599
|
+
/* */
|
600
|
+
/* */
|
601
|
+
/* */
|
602
|
+
/* */
|
603
|
+
/* */
|
604
|
+
/* */
|
605
|
+
/* */
|
606
|
+
/* */
|
607
|
+
/* */
|
608
|
+
/* */
|
609
|
+
/* */
|
610
|
+
/* */
|
611
|
+
/* */
|
612
|
+
/* */
|
613
|
+
/* */
|
614
|
+
/* */
|
615
|
+
/* */
|
616
|
+
/* */
|
617
|
+
/* */
|
618
|
+
/* */
|
619
|
+
/* */
|
620
|
+
/* */
|
621
|
+
/* */
|
622
|
+
/* */
|
623
|
+
/* */
|
624
|
+
/* */
|
625
|
+
/* */
|
626
|
+
/* */
|
627
|
+
/* */
|
628
|
+
/* */
|
629
|
+
/* */
|
630
|
+
/* */
|
631
|
+
/* */
|
632
|
+
/* */
|
633
|
+
/* */
|
634
|
+
/* */
|
635
|
+
/* */
|
636
|
+
/* */
|
637
|
+
/* */
|
638
|
+
/* */
|
639
|
+
/* */
|
640
|
+
/* */
|
641
|
+
/* */
|
642
|
+
/* */
|
643
|
+
/* */
|
644
|
+
/* */
|
645
|
+
/* */
|
646
|
+
/* */
|
647
|
+
/* */
|
648
|
+
/* */
|
649
|
+
/* */
|
650
|
+
/* */
|
651
|
+
/* */
|
652
|
+
/* */
|
653
|
+
/* */
|
654
|
+
/* */
|
655
|
+
/* */
|
656
|
+
/* */
|
657
|
+
/* */
|
658
|
+
/* */
|
659
|
+
/* */
|
660
|
+
/* */
|
661
|
+
/* */
|
662
|
+
/* */
|
663
|
+
/* */
|
664
|
+
/* */
|
665
|
+
/* */
|
666
|
+
/* */
|
667
|
+
/* */
|
668
|
+
/* */
|
669
|
+
/* */
|
670
|
+
/* */
|
671
|
+
/* */
|
672
|
+
/* */
|
673
|
+
/* */
|
674
|
+
/* */
|
675
|
+
/* */
|
676
|
+
/* */
|
677
|
+
/* */
|
678
|
+
/* */
|
679
|
+
/* */
|
680
|
+
/* */
|
681
|
+
/* */
|
682
|
+
/* */
|
564
683
|
if (detach === void 0) { detach = false; }
|
684
|
+
//#endregion
|
685
|
+
//#region @backendFunc
|
565
686
|
options.detach = detach;
|
566
687
|
return index_1.Helpers.runAsyncIn(command, options);
|
688
|
+
//#endregion
|
567
689
|
},
|
690
|
+
//#endregion
|
691
|
+
//#region @backend
|
568
692
|
asyncAsPromise: function () {
|
569
693
|
var isResolved = false;
|
570
694
|
return new Promise(function (resolve, reject) {
|
@@ -583,6 +707,8 @@ var HelpersCore = /** @class */ (function (_super) {
|
|
583
707
|
});
|
584
708
|
});
|
585
709
|
},
|
710
|
+
//#endregion
|
711
|
+
//#region @backend
|
586
712
|
unitlOutputContains: function (stdoutMsg, stderMsg) {
|
587
713
|
var isResolved = false;
|
588
714
|
return new Promise(function (resolve, reject) {
|
package/lib/index.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
export * from './
|
2
|
-
export * from './core-
|
3
|
-
|
4
|
-
|
5
|
-
export * from './
|
6
|
-
export
|
7
|
-
export
|
1
|
+
export * from './framework-name';
|
2
|
+
export * from './core-imports';
|
3
|
+
export * from './core-models';
|
4
|
+
import { HelpersCore as Base } from './helpers';
|
5
|
+
export * from './core-config';
|
6
|
+
export * from './progress-data';
|
7
|
+
export { HelpersCore as CoreHelpers } from './helpers';
|
8
|
+
export declare let Helpers: Base;
|
package/lib/index.js
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.Helpers = exports.CoreHelpers = void 0;
|
4
4
|
var tslib_1 = require("tslib");
|
5
|
+
tslib_1.__exportStar(require("./framework-name"), exports);
|
5
6
|
tslib_1.__exportStar(require("./core-imports"), exports);
|
6
7
|
tslib_1.__exportStar(require("./core-models"), exports);
|
7
8
|
var helpers_1 = require("./helpers");
|
package/lib/progress-data.d.ts
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { PROGRESS_DATA_TYPE } from './core-models';
|
2
|
-
export interface IPROGRESS_DATA {
|
3
|
-
/**
|
4
|
-
* How man percent of
|
5
|
-
*/
|
6
|
-
value?: number;
|
7
|
-
msg?: string;
|
8
|
-
type?: PROGRESS_DATA_TYPE;
|
9
|
-
date?: Date;
|
10
|
-
}
|
11
|
-
export declare class PROGRESS_DATA implements IPROGRESS_DATA {
|
12
|
-
static log(log: IPROGRESS_DATA): void;
|
13
|
-
static resolveFrom(chunk: string, callbackOnFounded?: (json: PROGRESS_DATA) => any, checkSplit?: boolean): PROGRESS_DATA[];
|
14
|
-
value?: number;
|
15
|
-
msg?: string;
|
16
|
-
type: PROGRESS_DATA_TYPE;
|
17
|
-
date?: Date;
|
18
|
-
}
|
1
|
+
import { PROGRESS_DATA_TYPE } from './core-models';
|
2
|
+
export interface IPROGRESS_DATA {
|
3
|
+
/**
|
4
|
+
* How man percent of
|
5
|
+
*/
|
6
|
+
value?: number;
|
7
|
+
msg?: string;
|
8
|
+
type?: PROGRESS_DATA_TYPE;
|
9
|
+
date?: Date;
|
10
|
+
}
|
11
|
+
export declare class PROGRESS_DATA implements IPROGRESS_DATA {
|
12
|
+
static log(log: IPROGRESS_DATA): void;
|
13
|
+
static resolveFrom(chunk: string, callbackOnFounded?: (json: PROGRESS_DATA) => any, checkSplit?: boolean): PROGRESS_DATA[];
|
14
|
+
value?: number;
|
15
|
+
msg?: string;
|
16
|
+
type: PROGRESS_DATA_TYPE;
|
17
|
+
date?: Date;
|
18
|
+
}
|
package/lib/public-api.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
export * from './core-imports';
|
2
|
-
export * from './core-models';
|
3
|
-
import { HelpersCore as Base } from './helpers';
|
4
|
-
export * from './core-config';
|
5
|
-
export * from './progress-data';
|
6
|
-
export { HelpersCore as CoreHelpers } from './helpers';
|
7
|
-
export declare let Helpers: Base;
|
1
|
+
export * from './core-imports';
|
2
|
+
export * from './core-models';
|
3
|
+
import { HelpersCore as Base } from './helpers';
|
4
|
+
export * from './core-config';
|
5
|
+
export * from './progress-data';
|
6
|
+
export { HelpersCore as CoreHelpers } from './helpers';
|
7
|
+
export declare let Helpers: Base;
|
package/package.json
CHANGED