Skip to content

Commit

Permalink
feat(suma): tryParse is a helper function that tries to parse a value…
Browse files Browse the repository at this point in the history
… to the expected type
  • Loading branch information
dalssoft committed Mar 29, 2023
1 parent 632de72 commit 7986652
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 6 deletions.
40 changes: 35 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@
"@herbsjs/aloe": "1.0.3",
"@herbsjs/buchu": "2.1.0",
"@herbsjs/gotu": "1.2.0",
"@herbsjs/suma": "1.3.1"
"@herbsjs/suma": "^1.4.0-beta.1"
}
}
1 change: 1 addition & 0 deletions src/commonjs/herbs.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
validate : suma.validate,
errorCodes : suma.errorCodes,
checker: suma.checker,
tryParse: suma.tryParse,
entity : gotu.entity,
field : gotu.field,
id: gotu.id,
Expand Down
1 change: 1 addition & 0 deletions src/esm/herbs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
validate : suma.validate,
errorCodes : suma.errorCodes,
checker: suma.checker,
tryParse: suma.tryParse,
entity : gotu.entity,
field : gotu.field,
id: gotu.id,
Expand Down

0 comments on commit 7986652

Please sign in to comment.