Skip to content

Commit 0aa8935

Browse files
committed
fix: 🐛 Fixed circular dependency issue
Made importing array utils lazy
1 parent 78b8a61 commit 0aa8935

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/standalone.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ export const arrayTransformations = {
549549
* @param headerRow - Optional header row
550550
* @returns Array of structured objects
551551
*/
552-
arrayToObjArray: CSVArrayUtils.arrayToObjArray,
552+
get arrayToObjArray() { return CSVArrayUtils.arrayToObjArray; },
553553

554554
/**
555555
* Transform objects to arrays
@@ -559,15 +559,15 @@ export const arrayTransformations = {
559559
* @param includeHeaders - Whether to include headers
560560
* @returns Array of arrays
561561
*/
562-
objArrayToArray: CSVArrayUtils.objArrayToArray,
562+
get objArrayToArray() { return CSVArrayUtils.objArrayToArray; },
563563

564564
/**
565565
* Group objects by field
566566
* @param data - Array of objects
567567
* @param field - Field to group by
568568
* @returns Grouped objects
569569
*/
570-
groupByField: CSVArrayUtils.groupByField
570+
get groupByField() { return CSVArrayUtils.groupByField; }
571571
};
572572

573573
// Export all the functions as a default object

0 commit comments

Comments
 (0)