cafe-utility 4.12.0 → 4.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +6 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -928,11 +928,17 @@ function decapitalize(string) {
928
928
  }
929
929
 
930
930
  function isLetter(character) {
931
+ if (!character) {
932
+ return false
933
+ }
931
934
  const code = character.charCodeAt(0)
932
935
  return (code >= 65 && code <= 90) || (code >= 97 && code <= 122)
933
936
  }
934
937
 
935
938
  function isDigit(character) {
939
+ if (!character) {
940
+ return false
941
+ }
936
942
  const code = character.charCodeAt(0)
937
943
  return code >= 48 && code <= 57
938
944
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cafe-utility",
3
- "version": "4.12.0",
3
+ "version": "4.12.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "exports": {