diff --git a/package.json b/package.json index df9910e..aa9335c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tadashi/condition", - "version": "1.7.0", + "version": "1.7.1", "description": "Create conditional to validate data.", "type": "module", "main": "src/condition.js", diff --git a/src/condition.js b/src/condition.js index 72d8a98..540dd5a 100644 --- a/src/condition.js +++ b/src/condition.js @@ -1,4 +1,19 @@ -import {getValueFromObject, parseBoolean, eq, ne, gt, ge, lt, le, intersection, difference, arrayEquals, regex, length} from './helper.js' +// prettier-ignore +import { + getValueFromObject, + parseBoolean, + eq, + ne, + gt, + ge, + lt, + le, + intersection, + difference, + arrayEquals, + regex, + length, +} from './helper.js' /** * Mapa dos operadores lógico diff --git a/src/helper.js b/src/helper.js index fcf54ac..bc0ff5f 100644 --- a/src/helper.js +++ b/src/helper.js @@ -1,3 +1,5 @@ +export {getValueFromObject} from '@tadashi/common' + /** * Converts a value to an array if it's not already an array. * @@ -155,5 +157,3 @@ export function length(v, size, compare) { const m = compare === 'less' ? le : ge return m(String(v).length, size) } - -export {getValueFromObject} from '@tadashi/common/src/lib/get-value-from-object.js'