tnp-core 16.100.19 → 16.100.20
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/core-models.mjs +2 -1
- package/browser/esm2022/lib/helpers.mjs +142 -131
- package/browser/fesm2022/tnp-core.mjs +142 -130
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/core-models.d.ts +3 -1
- package/browser/lib/helpers.d.ts +17 -0
- package/cli.backend.js +3 -3
- package/client/esm2022/lib/core-models.mjs +2 -1
- package/client/esm2022/lib/helpers.mjs +142 -131
- package/client/fesm2022/tnp-core.mjs +142 -130
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/core-models.d.ts +3 -1
- package/client/lib/helpers.d.ts +17 -0
- package/client/package.json +30 -30
- package/lib/core-models.d.ts +3 -1
- package/lib/core-models.js +1 -0
- package/lib/core-models.js.map +1 -1
- package/lib/helpers-messages.js +2 -2
- package/lib/helpers-messages.js.map +1 -1
- package/lib/helpers.d.ts +15 -1
- package/lib/helpers.js +21 -8
- package/lib/helpers.js.map +1 -1
- package/lib/node-chalk-mock.js +3 -3
- package/lib/node-path-mock.js +3 -3
- package/package.json +2 -2
- package/tmp-environment.json +34 -34
- package/websql/esm2022/lib/core-models.mjs +2 -1
- package/websql/esm2022/lib/helpers.mjs +142 -131
- package/websql/fesm2022/tnp-core.mjs +142 -130
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/core-models.d.ts +3 -1
- package/websql/lib/helpers.d.ts +17 -0
@@ -12,7 +12,9 @@ export declare namespace CoreModels {
|
|
12
12
|
export type HttpMethod = 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'jsonp';
|
13
13
|
export type ParamType = 'Path' | 'Query' | 'Cookie' | 'Header' | 'Body';
|
14
14
|
export type TsUsage = 'import' | 'export';
|
15
|
-
export type
|
15
|
+
export type BaseProjectType = 'typescript' | 'angular' | 'angular-lib' | 'unknow' | 'unknow-npm-project';
|
16
|
+
export const BaseProjectTypeArr: string[];
|
17
|
+
export type LibType = BaseProjectType | 'isomorphic-lib' | 'container' | 'docker' | 'vscode-ext' | 'chrome-ext' | 'unknow-npm-project';
|
16
18
|
export type NewFactoryType = LibType | 'model' | 'single-file-project';
|
17
19
|
export type CoreLibCategory = LibType | 'common';
|
18
20
|
export type FileEvent = 'created' | 'changed' | 'removed' | 'rename';
|
package/websql/lib/helpers.d.ts
CHANGED
@@ -102,7 +102,24 @@ export declare class HelpersCore extends HelpersMessages {
|
|
102
102
|
}): Promise<any>;
|
103
103
|
killProcess(byPid: number): void;
|
104
104
|
run(command: string, options?: CoreModels.RunOptions): {
|
105
|
+
/**
|
106
|
+
* start command as synchronous nodej proces
|
107
|
+
*/
|
108
|
+
sync(): any;
|
109
|
+
/**
|
110
|
+
* start command as asynchronous nodej proces
|
111
|
+
* @param detach (default: false) - if true process will be detached
|
112
|
+
*/
|
105
113
|
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number): any;
|
114
|
+
/**
|
115
|
+
* start command as asynchronous nodej proces inside promise
|
116
|
+
*/
|
117
|
+
asyncAsPromise(): Promise<void>;
|
118
|
+
/**
|
119
|
+
* start command as asynchronous nodej proces inside promise
|
120
|
+
* and wait until output contains some string
|
121
|
+
*/
|
122
|
+
unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[], timeout?: number, stdoutOutputContainsCallback?: () => any): any;
|
106
123
|
};
|
107
124
|
questionYesNo(message: string, callbackTrue?: () => any, callbackFalse?: () => any, defaultValue?: boolean,
|
108
125
|
/**
|