refactor: move from-decimal delim options into operation

This commit is contained in:
min23asdw 2026-07-18 12:48:30 +07:00
parent 3a698d4c37
commit db3ac41c1b
2 changed files with 7 additions and 8 deletions

View File

@ -7,7 +7,6 @@
*/
import Utils from "../Utils.mjs";
import {DELIM_OPTIONS} from "./Delim.mjs";
/**
@ -36,9 +35,3 @@ export function fromDecimal(data, delim="Auto") {
}
return output;
}
/**
* From Decimal delimiters.
*/
export const FROM_DECIMAL_DELIM_OPTIONS = [...DELIM_OPTIONS, "Auto"];

View File

@ -5,7 +5,13 @@
*/
import Operation from "../Operation.mjs";
import {fromDecimal, FROM_DECIMAL_DELIM_OPTIONS} from "../lib/Decimal.mjs";
import {DELIM_OPTIONS} from "../lib/Delim.mjs";
import {fromDecimal} from "../lib/Decimal.mjs";
/**
* From Decimal delimiters, plus auto-detection.
*/
const FROM_DECIMAL_DELIM_OPTIONS = [...DELIM_OPTIONS, "Auto"];
/**
* From Decimal operation