@deepseek-ai/dsh-hmr 0.2.1-alpha.1 → 0.2.1-alpha.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/lib/index.js +9 -3
- package/package.json +10 -10
package/lib/index.js
CHANGED
|
@@ -84,18 +84,24 @@ async function watchConfig(ctx, filename, options, refresh, inTransaction = () =
|
|
|
84
84
|
watcher.on("unlink", onChange);
|
|
85
85
|
const ready = Promise.withResolvers();
|
|
86
86
|
let pending = true;
|
|
87
|
+
let disposed = false;
|
|
87
88
|
watcher.once("ready", () => {
|
|
88
89
|
pending = false;
|
|
89
90
|
ready.resolve();
|
|
90
91
|
});
|
|
91
|
-
|
|
92
|
+
const onError = (error) => {
|
|
93
|
+
if (disposed) return;
|
|
92
94
|
if (pending) {
|
|
93
95
|
pending = false;
|
|
94
96
|
ready.reject(error);
|
|
95
97
|
} else ctx.logger.warn(error);
|
|
96
|
-
}
|
|
98
|
+
};
|
|
99
|
+
watcher.on("error", onError);
|
|
97
100
|
const dispose = async () => {
|
|
98
|
-
|
|
101
|
+
disposed = true;
|
|
102
|
+
const closing = watcher.close();
|
|
103
|
+
watcher.on("error", onError);
|
|
104
|
+
await closing;
|
|
99
105
|
paths.delete(target.filename);
|
|
100
106
|
if (!inTransaction()) await running;
|
|
101
107
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-hmr",
|
|
3
3
|
"description": "Coordinated module and profile configuration hot reload",
|
|
4
|
-
"version": "0.2.1-alpha.
|
|
4
|
+
"version": "0.2.1-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -32,26 +32,26 @@
|
|
|
32
32
|
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
33
33
|
"@deepseek-ai/cordis-plugin-loader": "~1.0.6-alpha.1",
|
|
34
34
|
"@deepseek-ai/cordis-plugin-include": "~1.0.10-alpha.1",
|
|
35
|
-
"@deepseek-ai/dsh-app-boot": "0.2.1-alpha.
|
|
36
|
-
"@deepseek-ai/dsh-cmdline": "0.2.1-alpha.
|
|
35
|
+
"@deepseek-ai/dsh-app-boot": "0.2.1-alpha.2",
|
|
36
|
+
"@deepseek-ai/dsh-cmdline": "0.2.1-alpha.2"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@babel/code-frame": "^7.29.0",
|
|
40
40
|
"chokidar": "^4.0.3",
|
|
41
|
-
"node-addon-require-builtin": "^0.1.
|
|
42
|
-
"picomatch": "^4.0.
|
|
41
|
+
"node-addon-require-builtin": "^0.1.9",
|
|
42
|
+
"picomatch": "^4.0.7",
|
|
43
43
|
"@deepseek-ai/schemastery": "~3.18.5-alpha.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/babel__code-frame": "^7.27.0",
|
|
47
|
-
"@types/picomatch": "^
|
|
48
|
-
"esbuild": "^0.28.
|
|
47
|
+
"@types/picomatch": "^4.0.3",
|
|
48
|
+
"esbuild": "^0.28.2",
|
|
49
49
|
"@deepseek-ai/cordis-plugin-timer": "~1.1.7-alpha.1",
|
|
50
50
|
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
51
51
|
"@deepseek-ai/cordis-plugin-loader": "~1.0.6-alpha.1",
|
|
52
52
|
"@deepseek-ai/cordis-plugin-include": "~1.0.10-alpha.1",
|
|
53
|
-
"@deepseek-ai/dsh-app-boot": "0.2.1-alpha.
|
|
54
|
-
"@deepseek-ai/dsh-cmdline": "0.2.1-alpha.
|
|
55
|
-
"@deepseek-ai/dsh-atomic-write": "0.2.1-alpha.
|
|
53
|
+
"@deepseek-ai/dsh-app-boot": "0.2.1-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-cmdline": "0.2.1-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-atomic-write": "0.2.1-alpha.2"
|
|
56
56
|
}
|
|
57
57
|
}
|