diff --git a/packages/transformers/src/index.js b/packages/transformers/src/index.js index 4de29738..c1de0ba7 100644 --- a/packages/transformers/src/index.js +++ b/packages/transformers/src/index.js @@ -17,6 +17,7 @@ import REPLACE_REGEX from './operations/REPLACE_REGEX'; import NUMBER from './operations/NUMBER'; import BOOLEAN from './operations/BOOLEAN'; import TRUNCATE from './operations/TRUNCATE'; +import TRUNCATE_WORDS from './operations/TRUNCATE_WORDS'; import SHIFT from './operations/SHIFT'; import TRIM from './operations/TRIM'; import CAPITALIZE from './operations/CAPITALIZE'; @@ -29,7 +30,6 @@ import ARRAY from './operations/ARRAY'; import MASK from './operations/MASK'; import URLENCODE from './operations/URLENCODE'; import MAPPING from './operations/MAPPING'; -import TRUNCATE_WORDS from './operations/TRUNCATE_WORDS'; // EZS statements import $ARRAY from './dollar-array'; @@ -57,12 +57,12 @@ import $STRING from './dollar-string'; import $SUFFIX from './dollar-suffix'; import $TRIM from './dollar-trim'; import $TRUNCATE from './dollar-truncate'; +import $TRUNCATE_WORDS from './dollar-truncate-words'; import $UNIQ from './dollar-uniq'; import $UPPERCASE from './dollar-uppercase'; import $URLENCODE from './dollar-urlencode'; -import $VALUE from './dollar-value'; import $MAPPING from './dollar-mapping'; -import $TRUNCATE_WORDS from './dollar-truncate-words'; +import $VALUE from './dollar-value'; export default { $ARRAY, @@ -117,6 +117,7 @@ export const transformers = { NUMBER, BOOLEAN, TRUNCATE, + TRUNCATE_WORDS, SHIFT, TRIM, CAPITALIZE, @@ -129,7 +130,6 @@ export const transformers = { MASK, URLENCODE, MAPPING, - TRUNCATE_WORDS, }; export const transformersMetas = [ @@ -151,6 +151,7 @@ export const transformersMetas = [ NUMBER, BOOLEAN, TRUNCATE, + TRUNCATE_WORDS, SHIFT, TRIM, CAPITALIZE, @@ -162,6 +163,7 @@ export const transformersMetas = [ ARRAY, MASK, URLENCODE, + MAPPING, ] .map((transformation) => transformation.getMetas()) .sort((x, y) => x.name.localeCompare(y.name));