dfx 0.42.4 → 0.42.5
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.
|
@@ -17,7 +17,7 @@ const make = tsplus_module_5.flatMap(WS, ws => tsplus_module_5.map(DiscordWSCode
|
|
|
17
17
|
const takeOutbound = tsplus_module_5.map(outbound, a => a === Reconnect ? a : encoding.encode(a));
|
|
18
18
|
return tsplus_module_5.map(ws.connect(urlRef, takeOutbound, onReconnect), socket => {
|
|
19
19
|
const take = tsplus_module_5.map(socket.take, encoding.decode);
|
|
20
|
-
const run = tsplus_module_5.retry(socket.run, tsplus_module_4.whileInput(tsplus_module_4.
|
|
20
|
+
const run = tsplus_module_5.retry(socket.run, tsplus_module_4.whileInput(tsplus_module_4.fixed(tsplus_module_3.seconds(0.5)), (_) => (_._tag === "WebSocketCloseError" && _.code < 2000) ||
|
|
21
21
|
(_._tag === "WebSocketError" && _.reason === "open-timeout")));
|
|
22
22
|
return {
|
|
23
23
|
run,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscordWS.js","sourceRoot":"","sources":["../src/DiscordGateway/DiscordWS.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,MAAM,EACN,SAAS,EACT,EAAE,GAGH,MAAM,uBAAuB,CAAA;AAkB9B,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAA,GAAG,EAAkB,CAAA;AACnD,MAAM,CAAC,MAAM,sBAAsB,GAAG,wBAAc,cAAc,EAAE;IAClE,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC5C,CAAC,CAAA;AAEF,MAAM,IAAI,2BACK,EAAE,EAAT,EAAE,wBACW,cAAc,EAA3B,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,EAAE,OAAO,EAAW,CAAA;GAC3B,CAAA;AAGF,MAAM,CAAC,MAAM,SAAS,GAAG,gBAAA,GAAG,EAAa,CAAA;AACzC,MAAM,CAAC,MAAM,aAAa,2BAAa,wBAAA,IAAI,EAAS,SAAS,CAAC,EAAjC,MAAM,CAA2B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dfx",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"ws": "^8.13.0"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "6ce4b16891736f33f8a8d5617eee19401369242b"
|
|
52
52
|
}
|
|
@@ -52,7 +52,7 @@ const make = Do($ => {
|
|
|
52
52
|
const take = socket.take.map(encoding.decode)
|
|
53
53
|
|
|
54
54
|
const run = socket.run.retry(
|
|
55
|
-
Schedule.
|
|
55
|
+
Schedule.fixed(Duration.seconds(0.5)).whileInput(
|
|
56
56
|
(_: WebSocketError | WebSocketCloseError) =>
|
|
57
57
|
(_._tag === "WebSocketCloseError" && _.code < 2000) ||
|
|
58
58
|
(_._tag === "WebSocketError" && _.reason === "open-timeout"),
|
package/src/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dfx",
|
|
3
|
+
"version": "0.42.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"directory": "dist"
|
|
8
|
+
},
|
|
9
|
+
"description": "Effect-TS discord library",
|
|
10
|
+
"author": "Tim Smart <hello@timsmart.co>",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/tim-smart/dfx.git"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"prepublishOnly": "make build",
|
|
18
|
+
"types": "discord-api-codegen ./discord-api-docs -l typescript -o 'imports=RestResponse|dfx/DiscordREST/types' 'endpointReturnType=RestResponse' > src/types.ts && prettier -w src/types.ts"
|
|
19
|
+
},
|
|
20
|
+
"exports": {
|
|
21
|
+
".": "./index.js",
|
|
22
|
+
"./gateway": "./gateway.js",
|
|
23
|
+
"./webhooks": "./webhooks.js",
|
|
24
|
+
"./*": "./*.js"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@tim-smart/discord-api-docs-parser": "^0.5.2",
|
|
28
|
+
"@tsplus-types/effect__data": "0.12.2-3b576ba",
|
|
29
|
+
"@tsplus-types/effect__io": "0.25.8-3b576ba",
|
|
30
|
+
"@tsplus-types/effect__stream": "0.21.1-3b576ba",
|
|
31
|
+
"@types/ws": "^8.5.4",
|
|
32
|
+
"dotenv": "^16.0.3",
|
|
33
|
+
"lerna": "^6.6.1",
|
|
34
|
+
"madge": "^6.0.0",
|
|
35
|
+
"typescript": "https://cdn.jsdelivr.net/npm/@tsplus/installer@0.0.171/compiler/typescript.tgz"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@effect-http/client": "^0.24.2",
|
|
39
|
+
"@effect/data": "^0.12.2",
|
|
40
|
+
"@effect/io": "~0.25.8",
|
|
41
|
+
"@effect/stream": "~0.21.1",
|
|
42
|
+
"tweetnacl": "^1.0.3"
|
|
43
|
+
},
|
|
44
|
+
"optionalDependencies": {
|
|
45
|
+
"bufferutil": "^4.0.7",
|
|
46
|
+
"isomorphic-ws": "^5.0.0",
|
|
47
|
+
"utf-8-validate": "^6.0.3",
|
|
48
|
+
"ws": "^8.13.0"
|
|
49
|
+
},
|
|
50
|
+
"sideEffects": false,
|
|
51
|
+
"gitHead": "6ce4b16891736f33f8a8d5617eee19401369242b"
|
|
52
|
+
}
|