@mzzsfy/dsh-session-manager 0.9.4 → 0.9.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.
@@ -19,9 +19,9 @@ function loadClient() {
19
19
  const reactStub = { useState: (value) => [value, () => {}], useEffect: () => {}, useSyncExternalStore: () => [], createElement: () => null }
20
20
  const requireStub = (name) => {
21
21
  required.push(name)
22
- // 通知出口:公共依赖 @mzzsfy/dsh-toast 的捕获桩
23
- if (name === '@mzzsfy/dsh-toast/client') {
24
- return { show: (text, opts) => { shown.push({ text, opts }); return shown.length } }
22
+ // 通知出口:公共依赖 @mzzsfy/dsh-common-tools 的捕获桩
23
+ if (name === '@mzzsfy/dsh-common-tools/client') {
24
+ return { toast: { show: (text, opts) => { shown.push({ text, opts }); return shown.length } } }
25
25
  }
26
26
  return reactStub
27
27
  }
@@ -76,10 +76,10 @@ function loadClient() {
76
76
 
77
77
  const READY = (ids) => ({ phase: 'ready', archivedSessionIds: ids })
78
78
 
79
- test('apply:external require specifier 锁定为 @mzzsfy/dsh-toast/client', () => {
79
+ test('apply:external require specifier 锁定为 @mzzsfy/dsh-common-tools/client', () => {
80
80
  const client = loadClient()
81
- assert.ok(client.required.includes('@mzzsfy/dsh-toast/client'),
82
- 'client.js 未按约定 specifier require 公共通知依赖: ' + client.required.join(', '))
81
+ assert.ok(client.required.includes('@mzzsfy/dsh-common-tools/client'),
82
+ 'client.js 未按约定 specifier require 公共依赖包: ' + client.required.join(', '))
83
83
  })
84
84
 
85
85
  test('apply:归档差分经 toast 出口,连续 ready 才计新增', () => {