dfx 0.48.0 → 0.48.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../src/Interactions/gateway.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAY,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAW,MAAM,YAAY,CAAA;AAMrE,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;;;;;AAKD,eAAO,MAAM,GAAG,sPASK,OAAO,qNAwDtB,CAAA;
|
|
1
|
+
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../src/Interactions/gateway.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAY,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAW,MAAM,YAAY,CAAA;AAMrE,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;;;;;AAKD,eAAO,MAAM,GAAG,sPASK,OAAO,qNAwDtB,CAAA;AA0BN,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,EACnB,EAAE,EAAE,kBAAkB,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,KACpC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;IAE/B,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EACjB,OAAO,EAAE,CACP,CAAC,EAAE,KAAK,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,KAC5C,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EACvB,IAAI,CAAC,EAAE,OAAO,KACX,MAAM,CACT,WAAW,GAAG,cAAc,GAAG,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,EAC9D,gBAAgB,GAAG,IAAI,CAAC,mBAAmB,GAAG,CAAC,EAC/C,KAAK,CACN,CAAA;CACF;AAED,eAAO,MAAM,oBAAoB,gFAA8B,CAAA;AAC/D,eAAO,MAAM,wBAAwB,iFACO,CAAA"}
|
package/Interactions/gateway.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "@effect/data/Chunk";
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
4
|
-
import * as tsplus_module_4 from "
|
|
5
|
-
import * as tsplus_module_5 from "@effect/io/
|
|
6
|
-
import * as tsplus_module_6 from "
|
|
3
|
+
import * as tsplus_module_3 from "@effect/data/Duration";
|
|
4
|
+
import * as tsplus_module_4 from "dfx/utils/hub";
|
|
5
|
+
import * as tsplus_module_5 from "@effect/io/Ref";
|
|
6
|
+
import * as tsplus_module_6 from "@effect/io/Queue";
|
|
7
|
+
import * as tsplus_module_7 from "dfx/_common";
|
|
7
8
|
import * as Http from "@effect-http/client";
|
|
8
9
|
import { DiscordGateway } from "dfx/DiscordGateway";
|
|
9
10
|
import { DiscordREST } from "dfx/DiscordREST";
|
|
@@ -28,12 +29,12 @@ const run_1 = (postHandler, { sync = true } = {}) => (ix) => (() => {
|
|
|
28
29
|
})));
|
|
29
30
|
})();
|
|
30
31
|
export const run = run_1;
|
|
31
|
-
const makeRegistry = tsplus_module_1.flatMap(
|
|
32
|
-
const register = (ix) => tsplus_module_1.flatMap(
|
|
33
|
-
const run = (onError, opts) =>
|
|
34
|
-
.take(), ix => run_1(_ => tsplus_module_1.catchAllCause(_, onError), opts)(ix));
|
|
32
|
+
const makeRegistry = tsplus_module_1.flatMap(tsplus_module_5.make(builder), ref => tsplus_module_1.map(tsplus_module_6.sliding(1), queue => {
|
|
33
|
+
const register = (ix) => tsplus_module_1.flatMap(tsplus_module_5.updateAndGet(ref, _ => _.concat(ix)), _ => queue.offer(_));
|
|
34
|
+
const run = (onError, opts) => tsplus_module_4.foreverSwitch(queue
|
|
35
|
+
.take(), ix => tsplus_module_1.delay(run_1(_ => tsplus_module_1.catchAllCause(_, onError), opts)(ix), tsplus_module_3.seconds(0.1)));
|
|
35
36
|
return { register, run };
|
|
36
37
|
}));
|
|
37
|
-
export const InteractionsRegistry =
|
|
38
|
+
export const InteractionsRegistry = tsplus_module_7.Tag();
|
|
38
39
|
export const InteractionsRegistryLive = tsplus_module_1.toLayer(makeRegistry, InteractionsRegistry);
|
|
39
40
|
//# sourceMappingURL=gateway.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.js","sourceRoot":"","sources":["../src/Interactions/gateway.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gateway.js","sourceRoot":"","sources":["../src/Interactions/gateway.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAoB,MAAM,iBAAiB,CAAA;AAC/D,OAAO,EAAsB,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAsB,OAAO,EAAE,MAAM,YAAY,CAAA;AAUrE;;GAEG;AACI,MAAM,QACX,CACE,WAMyB,EACzB,EAAE,IAAI,GAAG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M,CAAC,MAAM,wBAAwB,GACnC,wBAAA,YAAY,EAAS,oBAAoB,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dfx",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@tim-smart/discord-api-docs-parser": "^0.5.5",
|
|
28
|
-
"@tsplus-types/effect__data": "0.12.
|
|
28
|
+
"@tsplus-types/effect__data": "0.12.5-11739c0",
|
|
29
29
|
"@tsplus-types/effect__io": "0.26.0-11739c0",
|
|
30
30
|
"@tsplus-types/effect__stream": "0.22.0-11739c0",
|
|
31
|
-
"@types/ws": "^8.5.
|
|
32
|
-
"dotenv": "^16.1.
|
|
33
|
-
"lerna": "^
|
|
34
|
-
"madge": "^6.
|
|
31
|
+
"@types/ws": "^8.5.5",
|
|
32
|
+
"dotenv": "^16.1.4",
|
|
33
|
+
"lerna": "^7.0.0",
|
|
34
|
+
"madge": "^6.1.0",
|
|
35
35
|
"typescript": "https://cdn.jsdelivr.net/npm/@tsplus/installer@0.0.171/compiler/typescript.tgz"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@effect-http/client": "^0.27.0",
|
|
39
|
-
"@effect/data": "^0.12.
|
|
39
|
+
"@effect/data": "^0.12.5",
|
|
40
40
|
"@effect/io": "~0.26.0",
|
|
41
41
|
"@effect/stream": "~0.22.0",
|
|
42
42
|
"discord-verify": "^1.1.0"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"ws": "^8.13.0"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "9096a98d39d8c0c97cf25c4477806d754db88f31"
|
|
52
52
|
}
|
|
@@ -97,7 +97,11 @@ const makeRegistry = Do($ => {
|
|
|
97
97
|
) =>
|
|
98
98
|
queue
|
|
99
99
|
.take()
|
|
100
|
-
.foreverSwitch(ix =>
|
|
100
|
+
.foreverSwitch(ix =>
|
|
101
|
+
ix
|
|
102
|
+
.runGateway(_ => _.catchAllCause(onError), opts)
|
|
103
|
+
.delay(Duration.seconds(0.1)),
|
|
104
|
+
)
|
|
101
105
|
|
|
102
106
|
return { register, run } as const
|
|
103
107
|
})
|
package/src/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dfx",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@tim-smart/discord-api-docs-parser": "^0.5.5",
|
|
28
|
-
"@tsplus-types/effect__data": "0.12.
|
|
28
|
+
"@tsplus-types/effect__data": "0.12.5-11739c0",
|
|
29
29
|
"@tsplus-types/effect__io": "0.26.0-11739c0",
|
|
30
30
|
"@tsplus-types/effect__stream": "0.22.0-11739c0",
|
|
31
|
-
"@types/ws": "^8.5.
|
|
32
|
-
"dotenv": "^16.1.
|
|
33
|
-
"lerna": "^
|
|
34
|
-
"madge": "^6.
|
|
31
|
+
"@types/ws": "^8.5.5",
|
|
32
|
+
"dotenv": "^16.1.4",
|
|
33
|
+
"lerna": "^7.0.0",
|
|
34
|
+
"madge": "^6.1.0",
|
|
35
35
|
"typescript": "https://cdn.jsdelivr.net/npm/@tsplus/installer@0.0.171/compiler/typescript.tgz"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@effect-http/client": "^0.27.0",
|
|
39
|
-
"@effect/data": "^0.12.
|
|
39
|
+
"@effect/data": "^0.12.5",
|
|
40
40
|
"@effect/io": "~0.26.0",
|
|
41
41
|
"@effect/stream": "~0.22.0",
|
|
42
42
|
"discord-verify": "^1.1.0"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"ws": "^8.13.0"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "9096a98d39d8c0c97cf25c4477806d754db88f31"
|
|
52
52
|
}
|