homegames-common 1.0.1 → 1.0.2

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 +5 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -724,6 +724,11 @@ const log = {
724
724
  }
725
725
 
726
726
  const getAppDataPath = () => {
727
+ if (!process) {
728
+ // this shouldnt be called if running in browser
729
+ return '';
730
+ }
731
+
727
732
  switch (process.platform) {
728
733
  case "darwin": {
729
734
  return process.env.HOME ? path.join(process.env.HOME, "Library", "Application Support", "homegames") : __dirname;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homegames-common",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Homegames common tools",
5
5
  "main": "index.js",
6
6
  "scripts": {