tnp-core 21.0.166 → 21.0.167

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 (120) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +3 -3
  2. package/browser/package.json +1 -1
  3. package/browser-prod/package.json +1 -1
  4. package/full-dts/build-info._auto-generated_.d.ts +24 -0
  5. package/full-dts/config.d.ts +171 -0
  6. package/full-dts/constants.d.ts +306 -0
  7. package/full-dts/core-cli.d.ts +8 -0
  8. package/full-dts/core-config.d.ts +5 -0
  9. package/full-dts/core-imports.d.ts +71 -0
  10. package/full-dts/core-models.d.ts +313 -0
  11. package/full-dts/core-project.d.ts +6 -0
  12. package/full-dts/cross-platform-path.d.ts +5 -0
  13. package/full-dts/env/env.angular-node-app.d.ts +67 -0
  14. package/full-dts/env/env.docs-webapp.d.ts +67 -0
  15. package/full-dts/env/env.electron-app.d.ts +67 -0
  16. package/full-dts/env/env.mobile-app.d.ts +67 -0
  17. package/full-dts/env/env.npm-lib-and-cli-tool.d.ts +67 -0
  18. package/full-dts/env/env.vscode-plugin.d.ts +67 -0
  19. package/full-dts/env/index.d.ts +6 -0
  20. package/full-dts/framework-name.d.ts +3 -0
  21. package/full-dts/global-logs.d.ts +5 -0
  22. package/full-dts/global-spinner.d.ts +27 -0
  23. package/full-dts/global-storage.d.ts +17 -0
  24. package/full-dts/global-task-manager.d.ts +20 -0
  25. package/full-dts/helpers.d.ts +325 -0
  26. package/full-dts/index.d.ts +53 -0
  27. package/full-dts/jsonc-parser.d.ts +4 -0
  28. package/full-dts/lodash.namespace.d.ts +308 -0
  29. package/full-dts/lowdb/adapters/Memory.d.ts +11 -0
  30. package/full-dts/lowdb/adapters/client/LocalStorage.d.ts +4 -0
  31. package/full-dts/lowdb/adapters/client/SessionStorage.d.ts +4 -0
  32. package/full-dts/lowdb/adapters/client/WebStorage.d.ts +8 -0
  33. package/full-dts/lowdb/adapters/node/DataFile.d.ts +25 -0
  34. package/full-dts/lowdb/adapters/node/JSONFile.d.ts +8 -0
  35. package/full-dts/lowdb/adapters/node/TextFile.d.ts +17 -0
  36. package/full-dts/lowdb/adapters/node/steno.d.ts +13 -0
  37. package/full-dts/lowdb/browser.d.ts +3 -0
  38. package/full-dts/lowdb/core/Low.d.ts +24 -0
  39. package/full-dts/lowdb/examples/server.d.ts +0 -0
  40. package/full-dts/lowdb/index.d.ts +3 -0
  41. package/full-dts/lowdb/node.d.ts +4 -0
  42. package/full-dts/lowdb/presets/browser.d.ts +3 -0
  43. package/full-dts/lowdb/presets/node.d.ts +4 -0
  44. package/full-dts/node-chalk-mock.d.ts +2 -0
  45. package/full-dts/node-path-mock.d.ts +25 -0
  46. package/full-dts/public-api.d.ts +4 -0
  47. package/full-dts/required-global-npm-packages.d.ts +44 -0
  48. package/full-dts/start-cli.d.ts +7 -0
  49. package/full-dts/taon-state-machine.d.ts +23 -0
  50. package/full-dts/utils-binary.d.ts +68 -0
  51. package/full-dts/utils-cli.d.ts +41 -0
  52. package/full-dts/utils-dot-file.d.ts +17 -0
  53. package/full-dts/utils-env.d.ts +101 -0
  54. package/full-dts/utils-etc-hosts.d.ts +28 -0
  55. package/full-dts/utils-exec-proc-vscode.d.ts +62 -0
  56. package/full-dts/utils-exec-proc.d.ts +100 -0
  57. package/full-dts/utils-files-folders.d.ts +106 -0
  58. package/full-dts/utils-http.d.ts +188 -0
  59. package/full-dts/utils-i18n.d.ts +38 -0
  60. package/full-dts/utils-imports.d.ts +0 -0
  61. package/full-dts/utils-imports.test.d.ts +0 -0
  62. package/full-dts/utils-json.d.ts +37 -0
  63. package/full-dts/utils-jwt.d.ts +12 -0
  64. package/full-dts/utils-md-docs.d.ts +21 -0
  65. package/full-dts/utils-network.d.ts +79 -0
  66. package/full-dts/utils-os.d.ts +126 -0
  67. package/full-dts/utils-passwords.d.ts +8 -0
  68. package/full-dts/utils-process-logger.d.ts +97 -0
  69. package/full-dts/utils-process.d.ts +93 -0
  70. package/full-dts/utils-progress.d.ts +26 -0
  71. package/full-dts/utils-projects.d.ts +327 -0
  72. package/full-dts/utils-projects.test.d.ts +0 -0
  73. package/full-dts/utils-secret-env.d.ts +41 -0
  74. package/full-dts/utils-start-async.d.ts +67 -0
  75. package/full-dts/utils-stdin-stdout-logger.d.ts +9 -0
  76. package/full-dts/utils-string-regex.d.ts +11 -0
  77. package/full-dts/utils-sudo.d.ts +32 -0
  78. package/full-dts/utils-temp-folder.d.ts +29 -0
  79. package/full-dts/utils-terminal.d.ts +171 -0
  80. package/full-dts/utils-time.d.ts +16 -0
  81. package/full-dts/utils-wait-notifier.d.ts +11 -0
  82. package/full-dts/utils.d.ts +100 -0
  83. package/lib/build-info._auto-generated_.d.ts +1 -1
  84. package/lib/build-info._auto-generated_.js +1 -1
  85. package/lib/config.d.ts +2 -2
  86. package/lib/core-imports.d.ts +1 -4
  87. package/lib/framework-name.d.ts +3 -3
  88. package/lib/package.json +1 -1
  89. package/lib/utils-binary.d.ts +1 -9
  90. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  91. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  92. package/lib-esm/lib/config.d.ts +2 -2
  93. package/lib-esm/lib/core-imports.d.ts +1 -4
  94. package/lib-esm/lib/framework-name.d.ts +3 -3
  95. package/lib-esm/lib/utils-binary.d.ts +1 -9
  96. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  97. package/lib-prod/build-info._auto-generated_.js +1 -1
  98. package/lib-prod/package.json +1 -1
  99. package/package.json +1 -1
  100. package/src.d.ts +1 -1
  101. package/websql/package.json +1 -1
  102. package/websql-prod/package.json +1 -1
  103. package/lib/jsonc-parse.test.d.ts +0 -1
  104. package/lib/utils-env.test.d.ts +0 -1
  105. package/lib/utils-json.test.d.ts +0 -1
  106. package/lib/utils-jwt.test.d.ts +0 -1
  107. package/lib/utils-md-docs.test.d.ts +0 -1
  108. package/lib/utils-progress.test.d.ts +0 -1
  109. /package/{lib-esm/lib/utils-imports.test.d.ts → full-dts/index._auto-generated_.d.ts} +0 -0
  110. /package/{lib-esm/lib/utils-projects.test.d.ts → full-dts/json10writer.d.ts} +0 -0
  111. /package/{lib-esm/lib → full-dts}/jsonc-parse.test.d.ts +0 -0
  112. /package/{lib-esm/lib/taon-state-machine.test.d.ts → full-dts/lowdb/examples/browser.d.ts} +0 -0
  113. /package/{lib/utils-imports.test.d.ts → full-dts/lowdb/examples/cli.d.ts} +0 -0
  114. /package/{lib/utils-projects.test.d.ts → full-dts/lowdb/examples/in-memory.d.ts} +0 -0
  115. /package/{lib → full-dts}/taon-state-machine.test.d.ts +0 -0
  116. /package/{lib-esm/lib → full-dts}/utils-env.test.d.ts +0 -0
  117. /package/{lib-esm/lib → full-dts}/utils-json.test.d.ts +0 -0
  118. /package/{lib-esm/lib → full-dts}/utils-jwt.test.d.ts +0 -0
  119. /package/{lib-esm/lib → full-dts}/utils-md-docs.test.d.ts +0 -0
  120. /package/{lib-esm/lib → full-dts}/utils-progress.test.d.ts +0 -0
