dfx 0.21.7 → 0.21.9
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Effect, Discord } from "dfx/_common";
|
|
2
2
|
import { Success } from "dfx/utils/effect";
|
|
3
|
-
|
|
3
|
+
import { ShardStore } from "../ShardStore/index.js";
|
|
4
|
+
declare const make: import("../../_common.js").Effect<import("../../_common.js").Scope | import("../../index.js").DiscordREST | import("../../DiscordConfig/index.js").DiscordConfig | import("../../Log/index.js").Log | import("../../index.js").RateLimiter | import("../DiscordWS/index.js").DiscordWSCodec | ShardStore, never, {
|
|
4
5
|
shards: import("../../_common.js").Stream<never, never, {
|
|
5
6
|
run: import("../../_common.js").Effect<never, never, void>;
|
|
6
7
|
raw: import("../../_common.js").Stream<never, never, import("../../types.js").GatewayPayload<any>>;
|
|
@@ -12,5 +13,5 @@ declare const make: import("../../_common.js").Effect<import("../../_common.js")
|
|
|
12
13
|
export interface Sharder extends Success<typeof make> {
|
|
13
14
|
}
|
|
14
15
|
export declare const Sharder: import("../../_common.js").Tag<Sharder>;
|
|
15
|
-
export declare const LiveSharder: import("../../_common.js").Layer<import("../../index.js").DiscordREST | import("../../DiscordConfig/index.js").DiscordConfig | import("../../Log/index.js").Log | import("../../index.js").RateLimiter | import("../DiscordWS/index.js").DiscordWSCodec |
|
|
16
|
+
export declare const LiveSharder: import("../../_common.js").Layer<import("../../index.js").DiscordREST | import("../../DiscordConfig/index.js").DiscordConfig | import("../../Log/index.js").Log | import("../../index.js").RateLimiter | import("../DiscordWS/index.js").DiscordWSCodec | ShardStore, never, Sharder>;
|
|
16
17
|
export {};
|
|
@@ -8,6 +8,7 @@ import * as tsplus_module_7 from "dfx";
|
|
|
8
8
|
import * as tsplus_module_8 from "dfx/_common";
|
|
9
9
|
import * as tsplus_module_9 from "@effect/io/Layer";
|
|
10
10
|
import { millis } from "@fp-ts/data/Duration";
|
|
11
|
+
import { ShardStore } from "../ShardStore/index.js";
|
|
11
12
|
const make = tsplus_module_3.flatMap(store => tsplus_module_3.flatMap(rest => tsplus_module_3.flatMap(({ gateway: config }) => tsplus_module_3.flatMap(limiter => {
|
|
12
13
|
const configs = (totalCount) => {
|
|
13
14
|
const claimId = (sharderCount) => tsplus_module_3.flatMap((a) => tsplus_module_6.match(() => tsplus_module_3.delay(tsplus_module_5.minutes(3))(claimId(sharderCount)), (id) => tsplus_module_3.succeed(id))(a))(store
|
|
@@ -35,7 +36,7 @@ const make = tsplus_module_3.flatMap(store => tsplus_module_3.flatMap(rest => ts
|
|
|
35
36
|
},
|
|
36
37
|
}))(tsplus_module_3.flatMap((r) => r.json)(rest
|
|
37
38
|
.getGatewayBot())));
|
|
38
|
-
})(tsplus_module_3.service(tsplus_module_7.RateLimiter)))(tsplus_module_3.service(tsplus_module_7.Config.DiscordConfig)))(tsplus_module_3.service(tsplus_module_7.DiscordREST)))(tsplus_module_3.service(
|
|
39
|
+
})(tsplus_module_3.service(tsplus_module_7.RateLimiter)))(tsplus_module_3.service(tsplus_module_7.Config.DiscordConfig)))(tsplus_module_3.service(tsplus_module_7.DiscordREST)))(tsplus_module_3.service(ShardStore));
|
|
39
40
|
export const Sharder = tsplus_module_8.Tag();
|
|
40
41
|
export const LiveSharder = tsplus_module_9.scoped(Sharder)(make);
|
|
41
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/DiscordGateway/Sharder/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/DiscordGateway/Sharder/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,C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
export type { Scope } from "@effect/io/Scope";
|
|
8
8
|
export type { Stream } from "@effect/stream/Stream";
|
|
9
9
|
export type { Chunk } from "@fp-ts/data/Chunk";
|
|
10
|
-
export
|
|
10
|
+
export { Context, Tag } from "@fp-ts/data/Context";
|
|
11
11
|
export type { Duration } from "@fp-ts/data/Duration";
|
|
12
12
|
export type { Equal } from "@fp-ts/data/Equal";
|
|
13
13
|
export type { Either } from "@fp-ts/data/Either";
|
package/_common.js
CHANGED
package/_common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_common.js","sourceRoot":"","sources":["../src/_common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_common.js","sourceRoot":"","sources":["../src/_common.ts"],"names":[],"mappings":"AAYA,OAAO,EAAW,GAAG,EAAE,MAAM,qBAAqB,CAAA;AASlD,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA"}
|
package/global.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @tsplus global
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { Cause, Effect, Exit, Layer, Queue, Schedule, Scope, Stream, Chunk, Context, Tag, Duration, Equal, Either, HashMap, Maybe, Ref, HashSet, Discord, } from "dfx/_common";
|
|
5
5
|
/**
|
|
6
6
|
* @tsplus global
|
|
7
7
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dfx",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"ws": "^8.11.0"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e53bcc077a6f2ef0d7f7c54b516651ae5360e897"
|
|
46
46
|
}
|