donmccurdy / donmccurdy/hex2dec
[Warning] Parsing integers through package
- Dominant language
- JavaScript
- Stars
- 29
- Forks
- 7
- Avg merge
- 1h 22m
- Merged PRs (30d)
- 1
Description
Just leaving this here, there seems to be an issue from your package where parsing integers through from decimal to hexadecimal returns the error below:
```
TypeError: str.split is not a function
at parseToDigitsArray (/Users/bea/Desktop/cs/Amour4/node_modules/hex2dec/index.js:55:20)
at convertBase (/Users/bea/Desktop/cs/Amour4/node_modules/hex2dec/index.js:66:16)
at Object.decToHex (/Users/bea/Desktop/cs/Amour4/node_modules/hex2dec/index.js:91:13)
at Object.execute (/Users/bea/Desktop/cs/Amour4/src/commands/rolecolor.js:80:33)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.execute (/Users/bea/Desktop/cs/Amour4/src/events/interactionCreate.js:11:17)
```
Suggested fix is to support integers, because obviously APIs such as Discord returns one, but a simple toString() addition to my integer in my code did the trick.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.