@@ -0,0 +1,16 @@
1
+ export declare namespace UtilsTime {
2
+ const formatDuration: (milliseconds: number) => string;
3
+ const wait: (second: number) => Promise<void>;
4
+ const waitMilliseconds: (milliseconds: number) => Promise<void>;
5
+ interface MeasureOptions {
6
+ hideLogs?: boolean;
7
+ }
8
+ interface ExecutionTimeResult {
9
+ readonly milliseconds: number;
10
+ readonly seconds: number;
11
+ readonly minutes: number;
12
+ readonly human: string;
13
+ }
14
+ const mesureExecutionTime: <T>(description: string, functionToExecute: () => Promise<T>, options?: MeasureOptions) => Promise<ExecutionTimeResult>;
15
+ const mesureExecutionTimeSync: <T>(description: string, functionToExecute: () => T, options?: MeasureOptions) => ExecutionTimeResult;
16
+ }
@@ -0,0 +1,11 @@
1
+ export declare namespace UtilsWaitNotifier {
2
+ interface NotifierOptions {
3
+ checkIfAwakeEveryMS?: number;
4
+ exitTimeoutMs?: number | 'Infinite';
5
+ }
6
+ function getNotifier(options?: NotifierOptions): {
7
+ next(): void;
8
+ wait(): Promise<void>;
9
+ readonly isWaiting: boolean;
10
+ };
11
+ }
@@ -0,0 +1,100 @@
1
+ import 'reflect-metadata';
2
+ export declare namespace Utils {
3
+ const wait: (second: number) => Promise<void>;
4
+ const waitMilliseconds: (milliseconds: number) => Promise<void>;
5
+ const uniqArray: <T = any>(array: any[], uniqueProperty?: keyof T) => T[];
6
+ /**
7
+ * @param anyObject
8
+ * @returns object with sorted keys
9
+ */
10
+ const sortKeys: (anyObject: any) => any;
11
+ /**
12
+ * Example:
13
+ * new RegExp(escapeStringForRegEx('a.b.c'),'g') => /a\.b\.c/g
14
+ */
15
+ const escapeStringForRegEx: (stringForRegExp: string, options?: {
16
+ skipEscapeSlashAndDash?: boolean;
17
+ }) => string;
18
+ function removeChalkSpecialChars(str: string): string;
19
+ const fullDateTime: () => string;
20
+ const fullDate: () => string;
21
+ const getFreePort: (options?: {
22
+ startFrom?: number;
23
+ }) => Promise<number>;
24
+ const requireUncached: (module: string) => any;
25
+ /**
26
+ * similar to camelCase but remove
27
+ * all non word / repeated characters
28
+ */
29
+ const camelize: (str?: string) => string;
30
+ namespace css {
31
+ /**
32
+ *
33
+ * @param pixelsCss pixels ex. 100px
34
+ * @returns
35
+ */
36
+ function numValue(pixelsCss: string | number): number;
37
+ }
38
+ }
39
+ /**
40
+ * TODO @LAST @IN_PROGRESS
41
+ * - utils for messages
42
+ * - export when ready
43
+ * - should be ready for everything async refactor
44
+ */
45
+ export declare namespace UtilsMessages {
46
+ const compilationWrapper: (fn: () => any, taskName?: string, executionType?: "Compilation of" | "Code execution of" | "Event:") => Promise<void>;
47
+ }
48
+ /**
49
+ * Taon migration utilities
50
+ */
51
+ export declare namespace UtilsMigrations {
52
+ const getTimestampFromClassName: (className: string) => number | undefined;
53
+ const getFormattedTimestampFromClassName: (className: string) => string | undefined;
54
+ const formatTimestamp: (timestamp: number) => string;
55
+ const isValidTimestamp: (value: any) => boolean;
56
+ }
57
+ export declare namespace UtilsYaml {
58
+ const yamlToJson: <FORMAT = any>(yamlString: string) => any;
59
+ const jsonToYaml: (json: any) => string;
60
+ const readYamlAsJson: <FORMAT = any>(absFilePathToYamlOrYmlFile: string, options?: {
61
+ defaultValue?: FORMAT;
62
+ }) => FORMAT;
63
+ const writeJsonToYaml: (destinationYamlfileAbsPath: string, json: any) => void;
64
+ }
65
+ export declare namespace FilePathMetaData {
66
+ /**
67
+ * Embed metadata into filename while preserving the extension.
68
+ *
69
+ * Example:
70
+ * embedData({ version: "1.2.3", envName: "__" }, "project.zip")
71
+ * -> "version|-|1.2.3||--||envName|-|__|||project.zip"
72
+ *
73
+ * keysMap = {
74
+ * projectName: "pn",
75
+ * envName: "en",
76
+ * version: "v"
77
+ * }
78
+ */
79
+ const embedData: <T extends Record<string, string | number | boolean | undefined>>(data: T, orgFilename: string, options?: {
80
+ skipAddingBasenameAtEnd?: boolean;
81
+ keysMap?: Record<keyof T, string | number | boolean | undefined>;
82
+ }) => string;
83
+ /**
84
+ * Extract metadata from filename (reverse of embedData).
85
+ *
86
+ * Example:
87
+ * extractData<{ version: string; env: string }>("myfile__version-1.2.3__env-prod.zip")
88
+ * -> { version: "1.2.3", env: "prod" }
89
+ *
90
+ * keysMap = {
91
+ * projectName: "pn",
92
+ * envName: "en",
93
+ * version: "v"
94
+ * }
95
+ */
96
+ const extractData: <T extends Record<string, string | number | boolean | undefined>>(filename: string, options?: {
97
+ keysMap?: Record<keyof T, string | number | boolean | undefined>;
98
+ }) => T;
99
+ const getOnlyMetadataString: (filename: string) => string;
100
+ }
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.166";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.167";
@@ -25,6 +25,6 @@ exports.CURRENT_PACKAGE_TAON_VERSION = 'v21';
25
25
  /**
26
26
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
27
27
  */
