@noob-stupid/dsh-plugin-console 0.3.11 → 0.3.12
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/lib/index.js +3 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -551,7 +551,8 @@ function readGithubAuth() {
|
|
|
551
551
|
* 因此面板披露版本并给出提示,而不是默默失效。
|
|
552
552
|
*/
|
|
553
553
|
const CONSOLE_VERSION = '0.1.0'
|
|
554
|
-
|
|
554
|
+
// 支持 0.1.x 系列(0.1.0 / 0.1.1 等);0.2 / 1.0 等破坏性大版本才标记不支持
|
|
555
|
+
const SUPPORTED_WEB_APP_PATTERN = /^0\.1\.\d+/u
|
|
555
556
|
|
|
556
557
|
async function detectCompat(baseUrl) {
|
|
557
558
|
const result = { consoleVersion: CONSOLE_VERSION, webAppVersion: null, dshVersion: null, supported: true, notice: null }
|
|
@@ -577,7 +578,7 @@ async function detectCompat(baseUrl) {
|
|
|
577
578
|
}
|
|
578
579
|
if (result.webAppVersion !== null && !SUPPORTED_WEB_APP_PATTERN.test(result.webAppVersion)) {
|
|
579
580
|
result.supported = false
|
|
580
|
-
result.notice = `当前 DSH web 包版本 ${result.webAppVersion} 不在受支持的 0.1.
|
|
581
|
+
result.notice = `当前 DSH web 包版本 ${result.webAppVersion} 不在受支持的 0.1.x 系列内,插件控制台的部分功能可能因官方破坏性更新而失效;请到 https://github.com/Noob-stupid/dsh-plugin-hub 获取匹配的更新`
|
|
581
582
|
}
|
|
582
583
|
return result
|
|
583
584
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noob-stupid/dsh-plugin-console",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"description": "DSH plugin management panel \u0026 marketplace: one-click enable/disable, multi-source market (GitHub/Gitee/custom), static-index market (500+ plugins / 300 skills), skills, suites, and one-click framework upgrade.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|