daodou-command 1.4.5 → 1.4.6
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.
|
@@ -7,7 +7,12 @@
|
|
|
7
7
|
"Bash(npm whoami:*)",
|
|
8
8
|
"Bash(npm publish)",
|
|
9
9
|
"Bash(git push:*)",
|
|
10
|
-
"Bash(npm view:*)"
|
|
10
|
+
"Bash(npm view:*)",
|
|
11
|
+
"Bash(npm deprecate:*)",
|
|
12
|
+
"Bash(npm unlink:*)",
|
|
13
|
+
"Bash(npm install:*)",
|
|
14
|
+
"Bash(dao:*)",
|
|
15
|
+
"Bash(npm link)"
|
|
11
16
|
],
|
|
12
17
|
"deny": [],
|
|
13
18
|
"ask": []
|
package/.idea/workspace.xml
CHANGED
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
<option name="presentableId" value="Default" />
|
|
64
64
|
<updated>1758879086844</updated>
|
|
65
65
|
<workItem from="1758879088110" duration="1336000" />
|
|
66
|
-
<workItem from="1763003382850" duration="
|
|
66
|
+
<workItem from="1763003382850" duration="4466000" />
|
|
67
67
|
</task>
|
|
68
68
|
<servers />
|
|
69
69
|
</component>
|
package/CHANGELOG.md
CHANGED
|
@@ -138,11 +138,17 @@ async function checkUpdateInBackground() {
|
|
|
138
138
|
*/
|
|
139
139
|
function getUpdateReminder() {
|
|
140
140
|
const state = readState();
|
|
141
|
-
|
|
141
|
+
|
|
142
142
|
if (!state.hasUpdate || state.reminded) {
|
|
143
143
|
return null;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
|
|
146
|
+
// 再次检查当前版本是否已经是最新版本
|
|
147
|
+
const currentVersion = packageJson.version;
|
|
148
|
+
if (currentVersion === state.latestVersion || !hasUpdate(currentVersion, state.latestVersion)) {
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
|
|
146
152
|
return `🔄 发现新版本 ${state.latestVersion}!使用 "dao upgrade" 更新到最新版本。`;
|
|
147
153
|
}
|
|
148
154
|
|