spectrum-ts 1.3.0 → 1.5.0
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/chunk-4U4RINOV.js +2133 -0
- package/dist/{chunk-FF2R4EP3.js → chunk-L6LUFBLF.js} +4 -3
- package/dist/chunk-NIIJ6U34.js +843 -0
- package/dist/chunk-NNRUJOPT.js +849 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -4
- package/dist/providers/imessage/index.d.ts +3 -3
- package/dist/providers/imessage/index.js +6 -2074
- package/dist/providers/index.d.ts +12 -0
- package/dist/providers/index.js +18 -0
- package/dist/providers/terminal/index.d.ts +7 -7
- package/dist/providers/terminal/index.js +4 -838
- package/dist/providers/whatsapp-business/index.d.ts +3 -3
- package/dist/providers/whatsapp-business/index.js +4 -844
- package/dist/{types-BcCLW2VO.d.ts → types-D0QSU6kb.d.ts} +1 -1
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AnyPlatformDef, B as Broadcaster,
|
|
1
|
+
import { e as ContentBuilder, U as User, M as Message, C as ContentInput, f as Content, b as ProviderMessage, E as EventProducer, g as CreateClientContext, S as Store, a as PlatformDef, P as Platform, h as PlatformProviderConfig, i as SpectrumLike, j as CustomEventStreams, k as Space, I as InboundMessage, O as OutboundMessage } from './types-D0QSU6kb.js';
|
|
2
|
+
export { A as AnyPlatformDef, B as Broadcaster, l as InboundPlatformMessage, d as ManagedStream, m as PlatformInstance, n as PlatformMessage, o as PlatformRuntime, p as PlatformSpace, q as PlatformUser, c as SchemaMessage, r as broadcast, s as mergeStreams, t as stream } from './types-D0QSU6kb.js';
|
|
3
3
|
import vCard from 'vcf';
|
|
4
4
|
import z__default from 'zod';
|
|
5
5
|
import 'hotscript';
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
option,
|
|
14
14
|
poll,
|
|
15
15
|
stream
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L6LUFBLF.js";
|
|
17
17
|
import {
|
|
18
18
|
UnsupportedError,
|
|
19
19
|
attachment,
|
|
@@ -2017,6 +2017,7 @@ function createStore() {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
2019
|
// src/spectrum.ts
|
|
2020
|
+
var ignoreCleanupError = () => void 0;
|
|
2020
2021
|
var spectrumOptionsSchema = z.object({
|
|
2021
2022
|
flattenGroups: z.boolean().optional()
|
|
2022
2023
|
}).optional();
|
|
@@ -2064,7 +2065,7 @@ async function Spectrum(options) {
|
|
|
2064
2065
|
})();
|
|
2065
2066
|
return async () => {
|
|
2066
2067
|
await iterator.return?.();
|
|
2067
|
-
|
|
2068
|
+
void pump.catch(ignoreCleanupError);
|
|
2068
2069
|
};
|
|
2069
2070
|
});
|
|
2070
2071
|
};
|
|
@@ -2170,7 +2171,7 @@ async function Spectrum(options) {
|
|
|
2170
2171
|
})();
|
|
2171
2172
|
return async () => {
|
|
2172
2173
|
await merged.close();
|
|
2173
|
-
|
|
2174
|
+
void pump.catch(ignoreCleanupError);
|
|
2174
2175
|
};
|
|
2175
2176
|
});
|
|
2176
2177
|
};
|
|
@@ -2205,7 +2206,7 @@ async function Spectrum(options) {
|
|
|
2205
2206
|
})();
|
|
2206
2207
|
return async () => {
|
|
2207
2208
|
await merged.close();
|
|
2208
|
-
|
|
2209
|
+
void pump.catch(ignoreCleanupError);
|
|
2209
2210
|
};
|
|
2210
2211
|
});
|
|
2211
2212
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as ContentInput, e as ContentBuilder, c as SchemaMessage, P as Platform, a as PlatformDef, b as ProviderMessage, S as Store, d as ManagedStream } from '../../types-D0QSU6kb.js';
|
|
2
2
|
import * as zod_v4_core from 'zod/v4/core';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
import z__default from 'zod';
|
|
@@ -18,8 +18,8 @@ declare const userSchema: z__default.ZodObject<{}, z__default.core.$strip>;
|
|
|
18
18
|
declare const spaceSchema: z__default.ZodObject<{
|
|
19
19
|
id: z__default.ZodString;
|
|
20
20
|
type: z__default.ZodEnum<{
|
|
21
|
-
dm: "dm";
|
|
22
21
|
group: "group";
|
|
22
|
+
dm: "dm";
|
|
23
23
|
}>;
|
|
24
24
|
phone: z__default.ZodString;
|
|
25
25
|
}, z__default.core.$strip>;
|
|
@@ -44,8 +44,8 @@ declare const imessage: Platform<PlatformDef<"iMessage", z.ZodUnion<readonly [z.
|
|
|
44
44
|
}, zod_v4_core.$strip>]>, z.ZodType<object, unknown, zod_v4_core.$ZodTypeInternals<object, unknown>> | undefined, z.ZodObject<{
|
|
45
45
|
id: z.ZodString;
|
|
46
46
|
type: z.ZodEnum<{
|
|
47
|
-
dm: "dm";
|
|
48
47
|
group: "group";
|
|
48
|
+
dm: "dm";
|
|
49
49
|
}>;
|
|
50
50
|
phone: z.ZodString;
|
|
51
51
|
}, zod_v4_core.$strip>, z.ZodObject<{
|