@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.
- package/README.md +4 -3
- package/cordis.patch.yml +5 -4
- package/package.json +3 -3
- package/src/client.js +811 -811
- package/src/core.mjs +271 -271
- package/src/index.js +901 -901
- package/test/client-toast.test.mjs +6 -6
- package/test/index.test.mjs +1917 -1917
|
@@ -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-
|
|
23
|
-
if (name === '@mzzsfy/dsh-
|
|
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-
|
|
79
|
+
test('apply:external require specifier 锁定为 @mzzsfy/dsh-common-tools/client', () => {
|
|
80
80
|
const client = loadClient()
|
|
81
|
-
assert.ok(client.required.includes('@mzzsfy/dsh-
|
|
82
|
-
'client.js 未按约定 specifier require
|
|
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 才计新增', () => {
|