@punks/backend-core 0.0.36 → 0.0.38
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/dist/cjs/index.js +23 -24
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/index.d.ts +1 -0
- package/dist/cjs/types/abstractions/localization.d.ts +3 -0
- package/dist/cjs/types/logging/service.d.ts +1 -3
- package/dist/esm/index.js +23 -24
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/index.d.ts +1 -0
- package/dist/esm/types/abstractions/localization.d.ts +3 -0
- package/dist/esm/types/logging/service.d.ts +1 -3
- package/dist/index.d.ts +6 -4
- package/package.json +1 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ILogger, LogLevel, MetaSerializationType } from "../abstractions";
|
|
2
2
|
export declare class Log {
|
|
3
|
-
private static
|
|
4
|
-
private static level;
|
|
5
|
-
private static metaSerialization;
|
|
3
|
+
private static readonly options;
|
|
6
4
|
static setSerializationType(type: MetaSerializationType): void;
|
|
7
5
|
static setLevel(level: LogLevel): void;
|
|
8
6
|
static enable(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ interface IServiceLocator {
|
|
|
9
9
|
resolve<T>(name: string, options?: IResolveServiceOptions): T;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
type LocalizedField<T> = {
|
|
13
|
+
[key: string]: T;
|
|
14
|
+
};
|
|
15
|
+
|
|
12
16
|
declare enum LogLevel {
|
|
13
17
|
Debug = 0,
|
|
14
18
|
Info = 1,
|
|
@@ -49,9 +53,7 @@ declare const processArrayDifferences: <TItem, TInputItem, TId>({ elements, elem
|
|
|
49
53
|
};
|
|
50
54
|
|
|
51
55
|
declare class Log {
|
|
52
|
-
private static
|
|
53
|
-
private static level;
|
|
54
|
-
private static metaSerialization;
|
|
56
|
+
private static readonly options;
|
|
55
57
|
static setSerializationType(type: MetaSerializationType): void;
|
|
56
58
|
static setLevel(level: LogLevel): void;
|
|
57
59
|
static enable(): void;
|
|
@@ -184,4 +186,4 @@ type ExcelParseOptions = {
|
|
|
184
186
|
};
|
|
185
187
|
declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
|
|
186
188
|
|
|
187
|
-
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, ITree, ITreeNode, Log, LogLevel, MetaSerializationType, RichText, TimeUnit, TreeNodeBuilder, addTime, buildObject, buildTree, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, csvBuild, csvParse, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, groupBy, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, last, mapOrThrow, mergeDeep, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, subArrays, subtractTime, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
|
|
189
|
+
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, ITree, ITreeNode, LocalizedField, Log, LogLevel, MetaSerializationType, RichText, TimeUnit, TreeNodeBuilder, addTime, buildObject, buildTree, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, csvBuild, csvParse, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, groupBy, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, last, mapOrThrow, mergeDeep, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, subArrays, subtractTime, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
|