simplepolygon 2.0.2 → 2.0.3

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/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -560,7 +560,9 @@ function setNetWindingOfChildren(output, parent, parentNetWinding) {
560
560
  }
561
561
  }
562
562
  function logger(message) {
563
- if (process.env.DEBUG === 'true') {
563
+ if (typeof process !== 'undefined' &&
564
+ process.env &&
565
+ process.env.DEBUG === 'true') {
564
566
  console.log(message);
565
567
  }
566
568
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplepolygon",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "author": {
5
5
  "name": "Manuel Claeys Bouuaert",
6
6
  "email": "manuel.claeys.b@gmail.com",