@punks/backend-core 0.0.19 → 0.0.21
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 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/utils/csv.d.ts +1 -1
- package/dist/cjs/types/utils/index.d.ts +1 -1
- package/dist/esm/index.js +14 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/utils/csv.d.ts +1 -1
- package/dist/esm/types/utils/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const csvParse: (data: string | string[] | Buffer, separator?: string) => Record<string, any>[];
|
|
3
3
|
export interface CsvColumnDefinition<T> {
|
|
4
4
|
name: string;
|
|
5
5
|
value: (item: T) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./array";
|
|
2
|
-
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, csvBuild,
|
|
2
|
+
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, csvBuild, csvParse, } from "./csv";
|
|
3
3
|
export { getDirectoryFilePaths } from "./files";
|
|
4
4
|
export { joinPath, splitPath, ensureDirectory, getDirectoryPath } from "./paths";
|
|
5
5
|
export * from "./strings";
|
package/dist/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare const distinctElements: <T>(values: T[], comparer: (value: T) => any) =>
|
|
|
62
62
|
declare const jsonDistinct: <T>(values: T[]) => T[];
|
|
63
63
|
declare const iterate: <T>(values: T[], action: (item: T, next?: T | undefined, prev?: T | undefined) => void) => void;
|
|
64
64
|
|
|
65
|
-
declare const
|
|
65
|
+
declare const csvParse: (data: string | string[] | Buffer, separator?: string) => Record<string, any>[];
|
|
66
66
|
interface CsvColumnDefinition<T> {
|
|
67
67
|
name: string;
|
|
68
68
|
value: (item: T) => any;
|
|
@@ -123,4 +123,4 @@ type ExcelParseOptions = {
|
|
|
123
123
|
};
|
|
124
124
|
declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
|
|
125
125
|
|
|
126
|
-
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, Log, LogLevel, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, csvBuild,
|
|
126
|
+
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, Log, LogLevel, 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, toMap, toTitleCase, trim, trimEnd, trimStart };
|