28
- exports.CURRENT_PACKAGE_VERSION = '21.0.166';
28
+ exports.CURRENT_PACKAGE_VERSION = '21.0.167';
29
29
  // THIS FILE IS GENERATED - DO NOT MODIFY
30
30
  //# sourceMappingURL=build-info._auto-generated_.js.map
package/lib/config.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare const config: {
10
10
  placeholders: {
11
11
  forProjectsInEnvironmentFile: string;
12
12
  };
13
- frameworkName: "tnp" | "taon";
13
+ frameworkName: "taon" | "tnp";
14
14
  startPort: number;
15
15
  frameworks: CoreModels.UIFramework[];
16
16
  /**
@@ -168,4 +168,4 @@ export declare const config: {
168
168
  reservedArgumentsNamesUglify: string[];
169
169
  localLibs: string[];
170
170
  helpAlias: string[];
171
- };
171
+ };
@@ -65,7 +65,4 @@ export declare function signal<T>(initialValue: T): BackendSignal<T>;
65
65
  type Constructor<T> = new (...args: any[]) => T;
66
66
  export declare function inject<T>(token: Constructor<T>): T;
67
67
  export declare function Injectable(_options?: any): ClassDecorator;
68
- export { signal } from '@angular/core';
69
- export { inject } from '@angular/core';
70
- export { Injectable } from '@angular/core';
71
- export { dateformat, path, chalk, json5, $, glob, fse, os, child_process, http, https, isElevated, psList, spawn, fg, chokidar, mkdirp, ncp, rimraf, ps, micromatch, };
68
+ export { dateformat, path, chalk, json5, $, glob, fse, os, child_process, http, https, isElevated, psList, spawn, fg, chokidar, mkdirp, ncp, rimraf, ps, micromatch, };
@@ -1,3 +1,3 @@
1
- declare let frameworkNameBe: "tnp" | "taon";
2
- declare const frameworkName: "tnp" | "taon";
3
- export { frameworkName, frameworkNameBe };
1
+ declare let frameworkNameBe: "taon" | "tnp";
2
+ declare const frameworkName: "taon" | "tnp";
3
+ export { frameworkName, frameworkNameBe };
package/lib/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "tnp-core/lib",
3
- "version": "21.0.166"
3
+ "version": "21.0.167"
4
4
  }
@@ -17,14 +17,6 @@ export type DbBinaryFormatForBackend = Buffer;
17
17
  */
18
18
  export type DbBinaryFormat = DbBinaryFormatForBrowser | DbBinaryFormatForBackend;
19
19
  export declare namespace UtilsBinary {
20
- /**
21
- * This is for BROWSER ONLY
22
- *
23
- * @param buffer
24
- * @param contentType
25
- * @returns
26
- */
27
- function arrayBufferToBlob(buffer: ArrayBuffer, contentType: CoreModels.ContentType): Promise<Blob>;
28
20
  /**
29
21
  * This is for BROWSER ONLY
30
22
  * @param blob
@@ -65,4 +57,4 @@ export declare namespace UtilsBinary {
65
57
  */
66
58
  function blobToJson(blob: Blob): Promise<string>;
67
59
  function getBlobFrom(url: string): Promise<Blob>;
68
- }
60
+ }
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.166";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.167";
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export const CURRENT_PACKAGE_VERSION = '21.0.166';
25
+ export const CURRENT_PACKAGE_VERSION = '21.0.167';
26
26
  // THIS FILE IS GENERATED - DO NOT MODIFY
