@punks/backend-core 0.0.25 → 0.0.27
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 +9 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/utils/index.d.ts +1 -0
- package/dist/cjs/types/utils/mappings.d.ts +4 -0
- package/dist/esm/index.js +9 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/utils/index.d.ts +1 -0
- package/dist/esm/types/utils/mappings.d.ts +4 -0
- package/dist/index.d.ts +6 -1
- package/package.json +1 -1
|
@@ -6,5 +6,6 @@ export * from "./strings";
|
|
|
6
6
|
export * from "./objects";
|
|
7
7
|
export * from "./text";
|
|
8
8
|
export * from "./threading";
|
|
9
|
+
export * from "./mappings";
|
|
9
10
|
export * from "./uid";
|
|
10
11
|
export { ExcelSheetDefinition, ExcelKeyTransform, ExcelColumnDefinition as ExcelRowBuilder, ExcelParseOptions, excelBuild, excelParse, } from "./xls";
|
package/dist/index.d.ts
CHANGED
|
@@ -106,6 +106,11 @@ declare const pluralize: (word: string) => string;
|
|
|
106
106
|
|
|
107
107
|
declare function sleep(ms: number): Promise<unknown>;
|
|
108
108
|
|
|
109
|
+
declare const mapOrThrow: <T>({ mapper, throw: throwFn, }: {
|
|
110
|
+
mapper: () => T | undefined;
|
|
111
|
+
throw: () => void;
|
|
112
|
+
}) => T;
|
|
113
|
+
|
|
109
114
|
declare const newUuid: () => string;
|
|
110
115
|
|
|
111
116
|
interface ExcelColumnDefinition<T> {
|
|
@@ -129,4 +134,4 @@ type ExcelParseOptions = {
|
|
|
129
134
|
};
|
|
130
135
|
declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
|
|
131
136
|
|
|
132
|
-
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, Log, LogLevel, RichText, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, csvBuild, csvParse, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, last, newUuid, notNull, notUndefined, pluralize, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
|
|
137
|
+
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, Log, LogLevel, RichText, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, csvBuild, csvParse, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, last, mapOrThrow, newUuid, notNull, notUndefined, pluralize, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
|