@dougen/dsh-deepseek-usage 0.10.0 → 0.10.1

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/client.js CHANGED
@@ -29,9 +29,8 @@ window.__ModuleLoader__.load({
29
29
  // ---- constants -------------------------------------------------
30
30
  const POLL_MS = 5 * 60 * 1000;
31
31
  const USAGE_PATH = "/api/deepseek-usage";
32
- // 放假日期:宿主路由(见 lib/index.js),浏览器启动时读一次、并把“未来第 8 段”
33
- // 的起始日期写回去(宿主随后自动续跑后续周期、自动合并)。浏览器比宿主更可能
34
- // 处于新年份,因此由它来推进这份日期表。
32
+ // 放假日期:宿主路由(见 lib/index.js),浏览器启动时读一次,覆盖内置镜像表;
33
+ // 读不到就继续用内置表(两边都是同一份国务院办公厅日期表)。
35
34
  const HOLIDAYS_PATH = "/api/deepseek-usage/holidays";
36
35
  // 常态卡片高度:上下 padding 8+16 + 金额行 minHeight 28 + 边框 2 = 54。
37
36
  // 底部多留的 8px 是为了让倒计时那一行与下方单价行之间有呼吸感。
package/lib/index.js CHANGED
@@ -56,6 +56,7 @@ const PUBLIC_BASE_URL = "https://api.deepseek.com";
56
56
  const BASE_URL_ENV = "DEEPSEEK_BASE_URL";
57
57
  const API_KEY_REF = credentialRef("DEEPSEEK_API_KEY");
58
58
  const BALANCE_PATH = "/user/balance";
59
+ const ROUTE_PATH = "/api/deepseek-usage";
59
60
  /** 放假日期路由(浏览器侧启动拉一次,保证两边同一份日期表)。 */
60
61
  const HOLIDAYS_PATH = "/api/deepseek-usage/holidays";
61
62
  const TIMEOUT_MS = 15000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dougen/dsh-deepseek-usage",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "DeepSeek 余额侧边栏插件:余额(官方 API)、当前档单价与峰谷时段指示灯,支持中/英文界面。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",