@napuketto/adapter 0.18.12 → 0.18.14
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/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as BaseProtocolAdapter, l as ActionRegistry, n as ProtocolConfig, r as createServerSchema, t as ConfigBase, u as runAction } from "./framework-Br7Tfx20.mjs";
|
|
2
2
|
import { N as kurobotConfigSchema, t as NapukettoKurobotAdapter } from "./kurobot-Gb0VmKZf.mjs";
|
|
3
|
-
import { r as milkyConfigSchema, t as NapukettoMilkyAdapter } from "./milky-
|
|
3
|
+
import { r as milkyConfigSchema, t as NapukettoMilkyAdapter } from "./milky-B9YPk8QN.mjs";
|
|
4
4
|
import { t as NapukettoOneBot11Adapter, u as ob11ConfigSchema } from "./onebot11-ZYyghjp_.mjs";
|
|
5
5
|
import { m as satoriConfigSchema, t as NapukettoSatoriAdapter } from "./satori-C1RaFrGq.mjs";
|
|
6
6
|
export { ActionRegistry, BaseProtocolAdapter, ConfigBase, NapukettoKurobotAdapter, NapukettoMilkyAdapter, NapukettoOneBot11Adapter, NapukettoSatoriAdapter, ProtocolConfig, createServerSchema, kurobotConfigSchema, milkyConfigSchema, ob11ConfigSchema, runAction, satoriConfigSchema };
|
package/dist/milky/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as MilkyApi, t as NapukettoMilkyAdapter, n as assembleMilkyTransports, i as createMilkyActionRegistry, r as milkyConfigSchema, o as milkyErrorCodeMap } from "../milky-
|
|
1
|
+
export { a as MilkyApi, t as NapukettoMilkyAdapter, n as assembleMilkyTransports, i as createMilkyActionRegistry, r as milkyConfigSchema, o as milkyErrorCodeMap } from "../milky-B9YPk8QN.mjs";
|
|
@@ -3231,12 +3231,19 @@ function assembleMilkyTransports(opts) {
|
|
|
3231
3231
|
adapters.push(client);
|
|
3232
3232
|
}
|
|
3233
3233
|
for (const adapter of adapters) broadcaster.register(adapter);
|
|
3234
|
+
let closing;
|
|
3234
3235
|
return {
|
|
3235
3236
|
adapters,
|
|
3236
|
-
close:
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3237
|
+
close: () => {
|
|
3238
|
+
closing ??= (async () => {
|
|
3239
|
+
for (const adapter of adapters) broadcaster.unregister(adapter);
|
|
3240
|
+
try {
|
|
3241
|
+
await hub.close();
|
|
3242
|
+
} finally {
|
|
3243
|
+
await server.close();
|
|
3244
|
+
}
|
|
3245
|
+
})();
|
|
3246
|
+
return closing;
|
|
3240
3247
|
}
|
|
3241
3248
|
};
|
|
3242
3249
|
}
|
|
@@ -3393,4 +3400,4 @@ var NapukettoMilkyAdapter = class extends BaseProtocolAdapter {
|
|
|
3393
3400
|
};
|
|
3394
3401
|
export { MilkyApi as a, createMilkyActionRegistry as i, assembleMilkyTransports as n, milkyErrorCodeMap as o, milkyConfigSchema as r, NapukettoMilkyAdapter as t };
|
|
3395
3402
|
|
|
3396
|
-
//# sourceMappingURL=milky-
|
|
3403
|
+
//# sourceMappingURL=milky-B9YPk8QN.mjs.map
|