@punks/backend-core 0.0.37 → 0.0.39

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
+ };
@@ -6,5 +6,8 @@ export declare const processArrayDifferences: <TItem, TInputItem, TId>({ element
6
6
  }) => {
7
7
  missingElements: TInputItem[];
8
8
  exceedingElements: TItem[];
9
- unchangedElements: TItem[];
9
+ correspondingElements: {
10
+ current: TItem;
11
+ desired: TInputItem;
12
+ }[];
10
13
  };
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,
@@ -45,7 +49,10 @@ declare const processArrayDifferences: <TItem, TInputItem, TId>({ elements, elem
45
49
  }) => {
46
50
  missingElements: TInputItem[];
47
51
  exceedingElements: TItem[];
48
- unchangedElements: TItem[];
52
+ correspondingElements: {
53
+ current: TItem;
54
+ desired: TInputItem;
55
+ }[];
49
56
  };
50
57
 
51
58
  declare class Log {
@@ -182,4 +189,4 @@ type ExcelParseOptions = {
182
189
  };
183
190
  declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
184
191
 
185
- 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 };
192
+ 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.37",
3
+ "version": "0.0.39",
4
4
  "description": "WebPunks Backend Core",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",