27
27
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -10,7 +10,7 @@ export declare const config: {
10
10
  placeholders: {
11
11
  forProjectsInEnvironmentFile: string;
12
12
  };
13
- frameworkName: "tnp" | "taon";
13
+ frameworkName: "taon" | "tnp";
14
14
  startPort: number;
15
15
  frameworks: CoreModels.UIFramework[];
16
16
  /**
@@ -168,4 +168,4 @@ export declare const config: {
168
168
  reservedArgumentsNamesUglify: string[];
169
169
  localLibs: string[];
170
170
  helpAlias: string[];
171
- };
171
+ };
@@ -65,7 +65,4 @@ export declare function signal<T>(initialValue: T): BackendSignal<T>;
65
65
  type Constructor<T> = new (...args: any[]) => T;
66
66
  export declare function inject<T>(token: Constructor<T>): T;
67
67
  export declare function Injectable(_options?: any): ClassDecorator;
68
- export { signal } from '@angular/core';
69
- export { inject } from '@angular/core';
70
- export { Injectable } from '@angular/core';
71
- export { dateformat, path, chalk, json5, $, glob, fse, os, child_process, http, https, isElevated, psList, spawn, fg, chokidar, mkdirp, ncp, rimraf, ps, micromatch, };
68
+ export { dateformat, path, chalk, json5, $, glob, fse, os, child_process, http, https, isElevated, psList, spawn, fg, chokidar, mkdirp, ncp, rimraf, ps, micromatch, };
@@ -1,3 +1,3 @@
1
- declare let frameworkNameBe: "tnp" | "taon";
2
- declare const frameworkName: "tnp" | "taon";
3
- export { frameworkName, frameworkNameBe };
1
+ declare let frameworkNameBe: "taon" | "tnp";
2
+ declare const frameworkName: "taon" | "tnp";
3
+ export { frameworkName, frameworkNameBe };
@@ -17,14 +17,6 @@ export type DbBinaryFormatForBackend = Buffer;
17
17
  */
18
18
  export type DbBinaryFormat = DbBinaryFormatForBrowser | DbBinaryFormatForBackend;
19
19
  export declare namespace UtilsBinary {
20
- /**
21
- * This is for BROWSER ONLY
22
- *
23
- * @param buffer
24
- * @param contentType
25
- * @returns
26
- */
27
- function arrayBufferToBlob(buffer: ArrayBuffer, contentType: CoreModels.ContentType): Promise<Blob>;
28
20
  /**
29
21
  * This is for BROWSER ONLY
30
22
  * @param blob
@@ -65,4 +57,4 @@ export declare namespace UtilsBinary {
65
57
  */
66
58
  function blobToJson(blob: Blob): Promise<string>;
67
59
  function getBlobFrom(url: string): Promise<Blob>;
68
- }
60
+ }
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.166";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.167";
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export const CURRENT_PACKAGE_VERSION = '21.0.166';
25
+ export const CURRENT_PACKAGE_VERSION = '21.0.167';
26
26
  // THIS FILE IS GENERATED - DO NOT MODIFY
27
27
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "tnp-core/lib-prod",
3
- "version": "21.0.166"
3
+ "version": "21.0.167"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tnp-core",
3
- "version": "21.0.166",
3
+ "version": "21.0.167",
4
4
  "scripts": {
5
5
  "mkdocs": "python3 -m mkdocs",
6
6
  "taon init": "taon init",
package/src.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // THIS FILE IS GENERATED - DO NOT MODIFY
2
- export * from './lib';
2
+ export * from './full-dts';
3
3
  // THIS FILE IS GENERATED - DO NOT MODIFY
4
4
  // please use command: taon build:watch to see here links for your globally builded lib code files
5
5
  // THIS FILE IS GENERATED - DO NOT MODIFY
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tnp-core/websql",
3
- "version": "21.0.166",
3
+ "version": "21.0.167",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tnp-core/websql-prod",
3
- "version": "21.0.166",
3
+ "version": "21.0.167",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
File without changes
File without changes
File without changes
File without changes
File without changes