@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.
@@ -1,2 +1,3 @@
1
1
  export * from "./ioc";
2
+ export * from "./localization";
2
3
  export * from "./logging";
@@ -0,0 +1,3 @@
1
+ export type LocalizedField<T> = {
2
+ [key: string]: T;
3
+ };
@@ -1,8 +1,6 @@
1
1
  import { ILogger, LogLevel, MetaSerializationType } from "../abstractions";
2
2
  export declare class Log {
3
- private static enabled;
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 enabled;
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-core",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "WebPunks Backend Core",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",