tnp-helpers 19.0.41 → 19.0.43
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/browser/README.md +24 -24
- package/browser/fesm2022/tnp-helpers.mjs +29 -74
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/classes/base-java-jdk.d.ts +9 -0
- package/browser/lib/base/classes/base-project.d.ts +2 -0
- package/browser/lib/base/core-project.d.ts +14 -1
- package/browser/lib/build-info._auto-generated_.d.ts +16 -1
- package/browser/lib/helpers/helpers.d.ts +0 -4
- package/browser/lib/index.d.ts +0 -1
- package/browser/package.json +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.js +11 -9
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.js +11 -10
- package/lib/base/classes/base-cli-worker/base-cli-worker.js.map +1 -1
- package/lib/base/classes/base-global-command-line.backend.d.ts +2 -0
- package/lib/base/classes/base-global-command-line.backend.js +69 -200
- package/lib/base/classes/base-global-command-line.backend.js.map +1 -1
- package/lib/base/classes/base-java-jdk.d.ts +8 -0
- package/lib/base/classes/base-java-jdk.js +284 -0
- package/lib/base/classes/base-java-jdk.js.map +1 -0
- package/lib/base/classes/base-node-modules.js +3 -3
- package/lib/base/classes/base-node-modules.js.map +1 -1
- package/lib/base/classes/base-project.d.ts +2 -0
- package/lib/base/classes/base-project.js +3 -0
- package/lib/base/classes/base-project.js.map +1 -1
- package/lib/base/classes/base-vscode.js +1 -0
- package/lib/base/classes/base-vscode.js.map +1 -1
- package/lib/base/core-project.d.ts +14 -1
- package/lib/base/core-project.js +14 -1
- package/lib/base/core-project.js.map +1 -1
- package/lib/base/gh-temp-code.js +1 -1
- package/lib/base/gh-temp-code.js.map +1 -1
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
- package/lib/base/tcp-udp-ports/ports.entity.d.ts +1 -1
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +2 -2
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.js +1 -1
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +16 -1
- package/lib/build-info._auto-generated_.js +16 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/env/env.angular-node-app.d.ts +1 -0
- package/lib/env/env.angular-node-app.js +3 -2
- package/lib/env/env.angular-node-app.js.map +1 -1
- package/lib/env/env.docs-webapp.d.ts +1 -0
- package/lib/env/env.docs-webapp.js +3 -2
- package/lib/env/env.docs-webapp.js.map +1 -1
- package/lib/env/env.electron-app.d.ts +1 -0
- package/lib/env/env.electron-app.js +3 -2
- package/lib/env/env.electron-app.js.map +1 -1
- package/lib/env/env.mobile-app.d.ts +1 -0
- package/lib/env/env.mobile-app.js +3 -2
- package/lib/env/env.mobile-app.js.map +1 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +3 -2
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib/env/env.vscode-plugin.d.ts +1 -0
- package/lib/env/env.vscode-plugin.js +3 -2
- package/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.d.ts +1 -0
- package/lib/helpers/for-backend/helpers-git.backend.js +5 -0
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/helpers/helpers-numbers.js.map +1 -1
- package/lib/helpers/helpers.d.ts +0 -4
- package/lib/helpers/helpers.js +1 -41
- package/lib/helpers/helpers.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +2 -3
- package/lib/index.js.map +1 -1
- package/lib/old/base-component.js +2 -2
- package/lib/old/base-formly-component.js +2 -2
- package/lib/old/dual-component-ctrl.js +2 -2
- package/lib/validators/validators-git.js.map +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +7 -3
- package/websql/README.md +24 -24
- package/websql/fesm2022/tnp-helpers.mjs +29 -74
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/classes/base-java-jdk.d.ts +9 -0
- package/websql/lib/base/classes/base-project.d.ts +2 -0
- package/websql/lib/base/core-project.d.ts +14 -1
- package/websql/lib/build-info._auto-generated_.d.ts +16 -1
- package/websql/lib/helpers/helpers.d.ts +0 -4
- package/websql/lib/index.d.ts +0 -1
- package/websql/package.json +1 -1
- package/browser/lib/validators/validators-git.d.ts +0 -4
- package/browser/lib/validators/validators-network.d.ts +0 -4
- package/browser/lib/validators/validators.d.ts +0 -7
- package/websql/lib/validators/validators-git.d.ts +0 -4
- package/websql/lib/validators/validators-network.d.ts +0 -4
- package/websql/lib/validators/validators.d.ts +0 -7
package/browser/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# MyLib
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
-
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# MyLib
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
+
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _, CoreModels, Utils, CoreHelpers, Helpers as Helpers$1, UtilsTerminal, crossPlatformPath, path, fse, chalk } from 'tnp-core/browser';
|
|
2
1
|
import { Subject } from 'rxjs';
|
|
2
|
+
import { CoreModels, Utils, _, CoreHelpers, Helpers as Helpers$1, UtilsTerminal, crossPlatformPath, path, fse, chalk } from 'tnp-core/browser';
|
|
3
3
|
import * as fuzzy from 'fuzzy';
|
|
4
4
|
import { Level } from 'ng2-logger/browser';
|
|
5
5
|
import { CLASS } from 'typescript-class-helpers/browser';
|
|
@@ -8,37 +8,6 @@ import { Taon, BaseContext } from 'taon/browser';
|
|
|
8
8
|
import { config } from 'tnp-config/browser';
|
|
9
9
|
import { IncCompiler, ChangeOfFile } from 'incremental-compiler/browser';
|
|
10
10
|
|
|
11
|
-
var ValidatorsGit;
|
|
12
|
-
(function (ValidatorsGit) {
|
|
13
|
-
function isValidRepoUrl(url) {
|
|
14
|
-
const regex = /^([A-Za-z0-9]+@|http(|s)\:\/\/)([A-Za-z0-9.]+(:\d+)?)(?::|\/)([\d\/\w.-]+?)(\.git)?$/;
|
|
15
|
-
const res = regex.test(url);
|
|
16
|
-
return res;
|
|
17
|
-
}
|
|
18
|
-
ValidatorsGit.isValidRepoUrl = isValidRepoUrl;
|
|
19
|
-
})(ValidatorsGit || (ValidatorsGit = {}));
|
|
20
|
-
|
|
21
|
-
var ValidatorsNetwork;
|
|
22
|
-
(function (ValidatorsNetwork) {
|
|
23
|
-
function isValidIp(ip) {
|
|
24
|
-
if (!_.isString(ip)) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
ip = ip.trim();
|
|
28
|
-
if (ip === 'localhost') {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
return /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(ip);
|
|
32
|
-
}
|
|
33
|
-
ValidatorsNetwork.isValidIp = isValidIp;
|
|
34
|
-
})(ValidatorsNetwork || (ValidatorsNetwork = {}));
|
|
35
|
-
|
|
36
|
-
var Validators;
|
|
37
|
-
(function (Validators) {
|
|
38
|
-
Validators.git = ValidatorsGit;
|
|
39
|
-
Validators.network = ValidatorsNetwork;
|
|
40
|
-
})(Validators || (Validators = {}));
|
|
41
|
-
|
|
42
11
|
//#region @browser
|
|
43
12
|
const componentContextSymbol = Symbol();
|
|
44
13
|
const componentsDestroy$Subjects = {};
|
|
@@ -4198,12 +4167,6 @@ class HelpersTaon extends CoreHelpers {
|
|
|
4198
4167
|
//#endregion
|
|
4199
4168
|
//#region methods & getters / apply mixins
|
|
4200
4169
|
this.applyMixins = applyMixins;
|
|
4201
|
-
//#endregion
|
|
4202
|
-
//#region methods & getters / is valid ip
|
|
4203
|
-
this.isValidIp = Validators.network.isValidIp;
|
|
4204
|
-
//#endregion
|
|
4205
|
-
//#region methods & getters / is valid git repo url
|
|
4206
|
-
this.isValidGitRepuUrl = Validators.git.isValidRepoUrl;
|
|
4207
4170
|
}
|
|
4208
4171
|
//#endregion
|
|
4209
4172
|
//#region methods & getters / cli wrap
|
|
@@ -4373,39 +4336,6 @@ class HelpersTaon extends CoreHelpers {
|
|
|
4373
4336
|
// return s.replace(reg, '');
|
|
4374
4337
|
// }
|
|
4375
4338
|
//#endregion
|
|
4376
|
-
//#region methods & getters / parse url
|
|
4377
|
-
urlParse(portOrHost, forceDomain = false) {
|
|
4378
|
-
let url;
|
|
4379
|
-
if (portOrHost instanceof URL) {
|
|
4380
|
-
url = portOrHost;
|
|
4381
|
-
}
|
|
4382
|
-
else if (_.isNumber(portOrHost)) {
|
|
4383
|
-
url = new URL(`http://localhost:${portOrHost}`);
|
|
4384
|
-
}
|
|
4385
|
-
else if (!_.isNaN(Number(portOrHost))) {
|
|
4386
|
-
url = new URL(`http://localhost:${Number(portOrHost)}`);
|
|
4387
|
-
}
|
|
4388
|
-
else if (_.isString(portOrHost)) {
|
|
4389
|
-
try {
|
|
4390
|
-
url = new URL(portOrHost);
|
|
4391
|
-
}
|
|
4392
|
-
catch (error) { }
|
|
4393
|
-
if (Validators.network.isValidIp(portOrHost)) {
|
|
4394
|
-
try {
|
|
4395
|
-
url = new URL(`http://${portOrHost}`);
|
|
4396
|
-
}
|
|
4397
|
-
catch (error) {
|
|
4398
|
-
Helpers.warn(`Not able to get port from ${portOrHost}`);
|
|
4399
|
-
}
|
|
4400
|
-
}
|
|
4401
|
-
if (forceDomain) {
|
|
4402
|
-
const domain = portOrHost;
|
|
4403
|
-
url = new URL(domain.startsWith('http') ? domain : `http://${portOrHost}`);
|
|
4404
|
-
}
|
|
4405
|
-
}
|
|
4406
|
-
return url;
|
|
4407
|
-
}
|
|
4408
|
-
//#endregion
|
|
4409
4339
|
//#region methods & getters / slash
|
|
4410
4340
|
slash(pathFromWindowsOrUnixType) {
|
|
4411
4341
|
/* */
|
|
@@ -4781,7 +4711,6 @@ Port = Port_1 = __decorate([
|
|
|
4781
4711
|
})
|
|
4782
4712
|
], Port);
|
|
4783
4713
|
|
|
4784
|
-
//#region imports
|
|
4785
4714
|
//#endregion
|
|
4786
4715
|
class BaseCliWorkerTerminalUI {
|
|
4787
4716
|
constructor(worker) {
|
|
@@ -4841,6 +4770,7 @@ class BaseCliWorkerTerminalUI {
|
|
|
4841
4770
|
/* */
|
|
4842
4771
|
/* */
|
|
4843
4772
|
/* */
|
|
4773
|
+
/* */
|
|
4844
4774
|
return (void 0);
|
|
4845
4775
|
}
|
|
4846
4776
|
//#endregion
|
|
@@ -5345,6 +5275,8 @@ class BaseCliWorker {
|
|
|
5345
5275
|
/* */
|
|
5346
5276
|
/* */
|
|
5347
5277
|
/* */
|
|
5278
|
+
/* */
|
|
5279
|
+
/* */
|
|
5348
5280
|
return (void 0);
|
|
5349
5281
|
}
|
|
5350
5282
|
//#endregion
|
|
@@ -6384,11 +6316,26 @@ class PortsWorker extends BaseCliWorker {
|
|
|
6384
6316
|
}
|
|
6385
6317
|
|
|
6386
6318
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6319
|
+
/**
|
|
6320
|
+
* Autogenerated by current cli tool
|
|
6321
|
+
*/
|
|
6387
6322
|
const BUILD_FRAMEWORK_CLI_NAME = 'tnp';
|
|
6323
|
+
/**
|
|
6324
|
+
* This value can be change in taon.jsonc (appId)
|
|
6325
|
+
*/
|
|
6388
6326
|
const APP_ID = 'com.domain.example.tnp-helpers';
|
|
6327
|
+
/**
|
|
6328
|
+
* Autogenerated by current cli tool
|
|
6329
|
+
*/
|
|
6389
6330
|
const BUILD_BASE_HREF = '';
|
|
6331
|
+
/**
|
|
6332
|
+
* This value can be change in taon.jsonc (overrideNpmName)
|
|
6333
|
+
*/
|
|
6390
6334
|
const PROJECT_NPM_NAME = 'tnp-helpers';
|
|
6391
|
-
|
|
6335
|
+
/**
|
|
6336
|
+
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
6337
|
+
*/
|
|
6338
|
+
const CURRENT_PACKAGE_VERSION = '19.0.43';
|
|
6392
6339
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6393
6340
|
|
|
6394
6341
|
//#endregion
|
|
@@ -6770,6 +6717,10 @@ class BaseProject {
|
|
|
6770
6717
|
/* */
|
|
6771
6718
|
/* */
|
|
6772
6719
|
/* */
|
|
6720
|
+
/* */
|
|
6721
|
+
/* */
|
|
6722
|
+
/* */
|
|
6723
|
+
/* */
|
|
6773
6724
|
//#endregion
|
|
6774
6725
|
//#region methods & getters / is monorepo
|
|
6775
6726
|
/**
|
|
@@ -7398,6 +7349,8 @@ class BaseProject {
|
|
|
7398
7349
|
/* */
|
|
7399
7350
|
/* */
|
|
7400
7351
|
/* */
|
|
7352
|
+
/* */
|
|
7353
|
+
/* */
|
|
7401
7354
|
return (void 0);
|
|
7402
7355
|
}
|
|
7403
7356
|
//#region methods & getters / assign free port to project instance
|
|
@@ -12145,6 +12098,7 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
12145
12098
|
/* */
|
|
12146
12099
|
/* */
|
|
12147
12100
|
/* */
|
|
12101
|
+
/* */
|
|
12148
12102
|
return (void 0);
|
|
12149
12103
|
}
|
|
12150
12104
|
}
|
|
@@ -15397,11 +15351,12 @@ class ProgressData {
|
|
|
15397
15351
|
}
|
|
15398
15352
|
}
|
|
15399
15353
|
|
|
15354
|
+
//#region @browser
|
|
15400
15355
|
const Helpers = HelpersTaon.Instance;
|
|
15401
15356
|
|
|
15402
15357
|
/**
|
|
15403
15358
|
* Generated bundle index. Do not edit.
|
|
15404
15359
|
*/
|
|
15405
15360
|
|
|
15406
|
-
export { BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerController, BaseCliWorkerTerminalUI, BaseCommandLineFeature, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseGit, BaseJsonFileReader, BaseLibraryBuild, BaseLinkedProjects, BaseNodeModules, BaseNpmHelpers, BasePackageJson, BaseProcessManger, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommandConfig, CommandProcess, CommandProcessState, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, PackageJsonDependencyObjArr, Port, PortStatusArr, PortsController, PortsWorker, ProgressData, UtilsDotFile, UtilsHttp, UtilsMd, UtilsNpm, UtilsQuickFixes, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser,
|
|
15361
|
+
export { BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerController, BaseCliWorkerTerminalUI, BaseCommandLineFeature, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseGit, BaseJsonFileReader, BaseLibraryBuild, BaseLinkedProjects, BaseNodeModules, BaseNpmHelpers, BasePackageJson, BaseProcessManger, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommandConfig, CommandProcess, CommandProcessState, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, PackageJsonDependencyObjArr, Port, PortStatusArr, PortsController, PortsWorker, ProgressData, UtilsDotFile, UtilsHttp, UtilsMd, UtilsNpm, UtilsQuickFixes, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser, executeCommand };
|
|
15407
15362
|
//# sourceMappingURL=tnp-helpers.mjs.map
|