@punks/backend-core 0.0.16 → 0.0.17
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.
|
@@ -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
|
@@ -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 };
|