@punks/backend-core 0.0.16 → 0.0.18

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,4 +1,4 @@
1
- export declare const csvParseRaw: (rows: string[], separator: string) => string[][];
1
+ export declare const csvParseRaw: (data: string | string[] | Blob, separator: string) => Promise<string[][]>;
2
2
  export interface CsvColumnDefinition<T> {
3
3
  name: string;
4
4
  value: (item: T) => any;
@@ -5,3 +5,5 @@ export declare const camelToSnakeCase: (str: string) => string;
5
5
  export declare const camelToKebabCase: (str: string) => string;
6
6
  export declare const toCamelCase: (str: string) => string;
7
7
  export declare const toTitleCase: (str: string) => string;
8
+ export declare const ensureTailingSlash: (value: string) => string;
9
+ export declare const ensureStartSlash: (value: string) => string;
package/dist/index.d.ts CHANGED
@@ -61,7 +61,7 @@ declare const distinctElements: <T>(values: T[], comparer: (value: T) => any) =>
61
61
  declare const jsonDistinct: <T>(values: T[]) => T[];
62
62
  declare const iterate: <T>(values: T[], action: (item: T, next?: T | undefined, prev?: T | undefined) => void) => void;
63
63
 
64
- declare const csvParseRaw: (rows: string[], separator: string) => string[][];
64
+ declare const csvParseRaw: (data: string | string[] | Blob, separator: string) => Promise<string[][]>;
65
65
  interface CsvColumnDefinition<T> {
66
66
  name: string;
67
67
  value: (item: T) => any;
@@ -87,6 +87,8 @@ declare const camelToSnakeCase: (str: string) => string;
87
87
  declare const camelToKebabCase: (str: string) => string;
88
88
  declare const toCamelCase: (str: string) => string;
89
89
  declare const toTitleCase: (str: string) => string;
90
+ declare const ensureTailingSlash: (value: string) => string;
91
+ declare const ensureStartSlash: (value: string) => string;
90
92
 
91
93
  declare const removeUndefinedProps: <T extends Record<string, any>>(obj: T, options?: {
92
94
  recursive?: boolean;
@@ -120,4 +122,4 @@ type ExcelParseOptions = {
120
122
  };
121
123
  declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
122
124
 
123
- 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, 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 };
125
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-core",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "WebPunks Backend Core",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",