@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.
- package/dist/cjs/index.js +2 -2
- 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 +2 -2
- 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
package/dist/cjs/index.js
CHANGED
|
@@ -220,7 +220,7 @@ const splitRows = (data) => {
|
|
|
220
220
|
}
|
|
221
221
|
return data;
|
|
222
222
|
};
|
|
223
|
-
const
|
|
223
|
+
const csvParse = (data, separator = DEFAULT_DELIMITER) => {
|
|
224
224
|
const rows = splitRows(data);
|
|
225
225
|
const records = [];
|
|
226
226
|
if (rows.length === 0) {
|
|
@@ -28349,7 +28349,7 @@ exports.byFieldDesc = byFieldDesc;
|
|
|
28349
28349
|
exports.camelToKebabCase = camelToKebabCase;
|
|
28350
28350
|
exports.camelToSnakeCase = camelToSnakeCase;
|
|
28351
28351
|
exports.csvBuild = csvBuild;
|
|
28352
|
-
exports.
|
|
28352
|
+
exports.csvParse = csvParse;
|
|
28353
28353
|
exports.distinct = distinct;
|
|
28354
28354
|
exports.distinctElements = distinctElements;
|
|
28355
28355
|
exports.ensureDirectory = ensureDirectory;
|