@punks/backend-core 0.0.20 → 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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- export declare const csvParseRaw: (data: string | string[] | Buffer, separator?: string) => Record<string, any>[];
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, csvParseRaw, } from "./csv";
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 csvParseRaw: (data: string | string[] | Buffer, separator?: string) => Record<string, any>[];
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, csvParseRaw, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-core",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "WebPunks Backend Core",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",