Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
lagden committed Apr 30, 2024
1 parent 7dbea9b commit 7631cbc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
17 changes: 16 additions & 1 deletion src/condition.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/helper.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export {getValueFromObject} from '@tadashi/common'

/**
* Converts a value to an array if it's not already an array.
*
Expand Down Expand Up @@ -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'

0 comments on commit 7631cbc

Please sign in to comment.