tnp-core 18.0.33 → 18.0.36

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.
Files changed (53) hide show
  1. package/README.md +20 -20
  2. package/assets/shared/shared_folder_info.txt +1 -1
  3. package/browser/README.md +24 -24
  4. package/browser/esm2022/lib/core-imports.mjs +6 -1
  5. package/browser/esm2022/lib/core-models.mjs +7 -1
  6. package/browser/esm2022/lib/helpers.mjs +22 -2
  7. package/browser/esm2022/lib/utils.mjs +25 -1
  8. package/browser/fesm2022/tnp-core.mjs +54 -2
  9. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  10. package/browser/lib/core-models.d.ts +12 -1
  11. package/browser/lib/helpers.d.ts +1 -0
  12. package/browser/lib/utils.d.ts +5 -0
  13. package/cli.backend.js +2 -2
  14. package/client/README.md +24 -24
  15. package/client/esm2022/lib/core-imports.mjs +6 -1
  16. package/client/esm2022/lib/core-models.mjs +7 -1
  17. package/client/esm2022/lib/helpers.mjs +22 -2
  18. package/client/esm2022/lib/utils.mjs +25 -1
  19. package/client/fesm2022/tnp-core.mjs +54 -2
  20. package/client/fesm2022/tnp-core.mjs.map +1 -1
  21. package/client/lib/core-models.d.ts +12 -1
  22. package/client/lib/helpers.d.ts +1 -0
  23. package/client/lib/utils.d.ts +5 -0
  24. package/lib/core-imports.d.ts +3 -1
  25. package/lib/core-imports.js +5 -1
  26. package/lib/core-imports.js.map +1 -1
  27. package/lib/core-models.d.ts +12 -1
  28. package/lib/core-models.js +6 -0
  29. package/lib/core-models.js.map +1 -1
  30. package/lib/helpers.d.ts +1 -0
  31. package/lib/helpers.js +14 -3
  32. package/lib/helpers.js.map +1 -1
  33. package/lib/index._auto-generated_.d.ts +0 -0
  34. package/lib/index._auto-generated_.js +6 -0
  35. package/lib/index._auto-generated_.js.map +1 -0
  36. package/lib/node-chalk-mock.js +2 -2
  37. package/lib/node-path-mock.js +2 -2
  38. package/lib/utils.d.ts +5 -0
  39. package/lib/utils.js +30 -1
  40. package/lib/utils.js.map +1 -1
  41. package/package.json +2 -2
  42. package/taon.jsonc +65 -65
  43. package/tmp-environment.json +31 -30
  44. package/websql/README.md +24 -24
  45. package/websql/esm2022/lib/core-imports.mjs +6 -1
  46. package/websql/esm2022/lib/core-models.mjs +7 -1
  47. package/websql/esm2022/lib/helpers.mjs +22 -2
  48. package/websql/esm2022/lib/utils.mjs +25 -1
  49. package/websql/fesm2022/tnp-core.mjs +54 -2
  50. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  51. package/websql/lib/core-models.d.ts +12 -1
  52. package/websql/lib/helpers.d.ts +1 -0
  53. package/websql/lib/utils.d.ts +5 -0
@@ -50,7 +50,8 @@ export declare namespace CoreModels {
50
50
  export type FrameworkVersion = 'v1' | 'v2' | 'v3' | 'v4' | 'v16' | 'v18' | 'v20';
51
51
  export type CutableFileExt = 'scss' | 'css' | 'less' | 'sass' | 'html' | 'ts' | 'tsx' | 'js';
52
52
  export type ImageFileExtension = 'jpg' | 'jpeg' | 'png' | 'svg';
53
- export type FileExtension = 'json' | 'html' | ImageFileExtension | 'txt' | CutableFileExt;
53
+ export const ImageFileExtensionArr: CoreModels.ImageFileExtension[];
54
+ export type FileExtension = 'json' | 'html' | ImageFileExtension | 'txt' | 'md' | CutableFileExt;
54
55
  export type HttpMethod = 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'jsonp';
55
56
  export type ParamType = 'Path' | 'Query' | 'Cookie' | 'Header' | 'Body';
56
57
  export type TsUsage = 'import' | 'export';
@@ -397,6 +398,16 @@ export declare namespace CoreModels {
397
398
  compilerOptions: CompilerOptions;
398
399
  angularCompilerOptions: AngularCompilerOptions;
399
400
  }
401
+ export interface TscCompileOptions {
402
+ cwd: string;
403
+ watch?: boolean;
404
+ outDir?: 'dist';
405
+ generateDeclarations?: boolean;
406
+ tsExe?: string;
407
+ diagnostics?: boolean;
408
+ hideErrors?: boolean;
409
+ debug?: boolean;
410
+ }
400
411
  export interface TaonJson {
401
412
  type: CoreModels.LibType;
402
413
  version?: CoreModels.FrameworkVersion;
@@ -41,6 +41,7 @@ export declare class HelpersCore extends HelpersMessages {
41
41
  mediaTypeFromSrc(src: string): CoreModels.MediaType;
42
42
  sleep(seconds?: number): any;
43
43
  removeIfExists(absoluteFileOrFolderPath: string | string[]): any;
44
+ relative(cwd: string, to: string): string;
44
45
  removeFileIfExists(absoluteFilePath: string | string[]): any;
45
46
  removeFolderIfExists(absoluteFolderPath: string | string[]): any;
46
47
  /**
@@ -1,11 +1,13 @@
1
1
  // @ts-nocheck
2
2
  import { CoreModels } from './core-models';
3
3
  export declare namespace Utils {
4
+ export const uniqArray: <T = any>(array: any[], uniqueProperty?: keyof T) => T[];
4
5
  /**
5
6
  * Example:
6
7
  * new RegExp(escapeStringForRegEx('a.b.c'),'g') => /a\.b\.c/g
7
8
  */
8
9
  export const escapeStringForRegEx: (stringForRegExp: string) => string;
10
+ export function removeChalkSpecialChars(str: string): string;
9
11
  interface AttrJsoncProp {
10
12
  name: string;
11
13
  value?: any;
@@ -129,4 +131,7 @@ export declare namespace Utils {
129
131
  function startSync(command: string, options?: ProcessStartOptions): void;
130
132
  }
131
133
  export {};
134
+ }
135
+ export declare namespace UtilsString {
136
+ const kebabCaseNoSplitNumbers: (input: string) => string;
132
137
  }