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.
- package/README.md +20 -20
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/browser/esm2022/lib/core-imports.mjs +6 -1
- package/browser/esm2022/lib/core-models.mjs +7 -1
- package/browser/esm2022/lib/helpers.mjs +22 -2
- package/browser/esm2022/lib/utils.mjs +25 -1
- package/browser/fesm2022/tnp-core.mjs +54 -2
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/core-models.d.ts +12 -1
- package/browser/lib/helpers.d.ts +1 -0
- package/browser/lib/utils.d.ts +5 -0
- package/cli.backend.js +2 -2
- package/client/README.md +24 -24
- package/client/esm2022/lib/core-imports.mjs +6 -1
- package/client/esm2022/lib/core-models.mjs +7 -1
- package/client/esm2022/lib/helpers.mjs +22 -2
- package/client/esm2022/lib/utils.mjs +25 -1
- package/client/fesm2022/tnp-core.mjs +54 -2
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/core-models.d.ts +12 -1
- package/client/lib/helpers.d.ts +1 -0
- package/client/lib/utils.d.ts +5 -0
- package/lib/core-imports.d.ts +3 -1
- package/lib/core-imports.js +5 -1
- package/lib/core-imports.js.map +1 -1
- package/lib/core-models.d.ts +12 -1
- package/lib/core-models.js +6 -0
- package/lib/core-models.js.map +1 -1
- package/lib/helpers.d.ts +1 -0
- package/lib/helpers.js +14 -3
- package/lib/helpers.js.map +1 -1
- package/lib/index._auto-generated_.d.ts +0 -0
- package/lib/index._auto-generated_.js +6 -0
- package/lib/index._auto-generated_.js.map +1 -0
- package/lib/node-chalk-mock.js +2 -2
- package/lib/node-path-mock.js +2 -2
- package/lib/utils.d.ts +5 -0
- package/lib/utils.js +30 -1
- package/lib/utils.js.map +1 -1
- package/package.json +2 -2
- package/taon.jsonc +65 -65
- package/tmp-environment.json +31 -30
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/core-imports.mjs +6 -1
- package/websql/esm2022/lib/core-models.mjs +7 -1
- package/websql/esm2022/lib/helpers.mjs +22 -2
- package/websql/esm2022/lib/utils.mjs +25 -1
- package/websql/fesm2022/tnp-core.mjs +54 -2
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/core-models.d.ts +12 -1
- package/websql/lib/helpers.d.ts +1 -0
- 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
|
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;
|
package/websql/lib/helpers.d.ts
CHANGED
@@ -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
|
/**
|
package/websql/lib/utils.d.ts
CHANGED
@@ -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
|
}
|