arcadible 1.0.8 → 1.0.9

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.
package/package.json CHANGED
@@ -65,5 +65,5 @@
65
65
  "scripts": {
66
66
  "test": "node --test \"test/**/*.test.js\""
67
67
  },
68
- "version": "1.0.8"
68
+ "version": "1.0.9"
69
69
  }
package/src/account.js CHANGED
@@ -64,7 +64,7 @@ const expired = function (session) {
64
64
  // the session is a credential, so only its owner can read it: the directory
65
65
  // is 0700 and the file 0600. `mode` only applies when a file is created, so
66
66
  // both are also set on every save, which fixes an older, readable file. The
67
- // modes are ignored on Windows, where %APPDATA% is already private.
67
+ // modes are ignored on Windows, where %LOCALAPPDATA% is already private.
68
68
  const save = function (current) {
69
69
  return mkdir(dir, { mode: DIR_MODE, recursive: true })
70
70
  .then(() => chmod(dir, DIR_MODE))
package/src/util/os.js CHANGED
@@ -12,9 +12,12 @@ const join = path.join;
12
12
 
13
13
  // [function]
14
14
 
15
+ // on Windows, the machine's own folder (%LOCALAPPDATA%), not the roaming one:
16
+ // the session is a credential, and the SDK's copy a cache, neither of which
17
+ // should follow a roaming profile to other machines
15
18
  const configDir = function () {
16
19
  if (process.platform === "win32") {
17
- return process.env.APPDATA;
20
+ return process.env.LOCALAPPDATA || join(homedir(), "AppData", "Local");
18
21
  }
19
22
  return join(homedir(), ".config");
20
23
  };