@punks/backend-core 0.0.41 → 0.0.43
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 +14 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/functions/arrays/index.d.ts +1 -0
- package/dist/cjs/types/functions/index.d.ts +1 -1
- package/dist/esm/index.js +14 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/functions/arrays/index.d.ts +1 -0
- package/dist/esm/types/functions/index.d.ts +1 -1
- package/dist/index.d.ts +10 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export { processArrayDifferences } from "./arrays";
|
|
1
|
+
export { processArrayDifferences, processArrayItemMove } from "./arrays";
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,15 @@ declare const processArrayDifferences: <TItem, TInputItem, TId>({ elements, elem
|
|
|
56
56
|
desired: TInputItem;
|
|
57
57
|
}[];
|
|
58
58
|
};
|
|
59
|
+
declare const processArrayItemMove: <TItem>(items: TItem[], input: {
|
|
60
|
+
oldIndex: number;
|
|
61
|
+
newIndex: number;
|
|
62
|
+
}) => {
|
|
63
|
+
item: TItem;
|
|
64
|
+
newIndex: number;
|
|
65
|
+
oldIndex: number;
|
|
66
|
+
isMoved: boolean;
|
|
67
|
+
}[];
|
|
59
68
|
|
|
60
69
|
declare class Log {
|
|
61
70
|
private static readonly options;
|
|
@@ -191,4 +200,4 @@ type ExcelParseOptions = {
|
|
|
191
200
|
};
|
|
192
201
|
declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
|
|
193
202
|
|
|
194
|
-
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, logMemoryUsage, mapOrThrow, mergeDeep, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, subArrays, subtractTime, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
|
|
203
|
+
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, 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 };
|