confluence-cli 1.27.0 → 1.27.1

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/lib/config.js +5 -2
  2. package/package.json +1 -1
package/lib/config.js CHANGED
@@ -107,9 +107,12 @@ function readConfigFile() {
107
107
  // Write the full multi-profile config structure
108
108
  function saveConfigFile(data) {
109
109
  if (!fs.existsSync(CONFIG_DIR)) {
110
- fs.mkdirSync(CONFIG_DIR, { recursive: true });
110
+ fs.mkdirSync(CONFIG_DIR, { recursive: true, mode: 0o700 });
111
+ } else {
112
+ fs.chmodSync(CONFIG_DIR, 0o700);
111
113
  }
112
- fs.writeFileSync(CONFIG_FILE, JSON.stringify(data, null, 2));
114
+ fs.writeFileSync(CONFIG_FILE, JSON.stringify(data, null, 2), { mode: 0o600 });
115
+ fs.chmodSync(CONFIG_FILE, 0o600);
113
116
  }
114
117
 
115
118
  // Helper function to validate CLI-provided options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "confluence-cli",
3
- "version": "1.27.0",
3
+ "version": "1.27.1",
4
4
  "description": "A command-line interface for Atlassian Confluence with page creation and editing capabilities",
5
5
  "main": "index.js",
6
6
  "bin": {