dsh-token-dash 1.0.1 → 1.0.2
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/README.en.md +2 -0
- package/README.md +2 -0
- package/package.json +1 -1
- package/src/adapters.js +1 -1
package/README.en.md
CHANGED
|
@@ -155,6 +155,8 @@ npm run e2e # end-to-end (temp DSH_HOME + web profile + Playwright)
|
|
|
155
155
|
npm run pack # build the release tarball into build/
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
+
Releases: pushing a `v*` tag triggers the GitHub Release (tarball) and an npm staged publish automatically (goes live after a maintainer approves it on npmjs.com with 2FA); see [doc/release.md](./doc/release.md) for the full checklist.
|
|
159
|
+
|
|
158
160
|
## Acknowledgements
|
|
159
161
|
|
|
160
162
|
Attribution and billing semantics learned from these community plugins:
|
package/README.md
CHANGED
|
@@ -179,6 +179,8 @@ npm run e2e # 端到端(临时 DSH_HOME + web profile + Playwright)
|
|
|
179
179
|
npm run pack # 发布 tarball 生成到 build/
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
+
发版:推 `v*` tag 自动触发 GitHub Release(tarball)与 npm 暂存(staged publishing,网页 2FA 审批后上线);完整流程见 [doc/release.md](./doc/release.md)。
|
|
183
|
+
|
|
182
184
|
## 致谢
|
|
183
185
|
|
|
184
186
|
归属与计费语义参考了以下社区插件:
|
package/package.json
CHANGED
package/src/adapters.js
CHANGED
|
@@ -118,7 +118,7 @@ async function deepseek(ctx) {
|
|
|
118
118
|
const account = ctx.get?.('deepseekAccount')
|
|
119
119
|
if (account !== undefined && typeof account.getBalance === 'function') {
|
|
120
120
|
try {
|
|
121
|
-
const data = await account.getBalance({ version: '1.0.
|
|
121
|
+
const data = await account.getBalance({ version: '1.0.2', locale: 'zh-CN', timezoneOffsetSeconds: -new Date().getTimezoneOffset() * 60 })
|
|
122
122
|
if (data?.status === 'ready') {
|
|
123
123
|
const wallets = [...(Array.isArray(data.value) ? data.value : Object.values(data.value ?? {})), ...(data.bonusWallets ?? [])]
|
|
124
124
|
const amount = wallets.filter((wallet) => wallet?.currency === undefined || wallet.currency === 'CNY')
|