tnp-core 16.100.22 → 16.444.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/README.md +20 -20
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/browser/esm2022/lib/core-imports.mjs +6 -3
- package/browser/esm2022/lib/core-models.mjs +1 -1
- package/browser/esm2022/lib/helpers.mjs +28 -1
- package/browser/fesm2022/tnp-core.mjs +32 -2
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/core-imports.d.ts +9 -3
- package/browser/lib/core-models.d.ts +1 -1
- package/browser/lib/helpers.d.ts +6 -0
- package/cli.backend.js +3 -3
- package/client/README.md +24 -24
- package/client/esm2022/lib/core-imports.mjs +6 -3
- package/client/esm2022/lib/core-models.mjs +1 -1
- package/client/esm2022/lib/helpers.mjs +28 -1
- package/client/fesm2022/tnp-core.mjs +32 -2
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/core-imports.d.ts +9 -3
- package/client/lib/core-models.d.ts +1 -1
- package/client/lib/helpers.d.ts +6 -0
- package/client/package.json +29 -26
- package/firedev.jsonc +69 -69
- package/lib/core-imports.d.ts +10 -4
- package/lib/core-imports.js +5 -4
- package/lib/core-imports.js.map +1 -1
- package/lib/core-models.d.ts +1 -1
- package/lib/core-models.js.map +1 -1
- package/lib/helpers.d.ts +6 -0
- package/lib/helpers.js +36 -0
- 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 +3 -3
- package/tmp-environment.json +33 -30
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/core-imports.mjs +6 -3
- package/websql/esm2022/lib/core-models.mjs +1 -1
- package/websql/esm2022/lib/helpers.mjs +28 -1
- package/websql/fesm2022/tnp-core.mjs +32 -2
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/core-imports.d.ts +9 -3
- package/websql/lib/core-models.d.ts +1 -1
- package/websql/lib/helpers.d.ts +6 -0
@@ -1,14 +1,20 @@
|
|
1
1
|
// @ts-nocheck
|
2
|
+
/// <reference types="node" />
|
2
3
|
import * as _ from 'lodash';
|
3
4
|
import * as q from 'q';
|
4
5
|
import * as moment from 'moment';
|
5
6
|
import * as dateformat from 'dateformat';
|
6
7
|
import { Chalk } from 'chalk';
|
7
8
|
import * as json5 from 'json5';
|
8
|
-
|
9
|
-
|
9
|
+
import type jQueryType from 'jquery';
|
10
|
+
import type * as pathBaseType from 'path';
|
11
|
+
declare let $: jQueryType;
|
12
|
+
declare let path: pathBaseType.PlatformPath;
|
10
13
|
declare let chalk: Chalk;
|
11
|
-
|
14
|
+
/**
|
15
|
+
* transform unix path to win32 path
|
16
|
+
*/
|
17
|
+
declare const win32Path: (p: string) => string;
|
12
18
|
/**
|
13
19
|
* This funciton will replace // to /
|
14
20
|
*/
|
@@ -5,7 +5,7 @@ export declare namespace CoreModels {
|
|
5
5
|
export type EnvironmentName = 'local' | 'static' | 'dev' | 'stage' | 'prod' | 'online' | 'test' | 'qa' | 'custom';
|
6
6
|
export type PUSHTYPE = 'feat' | 'chore' | 'feature' | 'refactor' | 'perf' | 'styles' | 'ci' | 'build' | 'fix' | 'bugfix' | 'release' | 'docs';
|
7
7
|
export type UIFramework = 'bootstrap' | 'material' | 'ionic';
|
8
|
-
export type FrameworkVersion = 'v1' | 'v2' | 'v3' | 'v4' | '
|
8
|
+
export type FrameworkVersion = 'v1' | 'v2' | 'v3' | 'v4' | 'v16' | 'v18' | 'v18' | 'v20';
|
9
9
|
export type CutableFileExt = 'scss' | 'css' | 'sass' | 'html' | 'ts';
|
10
10
|
export type ImageFileExtension = 'jpg' | 'jpeg' | 'png' | 'svg';
|
11
11
|
export type FileExtension = 'ts' | 'js' | 'json' | 'html' | ImageFileExtension | 'txt' | CutableFileExt;
|
package/client/lib/helpers.d.ts
CHANGED
@@ -50,6 +50,12 @@ export declare class HelpersCore extends HelpersMessages {
|
|
50
50
|
*/
|
51
51
|
tryRemoveDir(dirpath: string, contentOnly?: boolean, omitWarningNotExisted?: boolean): any;
|
52
52
|
remove(fileOrFolderPathOrPatter: string | string[], exactFolder?: boolean): any;
|
53
|
+
private getShell;
|
54
|
+
get isRunningInGitBash(): boolean;
|
55
|
+
/**
|
56
|
+
* Check if the current shell is supported by Firedev framework.
|
57
|
+
*/
|
58
|
+
get isSupportedFiredevTerminal(): boolean;
|
53
59
|
/**
|
54
60
|
* check if function is class
|
55
61
|
*/
|
package/client/package.json
CHANGED
@@ -53,7 +53,7 @@
|
|
53
53
|
"isCoreProject": false,
|
54
54
|
"useFramework": false,
|
55
55
|
"required": [],
|
56
|
-
"version": "
|
56
|
+
"version": "v16",
|
57
57
|
"additionalNpmNames": [
|
58
58
|
"firedev-core"
|
59
59
|
],
|
@@ -171,7 +171,7 @@
|
|
171
171
|
"angular-material-css-vars": "5.0.2",
|
172
172
|
"angular-resize-event": "3.2.0",
|
173
173
|
"animate.css": "4.1.1 ",
|
174
|
-
"any-project-cli": "16.100.
|
174
|
+
"any-project-cli": "16.100.10",
|
175
175
|
"app-root-path": "3.0.0",
|
176
176
|
"background-worker-process": "16.100.10",
|
177
177
|
"base32": "0.0.7",
|
@@ -196,6 +196,7 @@
|
|
196
196
|
"cookie-parser": "1.4.3",
|
197
197
|
"cors": "2.8.4",
|
198
198
|
"cpr": "3.0.1",
|
199
|
+
"cross-env": "7.0.2",
|
199
200
|
"detect-mocha": "0.1.0",
|
200
201
|
"diff": "3.2.0",
|
201
202
|
"electron": "25.2.0",
|
@@ -220,13 +221,13 @@
|
|
220
221
|
"file-saver": "2.0.5",
|
221
222
|
"file-type": "18.5.0",
|
222
223
|
"firedev": "^16",
|
223
|
-
"firedev-crud": "16.100.
|
224
|
-
"firedev-crud-deamon": "16.100.
|
225
|
-
"firedev-ports": "16.100.
|
226
|
-
"firedev-storage": "16.100.
|
227
|
-
"firedev-type-sql": "16.100.
|
228
|
-
"firedev-typeorm": "16.100.
|
229
|
-
"firedev-ui": "16.100.
|
224
|
+
"firedev-crud": "16.100.10",
|
225
|
+
"firedev-crud-deamon": "16.100.9",
|
226
|
+
"firedev-ports": "16.100.10",
|
227
|
+
"firedev-storage": "16.100.6",
|
228
|
+
"firedev-type-sql": "16.100.7",
|
229
|
+
"firedev-typeorm": "16.100.7",
|
230
|
+
"firedev-ui": "16.100.10",
|
230
231
|
"font-awesome": "4.7.0",
|
231
232
|
"form-data": "4.0.0",
|
232
233
|
"fuzzy": "0.1.3",
|
@@ -241,10 +242,10 @@
|
|
241
242
|
"image-focus": "1.2.1",
|
242
243
|
"immer": "10.0.2",
|
243
244
|
"immutable": "4.3.0",
|
244
|
-
"incremental-compiler": "16.100.
|
245
|
+
"incremental-compiler": "16.100.10",
|
245
246
|
"inquirer": "7.3.3",
|
246
247
|
"inquirer-autocomplete-prompt": "1.3.0",
|
247
|
-
"isomorphic-region-loader": "16.100.
|
248
|
+
"isomorphic-region-loader": "16.100.9",
|
248
249
|
"istanbul-instrumenter-loader": "2.0.0",
|
249
250
|
"jest": "29.5.0",
|
250
251
|
"jest-date-mock": "1.0.8",
|
@@ -255,17 +256,17 @@
|
|
255
256
|
"joi": "17.9.2",
|
256
257
|
"jscodeshift": "0.6.3",
|
257
258
|
"json-stringify-safe": "5.0.1",
|
258
|
-
"json10": "16.100.
|
259
|
-
"json10-writer": "16.100.
|
259
|
+
"json10": "16.100.7",
|
260
|
+
"json10-writer": "16.100.10",
|
260
261
|
"json5-writer": "0.2.0",
|
261
262
|
"jszip": "3.10.1",
|
262
263
|
"karma-cli": "1.0.1",
|
263
264
|
"lnk": "1.0.1",
|
264
265
|
"localforage": "1.10.0",
|
265
266
|
"lockfile": "1.0.4",
|
266
|
-
"lodash-walk-object": "16.100.
|
267
|
+
"lodash-walk-object": "16.100.7",
|
267
268
|
"lowdb": "7.0.1",
|
268
|
-
"magic-renamer": "16.100.
|
269
|
+
"magic-renamer": "16.100.9",
|
269
270
|
"material-design-icons": "3.0.1",
|
270
271
|
"method-override": "2.3.10",
|
271
272
|
"minimist": "1.2.0",
|
@@ -275,9 +276,9 @@
|
|
275
276
|
"ng-lock": "16.0.1",
|
276
277
|
"ng-packagr": "16.0.1",
|
277
278
|
"ng-talkback": "16.100.5",
|
278
|
-
"ng2-logger": "16.100.
|
279
|
+
"ng2-logger": "16.100.10",
|
279
280
|
"ng2-pdfjs-viewer": "16.0.4",
|
280
|
-
"ng2-rest": "16.100.
|
281
|
+
"ng2-rest": "16.100.7",
|
281
282
|
"ngx-ace-wrapper": "14.0.0",
|
282
283
|
"ngx-editor": "15.3.0",
|
283
284
|
"ngx-highlightjs": "9.0.0",
|
@@ -325,7 +326,7 @@
|
|
325
326
|
"socket.io": "2.4.1",
|
326
327
|
"sort-package-json": "1.11.0",
|
327
328
|
"sql.js": "1.8.0",
|
328
|
-
"static-columns": "16.100.
|
329
|
+
"static-columns": "16.100.6",
|
329
330
|
"string-similarity": "4.0.2",
|
330
331
|
"sudo-block": "3.0.0",
|
331
332
|
"supertest": "6.3.3",
|
@@ -334,11 +335,11 @@
|
|
334
335
|
"task.js": "0.1.5",
|
335
336
|
"threads": "1.7.0",
|
336
337
|
"tnp-cli": "16.100.5",
|
337
|
-
"tnp-config": "16.100.
|
338
|
-
"tnp-core": "16.100.
|
339
|
-
"tnp-db": "16.100.
|
340
|
-
"tnp-helpers": "16.100.
|
341
|
-
"tnp-models": "16.100.
|
338
|
+
"tnp-config": "16.100.10",
|
339
|
+
"tnp-core": "16.100.23",
|
340
|
+
"tnp-db": "16.100.9",
|
341
|
+
"tnp-helpers": "16.100.32",
|
342
|
+
"tnp-models": "16.100.10",
|
342
343
|
"ts-debug": "1.3.0",
|
343
344
|
"ts-json-schema-generator": "2.1.1",
|
344
345
|
"ts-loader": "2.3.1",
|
@@ -347,13 +348,15 @@
|
|
347
348
|
"tslint": "5.9.1",
|
348
349
|
"turndown": "7.1.2",
|
349
350
|
"typescript": "~5.0.2",
|
350
|
-
"typescript-class-helpers": "~16.100.
|
351
|
+
"typescript-class-helpers": "~16.100.10",
|
351
352
|
"typescript-formatter": "~7.2.2",
|
352
353
|
"underscore": "1.9.1",
|
353
354
|
"uuid": "8.3.2",
|
354
355
|
"validator": "9.2.0",
|
355
356
|
"video.js": "8.3.0",
|
356
357
|
"vpn-split": "16.100.5",
|
358
|
+
"vscode": "1.1.37",
|
359
|
+
"wait-on": "7.0.1",
|
357
360
|
"watch": "1.0.2",
|
358
361
|
"webpack": "~5.80",
|
359
362
|
"webpack-dev-middleware": "~6.0.2",
|
@@ -364,7 +367,7 @@
|
|
364
367
|
"license": "MIT",
|
365
368
|
"private": false,
|
366
369
|
"name": "tnp-core",
|
367
|
-
"version": "16.
|
368
|
-
"lastBuildTagHash": "
|
370
|
+
"version": "16.444.1",
|
371
|
+
"lastBuildTagHash": "7b2a2ec2d090e1e7a4d906e0c4c76ce10d590490",
|
369
372
|
"main": "index.js"
|
370
373
|
}
|
package/firedev.jsonc
CHANGED
@@ -1,69 +1,69 @@
|
|
1
|
-
{
|
2
|
-
"resources": ["README.md"],
|
3
|
-
|
4
|
-
"overrided": {
|
5
|
-
"ignoreDepsPattern": [],
|
6
|
-
"includeAsDev": [],
|
7
|
-
|
8
|
-
"includeOnly": [
|
9
|
-
"axios",
|
10
|
-
"glob",
|
11
|
-
"moment",
|
12
|
-
"fkill",
|
13
|
-
"copy-paste",
|
14
|
-
"chokidar",
|
15
|
-
"fs-extra",
|
16
|
-
"rimraf",
|
17
|
-
"mkdirp",
|
18
|
-
"lodash",
|
19
|
-
"@types/lodash",
|
20
|
-
"ps-list",
|
21
|
-
"ps-node",
|
22
|
-
"q",
|
23
|
-
"@types/q",
|
24
|
-
"json5",
|
25
|
-
"is-elevated",
|
26
|
-
"portfinder",
|
27
|
-
"cross-spawn",
|
28
|
-
"chalk",
|
29
|
-
"copy-paste",
|
30
|
-
"is-root",
|
31
|
-
"is-admin",
|
32
|
-
"dateformat",
|
33
|
-
],
|
34
|
-
|
35
|
-
"dependencies": {},
|
36
|
-
"linkedFolders": [],
|
37
|
-
"npmFixes": [],
|
38
|
-
},
|
39
|
-
|
40
|
-
"smartContainerBuildTarget": "",
|
41
|
-
"linkedRepos": [],
|
42
|
-
|
43
|
-
"libReleaseOptions": {
|
44
|
-
"nodts": false,
|
45
|
-
"obscure": false,
|
46
|
-
"ugly": false,
|
47
|
-
"includeNodeModules": false,
|
48
|
-
"cliBuildNoDts": false,
|
49
|
-
"cliBuildObscure": false,
|
50
|
-
"cliBuildIncludeNodeModules": false,
|
51
|
-
"cliBuildUglify": false,
|
52
|
-
},
|
53
|
-
|
54
|
-
"smartContainerTarget": "",
|
55
|
-
"type": "isomorphic-lib",
|
56
|
-
"isCoreProject": false,
|
57
|
-
"useFramework": false,
|
58
|
-
"required": [],
|
59
|
-
"version": "
|
60
|
-
|
61
|
-
"additionalNpmNames": ["firedev-core"],
|
62
|
-
|
63
|
-
"isGenerated": false,
|
64
|
-
"requiredServers": [],
|
65
|
-
"license": "MIT",
|
66
|
-
"private": false,
|
67
|
-
"main": "index.js",
|
68
|
-
"workerPlugins": {},
|
69
|
-
}
|
1
|
+
{
|
2
|
+
"resources": ["README.md"],
|
3
|
+
|
4
|
+
"overrided": {
|
5
|
+
"ignoreDepsPattern": [],
|
6
|
+
"includeAsDev": [],
|
7
|
+
|
8
|
+
"includeOnly": [
|
9
|
+
"axios",
|
10
|
+
"glob",
|
11
|
+
"moment",
|
12
|
+
"fkill",
|
13
|
+
"copy-paste",
|
14
|
+
"chokidar",
|
15
|
+
"fs-extra",
|
16
|
+
"rimraf",
|
17
|
+
"mkdirp",
|
18
|
+
"lodash",
|
19
|
+
"@types/lodash",
|
20
|
+
"ps-list",
|
21
|
+
"ps-node",
|
22
|
+
"q",
|
23
|
+
"@types/q",
|
24
|
+
"json5",
|
25
|
+
"is-elevated",
|
26
|
+
"portfinder",
|
27
|
+
"cross-spawn",
|
28
|
+
"chalk",
|
29
|
+
"copy-paste",
|
30
|
+
"is-root",
|
31
|
+
"is-admin",
|
32
|
+
"dateformat",
|
33
|
+
],
|
34
|
+
|
35
|
+
"dependencies": {},
|
36
|
+
"linkedFolders": [],
|
37
|
+
"npmFixes": [],
|
38
|
+
},
|
39
|
+
|
40
|
+
"smartContainerBuildTarget": "",
|
41
|
+
"linkedRepos": [],
|
42
|
+
|
43
|
+
"libReleaseOptions": {
|
44
|
+
"nodts": false,
|
45
|
+
"obscure": false,
|
46
|
+
"ugly": false,
|
47
|
+
"includeNodeModules": false,
|
48
|
+
"cliBuildNoDts": false,
|
49
|
+
"cliBuildObscure": false,
|
50
|
+
"cliBuildIncludeNodeModules": false,
|
51
|
+
"cliBuildUglify": false,
|
52
|
+
},
|
53
|
+
|
54
|
+
"smartContainerTarget": "",
|
55
|
+
"type": "isomorphic-lib",
|
56
|
+
"isCoreProject": false,
|
57
|
+
"useFramework": false,
|
58
|
+
"required": [],
|
59
|
+
"version": "v16",
|
60
|
+
|
61
|
+
"additionalNpmNames": ["firedev-core"],
|
62
|
+
|
63
|
+
"isGenerated": false,
|
64
|
+
"requiredServers": [],
|
65
|
+
"license": "MIT",
|
66
|
+
"private": false,
|
67
|
+
"main": "index.js",
|
68
|
+
"workerPlugins": {},
|
69
|
+
}
|
package/lib/core-imports.d.ts
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
/// <reference types="node" />
|
1
2
|
import * as _ from 'lodash';
|
2
3
|
import * as q from 'q';
|
3
4
|
import * as moment from 'moment';
|
4
5
|
import * as dateformat from 'dateformat';
|
5
6
|
import { Chalk } from 'chalk';
|
6
7
|
import * as json5 from 'json5';
|
8
|
+
import type jQueryType from 'jquery';
|
9
|
+
import type * as pathBaseType from 'path';
|
7
10
|
import * as os from 'os';
|
8
11
|
import * as child_process from 'child_process';
|
9
12
|
import * as http from 'http';
|
@@ -20,11 +23,14 @@ import * as ps from 'ps-node';
|
|
20
23
|
import * as psList from 'ps-list';
|
21
24
|
import * as fkill from 'fkill';
|
22
25
|
import * as portfinder from 'portfinder';
|
23
|
-
declare function isElevated(): Promise<
|
24
|
-
declare let $:
|
25
|
-
declare let path:
|
26
|
+
declare function isElevated(): Promise<boolean>;
|
27
|
+
declare let $: jQueryType;
|
28
|
+
declare let path: pathBaseType.PlatformPath;
|
26
29
|
declare let chalk: Chalk;
|
27
|
-
|
30
|
+
/**
|
31
|
+
* transform unix path to win32 path
|
32
|
+
*/
|
33
|
+
declare const win32Path: (p: string) => string;
|
28
34
|
/**
|
29
35
|
* This funciton will replace // to /
|
30
36
|
*/
|
package/lib/core-imports.js
CHANGED
@@ -12,8 +12,6 @@ var dateformat = require("dateformat");
|
|
12
12
|
exports.dateformat = dateformat;
|
13
13
|
var json5 = require("json5");
|
14
14
|
exports.json5 = json5;
|
15
|
-
/* */
|
16
|
-
/* */
|
17
15
|
//#region @backend
|
18
16
|
var cheerio = require("cheerio");
|
19
17
|
var pathBase = require("path");
|
@@ -92,7 +90,10 @@ exports.chalk = chalk = chalk_1.default;
|
|
92
90
|
/* */
|
93
91
|
/* */
|
94
92
|
//#endregion
|
95
|
-
|
93
|
+
/**
|
94
|
+
* transform unix path to win32 path
|
95
|
+
*/
|
96
|
+
var win32Path = function (p) {
|
96
97
|
//#region @backend
|
97
98
|
if (process.platform !== 'win32') {
|
98
99
|
return p;
|
@@ -102,7 +103,7 @@ function win32Path(p) {
|
|
102
103
|
p = p.replace(/^\/[a-z]\//, "".concat(p.charAt(1).toUpperCase(), ":/"));
|
103
104
|
}
|
104
105
|
return path.win32.normalize(p);
|
105
|
-
}
|
106
|
+
};
|
106
107
|
exports.win32Path = win32Path;
|
107
108
|
/**
|
108
109
|
* This funciton will replace // to /
|
package/lib/core-imports.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"core-imports.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA,0BAA4B;
|
1
|
+
{"version":3,"file":"core-imports.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA,0BAA4B;AAgI1B,cAAC;AA/HH,qBAAuB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I,OAAO,qBAAqB,KAAK,QAAQ,EAAE;QAC7C,OAAO,qBAAqB,CAAC;KAC9B;IAED,IAAM,oBAAoB,GAAG,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IACrE,IAAM,WAAW,GAAG,mBAAmB,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,uCAAuC;IAE5G,IAAI,oBAAoB,IAAI,WAAW,EAAE;QACvC,OAAO,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;KACrD;IAED,OAAO,qBAAqB,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AACzE,CAAC,CAAC;AAOA,8CAAiB;AA4BnB,YAAY"}
|
package/lib/core-models.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare namespace CoreModels {
|
|
5
5
|
export type EnvironmentName = 'local' | 'static' | 'dev' | 'stage' | 'prod' | 'online' | 'test' | 'qa' | 'custom';
|
6
6
|
export type PUSHTYPE = 'feat' | 'chore' | 'feature' | 'refactor' | 'perf' | 'styles' | 'ci' | 'build' | 'fix' | 'bugfix' | 'release' | 'docs';
|
7
7
|
export type UIFramework = 'bootstrap' | 'material' | 'ionic';
|
8
|
-
export type FrameworkVersion = 'v1' | 'v2' | 'v3' | 'v4' | '
|
8
|
+
export type FrameworkVersion = 'v1' | 'v2' | 'v3' | 'v4' | 'v16' | 'v18' | 'v18' | 'v20';
|
9
9
|
export type CutableFileExt = 'scss' | 'css' | 'sass' | 'html' | 'ts';
|
10
10
|
export type ImageFileExtension = 'jpg' | 'jpeg' | 'png' | 'svg';
|
11
11
|
export type FileExtension = 'ts' | 'js' | 'json' | 'html' | ImageFileExtension | 'txt' | CutableFileExt;
|
package/lib/core-models.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"core-models.js","sourceRoot":"","sources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,CAAC,EAtZgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAsZ1B"}
|
package/lib/helpers.d.ts
CHANGED
@@ -59,6 +59,12 @@ export declare class HelpersCore extends HelpersMessages {
|
|
59
59
|
tryRemoveDir(dirpath: string, contentOnly?: boolean, omitWarningNotExisted?: boolean): void;
|
60
60
|
remove(fileOrFolderPathOrPatter: string | string[], exactFolder?: boolean): void;
|
61
61
|
cleanExit(): void;
|
62
|
+
private getShell;
|
63
|
+
get isRunningInGitBash(): boolean;
|
64
|
+
/**
|
65
|
+
* Check if the current shell is supported by Firedev framework.
|
66
|
+
*/
|
67
|
+
get isSupportedFiredevTerminal(): boolean;
|
62
68
|
/**
|
63
69
|
* check if function is class
|
64
70
|
*/
|
package/lib/helpers.js
CHANGED
@@ -326,6 +326,42 @@ var HelpersCore = /** @class */ (function (_super) {
|
|
326
326
|
};
|
327
327
|
//#endregion
|
328
328
|
//#endregion
|
329
|
+
HelpersCore.prototype.getShell = function () {
|
330
|
+
//#region @backendFunc
|
331
|
+
// This function attempts to determine the current shell
|
332
|
+
if (core_imports_1.os.platform() === 'win32') {
|
333
|
+
// On Windows, COMSPEC usually points to cmd.exe
|
334
|
+
return process.env.COMSPEC;
|
335
|
+
}
|
336
|
+
else {
|
337
|
+
// On Unix-like systems, SHELL points to the current shell
|
338
|
+
return process.env.SHELL;
|
339
|
+
}
|
340
|
+
//#endregion
|
341
|
+
};
|
342
|
+
Object.defineProperty(HelpersCore.prototype, "isRunningInGitBash", {
|
343
|
+
get: function () {
|
344
|
+
//#region @backendFunc
|
345
|
+
// console.log('TERM', process.env.TERM);
|
346
|
+
// console.log('MSYSTEM', process.env.MSYSTEM);
|
347
|
+
return process.env.TERM.search('xterm') !== -1 && !!process.env.MSYSTEM;
|
348
|
+
//#endregion
|
349
|
+
},
|
350
|
+
enumerable: false,
|
351
|
+
configurable: true
|
352
|
+
});
|
353
|
+
Object.defineProperty(HelpersCore.prototype, "isSupportedFiredevTerminal", {
|
354
|
+
/**
|
355
|
+
* Check if the current shell is supported by Firedev framework.
|
356
|
+
*/
|
357
|
+
get: function () {
|
358
|
+
//#region @backendFunc
|
359
|
+
return process.platform === 'win32' ? this.isRunningInGitBash : true;
|
360
|
+
//#endregion
|
361
|
+
},
|
362
|
+
enumerable: false,
|
363
|
+
configurable: true
|
364
|
+
});
|
329
365
|
//#region methods / check if function is class
|
330
366
|
/**
|
331
367
|
* check if function is class
|