tnp-core 21.0.25 → 21.0.27
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/fesm2022/tnp-core-browser.mjs +191 -137
- package/browser/fesm2022/tnp-core-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/tnp-core-browser.d.ts +14 -1
- package/cli.backend.js +2 -2
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/command-exists.d.ts +2 -0
- package/lib/command-exists.js +116 -0
- package/lib/command-exists.js.map +1 -0
- package/lib/constants.d.ts +4 -0
- package/lib/constants.js +4 -0
- package/lib/constants.js.map +1 -1
- package/lib/core-models.d.ts +8 -0
- package/lib/core-models.js +8 -0
- package/lib/core-models.js.map +1 -1
- package/lib/env/env.angular-node-app.d.ts +2 -3
- package/lib/env/env.angular-node-app.js +4 -5
- package/lib/env/env.angular-node-app.js.map +1 -1
- package/lib/env/env.docs-webapp.d.ts +2 -3
- package/lib/env/env.docs-webapp.js +4 -5
- package/lib/env/env.docs-webapp.js.map +1 -1
- package/lib/env/env.electron-app.d.ts +2 -3
- package/lib/env/env.electron-app.js +4 -5
- package/lib/env/env.electron-app.js.map +1 -1
- package/lib/env/env.mobile-app.d.ts +2 -3
- package/lib/env/env.mobile-app.js +4 -5
- package/lib/env/env.mobile-app.js.map +1 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +2 -3
- package/lib/env/env.npm-lib-and-cli-tool.js +4 -5
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib/env/env.vscode-plugin.d.ts +2 -3
- package/lib/env/env.vscode-plugin.js +4 -5
- package/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib/env.backend.d.ts +34 -0
- package/lib/env.backend.js +40 -0
- package/lib/env.backend.js.map +1 -0
- package/lib/env.browser.d.ts +34 -0
- package/lib/helpers.js +6 -1
- package/lib/helpers.js.map +1 -1
- package/lib/index._auto-generated_.js +1 -1
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/node-chalk-mock.js +2 -2
- package/lib/node-path-mock.js +2 -2
- package/lib/progress-data.js +2 -1
- package/lib/progress-data.js.map +1 -1
- package/lib/required.d.ts +44 -0
- package/lib/required.js +76 -0
- package/lib/required.js.map +1 -0
- package/lib/utils.d.ts +2 -1
- package/lib/utils.js +39 -4
- package/lib/utils.js.map +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +33 -0
- package/websql/fesm2022/tnp-core-websql.mjs +191 -137
- package/websql/fesm2022/tnp-core-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/tnp-core-websql.d.ts +14 -1
|
@@ -965,6 +965,14 @@ var CoreModels;
|
|
|
965
965
|
CoreModels.SPECIAL_APP_READY_MESSAGE = '$$$ APP_READY $$$';
|
|
966
966
|
CoreModels.ClassNameStaticProperty = '$$className$$';
|
|
967
967
|
CoreModels.TaonHttpErrorCustomProp = '$$taonError$$';
|
|
968
|
+
/**
|
|
969
|
+
* Absolute path to project children;
|
|
970
|
+
*/
|
|
971
|
+
CoreModels.pathToChildren = 'path-to-children';
|
|
972
|
+
/**
|
|
973
|
+
* Absolute path to project parent;
|
|
974
|
+
*/
|
|
975
|
+
CoreModels.parentLocation = 'parent-location';
|
|
968
976
|
})(CoreModels || (CoreModels = {}));
|
|
969
977
|
|
|
970
978
|
const taonContainers = 'taon-containers';
|
|
@@ -1295,6 +1303,10 @@ const TAGS = {
|
|
|
1295
1303
|
CUT_CODE_IF_FALSE: '@cutCode' + 'IfFalse',
|
|
1296
1304
|
COMMENT_REGION: `//${'#reg' + 'ion'}`,
|
|
1297
1305
|
COMMENT_END_REGION: `//${'#end' + 'region'}`,
|
|
1306
|
+
APP_TS_GENERATED: `${'@app-ts-gene' + 'rated'}`,
|
|
1307
|
+
APP_TS_PLACEHOLDER_IMPORTS: `${'@place' + 'holder-for-imports'}`,
|
|
1308
|
+
APP_TS_PLACEHOLDER_ROUTES: `${'@place' + 'holder-for-routes'}`,
|
|
1309
|
+
APP_TS_PLACEHOLDER_CONTEXTS_INIT: `${'@place' + 'holder-for-contexts-init'}`,
|
|
1298
1310
|
};
|
|
1299
1311
|
const BaselineSiteJoinprefix = '__';
|
|
1300
1312
|
const PREFIXES = {
|
|
@@ -2301,6 +2313,10 @@ var UtilsProcess;
|
|
|
2301
2313
|
/* */
|
|
2302
2314
|
/* */
|
|
2303
2315
|
/* */
|
|
2316
|
+
/* */
|
|
2317
|
+
/* */
|
|
2318
|
+
/* */
|
|
2319
|
+
/* */
|
|
2304
2320
|
return (void 0);
|
|
2305
2321
|
};
|
|
2306
2322
|
//#endregion
|
|
@@ -2813,6 +2829,7 @@ var UtilsProcess;
|
|
|
2813
2829
|
/* */
|
|
2814
2830
|
/* */
|
|
2815
2831
|
/* */
|
|
2832
|
+
/* */
|
|
2816
2833
|
return (void 0);
|
|
2817
2834
|
};
|
|
2818
2835
|
//#endregion
|
|
@@ -4318,6 +4335,14 @@ var UtilsOs;
|
|
|
4318
4335
|
return (void 0);
|
|
4319
4336
|
};
|
|
4320
4337
|
//#endregion
|
|
4338
|
+
UtilsOs.isRunningNodeDebugger = () => {
|
|
4339
|
+
//#region @browser
|
|
4340
|
+
return false;
|
|
4341
|
+
//#endregion
|
|
4342
|
+
/* */
|
|
4343
|
+
/* */
|
|
4344
|
+
return (void 0);
|
|
4345
|
+
};
|
|
4321
4346
|
UtilsOs.isNodeVersionOk = UtilsProcess.isNodeVersionOk;
|
|
4322
4347
|
UtilsOs.isElectron = UtilsOs.isRunningInElectron();
|
|
4323
4348
|
UtilsOs.isBrowser = UtilsOs.isRunningInBrowser();
|
|
@@ -4332,102 +4357,118 @@ var UtilsOs;
|
|
|
4332
4357
|
//#region utils os / command exists
|
|
4333
4358
|
//#region helpers
|
|
4334
4359
|
const fileNotExists = async (commandName) => {
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4360
|
+
/* */
|
|
4361
|
+
/* */
|
|
4362
|
+
/* */
|
|
4363
|
+
/* */
|
|
4364
|
+
/* */
|
|
4365
|
+
/* */
|
|
4366
|
+
/* */
|
|
4367
|
+
return (void 0);
|
|
4342
4368
|
};
|
|
4343
4369
|
const fileNotExistsSync = (commandName) => {
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4370
|
+
/* */
|
|
4371
|
+
/* */
|
|
4372
|
+
/* */
|
|
4373
|
+
/* */
|
|
4374
|
+
/* */
|
|
4375
|
+
/* */
|
|
4376
|
+
/* */
|
|
4377
|
+
return (void 0);
|
|
4351
4378
|
};
|
|
4352
4379
|
const localExecutable = async (commandName) => {
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4380
|
+
/* */
|
|
4381
|
+
/* */
|
|
4382
|
+
/* */
|
|
4383
|
+
/* */
|
|
4384
|
+
/* */
|
|
4385
|
+
/* */
|
|
4386
|
+
/* */
|
|
4387
|
+
return (void 0);
|
|
4360
4388
|
};
|
|
4361
4389
|
const localExecutableSync = (commandName) => {
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4390
|
+
/* */
|
|
4391
|
+
/* */
|
|
4392
|
+
/* */
|
|
4393
|
+
/* */
|
|
4394
|
+
/* */
|
|
4395
|
+
/* */
|
|
4396
|
+
/* */
|
|
4397
|
+
return (void 0);
|
|
4369
4398
|
};
|
|
4370
4399
|
//#endregion
|
|
4371
4400
|
//#region command exists (Unix / Windows)
|
|
4372
4401
|
const commandExistsUnix = async (commandName) => {
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4402
|
+
/* */
|
|
4403
|
+
/* */
|
|
4404
|
+
/* */
|
|
4405
|
+
/* */
|
|
4406
|
+
/* */
|
|
4407
|
+
/* */
|
|
4408
|
+
/* */
|
|
4409
|
+
/* */
|
|
4410
|
+
/* */
|
|
4411
|
+
/* */
|
|
4412
|
+
/* */
|
|
4413
|
+
/* */
|
|
4414
|
+
/* */
|
|
4415
|
+
/* */
|
|
4416
|
+
/* */
|
|
4417
|
+
return (void 0);
|
|
4384
4418
|
};
|
|
4385
4419
|
const commandExistsWindows = async (commandName) => {
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4420
|
+
/* */
|
|
4421
|
+
/* */
|
|
4422
|
+
/* */
|
|
4423
|
+
/* */
|
|
4424
|
+
/* */
|
|
4425
|
+
/* */
|
|
4426
|
+
/* */
|
|
4427
|
+
/* */
|
|
4428
|
+
/* */
|
|
4429
|
+
return (void 0);
|
|
4393
4430
|
};
|
|
4394
4431
|
const commandExistsUnixSync = (commandName) => {
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4432
|
+
/* */
|
|
4433
|
+
/* */
|
|
4434
|
+
/* */
|
|
4435
|
+
/* */
|
|
4436
|
+
/* */
|
|
4437
|
+
/* */
|
|
4438
|
+
/* */
|
|
4439
|
+
/* */
|
|
4440
|
+
/* */
|
|
4441
|
+
/* */
|
|
4442
|
+
/* */
|
|
4443
|
+
/* */
|
|
4444
|
+
/* */
|
|
4445
|
+
return (void 0);
|
|
4405
4446
|
};
|
|
4406
4447
|
const commandExistsWindowsSync = (commandName) => {
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4448
|
+
/* */
|
|
4449
|
+
/* */
|
|
4450
|
+
/* */
|
|
4451
|
+
/* */
|
|
4452
|
+
/* */
|
|
4453
|
+
/* */
|
|
4454
|
+
/* */
|
|
4455
|
+
return (void 0);
|
|
4414
4456
|
};
|
|
4415
4457
|
//#endregion
|
|
4416
4458
|
//#region exported API
|
|
4417
4459
|
UtilsOs.commandExistsAsync = async (commandName) => {
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
}
|
|
4460
|
+
/* */
|
|
4461
|
+
/* */
|
|
4462
|
+
/* */
|
|
4463
|
+
/* */
|
|
4464
|
+
/* */
|
|
4465
|
+
/* */
|
|
4466
|
+
/* */
|
|
4467
|
+
/* */
|
|
4468
|
+
/* */
|
|
4469
|
+
/* */
|
|
4470
|
+
/* */
|
|
4471
|
+
return (void 0);
|
|
4431
4472
|
};
|
|
4432
4473
|
/**
|
|
4433
4474
|
* @deprecated use commandExistsAsync
|
|
@@ -5166,6 +5207,7 @@ var UtilsTerminal;
|
|
|
5166
5207
|
/* */
|
|
5167
5208
|
/* */
|
|
5168
5209
|
/* */
|
|
5210
|
+
/* */
|
|
5169
5211
|
return (void 0);
|
|
5170
5212
|
};
|
|
5171
5213
|
//#endregion
|
|
@@ -5940,6 +5982,8 @@ var UtilsDotFile;
|
|
|
5940
5982
|
/* */
|
|
5941
5983
|
/* */
|
|
5942
5984
|
/* */
|
|
5985
|
+
/* */
|
|
5986
|
+
/* */
|
|
5943
5987
|
return (void 0);
|
|
5944
5988
|
};
|
|
5945
5989
|
//#endregion
|
|
@@ -6561,25 +6605,27 @@ var UtilsNetwork;
|
|
|
6561
6605
|
* LAN → Wi-Fi → Other → Virtual
|
|
6562
6606
|
*/
|
|
6563
6607
|
UtilsNetwork.getLocalIpAddresses = async () => {
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6608
|
+
/* */
|
|
6609
|
+
/* */
|
|
6610
|
+
/* */
|
|
6611
|
+
/* */
|
|
6612
|
+
/* */
|
|
6613
|
+
/* */
|
|
6614
|
+
/* */
|
|
6615
|
+
/* */
|
|
6616
|
+
/* */
|
|
6617
|
+
/* */
|
|
6618
|
+
/* */
|
|
6619
|
+
/* */
|
|
6620
|
+
/* */
|
|
6621
|
+
/* */
|
|
6622
|
+
/* */
|
|
6623
|
+
/* */
|
|
6624
|
+
/* */
|
|
6625
|
+
/* */
|
|
6626
|
+
/* */
|
|
6627
|
+
/* */
|
|
6628
|
+
return (void 0);
|
|
6583
6629
|
};
|
|
6584
6630
|
//#endregion
|
|
6585
6631
|
//#region utils network / get local public ip addresses / get first local active ip address
|
|
@@ -6587,8 +6633,12 @@ var UtilsNetwork;
|
|
|
6587
6633
|
* Returns first active local ipv4 IP (LAN preferred over Wi-Fi).
|
|
6588
6634
|
*/
|
|
6589
6635
|
UtilsNetwork.getFirstIpV4LocalActiveIpAddress = async () => {
|
|
6590
|
-
|
|
6591
|
-
|
|
6636
|
+
/* */
|
|
6637
|
+
/* */
|
|
6638
|
+
/* */
|
|
6639
|
+
/* */
|
|
6640
|
+
/* */
|
|
6641
|
+
return (void 0);
|
|
6592
6642
|
};
|
|
6593
6643
|
//#endregion
|
|
6594
6644
|
//#region utils network / get local public ip addresses / get current public ip address
|
|
@@ -6596,44 +6646,43 @@ var UtilsNetwork;
|
|
|
6596
6646
|
* Returns current public IP address (or null if undetectable).
|
|
6597
6647
|
*/
|
|
6598
6648
|
UtilsNetwork.getCurrentPublicIpAddress = async () => {
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
return null;
|
|
6649
|
+
/* */
|
|
6650
|
+
/* */
|
|
6651
|
+
/* */
|
|
6652
|
+
/* */
|
|
6653
|
+
/* */
|
|
6654
|
+
/* */
|
|
6655
|
+
/* */
|
|
6656
|
+
/* */
|
|
6657
|
+
/* */
|
|
6658
|
+
/* */
|
|
6659
|
+
/* */
|
|
6660
|
+
/* */
|
|
6661
|
+
/* */
|
|
6662
|
+
/* */
|
|
6663
|
+
/* */
|
|
6664
|
+
/* */
|
|
6665
|
+
/* */
|
|
6666
|
+
/* */
|
|
6667
|
+
/* */
|
|
6668
|
+
/* */
|
|
6669
|
+
/* */
|
|
6670
|
+
/* */
|
|
6671
|
+
/* */
|
|
6672
|
+
/* */
|
|
6673
|
+
/* */
|
|
6674
|
+
/* */
|
|
6675
|
+
/* */
|
|
6676
|
+
/* */
|
|
6677
|
+
/* */
|
|
6678
|
+
/* */
|
|
6679
|
+
/* */
|
|
6680
|
+
/* */
|
|
6681
|
+
/* */
|
|
6682
|
+
/* */
|
|
6683
|
+
/* */
|
|
6684
|
+
/* */
|
|
6685
|
+
return (void 0);
|
|
6637
6686
|
};
|
|
6638
6687
|
//#endregion
|
|
6639
6688
|
//#endregion
|
|
@@ -9032,7 +9081,7 @@ class HelpersCore extends HelpersMessages {
|
|
|
9032
9081
|
exitSub.next(exitCode);
|
|
9033
9082
|
subscribtions.forEach(s => s.unsubscribe());
|
|
9034
9083
|
});
|
|
9035
|
-
}).catch(e => {
|
|
9084
|
+
}).catch((e) => {
|
|
9036
9085
|
console.error(e);
|
|
9037
9086
|
console.error(`Something wrong with your mock funciton`);
|
|
9038
9087
|
exitSub.next(1);
|
|
@@ -9812,6 +9861,10 @@ class HelpersCore extends HelpersMessages {
|
|
|
9812
9861
|
/* */
|
|
9813
9862
|
/* */
|
|
9814
9863
|
/* */
|
|
9864
|
+
/* */
|
|
9865
|
+
/* */
|
|
9866
|
+
/* */
|
|
9867
|
+
/* */
|
|
9815
9868
|
//#endregion
|
|
9816
9869
|
//#region methods / folders from
|
|
9817
9870
|
/* */
|
|
@@ -10088,7 +10141,8 @@ class PROGRESS_DATA {
|
|
|
10088
10141
|
}
|
|
10089
10142
|
}
|
|
10090
10143
|
catch (err) {
|
|
10091
|
-
|
|
10144
|
+
const errMsg = err instanceof Error ? err.message : String(err);
|
|
10145
|
+
Helpers.error(errMsg, true, true);
|
|
10092
10146
|
Helpers.error(`ProgresssBarData: fail to parse "${progress}"`, true, true);
|
|
10093
10147
|
}
|
|
10094
10148
|
}
|