tnp-core 21.0.148 → 21.0.151
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/VERIFIED-BUILD-DATA.jsonc +5 -5
- package/bin/start.js +36 -36
- package/browser/README.md +24 -24
- package/browser/fesm2022/tnp-core-browser.mjs +375 -133
- package/browser/fesm2022/tnp-core-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/tnp-core-browser.d.ts +46 -24
- package/browser-prod/README.md +24 -24
- package/browser-prod/fesm2022/tnp-core-browser-prod.mjs +376 -133
- package/browser-prod/fesm2022/tnp-core-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/tnp-core-browser-prod.d.ts +46 -24
- package/browser-prod.split-namespaces.json +4 -0
- package/cli.backend.js +2 -2
- package/lib/axios-fetch.d.ts +23 -0
- package/lib/axios-fetch.js +64 -0
- package/lib/axios-fetch.js.map +1 -0
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/config.js +4 -0
- package/lib/config.js.map +1 -1
- package/lib/constants.d.ts +20 -15
- package/lib/constants.js +4 -0
- package/lib/constants.js.map +1 -1
- package/lib/core-imports.d.ts +7 -8
- package/lib/core-imports.js +82 -30
- package/lib/core-imports.js.map +1 -1
- package/lib/core-project.d.ts +6 -0
- package/lib/core-project.js +9 -0
- package/lib/core-project.js.map +1 -0
- package/lib/helpers.js +72 -51
- package/lib/helpers.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/json10writer.d.ts +0 -0
- package/lib/json10writer.js +174 -0
- package/lib/json10writer.js.map +1 -0
- package/lib/jsonc-parse.test.d.ts +1 -0
- package/lib/jsonc-parse.test.js +449 -0
- package/lib/jsonc-parse.test.js.map +1 -0
- package/lib/jsonc-parser.d.ts +4 -0
- package/lib/jsonc-parser.js +90 -0
- package/lib/jsonc-parser.js.map +1 -0
- package/lib/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
- package/lib/lowdb/adapters/browser/LocalStorage.js +13 -0
- package/lib/lowdb/adapters/browser/LocalStorage.js.map +1 -0
- package/lib/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
- package/lib/lowdb/adapters/browser/SessionStorage.js +13 -0
- package/lib/lowdb/adapters/browser/SessionStorage.js.map +1 -0
- package/lib/lowdb/adapters/browser/WebStorage.d.ts +8 -0
- package/lib/lowdb/adapters/browser/WebStorage.js +24 -0
- package/lib/lowdb/adapters/browser/WebStorage.js.map +1 -0
- package/lib/lowdb/adapters/node/TextFile.d.ts +1 -1
- package/lib/lowdb/adapters/node/TextFile.js +4 -7
- package/lib/lowdb/adapters/node/TextFile.js.map +1 -1
- package/lib/lowdb/adapters/node/steno.js +9 -9
- package/lib/lowdb/adapters/node/steno.js.map +1 -1
- package/lib/lowdb/presets/node.d.ts +1 -1
- package/lib/node-chalk-mock.d.ts +2 -2
- package/lib/node-chalk-mock.js +49 -2
- package/lib/node-chalk-mock.js.map +1 -1
- package/lib/node-path-mock.d.ts +1 -1
- package/lib/node-path-mock.js +476 -2
- package/lib/node-path-mock.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/utils-binary.js +3 -3
- package/lib/utils-binary.js.map +1 -1
- package/lib/utils-exec-proc-vscode.js +3 -3
- package/lib/utils-exec-proc-vscode.js.map +1 -1
- package/lib/utils-files-folders.js +1 -1
- package/lib/utils-files-folders.js.map +1 -1
- package/lib/utils-network.js +1 -1
- package/lib/utils-network.js.map +1 -1
- package/lib/utils-os.d.ts +14 -0
- package/lib/utils-os.js +116 -3
- package/lib/utils-os.js.map +1 -1
- package/lib/utils-process.js +4 -3
- package/lib/utils-process.js.map +1 -1
- package/lib/utils-stdin-stdout-logger.js +1 -1
- package/lib/utils-stdin-stdout-logger.js.map +1 -1
- package/lib/utils-sudo.js +2 -2
- package/lib/utils-sudo.js.map +1 -1
- package/lib/utils-terminal.js +7 -0
- package/lib/utils-terminal.js.map +1 -1
- package/lib/utils-wait-notifier.js +4 -4
- package/lib/utils-wait-notifier.js.map +1 -1
- package/lib-esm/app.hosts.d.ts +2 -2
- package/lib-esm/app.hosts.js +4 -4
- package/lib-esm/cli.backend.d.ts +1 -1
- package/lib-esm/cli.backend.js +1 -1
- package/lib-esm/lib/axios-fetch.d.ts +23 -0
- package/lib-esm/lib/axios-fetch.js +60 -0
- package/lib-esm/lib/axios-fetch.js.map +1 -0
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/config.js +4 -0
- package/lib-esm/lib/config.js.map +1 -1
- package/lib-esm/lib/constants.d.ts +20 -15
- package/lib-esm/lib/constants.js +4 -0
- package/lib-esm/lib/constants.js.map +1 -1
- package/lib-esm/lib/core-imports.d.ts +7 -8
- package/lib-esm/lib/core-imports.js +40 -48
- package/lib-esm/lib/core-imports.js.map +1 -1
- package/lib-esm/lib/core-project.d.ts +6 -0
- package/lib-esm/lib/core-project.js +5 -0
- package/lib-esm/lib/core-project.js.map +1 -0
- package/lib-esm/lib/helpers.js +46 -25
- package/lib-esm/lib/helpers.js.map +1 -1
- package/lib-esm/lib/index.d.ts +1 -0
- package/lib-esm/lib/index.js +2 -0
- package/lib-esm/lib/index.js.map +1 -1
- package/lib-esm/lib/json10writer.d.ts +0 -0
- package/lib-esm/lib/json10writer.js +174 -0
- package/lib-esm/lib/json10writer.js.map +1 -0
- package/lib-esm/lib/jsonc-parse.test.d.ts +1 -0
- package/lib-esm/lib/jsonc-parse.test.js +447 -0
- package/lib-esm/lib/jsonc-parse.test.js.map +1 -0
- package/lib-esm/lib/jsonc-parser.d.ts +4 -0
- package/lib-esm/lib/jsonc-parser.js +87 -0
- package/lib-esm/lib/jsonc-parser.js.map +1 -0
- package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
- package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js +9 -0
- package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js.map +1 -0
- package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
- package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js +9 -0
- package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js.map +1 -0
- package/lib-esm/lib/lowdb/adapters/browser/WebStorage.d.ts +8 -0
- package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js +20 -0
- package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js.map +1 -0
- package/lib-esm/lib/lowdb/adapters/node/TextFile.d.ts +1 -1
- package/lib-esm/lib/lowdb/adapters/node/TextFile.js +5 -8
- package/lib-esm/lib/lowdb/adapters/node/TextFile.js.map +1 -1
- package/lib-esm/lib/lowdb/adapters/node/steno.js +8 -8
- package/lib-esm/lib/lowdb/adapters/node/steno.js.map +1 -1
- package/lib-esm/lib/lowdb/presets/node.d.ts +1 -1
- package/lib-esm/lib/node-chalk-mock.d.ts +2 -1
- package/lib-esm/lib/node-chalk-mock.js +48 -1
- package/lib-esm/lib/node-chalk-mock.js.map +1 -1
- package/lib-esm/lib/node-path-mock.d.ts +25 -1
- package/lib-esm/lib/node-path-mock.js +475 -1
- package/lib-esm/lib/node-path-mock.js.map +1 -1
- package/lib-esm/lib/utils-binary.js +2 -2
- package/lib-esm/lib/utils-binary.js.map +1 -1
- package/lib-esm/lib/utils-exec-proc-vscode.js +3 -3
- package/lib-esm/lib/utils-exec-proc-vscode.js.map +1 -1
- package/lib-esm/lib/utils-files-folders.js +1 -1
- package/lib-esm/lib/utils-files-folders.js.map +1 -1
- package/lib-esm/lib/utils-network.js +1 -1
- package/lib-esm/lib/utils-network.js.map +1 -1
- package/lib-esm/lib/utils-os.d.ts +14 -0
- package/lib-esm/lib/utils-os.js +115 -2
- package/lib-esm/lib/utils-os.js.map +1 -1
- package/lib-esm/lib/utils-process.js +2 -1
- package/lib-esm/lib/utils-process.js.map +1 -1
- package/lib-esm/lib/utils-stdin-stdout-logger.js +1 -1
- package/lib-esm/lib/utils-stdin-stdout-logger.js.map +1 -1
- package/lib-esm/lib/utils-sudo.js +1 -1
- package/lib-esm/lib/utils-sudo.js.map +1 -1
- package/lib-esm/lib/utils-terminal.js +7 -0
- package/lib-esm/lib/utils-terminal.js.map +1 -1
- package/lib-esm/lib/utils-wait-notifier.js +1 -1
- package/lib-esm/lib/utils-wait-notifier.js.map +1 -1
- package/lib-prod/axios-fetch.d.ts +23 -0
- package/lib-prod/axios-fetch.js +60 -0
- package/lib-prod/axios-fetch.js.map +1 -0
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/config.js +4 -0
- package/lib-prod/config.js.map +1 -1
- package/lib-prod/constants.d.ts +20 -15
- package/lib-prod/constants.js +4 -0
- package/lib-prod/constants.js.map +1 -1
- package/lib-prod/core-cli.js.map +1 -1
- package/lib-prod/core-imports.d.ts +7 -8
- package/lib-prod/core-imports.js +80 -27
- package/lib-prod/core-imports.js.map +1 -1
- package/lib-prod/core-project.d.ts +6 -0
- package/lib-prod/core-project.js +5 -0
- package/lib-prod/core-project.js.map +1 -0
- package/lib-prod/global-task-manager.js.map +1 -1
- package/lib-prod/helpers.js +47 -26
- package/lib-prod/helpers.js.map +1 -1
- package/lib-prod/index.d.ts +1 -0
- package/lib-prod/index.js +2 -0
- package/lib-prod/index.js.map +1 -1
- package/lib-prod/json10writer.d.ts +0 -0
- package/lib-prod/json10writer.js +174 -0
- package/lib-prod/json10writer.js.map +1 -0
- package/lib-prod/jsonc-parse.test.d.ts +1 -0
- package/lib-prod/jsonc-parse.test.js +447 -0
- package/lib-prod/jsonc-parse.test.js.map +1 -0
- package/lib-prod/jsonc-parser.d.ts +4 -0
- package/lib-prod/jsonc-parser.js +87 -0
- package/lib-prod/jsonc-parser.js.map +1 -0
- package/lib-prod/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
- package/lib-prod/lowdb/adapters/browser/LocalStorage.js +9 -0
- package/lib-prod/lowdb/adapters/browser/LocalStorage.js.map +1 -0
- package/lib-prod/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
- package/lib-prod/lowdb/adapters/browser/SessionStorage.js +9 -0
- package/lib-prod/lowdb/adapters/browser/SessionStorage.js.map +1 -0
- package/lib-prod/lowdb/adapters/browser/WebStorage.d.ts +8 -0
- package/lib-prod/lowdb/adapters/browser/WebStorage.js +20 -0
- package/lib-prod/lowdb/adapters/browser/WebStorage.js.map +1 -0
- package/lib-prod/lowdb/adapters/node/TextFile.d.ts +1 -1
- package/lib-prod/lowdb/adapters/node/TextFile.js +5 -8
- package/lib-prod/lowdb/adapters/node/TextFile.js.map +1 -1
- package/lib-prod/lowdb/adapters/node/steno.js +8 -8
- package/lib-prod/lowdb/adapters/node/steno.js.map +1 -1
- package/lib-prod/lowdb/presets/node.d.ts +1 -1
- package/lib-prod/node-chalk-mock.d.ts +2 -1
- package/lib-prod/node-chalk-mock.js +48 -1
- package/lib-prod/node-chalk-mock.js.map +1 -1
- package/lib-prod/node-path-mock.d.ts +25 -1
- package/lib-prod/node-path-mock.js +475 -1
- package/lib-prod/node-path-mock.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/start-cli.js.map +1 -1
- package/lib-prod/utils-binary.js +2 -2
- package/lib-prod/utils-binary.js.map +1 -1
- package/lib-prod/utils-exec-proc-vscode.js +3 -3
- package/lib-prod/utils-exec-proc-vscode.js.map +1 -1
- package/lib-prod/utils-files-folders.js +1 -1
- package/lib-prod/utils-files-folders.js.map +1 -1
- package/lib-prod/utils-network.js +1 -1
- package/lib-prod/utils-network.js.map +1 -1
- package/lib-prod/utils-os.d.ts +14 -0
- package/lib-prod/utils-os.js +115 -2
- package/lib-prod/utils-os.js.map +1 -1
- package/lib-prod/utils-process-logger.js.map +1 -1
- package/lib-prod/utils-process.js +2 -1
- package/lib-prod/utils-process.js.map +1 -1
- package/lib-prod/utils-stdin-stdout-logger.js +1 -1
- package/lib-prod/utils-stdin-stdout-logger.js.map +1 -1
- package/lib-prod/utils-sudo.js +1 -1
- package/lib-prod/utils-sudo.js.map +1 -1
- package/lib-prod/utils-terminal.js +8 -1
- package/lib-prod/utils-terminal.js.map +1 -1
- package/lib-prod/utils-wait-notifier.js +2 -1
- package/lib-prod/utils-wait-notifier.js.map +1 -1
- package/lib-prod/utils.js.map +1 -1
- package/lib-prod.split-namespaces.json +4 -0
- package/package.json +1 -1
- package/websql/README.md +24 -24
- package/websql/fesm2022/tnp-core-websql.mjs +375 -133
- package/websql/fesm2022/tnp-core-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/tnp-core-websql.d.ts +46 -24
- package/websql-prod/README.md +24 -24
- package/websql-prod/fesm2022/tnp-core-websql-prod.mjs +376 -133
- package/websql-prod/fesm2022/tnp-core-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/tnp-core-websql-prod.d.ts +46 -24
- package/websql-prod.split-namespaces.json +4 -0
- package/lib/json10-writer/index.d.ts +0 -6
- package/lib/json10-writer/index.js +0 -52
- package/lib/json10-writer/index.js.map +0 -1
- package/lib/json10-writer/setKeyQuoteUsage.d.ts +0 -1
- package/lib/json10-writer/setKeyQuoteUsage.js +0 -37
- package/lib/json10-writer/setKeyQuoteUsage.js.map +0 -1
- package/lib/json10-writer/writeValue.d.ts +0 -1
- package/lib/json10-writer/writeValue.js +0 -100
- package/lib/json10-writer/writeValue.js.map +0 -1
- package/lib-esm/lib/json10-writer/index.d.ts +0 -6
- package/lib-esm/lib/json10-writer/index.js +0 -49
- package/lib-esm/lib/json10-writer/index.js.map +0 -1
- package/lib-esm/lib/json10-writer/setKeyQuoteUsage.d.ts +0 -1
- package/lib-esm/lib/json10-writer/setKeyQuoteUsage.js +0 -34
- package/lib-esm/lib/json10-writer/setKeyQuoteUsage.js.map +0 -1
- package/lib-esm/lib/json10-writer/writeValue.d.ts +0 -1
- package/lib-esm/lib/json10-writer/writeValue.js +0 -97
- package/lib-esm/lib/json10-writer/writeValue.js.map +0 -1
- package/lib-prod/json10-writer/index.d.ts +0 -6
- package/lib-prod/json10-writer/index.js +0 -49
- package/lib-prod/json10-writer/index.js.map +0 -1
- package/lib-prod/json10-writer/setKeyQuoteUsage.d.ts +0 -1
- package/lib-prod/json10-writer/setKeyQuoteUsage.js +0 -34
- package/lib-prod/json10-writer/setKeyQuoteUsage.js.map +0 -1
- package/lib-prod/json10-writer/writeValue.d.ts +0 -1
- package/lib-prod/json10-writer/writeValue.js +0 -97
- package/lib-prod/json10-writer/writeValue.js.map +0 -1
package/websql-prod/package.json
CHANGED
|
@@ -14,7 +14,7 @@ import { ChildProcess } from 'child_process';
|
|
|
14
14
|
import * as httpBaseType from 'http';
|
|
15
15
|
import * as httpsBaseType from 'https';
|
|
16
16
|
import * as psListBaseType from 'ps-list';
|
|
17
|
-
import * as
|
|
17
|
+
import * as micromatchType from 'micromatch';
|
|
18
18
|
import * as spawnBaseType from 'cross-spawn';
|
|
19
19
|
import * as fgBaseType from 'fast-glob';
|
|
20
20
|
import * as rimrafBaseType from 'rimraf';
|
|
@@ -22,13 +22,12 @@ import * as chokidarBaseType from 'chokidar';
|
|
|
22
22
|
import * as mkdirpBaseType from 'mkdirp';
|
|
23
23
|
import * as ncpBaseType from 'copy-paste';
|
|
24
24
|
import * as psBaseType from 'ps-node';
|
|
25
|
+
import axiosType from 'axios';
|
|
25
26
|
import * as ora from 'ora';
|
|
26
27
|
import { Subject, Observable } from 'rxjs';
|
|
27
28
|
import { OutputChannel, Progress, CancellationToken } from 'vscode';
|
|
28
29
|
import * as json5 from 'json5';
|
|
29
30
|
export { json5 };
|
|
30
|
-
import * as q from 'q';
|
|
31
|
-
export { q };
|
|
32
31
|
|
|
33
32
|
declare let frameworkNameBe: "taon" | "tnp";
|
|
34
33
|
declare const frameworkName: "taon" | "tnp";
|
|
@@ -338,8 +337,6 @@ declare const ___NS__zipObject: typeof lodash.zipObject;
|
|
|
338
337
|
declare const ___NS__zipObjectDeep: typeof lodash.zipObjectDeep;
|
|
339
338
|
declare const ___NS__zipWith: typeof lodash.zipWith;
|
|
340
339
|
|
|
341
|
-
declare function load(src: any): any;
|
|
342
|
-
|
|
343
340
|
declare const REQUIRE_MAP: {};
|
|
344
341
|
/**
|
|
345
342
|
* use only in backend mode
|
|
@@ -350,7 +347,9 @@ declare let dateformat: typeof _dateformat;
|
|
|
350
347
|
|
|
351
348
|
declare let $: jQueryType;
|
|
352
349
|
declare let path: typeof pathBaseType;
|
|
350
|
+
declare let axios: typeof axiosType;
|
|
353
351
|
declare let chalk: Chalk;
|
|
352
|
+
declare let micromatch: micromatchType;
|
|
354
353
|
declare let glob: typeof globBaseType;
|
|
355
354
|
declare let fse: typeof fseBaseType;
|
|
356
355
|
declare let os: typeof osBaseType;
|
|
@@ -364,11 +363,10 @@ declare let https: typeof httpsBaseType;
|
|
|
364
363
|
*/
|
|
365
364
|
declare let isElevated: () => Promise<boolean>;
|
|
366
365
|
declare let psList: typeof psListBaseType;
|
|
367
|
-
declare let net: typeof netBaseType;
|
|
368
366
|
declare let spawn: typeof spawnBaseType;
|
|
369
367
|
declare let rimraf: typeof rimrafBaseType;
|
|
370
368
|
declare let chokidar: typeof chokidarBaseType;
|
|
371
|
-
declare let mkdirp: typeof mkdirpBaseType;
|
|
369
|
+
declare let mkdirp: (args: any) => typeof mkdirpBaseType;
|
|
372
370
|
declare let ncp: typeof ncpBaseType;
|
|
373
371
|
declare let ps: typeof psBaseType;
|
|
374
372
|
declare let fg: typeof fgBaseType;
|
|
@@ -609,22 +607,27 @@ declare const notNeededForExportFiles: string[];
|
|
|
609
607
|
declare const frontEndOnly: string[];
|
|
610
608
|
declare const appRelatedFiles: string[];
|
|
611
609
|
declare const TAGS: {
|
|
612
|
-
BACKEND:
|
|
613
|
-
BACKEND_FUNC:
|
|
614
|
-
BROWSER:
|
|
615
|
-
WEBSQL_ONLY:
|
|
616
|
-
WEBSQL:
|
|
617
|
-
WEBSQL_FUNC:
|
|
618
|
-
NOT_FOR_NPM:
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
610
|
+
readonly BACKEND: "@backend";
|
|
611
|
+
readonly BACKEND_FUNC: "@backendFunc";
|
|
612
|
+
readonly BROWSER: "@browser";
|
|
613
|
+
readonly WEBSQL_ONLY: "@websqlOnly";
|
|
614
|
+
readonly WEBSQL: "@websql";
|
|
615
|
+
readonly WEBSQL_FUNC: "@websqlFunc";
|
|
616
|
+
readonly NOT_FOR_NPM: "@notForNpm";
|
|
617
|
+
readonly ESM_REMOVE: "@esmRemove";
|
|
618
|
+
readonly ESM_ONLY_LINE: "@esmOnlyLine";
|
|
619
|
+
readonly CJS_REMOVE: "@cjsRemove";
|
|
620
|
+
readonly CJS_ONLY_LINE: "@cjsOnlyLine";
|
|
621
|
+
readonly CUT_CODE_IF_TRUE: string;
|
|
622
|
+
readonly CUT_CODE_IF_FALSE: string;
|
|
623
|
+
readonly COMMENT_REGION: "//#region";
|
|
624
|
+
readonly COMMENT_END_REGION: "//#endregion";
|
|
625
|
+
readonly APP_TS_GENERATED: "@app-ts-generated";
|
|
626
|
+
readonly APP_TS_PLACEHOLDER_IMPORTS: "@placeholder-for-imports";
|
|
627
|
+
readonly APP_TS_PLACEHOLDER_ROUTES: "@placeholder-for-routes";
|
|
628
|
+
readonly APP_TS_PLACEHOLDER_CONTEXTS_INIT: "@placeholder-for-contexts-init";
|
|
627
629
|
};
|
|
630
|
+
type ReplacementString = (typeof TAGS)[keyof typeof TAGS];
|
|
628
631
|
declare const BaselineSiteJoinprefix = "__";
|
|
629
632
|
declare const PREFIXES: {
|
|
630
633
|
BASELINE: string;
|
|
@@ -1643,6 +1646,20 @@ declare const UtilsOs__NS__isPortInUse: (port: number, options?: {
|
|
|
1643
1646
|
declare const UtilsOs__NS__isDockerAvailable: () => Promise<boolean>;
|
|
1644
1647
|
declare const UtilsOs__NS__openFolderInFileExplorer: (folderPath: string) => void;
|
|
1645
1648
|
declare const UtilsOs__NS__getRealHomeDir: () => string;
|
|
1649
|
+
interface UtilsOs__NS__GetTempFolderOptions {
|
|
1650
|
+
/**
|
|
1651
|
+
* Automatically remove this folder after the specified number of days.
|
|
1652
|
+
*
|
|
1653
|
+
* Folders with expiration enabled are created inside:
|
|
1654
|
+
* <system-temp>/__temp__folders__with__exp__date
|
|
1655
|
+
*/
|
|
1656
|
+
deleteAfterDays?: number;
|
|
1657
|
+
/**
|
|
1658
|
+
* Optional readable part of the generated folder name.
|
|
1659
|
+
*/
|
|
1660
|
+
prefix?: string;
|
|
1661
|
+
}
|
|
1662
|
+
declare const UtilsOs__NS__getTempFolder: (options?: UtilsOs__NS__GetTempFolderOptions) => string;
|
|
1646
1663
|
type UtilsOs__NS__Editor = 'code' | 'codium' | 'cursor' | 'theia' | 'idea' | 'idea64';
|
|
1647
1664
|
type UtilsOs__NS__EditorProcess = `${UtilsOs__NS__Editor}` | 'code-oss';
|
|
1648
1665
|
declare const UtilsOs__NS__EditorArr: UtilsOs__NS__Editor[];
|
|
@@ -2624,6 +2641,11 @@ interface UtilsStdinStdoutLogger__NS__RegisteredAppLogging {
|
|
|
2624
2641
|
}
|
|
2625
2642
|
declare const UtilsStdinStdoutLogger__NS__registerFor: (workerName: string, groupName: string) => UtilsStdinStdoutLogger__NS__RegisteredAppLogging;
|
|
2626
2643
|
|
|
2644
|
+
type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
2645
|
+
[key: string]: JsonValue;
|
|
2646
|
+
};
|
|
2647
|
+
declare function updateJsoncContent(existingContent: string, input: JsonValue): string;
|
|
2648
|
+
|
|
2627
2649
|
declare class CLI {
|
|
2628
2650
|
static chalk: chalk$1.Chalk;
|
|
2629
2651
|
static installEnvironment(globalDependencies?: any): void;
|
|
@@ -3164,5 +3186,5 @@ declare const config: {
|
|
|
3164
3186
|
helpAlias: string[];
|
|
3165
3187
|
};
|
|
3166
3188
|
|
|
3167
|
-
export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels__NS__BaseProjectTypeArr, CoreModels__NS__BuildTypeArr, CoreModels__NS__BuildWatcherTypeArr, CoreModels__NS__ClassNameStaticProperty, CoreModels__NS__EnvironmentName, CoreModels__NS__EnvironmentNameArr, CoreModels__NS__GitConnectionArr, CoreModels__NS__HttpMethodArr, CoreModels__NS__ImageFileExtensionArr, CoreModels__NS__InstalationTypeArr, CoreModels__NS__MediaTypeAllArr, CoreModels__NS__MimeTypesObj, CoreModels__NS__NpmSpecialVersions, CoreModels__NS__OrignalClassKey, CoreModels__NS__ReleaseVersionTypeEnum, CoreModels__NS__SPECIAL_APP_READY_MESSAGE, CoreModels__NS__SPECIAL_WORKER_READY_MESSAGE, CoreModels__NS__TaonHttpErrorCustomProp, CoreModels__NS__buildTypeToWatcherFn, CoreModels__NS__hasExitCleaningFunction, CoreModels__NS__localhostDomain, CoreModels__NS__localhostIp127, CoreModels__NS__mimeTypes, CoreModels__NS__parentLocation, CoreModels__NS__pathToChildren, CoreModels__NS__tagForTaskName, DbBinaryFormatEnum, ExecAsyncVscodeError, FilePathMetaData__NS__embedData, FilePathMetaData__NS__extractData, FilePathMetaData__NS__getOnlyMetadataString, FilesNames__NS__tmpLastSelectedJsonFile, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers__NS__ActionInstance, Helpers__NS___fixCommand, Helpers__NS__actionStarted, Helpers__NS__bigMaxBuffer, Helpers__NS__checkProcess, Helpers__NS__cleanExit, Helpers__NS__clearConsole, Helpers__NS__command, Helpers__NS__commandOutputAsString, Helpers__NS__commandOutputAsStringAsync, Helpers__NS__contain, Helpers__NS__createFolder, Helpers__NS__createSymLink, Helpers__NS__error, Helpers__NS__execute, Helpers__NS__exists, Helpers__NS__filesFrom, Helpers__NS__foldersFrom, Helpers__NS__getFilesFrom, Helpers__NS__getFoldersFrom, Helpers__NS__getIsBrowser, Helpers__NS__getIsElectron, Helpers__NS__getIsNode, Helpers__NS__getIsRunningInGitBash, Helpers__NS__getIsSupportedTaonTerminal, Helpers__NS__getIsVerboseMode, Helpers__NS__getIsVerboseModeOrTnp, Helpers__NS__getIsWebSQL, Helpers__NS__getIsWsl, Helpers__NS__getStdio, Helpers__NS__hideNodeWarnings, Helpers__NS__info, Helpers__NS__isBlob, Helpers__NS__isBuffer, Helpers__NS__isClass, Helpers__NS__isExistedSymlink, Helpers__NS__isFile, Helpers__NS__isFolder, Helpers__NS__isRunningInDocker, Helpers__NS__isRunningInLinuxGraphicsCapableEnvironment, Helpers__NS__isSymlinkFileExitedOrUnexisted, Helpers__NS__isSymlinkThatMatchesUrl, Helpers__NS__isUnexistedLink, Helpers__NS__killOnPort, Helpers__NS__killProcess, Helpers__NS__killProcessByPort, Helpers__NS__linksToFolderFrom, Helpers__NS__linksToFoldersFrom, Helpers__NS__log, Helpers__NS__logError, Helpers__NS__logInfo, Helpers__NS__logProc, Helpers__NS__logSuccess, Helpers__NS__logTaskDone, Helpers__NS__logTaskStarted, Helpers__NS__logWarn, Helpers__NS__mediaTypeFromSrc, Helpers__NS__mkdirp, Helpers__NS__modifyLineByLine, Helpers__NS__msgCacheClear, Helpers__NS__openFolderInFileExplorer, Helpers__NS__parse, Helpers__NS__pathContainLink, Helpers__NS__questionYesNo, Helpers__NS__readFile, Helpers__NS__readJson, Helpers__NS__readJson5, Helpers__NS__readJsonC, Helpers__NS__relative, Helpers__NS__remove, Helpers__NS__removeEmptyLineFromString, Helpers__NS__removeFileIfExists, Helpers__NS__removeFolderIfExists, Helpers__NS__removeIfExists, Helpers__NS__removeSlashAtBegin, Helpers__NS__removeSlashAtEnd, Helpers__NS__removeSymlinks, Helpers__NS__renderError, Helpers__NS__replaceLinesInFile, Helpers__NS__run, Helpers__NS__runAsyncIn, Helpers__NS__runSyncIn, Helpers__NS__runSyncOrAsync, Helpers__NS__sleep, Helpers__NS__stopApplication, Helpers__NS__stringify, Helpers__NS__success, Helpers__NS__taskDone, Helpers__NS__taskStarted, Helpers__NS__throwError, Helpers__NS__timeout, Helpers__NS__tryCatchError, Helpers__NS__tryReadFile, Helpers__NS__tryRemoveDir, Helpers__NS__values, Helpers__NS__wait, Helpers__NS__warn, Helpers__NS__writeFile, Helpers__NS__writeJson, Helpers__NS__writeJson5, Helpers__NS__writeJsonC, LibTypeArr, LibTypeEnum, PREFIXES, REGEX_REGION, TAGS, UtilsBinary__NS__arrayBufferToBlob, UtilsBinary__NS__base64toBlob, UtilsBinary__NS__base64toDbBinaryFormat, UtilsBinary__NS__blobToArrayBuffer, UtilsBinary__NS__blobToBase64, UtilsBinary__NS__blobToFile, UtilsBinary__NS__blobToJson, UtilsBinary__NS__blobToText, UtilsBinary__NS__dbBinaryFormatToBase64, UtilsBinary__NS__dbBinaryFormatToText, UtilsBinary__NS__fileToBlob, UtilsBinary__NS__fileToText, UtilsBinary__NS__getBlobFrom, UtilsBinary__NS__jsonToBlob, UtilsBinary__NS__textToBlob, UtilsBinary__NS__textToDbBinaryFormat, UtilsBinary__NS__textToFile, UtilsCliClassMethod__NS__decoratorMethod, UtilsCliClassMethod__NS__getFrom, UtilsCli__NS__getTimeFromThisCLIScriptStart, UtilsDotFile__NS__addCommentAtTheBeginningOfDotFile, UtilsDotFile__NS__getCommentsKeysAsJsonObject, UtilsDotFile__NS__getValueFromDotFile, UtilsDotFile__NS__getValuesKeysAsJsonObject, UtilsDotFile__NS__setCommentToKeyInDotFile, UtilsDotFile__NS__setValueToDotFile, UtilsDotFile__NS__setValuesKeysFromObject, UtilsEtcHosts__NS__SIMULATE_DOMAIN_TAG, UtilsEtcHosts__NS__getEntriesByDomain, UtilsEtcHosts__NS__getEntriesByIp, UtilsEtcHosts__NS__getEntryByComment, UtilsEtcHosts__NS__getLines, UtilsEtcHosts__NS__getPath, UtilsEtcHosts__NS__getTokensData, UtilsEtcHosts__NS__removeEntryByDomain, UtilsEtcHosts__NS__simulateDomain, UtilsEtcHosts__NS__specificEntryExists, UtilsExecProc__NS__executeUntilEndOrThrow, UtilsExecProc__NS__getStdoutWithoutShowingOrThrow, UtilsExecProc__NS__spawnAdminSudo, UtilsExecProc__NS__spawnAsync, UtilsFilesFoldersSync__NS__IGNORE_FOLDERS_FILES_PATTERNS, UtilsFilesFoldersSync__NS__copy, UtilsFilesFoldersSync__NS__copyFile, UtilsFilesFoldersSync__NS__copyFolder, UtilsFilesFoldersSync__NS__filterDontCopy, UtilsFilesFoldersSync__NS__filterOnlyCopy, UtilsFilesFoldersSync__NS__getFilesFrom, UtilsFilesFoldersSync__NS__getFoldersFrom, UtilsFilesFoldersSync__NS__move, UtilsFilesFoldersSync__NS__readFile, UtilsFilesFoldersSync__NS__writeFile, UtilsFilesFolders__NS__IGNORE_FOLDERS_FILES_PATTERNS, UtilsI18n__NS__CommonLocaleCodeEnum, UtilsI18n__NS__LangOptionArr, UtilsI18n__NS__commonLocales, UtilsI18n__NS__defaultLangLocale, UtilsI18n__NS__detectLocale, UtilsJson__NS__getAtrributiesFromJsonWithComments, UtilsJson__NS__getAttributiesFromComment, UtilsJson__NS__readJson, UtilsJson__NS__readJsonWithComments, UtilsMessages__NS__compilationWrapper, UtilsMigrations__NS__formatTimestamp, UtilsMigrations__NS__getFormattedTimestampFromClassName, UtilsMigrations__NS__getTimestampFromClassName, UtilsMigrations__NS__isValidTimestamp, UtilsNetwork__NS__checkIfServerOnline, UtilsNetwork__NS__checkIfServerPings, UtilsNetwork__NS__checkPing, UtilsNetwork__NS__etcHostHasProperLocalhostIp4Entry, UtilsNetwork__NS__etcHostHasProperLocalhostIp6Entry, UtilsNetwork__NS__getCurrentPublicIpAddress, UtilsNetwork__NS__getEtcHostEntriesByDomain, UtilsNetwork__NS__getEtcHostEntryByComment, UtilsNetwork__NS__getEtcHostEntryByIp, UtilsNetwork__NS__getEtcHostsPath, UtilsNetwork__NS__getFirstIpV4LocalActiveIpAddress, UtilsNetwork__NS__getLocalIpAddresses, UtilsNetwork__NS__isValidDomain, UtilsNetwork__NS__isValidIp, UtilsNetwork__NS__removeEtcHost, UtilsNetwork__NS__setEtcHost, UtilsNetwork__NS__simulateDomain, UtilsNetwork__NS__urlParse, UtilsOs__NS__EDITOR_PROCESSES, UtilsOs__NS__EditorArr, UtilsOs__NS__commandExistsAsync, UtilsOs__NS__commandExistsSync, UtilsOs__NS__detectEditor, UtilsOs__NS__drawHorizontalLine, UtilsOs__NS__drawVerticalLine, UtilsOs__NS__getEditorKeybindingPath, UtilsOs__NS__getEditorSettingsJsonPath, UtilsOs__NS__getInotifyWatchCount, UtilsOs__NS__getRealHomeDir, UtilsOs__NS__isBrowser, UtilsOs__NS__isDockerAvailable, UtilsOs__NS__isElectron, UtilsOs__NS__isNode, UtilsOs__NS__isNodeVersionOk, UtilsOs__NS__isPortInUse, UtilsOs__NS__isRunningInBrowser, UtilsOs__NS__isRunningInCliMode, UtilsOs__NS__isRunningInCloudflareWorker, UtilsOs__NS__isRunningInDocker, UtilsOs__NS__isRunningInElectron, UtilsOs__NS__isRunningInLinuxGraphicsCapableEnvironment, UtilsOs__NS__isRunningInMochaTest, UtilsOs__NS__isRunningInNode, UtilsOs__NS__isRunningInOsWithGraphicsCapableEnvironment, UtilsOs__NS__isRunningInSSRMode, UtilsOs__NS__isRunningInVscodeExtension, UtilsOs__NS__isRunningInWebSQL, UtilsOs__NS__isRunningInWindows, UtilsOs__NS__isRunningInWindowsCmd, UtilsOs__NS__isRunningInWindowsGitBash, UtilsOs__NS__isRunningInWindowsPowerShell, UtilsOs__NS__isRunningInWsl, UtilsOs__NS__isRunningNodeDebugger, UtilsOs__NS__isSSRMode, UtilsOs__NS__isVscodeExtension, UtilsOs__NS__isWebSQL, UtilsOs__NS__killAllEditor, UtilsOs__NS__openFolderInFileExplorer, UtilsOs__NS__pipxNestedPackageExists, UtilsOs__NS__pipxPackageExists, UtilsOs__NS__pythonModuleExists, UtilsOs__NS__safeExitProgramCleanUp, UtilsOs__NS__sendNotification, UtilsOs__NS__whichOrWherePackageLocated, UtilsProcessLogger__NS__ProcessFileLogger, UtilsProcessLogger__NS__baseDirTaonProcessLogs, UtilsProcessLogger__NS__createStickyTopBox, UtilsProcessLogger__NS__getLogsFiles, UtilsProcess__NS__getBashOrShellName, UtilsProcess__NS__getChildPidsOnce, UtilsProcess__NS__getCurrentProcessAndChildUsage, UtilsProcess__NS__getGitBashPath, UtilsProcess__NS__getPathOfExecutable, UtilsProcess__NS__getUsageForPid, UtilsProcess__NS__isNodeVersionOk, UtilsProcess__NS__killAllJava, UtilsProcess__NS__killAllOtherNodeProcesses, UtilsProcess__NS__killProcess, UtilsProcess__NS__killProcessOnPort, UtilsProcess__NS__startAsyncChildProcessCommandUntil, UtilsProcess__NS__startInNewTerminalWindow, UtilsProgress__NS__emitProgress, UtilsProgress__NS__hasProgressEvent, UtilsProgress__NS__parseTaonProgressLine, UtilsProgress__NS__resolveFrom, UtilsProjects__NS__sortGroupOfProject, UtilsStdinStdoutLogger__NS__registerFor, UtilsStringRegex__NS__containsNonAscii, UtilsString__NS__kebabCaseNoSplitNumbers, UtilsSudo__NS__getStatus, UtilsSudo__NS__isCurrentProcessElevated, UtilsSudo__NS__isInProperModeForTaon, UtilsTerminal__NS__basicYesNo, UtilsTerminal__NS__canUseInteractiveToggle, UtilsTerminal__NS__clearConsole, UtilsTerminal__NS__confirm, UtilsTerminal__NS__drawBigText, UtilsTerminal__NS__drawHorizontalLine, UtilsTerminal__NS__drawVerticalLine, UtilsTerminal__NS__fetchAndDisplay, UtilsTerminal__NS__getTerminalHeight, UtilsTerminal__NS__input, UtilsTerminal__NS__isVerboseModeTaon, UtilsTerminal__NS__multiselect, UtilsTerminal__NS__multiselectActionAndExecute, UtilsTerminal__NS__pipeEnterToStdin, UtilsTerminal__NS__pressAnyKey, UtilsTerminal__NS__pressAnyKeyToContinueAsync, UtilsTerminal__NS__pressAnyKeyToTryAgainErrorOccurred, UtilsTerminal__NS__pressKeyAndContinueSync, UtilsTerminal__NS__previewLongList, UtilsTerminal__NS__previewLongListGitLogLike, UtilsTerminal__NS__select, UtilsTerminal__NS__selectActionAndExecute, UtilsTerminal__NS__wait, UtilsTerminal__NS__waitForUserAnyKey, UtilsTerminal__NS__waitMilliseconds, UtilsTime__NS__formatDuration, UtilsTime__NS__mesureExecutionTime, UtilsTime__NS__mesureExecutionTimeSync, UtilsTime__NS__wait, UtilsTime__NS__waitMilliseconds, UtilsWaitNotifier__NS__getNotifier, UtilsYaml__NS__jsonToYaml, UtilsYaml__NS__readYamlAsJson, UtilsYaml__NS__writeJsonToYaml, UtilsYaml__NS__yamlToJson, Utils__NS__camelize, Utils__NS__css__NS__numValue, Utils__NS__escapeStringForRegEx, Utils__NS__fullDate, Utils__NS__fullDateTime, Utils__NS__getFreePort, Utils__NS__removeChalkSpecialChars, Utils__NS__requireUncached, Utils__NS__sortKeys, Utils__NS__uniqArray, Utils__NS__wait, Utils__NS__waitMilliseconds, ___NS__add, ___NS__after, ___NS__ary, ___NS__assign, ___NS__assignIn, ___NS__assignInWith, ___NS__assignWith, ___NS__at, ___NS__attempt, ___NS__before, ___NS__bind, ___NS__bindAll, ___NS__bindKey, ___NS__camelCase, ___NS__capitalize, ___NS__castArray, ___NS__ceil, ___NS__chain, ___NS__chunk, ___NS__clamp, ___NS__clone, ___NS__cloneDeep, ___NS__cloneDeepWith, ___NS__cloneWith, ___NS__compact, ___NS__concat, ___NS__cond, ___NS__conforms, ___NS__conformsTo, ___NS__constant, ___NS__countBy, ___NS__create, ___NS__curry, ___NS__curryRight, ___NS__debounce, ___NS__deburr, ___NS__defaultTo, ___NS__defaults, ___NS__defaultsDeep, ___NS__defer, ___NS__delay, ___NS__difference, ___NS__differenceBy, ___NS__differenceWith, ___NS__divide, ___NS__drop, ___NS__dropRight, ___NS__dropRightWhile, ___NS__dropWhile, ___NS__each, ___NS__eachRight, ___NS__endsWith, ___NS__entries, ___NS__entriesIn, ___NS__eq, ___NS__escape, ___NS__escapeRegExp, ___NS__every, ___NS__extend, ___NS__extendWith, ___NS__fill, ___NS__filter, ___NS__find, ___NS__findIndex, ___NS__findKey, ___NS__findLast, ___NS__findLastIndex, ___NS__findLastKey, ___NS__first, ___NS__flatMap, ___NS__flatMapDeep, ___NS__flatMapDepth, ___NS__flatten, ___NS__flattenDeep, ___NS__flattenDepth, ___NS__flip, ___NS__floor, ___NS__flow, ___NS__flowRight, ___NS__forEach, ___NS__forEachRight, ___NS__forIn, ___NS__forInRight, ___NS__forOwn, ___NS__forOwnRight, ___NS__fromPairs, ___NS__functions, ___NS__functionsIn, ___NS__get, ___NS__groupBy, ___NS__gt, ___NS__gte, ___NS__has, ___NS__hasIn, ___NS__head, ___NS__identity, ___NS__inRange, ___NS__includes, ___NS__indexOf, ___NS__initial, ___NS__intersection, ___NS__intersectionBy, ___NS__intersectionWith, ___NS__invert, ___NS__invertBy, ___NS__invoke, ___NS__invokeMap, ___NS__isArguments, ___NS__isArray, ___NS__isArrayBuffer, ___NS__isArrayLike, ___NS__isArrayLikeObject, ___NS__isBoolean, ___NS__isBuffer, ___NS__isDate, ___NS__isElement, ___NS__isEmpty, ___NS__isEqual, ___NS__isEqualWith, ___NS__isError, ___NS__isFinite, ___NS__isFunction, ___NS__isInteger, ___NS__isLength, ___NS__isMap, ___NS__isMatch, ___NS__isMatchWith, ___NS__isNaN, ___NS__isNative, ___NS__isNil, ___NS__isNull, ___NS__isNumber, ___NS__isObject, ___NS__isObjectLike, ___NS__isPlainObject, ___NS__isRegExp, ___NS__isSafeInteger, ___NS__isSet, ___NS__isString, ___NS__isSymbol, ___NS__isTypedArray, ___NS__isUndefined, ___NS__isWeakMap, ___NS__isWeakSet, ___NS__iteratee, ___NS__join, ___NS__kebabCase, ___NS__keyBy, ___NS__keys, ___NS__keysIn, ___NS__last, ___NS__lastIndexOf, ___NS__lowerCase, ___NS__lowerFirst, ___NS__lt, ___NS__lte, ___NS__map, ___NS__mapKeys, ___NS__mapValues, ___NS__matches, ___NS__matchesProperty, ___NS__max, ___NS__maxBy, ___NS__mean, ___NS__meanBy, ___NS__memoize, ___NS__merge, ___NS__mergeWith, ___NS__method, ___NS__methodOf, ___NS__min, ___NS__minBy, ___NS__mixin, ___NS__multiply, ___NS__negate, ___NS__noop, ___NS__now, ___NS__nth, ___NS__nthArg, ___NS__omit, ___NS__omitBy, ___NS__once, ___NS__orderBy, ___NS__over, ___NS__overArgs, ___NS__overEvery, ___NS__overSome, ___NS__pad, ___NS__padEnd, ___NS__padStart, ___NS__parseInt, ___NS__partial, ___NS__partialRight, ___NS__partition, ___NS__pick, ___NS__pickBy, ___NS__property, ___NS__propertyOf, ___NS__pull, ___NS__pullAll, ___NS__pullAllBy, ___NS__pullAllWith, ___NS__pullAt, ___NS__random, ___NS__range, ___NS__rangeRight, ___NS__rearg, ___NS__reduce, ___NS__reduceRight, ___NS__reject, ___NS__remove, ___NS__repeat, ___NS__replace, ___NS__rest, ___NS__result, ___NS__reverse, ___NS__round, ___NS__sample, ___NS__sampleSize, ___NS__set, ___NS__setWith, ___NS__shuffle, ___NS__size, ___NS__slice, ___NS__snakeCase, ___NS__some, ___NS__sortBy, ___NS__sortedIndex, ___NS__sortedIndexBy, ___NS__sortedIndexOf, ___NS__sortedLastIndex, ___NS__sortedLastIndexBy, ___NS__sortedLastIndexOf, ___NS__sortedUniq, ___NS__sortedUniqBy, ___NS__split, ___NS__spread, ___NS__startCase, ___NS__startsWith, ___NS__stubArray, ___NS__stubFalse, ___NS__stubObject, ___NS__stubString, ___NS__stubTrue, ___NS__subtract, ___NS__sum, ___NS__sumBy, ___NS__tail, ___NS__take, ___NS__takeRight, ___NS__takeRightWhile, ___NS__takeWhile, ___NS__tap, ___NS__template, ___NS__templateSettings, ___NS__throttle, ___NS__thru, ___NS__times, ___NS__toArray, ___NS__toFinite, ___NS__toInteger, ___NS__toLength, ___NS__toLower, ___NS__toNumber, ___NS__toPairs, ___NS__toPairsIn, ___NS__toPath, ___NS__toPlainObject, ___NS__toSafeInteger, ___NS__toString, ___NS__toUpper, ___NS__transform, ___NS__trim, ___NS__trimEnd, ___NS__trimStart, ___NS__truncate, ___NS__unary, ___NS__unescape, ___NS__union, ___NS__unionBy, ___NS__unionWith, ___NS__uniq, ___NS__uniqBy, ___NS__uniqWith, ___NS__uniqueId, ___NS__unset, ___NS__unzip, ___NS__unzipWith, ___NS__update, ___NS__updateWith, ___NS__upperCase, ___NS__upperFirst, ___NS__values, ___NS__valuesIn, ___NS__without, ___NS__words, ___NS__wrap, ___NS__xor, ___NS__xorBy, ___NS__xorWith, ___NS__zip, ___NS__zipObject, ___NS__zipObjectDeep, ___NS__zipWith, appRelatedFiles, areTrustedForPatchUpdate, backendNodejsOnlyFiles, backendWebsqlNodejsFiles, baseTaonDevProjectsNames, chalk, child_process, chokidar, config, crossPlatformPath, dateformat, dockerTemplates, dotTaonFolder, dotTnpFolder, encoding, execAsyncVscode, extAllowedToExportAndReplaceTSJSCodeFiles, extAllowedToReplace, extForSassLikeFiles, extForStyles, extTemplatesFiles, fg, fileName, filesNotAllowedToClean, folderName, frameworkName, frameworkNameBe, frontEndOnly, frontendFiles, fse, glob, globalSpinner, http, https, isCloudflareWorker, isElevated, load, mkdirp, ncp, net, notAllowedNames, notAllowedProjectNames, notNeededForExportFiles, os, path, ps, psList, requireDefault, requiredForDev, rimraf, spawn, startAsync, taonActionFromParent, taonBasePathToGlobalDockerTemplatesFn, taonContainers, taonPackageName, taonProjects, taonRepoPathUserInUserDirFn, tempFoldersName, tnpPackageName, urlRepoTaon, urlRepoTaonContainers, win32Path };
|
|
3168
|
-
export type { CommandOutputOptions, CoreModels__NS__BaseProjectType, CoreModels__NS__BuildType, CoreModels__NS__BuildWatcherErrorType, CoreModels__NS__BuildWatcherType, CoreModels__NS__CfontAlign, CoreModels__NS__CfontStyle, CoreModels__NS__ContentType, CoreModels__NS__ContentTypeKeys, CoreModels__NS__CoreLibCategory, CoreModels__NS__CutableFileExt, CoreModels__NS__DatabaseType, CoreModels__NS__DeepPartial, CoreModels__NS__EnvironmentNameTaon, CoreModels__NS__FileEvent, CoreModels__NS__FileExtension, CoreModels__NS__FrameworkVersion, CoreModels__NS__GitConnection, CoreModels__NS__GlobalDependencies, CoreModels__NS__HttpCode, CoreModels__NS__HttpMethod, CoreModels__NS__ImageFileExtension, CoreModels__NS__InstalationType, CoreModels__NS__LibType, CoreModels__NS__ManifestIcon, CoreModels__NS__MediaType, CoreModels__NS__MimeType, CoreModels__NS__NewFactoryType, CoreModels__NS__NpmInstallOptions, CoreModels__NS__NpmPublishOptions, CoreModels__NS__OutFolder, CoreModels__NS__PROGRESS_DATA_TYPE, CoreModels__NS__PUSHTYPE, CoreModels__NS__Package, CoreModels__NS__ParamType, CoreModels__NS__Position, CoreModels__NS__PreReleaseVersionTag, CoreModels__NS__PwaManifest, CoreModels__NS__ReleaseVersionType, CoreModels__NS__RunOptions, CoreModels__NS__Size, CoreModels__NS__TsUsage, CoreModels__NS__UIFramework, CoreModels__NS__UploadedBackendFile, CoreModels__NS__VSCodeSettings, DbBinaryFormat, DbBinaryFormatForBrowser, ExecAsyncVscodeOptions, ExecAsyncVscodeResult, ExecVscodeProgress, LibTypeNames, ProcessStartOptions, RunSyncOrAsyncOptions, TaskStats, UtilsEtcHosts__NS__EtchostEntry, UtilsFilesFoldersSync__NS__UtilsFilesFoldersSyncGetFilesFromOptions, UtilsI18n__NS__CommonLocaleCode, UtilsI18n__NS__GettextExtracted, UtilsI18n__NS__GettextFile, UtilsI18n__NS__LangOption, UtilsJson__NS__AttrJsoncProp, UtilsNetwork__NS__LocalIpInfo, UtilsNetwork__NS__PingResult, UtilsOs__NS__Editor, UtilsOs__NS__EditorProcess, UtilsProcessLogger__NS__ProcessFileLoggerOptions, UtilsProcessLogger__NS__SpecialEventInProcessLogger, UtilsProgress__NS__ResolveProgressOptions, UtilsProgress__NS__TaonProgressEvent, UtilsProgress__NS__TaonProgressType, UtilsProjects__NS__OrderAbleProject, UtilsStdinStdoutLogger__NS__RegisteredAppLogging, UtilsTerminal__NS__SelectChoice, UtilsTerminal__NS__SelectChoiceValue, UtilsTime__NS__ExecutionTimeResult, UtilsTime__NS__MeasureOptions, UtilsWaitNotifier__NS__NotifierOptions };
|
|
3189
|
+
export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels__NS__BaseProjectTypeArr, CoreModels__NS__BuildTypeArr, CoreModels__NS__BuildWatcherTypeArr, CoreModels__NS__ClassNameStaticProperty, CoreModels__NS__EnvironmentName, CoreModels__NS__EnvironmentNameArr, CoreModels__NS__GitConnectionArr, CoreModels__NS__HttpMethodArr, CoreModels__NS__ImageFileExtensionArr, CoreModels__NS__InstalationTypeArr, CoreModels__NS__MediaTypeAllArr, CoreModels__NS__MimeTypesObj, CoreModels__NS__NpmSpecialVersions, CoreModels__NS__OrignalClassKey, CoreModels__NS__ReleaseVersionTypeEnum, CoreModels__NS__SPECIAL_APP_READY_MESSAGE, CoreModels__NS__SPECIAL_WORKER_READY_MESSAGE, CoreModels__NS__TaonHttpErrorCustomProp, CoreModels__NS__buildTypeToWatcherFn, CoreModels__NS__hasExitCleaningFunction, CoreModels__NS__localhostDomain, CoreModels__NS__localhostIp127, CoreModels__NS__mimeTypes, CoreModels__NS__parentLocation, CoreModels__NS__pathToChildren, CoreModels__NS__tagForTaskName, DbBinaryFormatEnum, ExecAsyncVscodeError, FilePathMetaData__NS__embedData, FilePathMetaData__NS__extractData, FilePathMetaData__NS__getOnlyMetadataString, FilesNames__NS__tmpLastSelectedJsonFile, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers__NS__ActionInstance, Helpers__NS___fixCommand, Helpers__NS__actionStarted, Helpers__NS__bigMaxBuffer, Helpers__NS__checkProcess, Helpers__NS__cleanExit, Helpers__NS__clearConsole, Helpers__NS__command, Helpers__NS__commandOutputAsString, Helpers__NS__commandOutputAsStringAsync, Helpers__NS__contain, Helpers__NS__createFolder, Helpers__NS__createSymLink, Helpers__NS__error, Helpers__NS__execute, Helpers__NS__exists, Helpers__NS__filesFrom, Helpers__NS__foldersFrom, Helpers__NS__getFilesFrom, Helpers__NS__getFoldersFrom, Helpers__NS__getIsBrowser, Helpers__NS__getIsElectron, Helpers__NS__getIsNode, Helpers__NS__getIsRunningInGitBash, Helpers__NS__getIsSupportedTaonTerminal, Helpers__NS__getIsVerboseMode, Helpers__NS__getIsVerboseModeOrTnp, Helpers__NS__getIsWebSQL, Helpers__NS__getIsWsl, Helpers__NS__getStdio, Helpers__NS__hideNodeWarnings, Helpers__NS__info, Helpers__NS__isBlob, Helpers__NS__isBuffer, Helpers__NS__isClass, Helpers__NS__isExistedSymlink, Helpers__NS__isFile, Helpers__NS__isFolder, Helpers__NS__isRunningInDocker, Helpers__NS__isRunningInLinuxGraphicsCapableEnvironment, Helpers__NS__isSymlinkFileExitedOrUnexisted, Helpers__NS__isSymlinkThatMatchesUrl, Helpers__NS__isUnexistedLink, Helpers__NS__killOnPort, Helpers__NS__killProcess, Helpers__NS__killProcessByPort, Helpers__NS__linksToFolderFrom, Helpers__NS__linksToFoldersFrom, Helpers__NS__log, Helpers__NS__logError, Helpers__NS__logInfo, Helpers__NS__logProc, Helpers__NS__logSuccess, Helpers__NS__logTaskDone, Helpers__NS__logTaskStarted, Helpers__NS__logWarn, Helpers__NS__mediaTypeFromSrc, Helpers__NS__mkdirp, Helpers__NS__modifyLineByLine, Helpers__NS__msgCacheClear, Helpers__NS__openFolderInFileExplorer, Helpers__NS__parse, Helpers__NS__pathContainLink, Helpers__NS__questionYesNo, Helpers__NS__readFile, Helpers__NS__readJson, Helpers__NS__readJson5, Helpers__NS__readJsonC, Helpers__NS__relative, Helpers__NS__remove, Helpers__NS__removeEmptyLineFromString, Helpers__NS__removeFileIfExists, Helpers__NS__removeFolderIfExists, Helpers__NS__removeIfExists, Helpers__NS__removeSlashAtBegin, Helpers__NS__removeSlashAtEnd, Helpers__NS__removeSymlinks, Helpers__NS__renderError, Helpers__NS__replaceLinesInFile, Helpers__NS__run, Helpers__NS__runAsyncIn, Helpers__NS__runSyncIn, Helpers__NS__runSyncOrAsync, Helpers__NS__sleep, Helpers__NS__stopApplication, Helpers__NS__stringify, Helpers__NS__success, Helpers__NS__taskDone, Helpers__NS__taskStarted, Helpers__NS__throwError, Helpers__NS__timeout, Helpers__NS__tryCatchError, Helpers__NS__tryReadFile, Helpers__NS__tryRemoveDir, Helpers__NS__values, Helpers__NS__wait, Helpers__NS__warn, Helpers__NS__writeFile, Helpers__NS__writeJson, Helpers__NS__writeJson5, Helpers__NS__writeJsonC, LibTypeArr, LibTypeEnum, PREFIXES, REGEX_REGION, TAGS, UtilsBinary__NS__arrayBufferToBlob, UtilsBinary__NS__base64toBlob, UtilsBinary__NS__base64toDbBinaryFormat, UtilsBinary__NS__blobToArrayBuffer, UtilsBinary__NS__blobToBase64, UtilsBinary__NS__blobToFile, UtilsBinary__NS__blobToJson, UtilsBinary__NS__blobToText, UtilsBinary__NS__dbBinaryFormatToBase64, UtilsBinary__NS__dbBinaryFormatToText, UtilsBinary__NS__fileToBlob, UtilsBinary__NS__fileToText, UtilsBinary__NS__getBlobFrom, UtilsBinary__NS__jsonToBlob, UtilsBinary__NS__textToBlob, UtilsBinary__NS__textToDbBinaryFormat, UtilsBinary__NS__textToFile, UtilsCliClassMethod__NS__decoratorMethod, UtilsCliClassMethod__NS__getFrom, UtilsCli__NS__getTimeFromThisCLIScriptStart, UtilsDotFile__NS__addCommentAtTheBeginningOfDotFile, UtilsDotFile__NS__getCommentsKeysAsJsonObject, UtilsDotFile__NS__getValueFromDotFile, UtilsDotFile__NS__getValuesKeysAsJsonObject, UtilsDotFile__NS__setCommentToKeyInDotFile, UtilsDotFile__NS__setValueToDotFile, UtilsDotFile__NS__setValuesKeysFromObject, UtilsEtcHosts__NS__SIMULATE_DOMAIN_TAG, UtilsEtcHosts__NS__getEntriesByDomain, UtilsEtcHosts__NS__getEntriesByIp, UtilsEtcHosts__NS__getEntryByComment, UtilsEtcHosts__NS__getLines, UtilsEtcHosts__NS__getPath, UtilsEtcHosts__NS__getTokensData, UtilsEtcHosts__NS__removeEntryByDomain, UtilsEtcHosts__NS__simulateDomain, UtilsEtcHosts__NS__specificEntryExists, UtilsExecProc__NS__executeUntilEndOrThrow, UtilsExecProc__NS__getStdoutWithoutShowingOrThrow, UtilsExecProc__NS__spawnAdminSudo, UtilsExecProc__NS__spawnAsync, UtilsFilesFoldersSync__NS__IGNORE_FOLDERS_FILES_PATTERNS, UtilsFilesFoldersSync__NS__copy, UtilsFilesFoldersSync__NS__copyFile, UtilsFilesFoldersSync__NS__copyFolder, UtilsFilesFoldersSync__NS__filterDontCopy, UtilsFilesFoldersSync__NS__filterOnlyCopy, UtilsFilesFoldersSync__NS__getFilesFrom, UtilsFilesFoldersSync__NS__getFoldersFrom, UtilsFilesFoldersSync__NS__move, UtilsFilesFoldersSync__NS__readFile, UtilsFilesFoldersSync__NS__writeFile, UtilsFilesFolders__NS__IGNORE_FOLDERS_FILES_PATTERNS, UtilsI18n__NS__CommonLocaleCodeEnum, UtilsI18n__NS__LangOptionArr, UtilsI18n__NS__commonLocales, UtilsI18n__NS__defaultLangLocale, UtilsI18n__NS__detectLocale, UtilsJson__NS__getAtrributiesFromJsonWithComments, UtilsJson__NS__getAttributiesFromComment, UtilsJson__NS__readJson, UtilsJson__NS__readJsonWithComments, UtilsMessages__NS__compilationWrapper, UtilsMigrations__NS__formatTimestamp, UtilsMigrations__NS__getFormattedTimestampFromClassName, UtilsMigrations__NS__getTimestampFromClassName, UtilsMigrations__NS__isValidTimestamp, UtilsNetwork__NS__checkIfServerOnline, UtilsNetwork__NS__checkIfServerPings, UtilsNetwork__NS__checkPing, UtilsNetwork__NS__etcHostHasProperLocalhostIp4Entry, UtilsNetwork__NS__etcHostHasProperLocalhostIp6Entry, UtilsNetwork__NS__getCurrentPublicIpAddress, UtilsNetwork__NS__getEtcHostEntriesByDomain, UtilsNetwork__NS__getEtcHostEntryByComment, UtilsNetwork__NS__getEtcHostEntryByIp, UtilsNetwork__NS__getEtcHostsPath, UtilsNetwork__NS__getFirstIpV4LocalActiveIpAddress, UtilsNetwork__NS__getLocalIpAddresses, UtilsNetwork__NS__isValidDomain, UtilsNetwork__NS__isValidIp, UtilsNetwork__NS__removeEtcHost, UtilsNetwork__NS__setEtcHost, UtilsNetwork__NS__simulateDomain, UtilsNetwork__NS__urlParse, UtilsOs__NS__EDITOR_PROCESSES, UtilsOs__NS__EditorArr, UtilsOs__NS__commandExistsAsync, UtilsOs__NS__commandExistsSync, UtilsOs__NS__detectEditor, UtilsOs__NS__drawHorizontalLine, UtilsOs__NS__drawVerticalLine, UtilsOs__NS__getEditorKeybindingPath, UtilsOs__NS__getEditorSettingsJsonPath, UtilsOs__NS__getInotifyWatchCount, UtilsOs__NS__getRealHomeDir, UtilsOs__NS__getTempFolder, UtilsOs__NS__isBrowser, UtilsOs__NS__isDockerAvailable, UtilsOs__NS__isElectron, UtilsOs__NS__isNode, UtilsOs__NS__isNodeVersionOk, UtilsOs__NS__isPortInUse, UtilsOs__NS__isRunningInBrowser, UtilsOs__NS__isRunningInCliMode, UtilsOs__NS__isRunningInCloudflareWorker, UtilsOs__NS__isRunningInDocker, UtilsOs__NS__isRunningInElectron, UtilsOs__NS__isRunningInLinuxGraphicsCapableEnvironment, UtilsOs__NS__isRunningInMochaTest, UtilsOs__NS__isRunningInNode, UtilsOs__NS__isRunningInOsWithGraphicsCapableEnvironment, UtilsOs__NS__isRunningInSSRMode, UtilsOs__NS__isRunningInVscodeExtension, UtilsOs__NS__isRunningInWebSQL, UtilsOs__NS__isRunningInWindows, UtilsOs__NS__isRunningInWindowsCmd, UtilsOs__NS__isRunningInWindowsGitBash, UtilsOs__NS__isRunningInWindowsPowerShell, UtilsOs__NS__isRunningInWsl, UtilsOs__NS__isRunningNodeDebugger, UtilsOs__NS__isSSRMode, UtilsOs__NS__isVscodeExtension, UtilsOs__NS__isWebSQL, UtilsOs__NS__killAllEditor, UtilsOs__NS__openFolderInFileExplorer, UtilsOs__NS__pipxNestedPackageExists, UtilsOs__NS__pipxPackageExists, UtilsOs__NS__pythonModuleExists, UtilsOs__NS__safeExitProgramCleanUp, UtilsOs__NS__sendNotification, UtilsOs__NS__whichOrWherePackageLocated, UtilsProcessLogger__NS__ProcessFileLogger, UtilsProcessLogger__NS__baseDirTaonProcessLogs, UtilsProcessLogger__NS__createStickyTopBox, UtilsProcessLogger__NS__getLogsFiles, UtilsProcess__NS__getBashOrShellName, UtilsProcess__NS__getChildPidsOnce, UtilsProcess__NS__getCurrentProcessAndChildUsage, UtilsProcess__NS__getGitBashPath, UtilsProcess__NS__getPathOfExecutable, UtilsProcess__NS__getUsageForPid, UtilsProcess__NS__isNodeVersionOk, UtilsProcess__NS__killAllJava, UtilsProcess__NS__killAllOtherNodeProcesses, UtilsProcess__NS__killProcess, UtilsProcess__NS__killProcessOnPort, UtilsProcess__NS__startAsyncChildProcessCommandUntil, UtilsProcess__NS__startInNewTerminalWindow, UtilsProgress__NS__emitProgress, UtilsProgress__NS__hasProgressEvent, UtilsProgress__NS__parseTaonProgressLine, UtilsProgress__NS__resolveFrom, UtilsProjects__NS__sortGroupOfProject, UtilsStdinStdoutLogger__NS__registerFor, UtilsStringRegex__NS__containsNonAscii, UtilsString__NS__kebabCaseNoSplitNumbers, UtilsSudo__NS__getStatus, UtilsSudo__NS__isCurrentProcessElevated, UtilsSudo__NS__isInProperModeForTaon, UtilsTerminal__NS__basicYesNo, UtilsTerminal__NS__canUseInteractiveToggle, UtilsTerminal__NS__clearConsole, UtilsTerminal__NS__confirm, UtilsTerminal__NS__drawBigText, UtilsTerminal__NS__drawHorizontalLine, UtilsTerminal__NS__drawVerticalLine, UtilsTerminal__NS__fetchAndDisplay, UtilsTerminal__NS__getTerminalHeight, UtilsTerminal__NS__input, UtilsTerminal__NS__isVerboseModeTaon, UtilsTerminal__NS__multiselect, UtilsTerminal__NS__multiselectActionAndExecute, UtilsTerminal__NS__pipeEnterToStdin, UtilsTerminal__NS__pressAnyKey, UtilsTerminal__NS__pressAnyKeyToContinueAsync, UtilsTerminal__NS__pressAnyKeyToTryAgainErrorOccurred, UtilsTerminal__NS__pressKeyAndContinueSync, UtilsTerminal__NS__previewLongList, UtilsTerminal__NS__previewLongListGitLogLike, UtilsTerminal__NS__select, UtilsTerminal__NS__selectActionAndExecute, UtilsTerminal__NS__wait, UtilsTerminal__NS__waitForUserAnyKey, UtilsTerminal__NS__waitMilliseconds, UtilsTime__NS__formatDuration, UtilsTime__NS__mesureExecutionTime, UtilsTime__NS__mesureExecutionTimeSync, UtilsTime__NS__wait, UtilsTime__NS__waitMilliseconds, UtilsWaitNotifier__NS__getNotifier, UtilsYaml__NS__jsonToYaml, UtilsYaml__NS__readYamlAsJson, UtilsYaml__NS__writeJsonToYaml, UtilsYaml__NS__yamlToJson, Utils__NS__camelize, Utils__NS__css__NS__numValue, Utils__NS__escapeStringForRegEx, Utils__NS__fullDate, Utils__NS__fullDateTime, Utils__NS__getFreePort, Utils__NS__removeChalkSpecialChars, Utils__NS__requireUncached, Utils__NS__sortKeys, Utils__NS__uniqArray, Utils__NS__wait, Utils__NS__waitMilliseconds, ___NS__add, ___NS__after, ___NS__ary, ___NS__assign, ___NS__assignIn, ___NS__assignInWith, ___NS__assignWith, ___NS__at, ___NS__attempt, ___NS__before, ___NS__bind, ___NS__bindAll, ___NS__bindKey, ___NS__camelCase, ___NS__capitalize, ___NS__castArray, ___NS__ceil, ___NS__chain, ___NS__chunk, ___NS__clamp, ___NS__clone, ___NS__cloneDeep, ___NS__cloneDeepWith, ___NS__cloneWith, ___NS__compact, ___NS__concat, ___NS__cond, ___NS__conforms, ___NS__conformsTo, ___NS__constant, ___NS__countBy, ___NS__create, ___NS__curry, ___NS__curryRight, ___NS__debounce, ___NS__deburr, ___NS__defaultTo, ___NS__defaults, ___NS__defaultsDeep, ___NS__defer, ___NS__delay, ___NS__difference, ___NS__differenceBy, ___NS__differenceWith, ___NS__divide, ___NS__drop, ___NS__dropRight, ___NS__dropRightWhile, ___NS__dropWhile, ___NS__each, ___NS__eachRight, ___NS__endsWith, ___NS__entries, ___NS__entriesIn, ___NS__eq, ___NS__escape, ___NS__escapeRegExp, ___NS__every, ___NS__extend, ___NS__extendWith, ___NS__fill, ___NS__filter, ___NS__find, ___NS__findIndex, ___NS__findKey, ___NS__findLast, ___NS__findLastIndex, ___NS__findLastKey, ___NS__first, ___NS__flatMap, ___NS__flatMapDeep, ___NS__flatMapDepth, ___NS__flatten, ___NS__flattenDeep, ___NS__flattenDepth, ___NS__flip, ___NS__floor, ___NS__flow, ___NS__flowRight, ___NS__forEach, ___NS__forEachRight, ___NS__forIn, ___NS__forInRight, ___NS__forOwn, ___NS__forOwnRight, ___NS__fromPairs, ___NS__functions, ___NS__functionsIn, ___NS__get, ___NS__groupBy, ___NS__gt, ___NS__gte, ___NS__has, ___NS__hasIn, ___NS__head, ___NS__identity, ___NS__inRange, ___NS__includes, ___NS__indexOf, ___NS__initial, ___NS__intersection, ___NS__intersectionBy, ___NS__intersectionWith, ___NS__invert, ___NS__invertBy, ___NS__invoke, ___NS__invokeMap, ___NS__isArguments, ___NS__isArray, ___NS__isArrayBuffer, ___NS__isArrayLike, ___NS__isArrayLikeObject, ___NS__isBoolean, ___NS__isBuffer, ___NS__isDate, ___NS__isElement, ___NS__isEmpty, ___NS__isEqual, ___NS__isEqualWith, ___NS__isError, ___NS__isFinite, ___NS__isFunction, ___NS__isInteger, ___NS__isLength, ___NS__isMap, ___NS__isMatch, ___NS__isMatchWith, ___NS__isNaN, ___NS__isNative, ___NS__isNil, ___NS__isNull, ___NS__isNumber, ___NS__isObject, ___NS__isObjectLike, ___NS__isPlainObject, ___NS__isRegExp, ___NS__isSafeInteger, ___NS__isSet, ___NS__isString, ___NS__isSymbol, ___NS__isTypedArray, ___NS__isUndefined, ___NS__isWeakMap, ___NS__isWeakSet, ___NS__iteratee, ___NS__join, ___NS__kebabCase, ___NS__keyBy, ___NS__keys, ___NS__keysIn, ___NS__last, ___NS__lastIndexOf, ___NS__lowerCase, ___NS__lowerFirst, ___NS__lt, ___NS__lte, ___NS__map, ___NS__mapKeys, ___NS__mapValues, ___NS__matches, ___NS__matchesProperty, ___NS__max, ___NS__maxBy, ___NS__mean, ___NS__meanBy, ___NS__memoize, ___NS__merge, ___NS__mergeWith, ___NS__method, ___NS__methodOf, ___NS__min, ___NS__minBy, ___NS__mixin, ___NS__multiply, ___NS__negate, ___NS__noop, ___NS__now, ___NS__nth, ___NS__nthArg, ___NS__omit, ___NS__omitBy, ___NS__once, ___NS__orderBy, ___NS__over, ___NS__overArgs, ___NS__overEvery, ___NS__overSome, ___NS__pad, ___NS__padEnd, ___NS__padStart, ___NS__parseInt, ___NS__partial, ___NS__partialRight, ___NS__partition, ___NS__pick, ___NS__pickBy, ___NS__property, ___NS__propertyOf, ___NS__pull, ___NS__pullAll, ___NS__pullAllBy, ___NS__pullAllWith, ___NS__pullAt, ___NS__random, ___NS__range, ___NS__rangeRight, ___NS__rearg, ___NS__reduce, ___NS__reduceRight, ___NS__reject, ___NS__remove, ___NS__repeat, ___NS__replace, ___NS__rest, ___NS__result, ___NS__reverse, ___NS__round, ___NS__sample, ___NS__sampleSize, ___NS__set, ___NS__setWith, ___NS__shuffle, ___NS__size, ___NS__slice, ___NS__snakeCase, ___NS__some, ___NS__sortBy, ___NS__sortedIndex, ___NS__sortedIndexBy, ___NS__sortedIndexOf, ___NS__sortedLastIndex, ___NS__sortedLastIndexBy, ___NS__sortedLastIndexOf, ___NS__sortedUniq, ___NS__sortedUniqBy, ___NS__split, ___NS__spread, ___NS__startCase, ___NS__startsWith, ___NS__stubArray, ___NS__stubFalse, ___NS__stubObject, ___NS__stubString, ___NS__stubTrue, ___NS__subtract, ___NS__sum, ___NS__sumBy, ___NS__tail, ___NS__take, ___NS__takeRight, ___NS__takeRightWhile, ___NS__takeWhile, ___NS__tap, ___NS__template, ___NS__templateSettings, ___NS__throttle, ___NS__thru, ___NS__times, ___NS__toArray, ___NS__toFinite, ___NS__toInteger, ___NS__toLength, ___NS__toLower, ___NS__toNumber, ___NS__toPairs, ___NS__toPairsIn, ___NS__toPath, ___NS__toPlainObject, ___NS__toSafeInteger, ___NS__toString, ___NS__toUpper, ___NS__transform, ___NS__trim, ___NS__trimEnd, ___NS__trimStart, ___NS__truncate, ___NS__unary, ___NS__unescape, ___NS__union, ___NS__unionBy, ___NS__unionWith, ___NS__uniq, ___NS__uniqBy, ___NS__uniqWith, ___NS__uniqueId, ___NS__unset, ___NS__unzip, ___NS__unzipWith, ___NS__update, ___NS__updateWith, ___NS__upperCase, ___NS__upperFirst, ___NS__values, ___NS__valuesIn, ___NS__without, ___NS__words, ___NS__wrap, ___NS__xor, ___NS__xorBy, ___NS__xorWith, ___NS__zip, ___NS__zipObject, ___NS__zipObjectDeep, ___NS__zipWith, appRelatedFiles, areTrustedForPatchUpdate, axios, backendNodejsOnlyFiles, backendWebsqlNodejsFiles, baseTaonDevProjectsNames, chalk, child_process, chokidar, config, crossPlatformPath, dateformat, dockerTemplates, dotTaonFolder, dotTnpFolder, encoding, execAsyncVscode, extAllowedToExportAndReplaceTSJSCodeFiles, extAllowedToReplace, extForSassLikeFiles, extForStyles, extTemplatesFiles, fg, fileName, filesNotAllowedToClean, folderName, frameworkName, frameworkNameBe, frontEndOnly, frontendFiles, fse, glob, globalSpinner, http, https, isCloudflareWorker, isElevated, micromatch, mkdirp, ncp, notAllowedNames, notAllowedProjectNames, notNeededForExportFiles, os, path, ps, psList, requireDefault, requiredForDev, rimraf, spawn, startAsync, taonActionFromParent, taonBasePathToGlobalDockerTemplatesFn, taonContainers, taonPackageName, taonProjects, taonRepoPathUserInUserDirFn, tempFoldersName, tnpPackageName, updateJsoncContent, urlRepoTaon, urlRepoTaonContainers, win32Path };
|
|
3190
|
+
export type { CommandOutputOptions, CoreModels__NS__BaseProjectType, CoreModels__NS__BuildType, CoreModels__NS__BuildWatcherErrorType, CoreModels__NS__BuildWatcherType, CoreModels__NS__CfontAlign, CoreModels__NS__CfontStyle, CoreModels__NS__ContentType, CoreModels__NS__ContentTypeKeys, CoreModels__NS__CoreLibCategory, CoreModels__NS__CutableFileExt, CoreModels__NS__DatabaseType, CoreModels__NS__DeepPartial, CoreModels__NS__EnvironmentNameTaon, CoreModels__NS__FileEvent, CoreModels__NS__FileExtension, CoreModels__NS__FrameworkVersion, CoreModels__NS__GitConnection, CoreModels__NS__GlobalDependencies, CoreModels__NS__HttpCode, CoreModels__NS__HttpMethod, CoreModels__NS__ImageFileExtension, CoreModels__NS__InstalationType, CoreModels__NS__LibType, CoreModels__NS__ManifestIcon, CoreModels__NS__MediaType, CoreModels__NS__MimeType, CoreModels__NS__NewFactoryType, CoreModels__NS__NpmInstallOptions, CoreModels__NS__NpmPublishOptions, CoreModels__NS__OutFolder, CoreModels__NS__PROGRESS_DATA_TYPE, CoreModels__NS__PUSHTYPE, CoreModels__NS__Package, CoreModels__NS__ParamType, CoreModels__NS__Position, CoreModels__NS__PreReleaseVersionTag, CoreModels__NS__PwaManifest, CoreModels__NS__ReleaseVersionType, CoreModels__NS__RunOptions, CoreModels__NS__Size, CoreModels__NS__TsUsage, CoreModels__NS__UIFramework, CoreModels__NS__UploadedBackendFile, CoreModels__NS__VSCodeSettings, DbBinaryFormat, DbBinaryFormatForBrowser, ExecAsyncVscodeOptions, ExecAsyncVscodeResult, ExecVscodeProgress, JsonValue, LibTypeNames, ProcessStartOptions, ReplacementString, RunSyncOrAsyncOptions, TaskStats, UtilsEtcHosts__NS__EtchostEntry, UtilsFilesFoldersSync__NS__UtilsFilesFoldersSyncGetFilesFromOptions, UtilsI18n__NS__CommonLocaleCode, UtilsI18n__NS__GettextExtracted, UtilsI18n__NS__GettextFile, UtilsI18n__NS__LangOption, UtilsJson__NS__AttrJsoncProp, UtilsNetwork__NS__LocalIpInfo, UtilsNetwork__NS__PingResult, UtilsOs__NS__Editor, UtilsOs__NS__EditorProcess, UtilsOs__NS__GetTempFolderOptions, UtilsProcessLogger__NS__ProcessFileLoggerOptions, UtilsProcessLogger__NS__SpecialEventInProcessLogger, UtilsProgress__NS__ResolveProgressOptions, UtilsProgress__NS__TaonProgressEvent, UtilsProgress__NS__TaonProgressType, UtilsProjects__NS__OrderAbleProject, UtilsStdinStdoutLogger__NS__RegisteredAppLogging, UtilsTerminal__NS__SelectChoice, UtilsTerminal__NS__SelectChoiceValue, UtilsTime__NS__ExecutionTimeResult, UtilsTime__NS__MeasureOptions, UtilsWaitNotifier__NS__NotifierOptions };
|
|
@@ -585,6 +585,8 @@
|
|
|
585
585
|
"UtilsOs.isDockerAvailable": "UtilsOs__NS__isDockerAvailable",
|
|
586
586
|
"UtilsOs.openFolderInFileExplorer": "UtilsOs__NS__openFolderInFileExplorer",
|
|
587
587
|
"UtilsOs.getRealHomeDir": "UtilsOs__NS__getRealHomeDir",
|
|
588
|
+
"UtilsOs.GetTempFolderOptions": "UtilsOs__NS__GetTempFolderOptions",
|
|
589
|
+
"UtilsOs.getTempFolder": "UtilsOs__NS__getTempFolder",
|
|
588
590
|
"UtilsOs.Editor": "UtilsOs__NS__Editor",
|
|
589
591
|
"UtilsOs.EditorProcess": "UtilsOs__NS__EditorProcess",
|
|
590
592
|
"UtilsOs.EditorArr": "UtilsOs__NS__EditorArr",
|
|
@@ -1310,6 +1312,7 @@
|
|
|
1310
1312
|
"UtilsOs__NS__Editor",
|
|
1311
1313
|
"UtilsOs__NS__EditorArr",
|
|
1312
1314
|
"UtilsOs__NS__EditorProcess",
|
|
1315
|
+
"UtilsOs__NS__GetTempFolderOptions",
|
|
1313
1316
|
"UtilsOs__NS__commandExistsAsync",
|
|
1314
1317
|
"UtilsOs__NS__commandExistsSync",
|
|
1315
1318
|
"UtilsOs__NS__detectEditor",
|
|
@@ -1319,6 +1322,7 @@
|
|
|
1319
1322
|
"UtilsOs__NS__getEditorSettingsJsonPath",
|
|
1320
1323
|
"UtilsOs__NS__getInotifyWatchCount",
|
|
1321
1324
|
"UtilsOs__NS__getRealHomeDir",
|
|
1325
|
+
"UtilsOs__NS__getTempFolder",
|
|
1322
1326
|
"UtilsOs__NS__isBrowser",
|
|
1323
1327
|
"UtilsOs__NS__isDockerAvailable",
|
|
1324
1328
|
"UtilsOs__NS__isElectron",
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.load = load;
|
|
4
|
-
const writeValue_1 = require("./writeValue"); // @backend
|
|
5
|
-
const setKeyQuoteUsage_1 = require("./setKeyQuoteUsage"); // @backend
|
|
6
|
-
//#region @backend
|
|
7
|
-
const jscodeshift = require('jscodeshift').default ?? require('jscodeshift');
|
|
8
|
-
//#endregion
|
|
9
|
-
function load(src) {
|
|
10
|
-
//#region @backendFunc
|
|
11
|
-
const ast = toAst(src);
|
|
12
|
-
const root = ast.nodes()[0].program.body[0].expression;
|
|
13
|
-
// @param {Object|Array} value
|
|
14
|
-
const write = value => {
|
|
15
|
-
root.right = (0, writeValue_1.writeValue)(root.right, value);
|
|
16
|
-
};
|
|
17
|
-
const toSource = (options = {}) => {
|
|
18
|
-
// set default options
|
|
19
|
-
options = Object.assign({
|
|
20
|
-
quote: 'single',
|
|
21
|
-
trailingComma: true,
|
|
22
|
-
}, options);
|
|
23
|
-
const sourceAst = options.quoteKeys === undefined
|
|
24
|
-
? ast // @ts-ignore
|
|
25
|
-
: (0, setKeyQuoteUsage_1.setKeyQuoteUsage)(ast, options.quoteKeys);
|
|
26
|
-
// strip the "x=" prefix
|
|
27
|
-
return sourceAst.toSource(options).replace(/^x=([{\[])/m, '$1');
|
|
28
|
-
};
|
|
29
|
-
const toJSON = (options = {}) => {
|
|
30
|
-
return toSource(Object.assign({
|
|
31
|
-
quote: 'double',
|
|
32
|
-
trailingComma: false,
|
|
33
|
-
quoteKeys: true,
|
|
34
|
-
}, options));
|
|
35
|
-
};
|
|
36
|
-
return { write, toSource, toJSON, ast: jscodeshift(root.right) };
|
|
37
|
-
//#endregion
|
|
38
|
-
}
|
|
39
|
-
function toAst(src) {
|
|
40
|
-
//#region @backendFunc
|
|
41
|
-
// find the start of the outermost array or object
|
|
42
|
-
const expressionStart = src.match(/^\s*[{\[]/m);
|
|
43
|
-
if (expressionStart) {
|
|
44
|
-
// hackily insert "x=" so the JSON5 becomes valid JavaScript
|
|
45
|
-
const astSrc = src.replace(/^\s*([{\[])/m, 'x=$1');
|
|
46
|
-
return jscodeshift(astSrc);
|
|
47
|
-
}
|
|
48
|
-
// no array or object exist in the JSON5
|
|
49
|
-
return jscodeshift('x={}');
|
|
50
|
-
//#endregion
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAQA,oBA4CC;AApDD,6CAA0C,CAAC,WAAW;AACtD,yDAAsD,CAAC,WAAW;AAElE,kBAAkB;AAClB,MAAM,WAAW,GACf,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3D,YAAY;AAEZ,SAAgB,IAAI,CAAC,GAAG;IACtB,sBAAsB;IACtB,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAEvD,8BAA8B;IAC9B,MAAM,KAAK,GAAG,KAAK,CAAC,EAAE;QACpB,IAAI,CAAC,KAAK,GAAG,IAAA,uBAAU,EAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,UAAU,EAAS,EAAE,EAAE;QACvC,sBAAsB;QACtB,OAAO,GAAG,MAAM,CAAC,MAAM,CACrB;YACE,KAAK,EAAE,QAAQ;YACf,aAAa,EAAE,IAAI;SACpB,EACD,OAAO,CACR,CAAC;QAEF,MAAM,SAAS,GACb,OAAO,CAAC,SAAS,KAAK,SAAS;YAC7B,CAAC,CAAC,GAAG,CAAC,aAAa;YACnB,CAAC,CAAC,IAAA,mCAAgB,EAAC,GAAG,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QAE/C,wBAAwB;QACxB,OAAO,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,CAAC,OAAO,GAAG,EAAE,EAAE,EAAE;QAC9B,OAAO,QAAQ,CACb,MAAM,CAAC,MAAM,CACX;YACE,KAAK,EAAE,QAAQ;YACf,aAAa,EAAE,KAAK;YACpB,SAAS,EAAE,IAAI;SAChB,EACD,OAAO,CACR,CACF,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACjE,YAAY;AACd,CAAC;AAED,SAAS,KAAK,CAAC,GAAG;IAChB,sBAAsB;IACtB,kDAAkD;IAClD,MAAM,eAAe,GAAG,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAChD,IAAI,eAAe,EAAE,CAAC;QACpB,4DAA4D;QAC5D,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QACnD,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED,wCAAwC;IACxC,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY;AACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setKeyQuoteUsage(ast: any, enabled: any): any;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setKeyQuoteUsage = setKeyQuoteUsage;
|
|
4
|
-
//#region @backend
|
|
5
|
-
const jscodeshift = require('jscodeshift').default ?? require('jscodeshift');
|
|
6
|
-
//#endregion
|
|
7
|
-
function setKeyQuoteUsage(ast, enabled) {
|
|
8
|
-
//#region @backendFunc
|
|
9
|
-
return jscodeshift(ast.toSource())
|
|
10
|
-
.find(jscodeshift.ObjectExpression)
|
|
11
|
-
.forEach(path => {
|
|
12
|
-
path.value.properties.forEach(prop => {
|
|
13
|
-
if (enabled) {
|
|
14
|
-
quoteKey(prop);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
unquoteKey(prop);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
//#endregion
|
|
22
|
-
}
|
|
23
|
-
function quoteKey(prop) {
|
|
24
|
-
//#region @backend
|
|
25
|
-
if (prop.key.type === 'Identifier') {
|
|
26
|
-
prop.key = jscodeshift.literal(prop.key.name);
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
}
|
|
30
|
-
function unquoteKey(prop) {
|
|
31
|
-
//#region @backend
|
|
32
|
-
if (prop.key.type === 'Literal') {
|
|
33
|
-
prop.key = jscodeshift.identifier(prop.key.value);
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=setKeyQuoteUsage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setKeyQuoteUsage.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAKA,4CAcC;AAnBD,kBAAkB;AAClB,MAAM,WAAW,GACf,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3D,YAAY;AAEZ,SAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO;IAC3C,sBAAsB;IACtB,OAAO,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;SAC/B,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC;SAClC,OAAO,CAAC,IAAI,CAAC,EAAE;QACd,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACnC,IAAI,OAAO,EAAE,CAAC;gBACZ,QAAQ,CAAC,IAAI,CAAC,CAAC;YACjB,CAAC;iBAAM,CAAC;gBACN,UAAU,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACL,YAAY;AACd,CAAC;AAED,SAAS,QAAQ,CAAC,IAAI;IACpB,kBAAkB;IAClB,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;QACnC,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACD,YAAY;AACd,CAAC;AAED,SAAS,UAAU,CAAC,IAAI;IACtB,kBAAkB;IAClB,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAChC,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACpD,CAAC;IACD,YAAY;AACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function writeValue(node: any, value: any): any;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.writeValue = writeValue;
|
|
4
|
-
//#region @backend
|
|
5
|
-
const jscodeshift = require('jscodeshift').default ?? require('jscodeshift');
|
|
6
|
-
//#endregion
|
|
7
|
-
// @param {j.ObjectExpression|j.ArrayExpression|j.Literal} node
|
|
8
|
-
function writeValue(node, value) {
|
|
9
|
-
//#region @backendFunc
|
|
10
|
-
if (value === undefined)
|
|
11
|
-
return node;
|
|
12
|
-
node = nodeTypeMatchesValue(node, value) ? node : createEmptyNode(value);
|
|
13
|
-
if (node.type === 'ArrayExpression') {
|
|
14
|
-
writeArray(node, value);
|
|
15
|
-
}
|
|
16
|
-
else if (node.type === 'ObjectExpression') {
|
|
17
|
-
writeObj(node, value);
|
|
18
|
-
}
|
|
19
|
-
else if (node.type === 'Literal') {
|
|
20
|
-
node.value = value;
|
|
21
|
-
}
|
|
22
|
-
return node;
|
|
23
|
-
//#endregion
|
|
24
|
-
}
|
|
25
|
-
function nodeTypeMatchesValue(node, value) {
|
|
26
|
-
//#region @backendFunc
|
|
27
|
-
if (value === undefined || node === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (isArray(value))
|
|
30
|
-
return node.type === 'ArrayExpression';
|
|
31
|
-
if (value === null)
|
|
32
|
-
return node.type === 'Literal';
|
|
33
|
-
if (isObject(value))
|
|
34
|
-
return node.type === 'ObjectExpression';
|
|
35
|
-
return node.type === 'Literal';
|
|
36
|
-
//#endregion
|
|
37
|
-
}
|
|
38
|
-
function createEmptyNode(value) {
|
|
39
|
-
//#region @backendFunc
|
|
40
|
-
if (isArray(value)) {
|
|
41
|
-
return jscodeshift.arrayExpression([]);
|
|
42
|
-
}
|
|
43
|
-
if (isObject(value)) {
|
|
44
|
-
return jscodeshift.objectExpression([]);
|
|
45
|
-
}
|
|
46
|
-
return jscodeshift.literal('');
|
|
47
|
-
//#endregion
|
|
48
|
-
}
|
|
49
|
-
function writeArray(node, array) {
|
|
50
|
-
//#region @backendFunc
|
|
51
|
-
array.forEach((value, index) => {
|
|
52
|
-
const existingElement = node.elements[index];
|
|
53
|
-
node.elements[index] = writeValue(existingElement, value);
|
|
54
|
-
});
|
|
55
|
-
node.elements.length = array.length;
|
|
56
|
-
//#endregion
|
|
57
|
-
}
|
|
58
|
-
function writeObj(node, obj) {
|
|
59
|
-
//#region @backendFunc
|
|
60
|
-
const newProperties = [];
|
|
61
|
-
Object.keys(obj).forEach((key, index) => {
|
|
62
|
-
const existingProperty = findPropertyByKey(node.properties, key);
|
|
63
|
-
if (existingProperty) {
|
|
64
|
-
existingProperty.value = writeValue(existingProperty.value, obj[key]);
|
|
65
|
-
newProperties.push(existingProperty);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
if (obj[key] === undefined)
|
|
69
|
-
return;
|
|
70
|
-
const newKey = getNewPropertyKey(node.properties, key);
|
|
71
|
-
const newValue = writeValue(undefined, obj[key]);
|
|
72
|
-
const newProperty = jscodeshift.property('init', newKey, newValue);
|
|
73
|
-
newProperties.push(newProperty);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
node.properties = newProperties;
|
|
77
|
-
//#endregion
|
|
78
|
-
}
|
|
79
|
-
function findPropertyByKey(properties, key) {
|
|
80
|
-
return properties.find(p => (p.key.name || p.key.value) === key);
|
|
81
|
-
}
|
|
82
|
-
function getNewPropertyKey(properties, key) {
|
|
83
|
-
//#region @backendFunc
|
|
84
|
-
// if the key has invalid characters, it has to be a string literal
|
|
85
|
-
if (key.match(/[^a-zA-Z0-9_]/)) {
|
|
86
|
-
return jscodeshift.literal(key);
|
|
87
|
-
}
|
|
88
|
-
// infer whether to use a literal or identifier by looking at the other keys
|
|
89
|
-
const useIdentifier = properties.length === 0 ||
|
|
90
|
-
properties.some(p => p.key.type === 'Identifier');
|
|
91
|
-
return useIdentifier ? jscodeshift.identifier(key) : jscodeshift.literal(key);
|
|
92
|
-
//#endregion
|
|
93
|
-
}
|
|
94
|
-
function isObject(value) {
|
|
95
|
-
return typeof value === 'object' && !isArray(value);
|
|
96
|
-
}
|
|
97
|
-
function isArray(value) {
|
|
98
|
-
return Array.isArray(value);
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=writeValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"writeValue.js","sourceRoot":"","sources":[""],"names":[],"mappings":"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"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { writeValue } from './writeValue'; // @backend
|
|
2
|
-
import { setKeyQuoteUsage } from './setKeyQuoteUsage'; // @backend
|
|
3
|
-
//#region @backend
|
|
4
|
-
const jscodeshift = require('jscodeshift').default ?? require('jscodeshift');
|
|
5
|
-
//#endregion
|
|
6
|
-
export function load(src) {
|
|
7
|
-
//#region @backendFunc
|
|
8
|
-
const ast = toAst(src);
|
|
9
|
-
const root = ast.nodes()[0].program.body[0].expression;
|
|
10
|
-
// @param {Object|Array} value
|
|
11
|
-
const write = value => {
|
|
12
|
-
root.right = writeValue(root.right, value);
|
|
13
|
-
};
|
|
14
|
-
const toSource = (options = {}) => {
|
|
15
|
-
// set default options
|
|
16
|
-
options = Object.assign({
|
|
17
|
-
quote: 'single',
|
|
18
|
-
trailingComma: true,
|
|
19
|
-
}, options);
|
|
20
|
-
const sourceAst = options.quoteKeys === undefined
|
|
21
|
-
? ast // @ts-ignore
|
|
22
|
-
: setKeyQuoteUsage(ast, options.quoteKeys);
|
|
23
|
-
// strip the "x=" prefix
|
|
24
|
-
return sourceAst.toSource(options).replace(/^x=([{\[])/m, '$1');
|
|
25
|
-
};
|
|
26
|
-
const toJSON = (options = {}) => {
|
|
27
|
-
return toSource(Object.assign({
|
|
28
|
-
quote: 'double',
|
|
29
|
-
trailingComma: false,
|
|
30
|
-
quoteKeys: true,
|
|
31
|
-
}, options));
|
|
32
|
-
};
|
|
33
|
-
return { write, toSource, toJSON, ast: jscodeshift(root.right) };
|
|
34
|
-
//#endregion
|
|
35
|
-
}
|
|
36
|
-
function toAst(src) {
|
|
37
|
-
//#region @backendFunc
|
|
38
|
-
// find the start of the outermost array or object
|
|
39
|
-
const expressionStart = src.match(/^\s*[{\[]/m);
|
|
40
|
-
if (expressionStart) {
|
|
41
|
-
// hackily insert "x=" so the JSON5 becomes valid JavaScript
|
|
42
|
-
const astSrc = src.replace(/^\s*([{\[])/m, 'x=$1');
|
|
43
|
-
return jscodeshift(astSrc);
|
|
44
|
-
}
|
|
45
|
-
// no array or object exist in the JSON5
|
|
46
|
-
return jscodeshift('x={}');
|
|
47
|
-
//#endregion
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC,CAAC,WAAW;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC,CAAC,WAAW;AAElE,kBAAkB;AAClB,MAAM,WAAW,GACf,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3D,YAAY;AAEZ,MAAM,UAAU,IAAI,CAAC,GAAG;IACtB,sBAAsB;IACtB,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAEvD,8BAA8B;IAC9B,MAAM,KAAK,GAAG,KAAK,CAAC,EAAE;QACpB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,CAAC,UAAU,EAAS,EAAE,EAAE;QACvC,sBAAsB;QACtB,OAAO,GAAG,MAAM,CAAC,MAAM,CACrB;YACE,KAAK,EAAE,QAAQ;YACf,aAAa,EAAE,IAAI;SACpB,EACD,OAAO,CACR,CAAC;QAEF,MAAM,SAAS,GACb,OAAO,CAAC,SAAS,KAAK,SAAS;YAC7B,CAAC,CAAC,GAAG,CAAC,aAAa;YACnB,CAAC,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QAE/C,wBAAwB;QACxB,OAAO,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,CAAC,OAAO,GAAG,EAAE,EAAE,EAAE;QAC9B,OAAO,QAAQ,CACb,MAAM,CAAC,MAAM,CACX;YACE,KAAK,EAAE,QAAQ;YACf,aAAa,EAAE,KAAK;YACpB,SAAS,EAAE,IAAI;SAChB,EACD,OAAO,CACR,CACF,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACjE,YAAY;AACd,CAAC;AAED,SAAS,KAAK,CAAC,GAAG;IAChB,sBAAsB;IACtB,kDAAkD;IAClD,MAAM,eAAe,GAAG,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAChD,IAAI,eAAe,EAAE,CAAC;QACpB,4DAA4D;QAC5D,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QACnD,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED,wCAAwC;IACxC,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY;AACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setKeyQuoteUsage(ast: any, enabled: any): any;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
//#region @backend
|
|
2
|
-
const jscodeshift = require('jscodeshift').default ?? require('jscodeshift');
|
|
3
|
-
//#endregion
|
|
4
|
-
export function setKeyQuoteUsage(ast, enabled) {
|
|
5
|
-
//#region @backendFunc
|
|
6
|
-
return jscodeshift(ast.toSource())
|
|
7
|
-
.find(jscodeshift.ObjectExpression)
|
|
8
|
-
.forEach(path => {
|
|
9
|
-
path.value.properties.forEach(prop => {
|
|
10
|
-
if (enabled) {
|
|
11
|
-
quoteKey(prop);
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
unquoteKey(prop);
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
//#endregion
|
|
19
|
-
}
|
|
20
|
-
function quoteKey(prop) {
|
|
21
|
-
//#region @backend
|
|
22
|
-
if (prop.key.type === 'Identifier') {
|
|
23
|
-
prop.key = jscodeshift.literal(prop.key.name);
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
}
|
|
27
|
-
function unquoteKey(prop) {
|
|
28
|
-
//#region @backend
|
|
29
|
-
if (prop.key.type === 'Literal') {
|
|
30
|
-
prop.key = jscodeshift.identifier(prop.key.value);
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=setKeyQuoteUsage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setKeyQuoteUsage.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,kBAAkB;AAClB,MAAM,WAAW,GACf,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3D,YAAY;AAEZ,MAAM,UAAU,gBAAgB,CAAC,GAAG,EAAE,OAAO;IAC3C,sBAAsB;IACtB,OAAO,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;SAC/B,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC;SAClC,OAAO,CAAC,IAAI,CAAC,EAAE;QACd,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACnC,IAAI,OAAO,EAAE,CAAC;gBACZ,QAAQ,CAAC,IAAI,CAAC,CAAC;YACjB,CAAC;iBAAM,CAAC;gBACN,UAAU,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACL,YAAY;AACd,CAAC;AAED,SAAS,QAAQ,CAAC,IAAI;IACpB,kBAAkB;IAClB,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;QACnC,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACD,YAAY;AACd,CAAC;AAED,SAAS,UAAU,CAAC,IAAI;IACtB,kBAAkB;IAClB,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAChC,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACpD,CAAC;IACD,YAAY;AACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function writeValue(node: any, value: any): any;
|