backlog-exporter 0.2.1 → 0.2.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.
package/README.md CHANGED
@@ -59,7 +59,7 @@ $ npm install -g backlog-exporter
59
59
  $ backlog-exporter COMMAND
60
60
  running command...
61
61
  $ backlog-exporter (--version)
62
- backlog-exporter/0.2.1 linux-x64 node-v23.9.0
62
+ backlog-exporter/0.2.2 linux-x64 node-v23.9.0
63
63
  $ backlog-exporter --help [COMMAND]
64
64
  USAGE
65
65
  $ backlog-exporter COMMAND
@@ -220,7 +220,7 @@ EXAMPLES
220
220
  最大1000件の課題を取得する(デフォルトは100件)
221
221
  ```
222
222
 
223
- _See code: [src/commands/all/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.2.1/src/commands/all/index.ts)_
223
+ _See code: [src/commands/all/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.2.2/src/commands/all/index.ts)_
224
224
 
225
225
  ## `backlog-exporter help [COMMAND]`
226
226
 
@@ -276,7 +276,7 @@ EXAMPLES
276
276
  最大10000件の課題を取得する(デフォルトは5000件)
277
277
  ```
278
278
 
279
- _See code: [src/commands/issue/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.2.1/src/commands/issue/index.ts)_
279
+ _See code: [src/commands/issue/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.2.2/src/commands/issue/index.ts)_
280
280
 
281
281
  ## `backlog-exporter plugins`
282
282
 
@@ -605,7 +605,7 @@ EXAMPLES
605
605
  指定したディレクトリの設定を使用して更新する
606
606
  ```
607
607
 
608
- _See code: [src/commands/update/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.2.1/src/commands/update/index.ts)_
608
+ _See code: [src/commands/update/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.2.2/src/commands/update/index.ts)_
609
609
 
610
610
  ## `backlog-exporter wiki`
611
611
 
@@ -632,7 +632,7 @@ EXAMPLES
632
632
  指定したディレクトリにWikiを保存する
633
633
  ```
634
634
 
635
- _See code: [src/commands/wiki/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.2.1/src/commands/wiki/index.ts)_
635
+ _See code: [src/commands/wiki/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.2.2/src/commands/wiki/index.ts)_
636
636
  <!-- commandsstop -->
637
637
 
638
638
  # 出力形式
@@ -52,9 +52,11 @@ export async function saveSettings(directory, settings) {
52
52
  export async function updateSettings(directory, newSettings) {
53
53
  // 既存の設定を読み込む
54
54
  const currentSettings = await loadSettings(directory);
55
- // 新しい設定で更新
56
- const updatedSettings = { ...currentSettings, ...newSettings };
55
+ // 新しい設定で更新(apiKeyは除外)
56
+ const { apiKey, ...settingsToSave } = newSettings;
57
+ const updatedSettings = { ...currentSettings, ...settingsToSave };
57
58
  // 更新した設定を保存
58
59
  await saveSettings(directory, updatedSettings);
59
- return updatedSettings;
60
+ // apiKeyは戻り値には含める
61
+ return { ...updatedSettings, apiKey };
60
62
  }
@@ -289,5 +289,5 @@
289
289
  ]
290
290
  }
291
291
  },
292
- "version": "0.2.1"
292
+ "version": "0.2.2"
293
293
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backlog-exporter",
3
3
  "description": "A new CLI generated with oclif",
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "author": "ShuntaToda",
6
6
  "bin": {
7
7
  "backlog-exporter": "bin/run.js"