tnp-core 19.0.22 → 19.0.23
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/browser/README.md +24 -24
- package/browser/fesm2022/tnp-core.mjs +59 -8
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/helpers.d.ts +2 -3
- package/browser/package.json +1 -1
- package/cli.backend.js +2 -2
- package/cli.backend.js.map +1 -1
- package/client/README.md +24 -24
- package/client/fesm2022/tnp-core.mjs +59 -8
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/helpers.d.ts +2 -3
- package/client/package.json +1 -1
- package/index.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/command-exists.js.map +1 -1
- package/lib/core-cli.js.map +1 -1
- package/lib/core-config.js.map +1 -1
- package/lib/core-imports.js.map +1 -1
- package/lib/core-models.js.map +1 -1
- package/lib/framework-name.js.map +1 -1
- package/lib/helpers-isomorphic.js.map +1 -1
- package/lib/helpers-messages.js.map +1 -1
- package/lib/helpers.d.ts +2 -2
- package/lib/helpers.js +9 -4
- package/lib/helpers.js.map +1 -1
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/node-chalk-mock.js +2 -2
- package/lib/node-chalk-mock.js.map +1 -1
- package/lib/node-path-mock.js +2 -2
- package/lib/node-path-mock.js.map +1 -1
- package/lib/progress-data.js.map +1 -1
- package/lib/public-api.js.map +1 -1
- package/lib/required-global-npm-packages.js.map +1 -1
- package/lib/utils.js +33 -1
- package/lib/utils.js.map +1 -1
- package/migrations/index.js.map +1 -1
- package/migrations/migrations_index._auto-generated_.js.map +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +3 -3
- package/websql/README.md +24 -24
- package/websql/fesm2022/tnp-core.mjs +59 -8
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/helpers.d.ts +2 -3
- package/websql/package.json +1 -1
package/browser/lib/helpers.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
// @ts-nocheck
|
2
|
-
import { Blob } from 'buffer';
|
3
|
-
import type { ChildProcess } from 'child_process';
|
4
|
-
import { CoreModels } from './core-models';
|
5
2
|
import { HelpersMessages } from './helpers-messages';
|
3
|
+
import { CoreModels } from './core-models';
|
4
|
+
import type { ChildProcess } from 'child_process';
|
6
5
|
export interface RunSyncOrAsyncOptions {
|
7
6
|
functionFn: Function;
|
8
7
|
context?: object;
|
package/browser/package.json
CHANGED
package/cli.backend.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
function
|
3
|
+
exports.dummy1747169352869 = dummy1747169352869;
|
4
|
+
function dummy1747169352869() { }
|
5
5
|
//# sourceMappingURL=cli.backend.js.map
|
package/cli.backend.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cli.backend.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"cli.backend.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/tnp-core/src/cli.backend.ts"],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
package/client/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.
|
@@ -9,8 +9,8 @@ import * as dateformat from 'dateformat';
|
|
9
9
|
export { dateformat };
|
10
10
|
import * as json5 from 'json5';
|
11
11
|
export { json5 };
|
12
|
-
import { Blob } from 'buffer';
|
13
12
|
import { Subject } from 'rxjs';
|
13
|
+
import { Blob as Blob$1 } from 'buffer';
|
14
14
|
import axios from 'axios';
|
15
15
|
|
16
16
|
let isBrowser = false;
|
@@ -1255,7 +1255,7 @@ var Utils;
|
|
1255
1255
|
*/
|
1256
1256
|
async function arrayBufferToBlob(buffer, contentType) {
|
1257
1257
|
// @ts-ignore
|
1258
|
-
return new Blob([buffer], { type: contentType });
|
1258
|
+
return new Blob$1([buffer], { type: contentType });
|
1259
1259
|
}
|
1260
1260
|
binary.arrayBufferToBlob = arrayBufferToBlob;
|
1261
1261
|
//#endregion
|
@@ -1329,7 +1329,7 @@ var Utils;
|
|
1329
1329
|
}
|
1330
1330
|
byteArrays[sliceIndex] = new Uint8Array(bytes);
|
1331
1331
|
}
|
1332
|
-
return new Blob(byteArrays, { type: content_type });
|
1332
|
+
return new Blob$1(byteArrays, { type: content_type });
|
1333
1333
|
}
|
1334
1334
|
binary.base64toBlob = base64toBlob;
|
1335
1335
|
//#endregion
|
@@ -1438,7 +1438,7 @@ var Utils;
|
|
1438
1438
|
//#endregion
|
1439
1439
|
//#region binay utils / file to blob
|
1440
1440
|
async function fileToBlob(file) {
|
1441
|
-
return new Blob([new Uint8Array(await file.arrayBuffer())], {
|
1441
|
+
return new Blob$1([new Uint8Array(await file.arrayBuffer())], {
|
1442
1442
|
type: file.type,
|
1443
1443
|
});
|
1444
1444
|
}
|
@@ -1490,7 +1490,7 @@ var Utils;
|
|
1490
1490
|
//#endregion
|
1491
1491
|
//#region binay utils / text to blob
|
1492
1492
|
async function textToBlob(text, type = 'text/plain') {
|
1493
|
-
const blob = new Blob([text], { type });
|
1493
|
+
const blob = new Blob$1([text], { type });
|
1494
1494
|
return blob;
|
1495
1495
|
}
|
1496
1496
|
binary.textToBlob = textToBlob;
|
@@ -1506,7 +1506,7 @@ var Utils;
|
|
1506
1506
|
// console.log({ path })
|
1507
1507
|
const ext = path.extname(fileRelativePathOrName);
|
1508
1508
|
const type = CoreModels.mimeTypes[ext];
|
1509
|
-
const blob = new Blob([text], { type });
|
1509
|
+
const blob = new Blob$1([text], { type });
|
1510
1510
|
const file = await blobToFile(blob, fileRelativePathOrName);
|
1511
1511
|
// console.log({
|
1512
1512
|
// ext,
|
@@ -1525,7 +1525,7 @@ var Utils;
|
|
1525
1525
|
//#endregion
|
1526
1526
|
//#region binay utils / json to blob
|
1527
1527
|
async function jsonToBlob(jsonObj) {
|
1528
|
-
const blob = new Blob([JSON.stringify(jsonObj, null, 2)], {
|
1528
|
+
const blob = new Blob$1([JSON.stringify(jsonObj, null, 2)], {
|
1529
1529
|
type: 'application/json',
|
1530
1530
|
});
|
1531
1531
|
return blob;
|
@@ -2609,6 +2609,9 @@ var UtilsTerminal;
|
|
2609
2609
|
/* */
|
2610
2610
|
/* */
|
2611
2611
|
/* */
|
2612
|
+
return (void 0);
|
2613
|
+
// TODO @LAST
|
2614
|
+
// let shouldClear = true;
|
2612
2615
|
/* */
|
2613
2616
|
/* */
|
2614
2617
|
/* */
|
@@ -2617,7 +2620,36 @@ var UtilsTerminal;
|
|
2617
2620
|
/* */
|
2618
2621
|
/* */
|
2619
2622
|
/* */
|
2620
|
-
|
2623
|
+
/* */
|
2624
|
+
/* */
|
2625
|
+
/* */
|
2626
|
+
/* */
|
2627
|
+
/* */
|
2628
|
+
/* */
|
2629
|
+
/* */
|
2630
|
+
//#region @browser
|
2631
|
+
// const isDevToolsOpen = (() => {
|
2632
|
+
// const threshold = 160; // devtools resizing causes this to be larger
|
2633
|
+
// return (
|
2634
|
+
// window.outerHeight - window.innerHeight > threshold ||
|
2635
|
+
// window.outerWidth - window.innerWidth > threshold
|
2636
|
+
// );
|
2637
|
+
// })();
|
2638
|
+
// if (isDevToolsOpen) {
|
2639
|
+
// shouldClear = false;
|
2640
|
+
// }
|
2641
|
+
//#endregion
|
2642
|
+
// if (shouldClear) {
|
2643
|
+
// Helpers.msgCacheClear?.();
|
2644
|
+
// console.clear?.();
|
2645
|
+
// }
|
2646
|
+
// console.log('\x1Bc');
|
2647
|
+
// process.stdout.write('\033c\033[3J');
|
2648
|
+
// try {
|
2649
|
+
// run('clear').sync()
|
2650
|
+
// } catch (error) {
|
2651
|
+
// console.log('clear console not succedd')
|
2652
|
+
// }
|
2621
2653
|
};
|
2622
2654
|
//#endregion
|
2623
2655
|
//#region transform choices
|
@@ -3737,6 +3769,25 @@ class HelpersMessages extends HelpersIsomorphic {
|
|
3737
3769
|
}
|
3738
3770
|
|
3739
3771
|
//#region import
|
3772
|
+
/* */
|
3773
|
+
/* */
|
3774
|
+
/* */
|
3775
|
+
/* */
|
3776
|
+
/* */
|
3777
|
+
/* */
|
3778
|
+
/* */
|
3779
|
+
/* */
|
3780
|
+
/* */
|
3781
|
+
/* */
|
3782
|
+
/* */
|
3783
|
+
/* */
|
3784
|
+
/* */
|
3785
|
+
/* */
|
3786
|
+
/* */
|
3787
|
+
/* */
|
3788
|
+
/* */
|
3789
|
+
/* */
|
3790
|
+
//#region @browser
|
3740
3791
|
const encoding = 'utf8';
|
3741
3792
|
/* */
|
3742
3793
|
/* */
|