@rooode/dsh-plugin-preview 0.1.0 → 0.1.1
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/client.js +18 -4
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
* without popping up Windows Notepad.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
factory: (require) => {
|
|
11
|
+
(function() {
|
|
12
|
+
function previewFactory(require) {
|
|
14
13
|
var module = { exports: {} };
|
|
15
14
|
var exports = module.exports;
|
|
16
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -2197,4 +2196,19 @@ window.__ModuleLoader__.load({
|
|
|
2197
2196
|
|
|
2198
2197
|
return module.exports;
|
|
2199
2198
|
}
|
|
2200
|
-
|
|
2199
|
+
|
|
2200
|
+
if (typeof window !== 'undefined' && window.__ModuleLoader__) {
|
|
2201
|
+
const ids = [
|
|
2202
|
+
'@rooode/dsh-plugin-preview',
|
|
2203
|
+
'@deepseek-ai/dsh-client-ui-preview'
|
|
2204
|
+
];
|
|
2205
|
+
for (const id of ids) {
|
|
2206
|
+
try {
|
|
2207
|
+
window.__ModuleLoader__.load({
|
|
2208
|
+
id: id,
|
|
2209
|
+
factory: previewFactory
|
|
2210
|
+
});
|
|
2211
|
+
} catch (e) {}
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
})();
|