dsh-crate 0.6.5 → 0.6.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.
package/NOTICE ADDED
@@ -0,0 +1,9 @@
1
+ dsh-crate
2
+ Copyright (c) 2026 fkysly and dsh-market contributors
3
+ Copyright (c) 2026 dsh-crate contributors
4
+
5
+ This project is a modified derivative of dsh-market
6
+ (https://github.com/dsh-market/dsh-market), with its catalog source replaced
7
+ by dshcrate. The original MIT notice is retained as the MIT license requires.
8
+
9
+ The full MIT license text is in the LICENSE file.
package/client/client.js CHANGED
@@ -18641,7 +18641,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
18641
18641
  }
18642
18642
  //#endregion
18643
18643
  //#region src/client/client-version.ts
18644
- const CLIENT_VERSION = "0.6.5";
18644
+ const CLIENT_VERSION = "0.6.6";
18645
18645
  /** Numeric x.y.z comparison; prerelease tags are ignored. null if either is not a version. */
18646
18646
  function compareMarketVersions(a, b) {
18647
18647
  const parse = (v) => {
@@ -19418,7 +19418,7 @@ window.__ModuleLoader__.load({ id: "dsh-crate", factory: (require) => {
19418
19418
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
19419
19419
  className: Market_module_css_default.grow,
19420
19420
  children: [
19421
- t("staleBanner").replace("{0}", "0.6.5").replace("{1}", version ?? ""),
19421
+ t("staleBanner").replace("{0}", "0.6.6").replace("{1}", version ?? ""),
19422
19422
  " ",
19423
19423
  hostCaps.selfReload || restartEnabled && restartReachable && debuggerLatch === null ? null : t(hostCaps.desktop ? "staleDesktopHint" : "staleManualHint"),
19424
19424
  reloadingSelf === "failed" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [" ", reloadError !== "" ? reloadError : t(hostCaps.desktop ? "staleDesktopHint" : "staleManualHint")] })
@@ -106,9 +106,24 @@ export function asCratePlugin(entry) {
106
106
  version: typeof row.vr === 'string' && row.vr.trim() !== '' ? row.vr.trim() : null,
107
107
  icon: null,
108
108
  install: installCommandOf(row.cmd, npm, repo),
109
- added: '',
109
+ added: addedOf(row.a),
110
110
  };
111
111
  }
112
+ /**
113
+ * 首次收录时间。
114
+ *
115
+ * 只接受能解析的日期字符串;缺失、空串、非法日期或非字符串都退回空串,
116
+ * 让客户端的「最近收录」与收录时间排序忽略这一条,而不是显示一个假日期。
117
+ *
118
+ * @param value - crate 条目的 `a` 字段,来源不可信。
119
+ * @returns 原样的日期字符串,或空串。
120
+ */
121
+ function addedOf(value) {
122
+ if (typeof value !== 'string')
123
+ return '';
124
+ const text = value.trim();
125
+ return text !== '' && !Number.isNaN(Date.parse(text)) ? text : '';
126
+ }
112
127
  /**
113
128
  * 条目类型转分类 id。
114
129
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-crate",
3
3
  "description": "逛一逛,点一下,装好。浏览和搜索 DeepSeek Harness 社区插件,看详情、一键安装,收藏和更新都在一处。",
4
- "version": "0.6.5",
4
+ "version": "0.6.6",
5
5
  "icon": "assets/logo.svg",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",
@@ -76,7 +76,8 @@
76
76
  "client",
77
77
  "UPDATE-API-V1.md",
78
78
  "cordis.patch.yml",
79
- "LICENSE"
79
+ "LICENSE",
80
+ "NOTICE"
80
81
  ],
81
82
  "devDependencies": {
82
83
  "@deepseek-ai/cordis": "^4.0.1",