@punks/backend-core 0.0.55 → 0.0.57
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 +36 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/logging.d.ts +7 -7
- package/dist/cjs/types/logging/utils.d.ts +2 -0
- package/dist/cjs/types/utils/array.d.ts +1 -0
- package/dist/esm/index.js +36 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/logging.d.ts +7 -7
- package/dist/esm/types/logging/utils.d.ts +2 -0
- package/dist/esm/types/utils/array.d.ts +1 -0
- package/dist/index.d.ts +9 -8
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare enum LogLevel {
|
|
2
|
-
Debug =
|
|
3
|
-
Info =
|
|
4
|
-
Warn =
|
|
5
|
-
Error =
|
|
6
|
-
Fatal =
|
|
2
|
+
Debug = "debug",
|
|
3
|
+
Info = "info",
|
|
4
|
+
Warn = "warn",
|
|
5
|
+
Error = "error",
|
|
6
|
+
Fatal = "fatal"
|
|
7
7
|
}
|
|
8
8
|
export declare enum MetaSerializationType {
|
|
9
|
-
None =
|
|
10
|
-
JSON =
|
|
9
|
+
None = "none",
|
|
10
|
+
JSON = "json"
|
|
11
11
|
}
|
|
12
12
|
export interface ILoggerProvider {
|
|
13
13
|
debug(loggerName: string, message: string, meta?: any): void;
|
|
@@ -5,6 +5,7 @@ export interface Dict<TVal> {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const toDict: <TVal>(array: TVal[], keySelector: (value: TVal) => string) => Dict<TVal>;
|
|
7
7
|
export declare const toItemsDict: <TItem, TVal>(array: TItem[], keySelector: (value: TItem) => string, elementSelector: (value: TItem) => TVal) => Dict<TVal>;
|
|
8
|
+
export declare const toArrayDict: <TVal>(array: TVal[], keySelector: (value: TVal) => string) => Dict<TVal[]>;
|
|
8
9
|
export declare const toMap: <TKey, TVal>(array: TVal[], key: (val: TVal) => TKey) => Map<TKey, TVal>;
|
|
9
10
|
export declare const toItemsMap: <TItem, TKey, TVal>(array: TItem[], key: (val: TItem) => TKey, element: (val: TItem) => TVal) => Map<TKey, TVal>;
|
|
10
11
|
export declare const last: <T>(arr: T[]) => T;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,15 +14,15 @@ type LocalizedField<T> = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
declare enum LogLevel {
|
|
17
|
-
Debug =
|
|
18
|
-
Info =
|
|
19
|
-
Warn =
|
|
20
|
-
Error =
|
|
21
|
-
Fatal =
|
|
17
|
+
Debug = "debug",
|
|
18
|
+
Info = "info",
|
|
19
|
+
Warn = "warn",
|
|
20
|
+
Error = "error",
|
|
21
|
+
Fatal = "fatal"
|
|
22
22
|
}
|
|
23
23
|
declare enum MetaSerializationType {
|
|
24
|
-
None =
|
|
25
|
-
JSON =
|
|
24
|
+
None = "none",
|
|
25
|
+
JSON = "json"
|
|
26
26
|
}
|
|
27
27
|
interface ILoggerProvider {
|
|
28
28
|
debug(loggerName: string, message: string, meta?: any): void;
|
|
@@ -136,6 +136,7 @@ interface Dict<TVal> {
|
|
|
136
136
|
}
|
|
137
137
|
declare const toDict: <TVal>(array: TVal[], keySelector: (value: TVal) => string) => Dict<TVal>;
|
|
138
138
|
declare const toItemsDict: <TItem, TVal>(array: TItem[], keySelector: (value: TItem) => string, elementSelector: (value: TItem) => TVal) => Dict<TVal>;
|
|
139
|
+
declare const toArrayDict: <TVal>(array: TVal[], keySelector: (value: TVal) => string) => Dict<TVal[]>;
|
|
139
140
|
declare const toMap: <TKey, TVal>(array: TVal[], key: (val: TVal) => TKey) => Map<TKey, TVal>;
|
|
140
141
|
declare const toItemsMap: <TItem, TKey, TVal>(array: TItem[], key: (val: TItem) => TKey, element: (val: TItem) => TVal) => Map<TKey, TVal>;
|
|
141
142
|
declare const last: <T>(arr: T[]) => T;
|
|
@@ -250,4 +251,4 @@ type ExcelParseOptions = {
|
|
|
250
251
|
};
|
|
251
252
|
declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
|
|
252
253
|
|
|
253
|
-
export { AppServiceReference, CsvColumnDefinition as ColumnDefinition, ConsoleLogger, CsvBuildOptions, DatadogLogger, 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, jsonSerialize, last, logMemoryUsage, mapOrThrow, mergeDeep, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, processArrayItemMove, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, subArrays, subtractTime, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
|
|
254
|
+
export { AppServiceReference, CsvColumnDefinition as ColumnDefinition, ConsoleLogger, CsvBuildOptions, DatadogLogger, 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, jsonSerialize, last, logMemoryUsage, mapOrThrow, mergeDeep, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, processArrayItemMove, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, subArrays, subtractTime, toArrayDict, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
|