daodou-command 1.4.2 → 1.4.4

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.
@@ -0,0 +1,15 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(tree:*)",
5
+ "Bash(git add:*)",
6
+ "Bash(git commit:*)",
7
+ "Bash(npm whoami:*)",
8
+ "Bash(npm publish)",
9
+ "Bash(git push:*)",
10
+ "Bash(npm view:*)"
11
+ ],
12
+ "deny": [],
13
+ "ask": []
14
+ }
15
+ }
@@ -4,7 +4,9 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="1537cb23-f918-4011-a0ed-24da46bf53bc" name="更改" comment="" />
7
+ <list default="true" id="1537cb23-f918-4011-a0ed-24da46bf53bc" name="更改" comment="">
8
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
9
+ </list>
8
10
  <option name="SHOW_DIALOG" value="false" />
9
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
12
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -13,45 +15,45 @@
13
15
  <component name="Git.Settings">
14
16
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
15
17
  </component>
16
- <component name="GitHubPullRequestSearchHistory"><![CDATA[{
17
- "lastFilter": {
18
- "state": "OPEN",
19
- "assignee": "h025"
18
+ <component name="GitHubPullRequestSearchHistory">{
19
+ &quot;lastFilter&quot;: {
20
+ &quot;state&quot;: &quot;OPEN&quot;,
21
+ &quot;assignee&quot;: &quot;h025&quot;
20
22
  }
21
- }]]></component>
22
- <component name="GithubPullRequestsUISettings"><![CDATA[{
23
- "selectedUrlAndAccountId": {
24
- "url": "https://github.com/h025/daodou-command.git",
25
- "accountId": "c8b4f74c-2e36-4aad-b608-940f73fc88db"
23
+ }</component>
24
+ <component name="GithubPullRequestsUISettings">{
25
+ &quot;selectedUrlAndAccountId&quot;: {
26
+ &quot;url&quot;: &quot;https://github.com/h025/daodou-command.git&quot;,
27
+ &quot;accountId&quot;: &quot;c8b4f74c-2e36-4aad-b608-940f73fc88db&quot;
26
28
  }
27
- }]]></component>
28
- <component name="ProjectColorInfo"><![CDATA[{
29
- "associatedIndex": 6
30
- }]]></component>
29
+ }</component>
30
+ <component name="ProjectColorInfo">{
31
+ &quot;associatedIndex&quot;: 6
32
+ }</component>
31
33
  <component name="ProjectId" id="33EP70DuHXVnueD9LcTKpn8t7Vr" />
32
34
  <component name="ProjectViewState">
33
35
  <option name="hideEmptyMiddlePackages" value="true" />
34
36
  <option name="showLibraryContents" value="true" />
35
37
  </component>
36
- <component name="PropertiesComponent"><![CDATA[{
37
- "keyToString": {
38
- "ModuleVcsDetector.initialDetectionPerformed": "true",
39
- "RunOnceActivity.ShowReadmeOnStart": "true",
40
- "RunOnceActivity.git.unshallow": "true",
41
- "git-widget-placeholder": "main",
42
- "last_opened_file_path": "/Users/summermr/daodou/daodou-command",
43
- "node.js.detected.package.eslint": "true",
44
- "node.js.detected.package.tslint": "true",
45
- "node.js.selected.package.eslint": "(autodetect)",
46
- "node.js.selected.package.tslint": "(autodetect)",
47
- "nodejs_package_manager_path": "npm",
48
- "vue.rearranger.settings.migration": "true"
38
+ <component name="PropertiesComponent">{
39
+ &quot;keyToString&quot;: {
40
+ &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
41
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
42
+ &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
43
+ &quot;git-widget-placeholder&quot;: &quot;main&quot;,
44
+ &quot;last_opened_file_path&quot;: &quot;/Users/summermr/daodou/daodou-command&quot;,
45
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
46
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
47
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
48
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
49
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
50
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
49
51
  }
50
- }]]></component>
52
+ }</component>
51
53
  <component name="SharedIndexes">
52
54
  <attachedChunks>
53
55
  <set>
54
- <option value="bundled-js-predefined-d6986cc7102b-9c94529fcfe0-JavaScript-WS-252.26199.162" />
56
+ <option value="bundled-js-predefined-d6986cc7102b-3aa1da707db6-JavaScript-WS-252.27397.92" />
55
57
  </set>
56
58
  </attachedChunks>
57
59
  </component>
@@ -63,10 +65,22 @@
63
65
  <option name="presentableId" value="Default" />
64
66
  <updated>1758879086844</updated>
65
67
  <workItem from="1758879088110" duration="1336000" />
68
+ <workItem from="1763003382850" duration="3056000" />
66
69
  </task>
67
70
  <servers />
68
71
  </component>
69
72
  <component name="TypeScriptGeneratedFilesManager">
70
73
  <option name="version" value="3" />
71
74
  </component>
75
+ <component name="Vcs.Log.Tabs.Properties">
76
+ <option name="TAB_STATES">
77
+ <map>
78
+ <entry key="MAIN">
79
+ <value>
80
+ <State />
81
+ </value>
82
+ </entry>
83
+ </map>
84
+ </option>
85
+ </component>
72
86
  </project>
package/CHANGELOG.md CHANGED
@@ -6,6 +6,26 @@
6
6
  并且此项目遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
7
7
 
8
8
 
9
+ ## [1.4.4] - 2025-11-13
10
+
11
+ ### 修复
12
+ - 修正 Node.js 版本要求为 `>=18.0.0`,与 Puppeteer 24.x 依赖要求保持一致
13
+ - 解决安装时 Node 版本不匹配的报错问题
14
+
15
+ ## [1.4.3] - 2025-11-13
16
+
17
+ ### 修复
18
+ - 修复语言代码映射问题,正确识别 `tw` 为繁体中文(台湾)
19
+ - 明确 `zh` 语言代码映射为简体中文
20
+ - 更新所有7个翻译引擎的语言代码映射规则:
21
+ - Microsoft Translator: `tw` -> `zh-Hant` (繁体中文)
22
+ - Google Translator: `tw` -> `zh-tw` (繁体中文)
23
+ - Baidu Translator: `tw` -> `cht` (繁体中文)
24
+ - Ali Translator: `tw` -> `zh` (中文)
25
+ - Youdao Translator: `tw` -> `zh-CHT` (繁体中文)
26
+ - DeepL Translator: `tw` -> `ZH` (中文)
27
+ - OpenAI Translator: `tw` -> `繁体中文`,`zh` -> `简体中文`
28
+
9
29
  ## [1.4.2] - 2025-09-26
10
30
 
11
31
  ### 修复
@@ -272,6 +272,7 @@ class AliTranslator extends BaseTranslator {
272
272
  'zh': 'zh',
273
273
  'zh-CN': 'zh',
274
274
  'zh-TW': 'zh',
275
+ 'tw': 'zh',
275
276
  'en': 'en',
276
277
  'ja': 'ja',
277
278
  'ko': 'ko',
@@ -155,6 +155,7 @@ class BaiduTranslator extends BaseTranslator {
155
155
  'zh': 'zh',
156
156
  'zh-CN': 'zh',
157
157
  'zh-TW': 'cht',
158
+ 'tw': 'cht',
158
159
  'en': 'en',
159
160
  'ja': 'jp',
160
161
  'ko': 'kor',
@@ -159,6 +159,7 @@ class DeeplTranslator extends BaseTranslator {
159
159
  'zh': 'ZH',
160
160
  'zh-CN': 'ZH',
161
161
  'zh-TW': 'ZH',
162
+ 'tw': 'ZH',
162
163
  'en': 'EN',
163
164
  'ja': 'JA',
164
165
  'ko': 'KO',
@@ -241,6 +241,7 @@ class GoogleTranslator extends BaseTranslator {
241
241
  'zh': 'zh-cn',
242
242
  'zh-CN': 'zh-cn',
243
243
  'zh-TW': 'zh-tw',
244
+ 'tw': 'zh-tw',
244
245
  'auto': 'auto'
245
246
  };
246
247
 
@@ -137,6 +137,7 @@ class MicrosoftTranslator extends BaseTranslator {
137
137
  'zh': LANG_CODES.CHINESE_SIMPLIFIED,
138
138
  'zh-CN': LANG_CODES.CHINESE_SIMPLIFIED,
139
139
  'zh-TW': LANG_CODES.CHINESE_TRADITIONAL,
140
+ 'tw': LANG_CODES.CHINESE_TRADITIONAL,
140
141
  'en': LANG_CODES.ENGLISH,
141
142
  'ja': LANG_CODES.JAPANESE,
142
143
  'ko': LANG_CODES.KOREAN,
@@ -263,9 +263,10 @@ ${htmlContent}`;
263
263
  */
264
264
  getLanguageName(langCode) {
265
265
  const langNames = {
266
- 'zh': '中文',
266
+ 'zh': '简体中文',
267
267
  'zh-CN': '简体中文',
268
268
  'zh-TW': '繁体中文',
269
+ 'tw': '繁体中文',
269
270
  'en': '英文',
270
271
  'ja': '日文',
271
272
  'ko': '韩文',
@@ -172,6 +172,7 @@ class YoudaoTranslator extends BaseTranslator {
172
172
  'zh': 'zh-CHS',
173
173
  'zh-CN': 'zh-CHS',
174
174
  'zh-TW': 'zh-CHT',
175
+ 'tw': 'zh-CHT',
175
176
  'en': 'en',
176
177
  'ja': 'ja',
177
178
  'ko': 'ko',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daodou-command",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "刀豆命令行工具 - 自动化构建和部署",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -36,6 +36,6 @@
36
36
  "ws": "^8.14.2"
37
37
  },
38
38
  "engines": {
39
- "node": ">=14.0.0"
39
+ "node": ">=18.0.0"
40
40
  }
41
41
  }