Skip to content

Commit

Permalink
fix: 🐛 missing metas declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
touv committed Feb 27, 2020
1 parent 4c98928 commit eaf4fab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/transformers/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -117,6 +117,7 @@ export const transformers = {
NUMBER,
BOOLEAN,
TRUNCATE,
TRUNCATE_WORDS,
SHIFT,
TRIM,
CAPITALIZE,
Expand All @@ -129,7 +130,6 @@ export const transformers = {
MASK,
URLENCODE,
MAPPING,
TRUNCATE_WORDS,
};

export const transformersMetas = [
Expand All @@ -151,6 +151,7 @@ export const transformersMetas = [
NUMBER,
BOOLEAN,
TRUNCATE,
TRUNCATE_WORDS,
SHIFT,
TRIM,
CAPITALIZE,
Expand All @@ -162,6 +163,7 @@ export const transformersMetas = [
ARRAY,
MASK,
URLENCODE,
MAPPING,
]
.map((transformation) => transformation.getMetas())
.sort((x, y) => x.name.localeCompare(y.name));

0 comments on commit eaf4fab

Please sign in to comment.