Skip to content

Commit

Permalink
Merge pull request #30 from JoaoRocha97/fix-process-warning-typescript
Browse files Browse the repository at this point in the history
fix(suma2text.js): adding an `if` to check if process exists to emit a warning
  • Loading branch information
jhomarolo authored Feb 15, 2022
2 parents 2b2251c + e51fb5c commit 43f58fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/suma2Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ module.exports = function (

if (languages) {
languages.map(({ name, definitions }) => {
process.emitWarning(
`${name}: ${
textPackage[name]
if (process)
process.emitWarning(
`${name}: ${textPackage[name]
? "will be custumized"
: "it's not implemented, why do you wont make a pull request?"
}`
)
}`
)

const newLanguage = textPackage[name]
? JSON.parse(JSON.stringify(textPackage[name]))
Expand Down

0 comments on commit 43f58fb

Please sign in to comment.