@sparkelf/dsh-plus 0.2.9-alpha.111 → 0.2.9-alpha.113
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/bin.js +4 -2
- package/lib/types/registry-versions.js +7 -2
- package/package.json +5 -3
package/lib/bin.js
CHANGED
|
@@ -46,8 +46,10 @@ function publishedVersions(name, registry = "https://registry.npmjs.org") {
|
|
|
46
46
|
} catch {
|
|
47
47
|
return [];
|
|
48
48
|
}
|
|
49
|
-
if (parsed === null || typeof parsed !== "object"
|
|
50
|
-
const
|
|
49
|
+
if (parsed === null || typeof parsed !== "object") return [];
|
|
50
|
+
const unwrapped = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
51
|
+
if (unwrapped === null || typeof unwrapped !== "object" || Array.isArray(unwrapped)) return [];
|
|
52
|
+
const times = unwrapped;
|
|
51
53
|
const entries = [];
|
|
52
54
|
for (const [version, time] of Object.entries(times)) {
|
|
53
55
|
if (version === "created" || version === "modified") continue;
|
|
@@ -27,9 +27,14 @@ export function publishedVersions(name, registry = 'https://registry.npmjs.org')
|
|
|
27
27
|
catch {
|
|
28
28
|
return [];
|
|
29
29
|
}
|
|
30
|
-
if (parsed === null || typeof parsed !== 'object'
|
|
30
|
+
if (parsed === null || typeof parsed !== 'object')
|
|
31
31
|
return [];
|
|
32
|
-
|
|
32
|
+
// Some npm builds wrap `view <pkg> time --json` in a one-element array; the
|
|
33
|
+
// object inside carries the same version-to-time table.
|
|
34
|
+
const unwrapped = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
35
|
+
if (unwrapped === null || typeof unwrapped !== 'object' || Array.isArray(unwrapped))
|
|
36
|
+
return [];
|
|
37
|
+
const times = unwrapped;
|
|
33
38
|
const entries = [];
|
|
34
39
|
for (const [version, time] of Object.entries(times)) {
|
|
35
40
|
// `created` and `modified` are registry bookkeeping, not releases.
|
package/package.json
CHANGED
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"@sparkelf/dsh-dataops-account",
|
|
56
56
|
"@anysearch/anysearch-dsh",
|
|
57
57
|
"@deepseek-ai/dsh-timeline",
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-connectors"
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-connectors",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager"
|
|
59
60
|
],
|
|
60
61
|
"label": "内网团队版",
|
|
61
62
|
"omit": [
|
|
@@ -650,6 +651,7 @@
|
|
|
650
651
|
"@deepseek-ai/dsh-bash-local": "0.2.3-alpha.3",
|
|
651
652
|
"@deepseek-ai/dsh-client-store": "0.2.3-alpha.3",
|
|
652
653
|
"@deepseek-ai/dsh-client-ui-connectors": "0.2.3-alpha.3",
|
|
654
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.3-alpha.3",
|
|
653
655
|
"@deepseek-ai/dsh-compaction": "0.2.3-alpha.3",
|
|
654
656
|
"@deepseek-ai/dsh-deepseek-account": "0.2.3-alpha.3",
|
|
655
657
|
"@deepseek-ai/dsh-error": "0.2.3-alpha.3",
|
|
@@ -685,7 +687,7 @@
|
|
|
685
687
|
"@sparkelf/dsh-genui": "0.15.0-sparkelf.3",
|
|
686
688
|
"@sparkelf/dsh-group-chat": "0.5.12",
|
|
687
689
|
"@sparkelf/dsh-kb-citation": "0.1.6",
|
|
688
|
-
"@sparkelf/dsh-knowledge-base": "0.6.
|
|
690
|
+
"@sparkelf/dsh-knowledge-base": "0.6.7",
|
|
689
691
|
"@sparkelf/dsh-mineru": "0.1.4",
|
|
690
692
|
"@sparkelf/dsh-mobile-bridge": "0.2.18",
|
|
691
693
|
"@sparkelf/dsh-ocr": "0.1.0",
|
|
@@ -754,5 +756,5 @@
|
|
|
754
756
|
},
|
|
755
757
|
"type": "module",
|
|
756
758
|
"types": "lib/types/index.d.ts",
|
|
757
|
-
"version": "0.2.9-alpha.
|
|
759
|
+
"version": "0.2.9-alpha.113"
|
|
758
760
|
}
|