@turf/helpers 6.1.3 → 6.1.4

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 +1 -1
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -616,7 +616,7 @@ exports.convertArea = convertArea;
616
616
  * //=false
617
617
  */
618
618
  function isNumber(num) {
619
- return !isNaN(num) && num !== null && !Array.isArray(num);
619
+ return !isNaN(num) && num !== null && !Array.isArray(num) && !/^\s*$/.test(num);
620
620
  }
621
621
  exports.isNumber = isNumber;
622
622
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/helpers",
3
- "version": "6.1.3",
3
+ "version": "6.1.4",
4
4
  "description": "turf helpers module",
5
5
  "main": "index",
6
6
  "types": "index.d.ts",
@@ -31,7 +31,8 @@
31
31
  "Tom MacWright <@tmcw>",
32
32
  "Stefano Borghi <@stebogit>",
33
33
  "Denis Carriere <@DenisCarriere>",
34
- "William Nordmann <@wnordmann>"
34
+ "William Nordmann <@wnordmann>",
35
+ "Vamshi Palreddy <@vamshi29292>"
35
36
  ],
36
37
  "license": "MIT",
37
38
  "bugs": {