dsh-release-depot 1.1.4 → 1.1.5
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/CHANGELOG.md +11 -0
- package/client.js +3 -3
- package/index.js +1 -1
- package/lib/github.js +1 -1
- package/lib/registry.js +2 -2
- package/lib/service.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.5
|
|
4
|
+
|
|
5
|
+
### 修复
|
|
6
|
+
|
|
7
|
+
- 修正 npm 2FA 设置页链接:`/settings/~/two-factor-authentication` 在 npm 上是 404,正确路由是 `/settings/~/tfa`。确认框里的「去开启 2FA」和错误提示里的链接都已修正。
|
|
8
|
+
- 增加回归测试,校验错误对象里的 2FA 链接不再指向 404 路由。
|
|
9
|
+
|
|
10
|
+
### 说明
|
|
11
|
+
|
|
12
|
+
- 纯链接修复,无行为变更。
|
|
13
|
+
|
|
3
14
|
## 1.1.4
|
|
4
15
|
|
|
5
16
|
### 界面与交互
|
package/client.js
CHANGED
|
@@ -598,7 +598,7 @@ window.__ModuleLoader__.load({
|
|
|
598
598
|
h('div', null,
|
|
599
599
|
h('strong', null, t('仅本机凭据', 'Local credentials only')),
|
|
600
600
|
h('span', null, t('令牌只保存在 DSH home。', 'Tokens stay in your DSH home.')))),
|
|
601
|
-
h('div', { className: 'sd-side-foot' }, h('span', null, `v${status?.version ?? '1.1.
|
|
601
|
+
h('div', { className: 'sd-side-foot' }, h('span', null, `v${status?.version ?? '1.1.5'}`), h('span', null, t('本地运行', 'local runtime')))),
|
|
602
602
|
h('main', { className: 'sd-main' },
|
|
603
603
|
h('header', { className: 'sd-top' },
|
|
604
604
|
h('div', { className: 'sd-crumb' },
|
|
@@ -1264,7 +1264,7 @@ window.__ModuleLoader__.load({
|
|
|
1264
1264
|
t('两个更省事的选择:', 'Two easier options: '),
|
|
1265
1265
|
h('a', { className: 'sd-link', href: `https://www.npmjs.com/package/${name}/access`, target: '_blank', rel: 'noopener noreferrer' }, t('在 npm 网页删除', 'delete on npm')),
|
|
1266
1266
|
t(',或 '),
|
|
1267
|
-
h('a', { className: 'sd-link', href: 'https://www.npmjs.com/settings/~/
|
|
1267
|
+
h('a', { className: 'sd-link', href: 'https://www.npmjs.com/settings/~/tfa', target: '_blank', rel: 'noopener noreferrer' }, t('去开启 2FA', 'enable 2FA')),
|
|
1268
1268
|
t('(开启时会显示二维码和 secret,可导入电脑上的验证器)。', ' (setup shows a QR code and secret you can import into a desktop authenticator).'))),
|
|
1269
1269
|
danger: true,
|
|
1270
1270
|
confirmLabel: t('确认删除', 'Remove'),
|
|
@@ -1805,7 +1805,7 @@ window.__ModuleLoader__.load({
|
|
|
1805
1805
|
form.open
|
|
1806
1806
|
? h('div', { className: 'sd-inline-form sd-inline-card' },
|
|
1807
1807
|
h('div', { className: 'sd-field-grid' },
|
|
1808
|
-
h(Field, { label: 'Tag' }, h(TextInput, { value: form.tag, placeholder: 'v1.1.
|
|
1808
|
+
h(Field, { label: 'Tag' }, h(TextInput, { value: form.tag, placeholder: 'v1.1.5', onChange: (event) => setForm({ ...form, tag: event.target.value }) })),
|
|
1809
1809
|
h(Field, { label: t('标题', 'Title'), optional: true }, h(TextInput, { value: form.name, onChange: (event) => setForm({ ...form, name: event.target.value }) }))),
|
|
1810
1810
|
h(Field, { label: t('说明', 'Notes'), optional: true },
|
|
1811
1811
|
h('textarea', { className: 'sd-input sd-textarea', rows: 3, value: form.body, onChange: (event) => setForm({ ...form, body: event.target.value }) })),
|
package/index.js
CHANGED
package/lib/github.js
CHANGED
|
@@ -12,7 +12,7 @@ import { parseGitHubRepo } from './semver.js'
|
|
|
12
12
|
|
|
13
13
|
const DEVICE_CODE_URL = 'https://github.com/login/device/code'
|
|
14
14
|
const ACCESS_TOKEN_URL = 'https://github.com/login/oauth/access_token'
|
|
15
|
-
const USER_AGENT = 'dsh-release-depot/1.1.
|
|
15
|
+
const USER_AGENT = 'dsh-release-depot/1.1.5'
|
|
16
16
|
|
|
17
17
|
export class GitHubError extends Error {
|
|
18
18
|
constructor(message, options = {}) {
|
package/lib/registry.js
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
|
|
30
30
|
export const NPM_REGISTRY = 'https://registry.npmjs.org'
|
|
31
31
|
export const GITHUB_REGISTRY = 'https://npm.pkg.github.com'
|
|
32
|
-
const USER_AGENT = 'dsh-release-depot/1.1.
|
|
32
|
+
const USER_AGENT = 'dsh-release-depot/1.1.5 (npm registry client)'
|
|
33
33
|
|
|
34
34
|
export class RegistryError extends Error {
|
|
35
35
|
constructor(message, options = {}) {
|
|
@@ -143,7 +143,7 @@ function errorFromResponse(status, text, headers, context = '', sentOtp = false)
|
|
|
143
143
|
otpUseful: false,
|
|
144
144
|
otpSent: sentOtp,
|
|
145
145
|
accountNeeds2fa: true,
|
|
146
|
-
npmTwoFactorPage: 'https://www.npmjs.com/settings/~/
|
|
146
|
+
npmTwoFactorPage: 'https://www.npmjs.com/settings/~/tfa',
|
|
147
147
|
npmTokenPage: 'https://www.npmjs.com/settings/~/tokens',
|
|
148
148
|
npmHelpPage: 'https://docs.npmjs.com/requiring-2fa-for-package-publishing-and-settings-modification',
|
|
149
149
|
},
|
package/lib/service.js
CHANGED
|
@@ -28,7 +28,7 @@ import { ShipDeckStore } from './store.js'
|
|
|
28
28
|
|
|
29
29
|
const TARGETS = ['npm', 'github-packages', 'github-release']
|
|
30
30
|
const CACHE_TTL_MS = 120000
|
|
31
|
-
const USER_AGENT = 'dsh-release-depot/1.1.
|
|
31
|
+
const USER_AGENT = 'dsh-release-depot/1.1.5'
|
|
32
32
|
|
|
33
33
|
export class ShipDeckError extends Error {
|
|
34
34
|
constructor(message, options = {}) {
|
|
@@ -192,7 +192,7 @@ function tokenExpiryDate(entry) {
|
|
|
192
192
|
|
|
193
193
|
export class ShipDeck {
|
|
194
194
|
constructor(options) {
|
|
195
|
-
this.version = options.version ?? '1.1.
|
|
195
|
+
this.version = options.version ?? '1.1.5'
|
|
196
196
|
this.network = options.network
|
|
197
197
|
this.store = options.store ?? new ShipDeckStore({ authFile: options.config?.authFile })
|
|
198
198
|
this.config = options.config ?? {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-release-depot",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"description": "Release Depot(发布仓):在 DeepSeek Harness 内登录 npm 与 GitHub,管理包、发布版本、创建 Release,并把同一套发布能力交给 AI 工具调用。",
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@deepseek-ai/cordis": "^4.0.1"
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|