mybase 1.0.47 → 1.0.48

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/mybase.js +1 -1
  2. package/package.json +1 -1
package/mybase.js CHANGED
@@ -184,7 +184,7 @@ function vaultRead(vault, key, cache_in_minutes = 10) {
184
184
  if (r.data) {
185
185
  debug(`vault ${key} - success`)
186
186
  if (cache_in_minutes>0)
187
- try { fs.writeFileSync(cache_file, JSON.stringify(r.data)) } catch(_) {}
187
+ try { fs.writeFileSync(cache_file, JSON.stringify(r.data)); fs.chmodSync(cache_file,0o600); } catch(_) {}
188
188
  return resolve(r.data);
189
189
  }
190
190
  debug(`vault ${key} - failed`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mybase",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "",
5
5
  "main": "mybase.js",
6
6
  "scripts": {