@replit/river 0.18.1 → 0.18.2
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-QBGGJSQM.js → chunk-D3CC5GL7.js} +1 -1
- package/dist/{chunk-5YDJDYVB.js → chunk-K7CUSLWL.js} +1 -1
- package/dist/{chunk-O36533OC.js → chunk-PUX3U2SZ.js} +1 -1
- package/dist/{chunk-UNTGVPI6.js → chunk-UABIFWM7.js} +1 -1
- package/dist/{chunk-XCQF55SQ.js → chunk-WER2DWCP.js} +4 -4
- package/dist/logging/index.cjs +4 -4
- package/dist/logging/index.js +1 -1
- package/dist/router/index.js +2 -2
- package/dist/transport/impls/uds/client.js +3 -3
- package/dist/transport/impls/uds/server.js +3 -3
- package/dist/transport/impls/ws/client.js +3 -3
- package/dist/transport/impls/ws/server.js +3 -3
- package/dist/transport/index.js +2 -2
- package/dist/util/testHelpers.js +3 -3
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ var BaseLogger = class {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
var stringLogger = (msg, _ctx, level) => {
|
|
36
|
+
var stringLogger = (msg, _ctx, level = "info") => {
|
|
37
37
|
console.log(`[river:${level}] ${msg}`);
|
|
38
38
|
};
|
|
39
39
|
var colorMap = {
|
|
@@ -42,8 +42,8 @@ var colorMap = {
|
|
|
42
42
|
warn: "\x1B[33m",
|
|
43
43
|
error: "\x1B[31m"
|
|
44
44
|
};
|
|
45
|
-
var coloredStringLogger = (msg, _ctx, level) => {
|
|
46
|
-
const color = colorMap[level
|
|
45
|
+
var coloredStringLogger = (msg, _ctx, level = "info") => {
|
|
46
|
+
const color = colorMap[level];
|
|
47
47
|
console.log(`[river:${color}${level}\x1B[0m] ${msg}`);
|
|
48
48
|
};
|
|
49
49
|
var jsonLogger = (msg, ctx, level) => {
|
|
@@ -55,7 +55,7 @@ function bindLogger(fn, level) {
|
|
|
55
55
|
log = void 0;
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
if (fn
|
|
58
|
+
if (typeof fn === "function") {
|
|
59
59
|
log = new BaseLogger(fn, level);
|
|
60
60
|
return log;
|
|
61
61
|
}
|
package/dist/logging/index.cjs
CHANGED
|
@@ -62,7 +62,7 @@ var BaseLogger = class {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
var stringLogger = (msg, _ctx, level) => {
|
|
65
|
+
var stringLogger = (msg, _ctx, level = "info") => {
|
|
66
66
|
console.log(`[river:${level}] ${msg}`);
|
|
67
67
|
};
|
|
68
68
|
var colorMap = {
|
|
@@ -71,8 +71,8 @@ var colorMap = {
|
|
|
71
71
|
warn: "\x1B[33m",
|
|
72
72
|
error: "\x1B[31m"
|
|
73
73
|
};
|
|
74
|
-
var coloredStringLogger = (msg, _ctx, level) => {
|
|
75
|
-
const color = colorMap[level
|
|
74
|
+
var coloredStringLogger = (msg, _ctx, level = "info") => {
|
|
75
|
+
const color = colorMap[level];
|
|
76
76
|
console.log(`[river:${color}${level}\x1B[0m] ${msg}`);
|
|
77
77
|
};
|
|
78
78
|
var jsonLogger = (msg, ctx, level) => {
|
|
@@ -84,7 +84,7 @@ function bindLogger(fn, level) {
|
|
|
84
84
|
log = void 0;
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
if (fn
|
|
87
|
+
if (typeof fn === "function") {
|
|
88
88
|
log = new BaseLogger(fn, level);
|
|
89
89
|
return log;
|
|
90
90
|
}
|
package/dist/logging/index.js
CHANGED
package/dist/router/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UdsConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-PUX3U2SZ.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-UABIFWM7.js";
|
|
7
7
|
import "../../../chunk-VH3NGOXQ.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
10
|
-
} from "../../../chunk-
|
|
10
|
+
} from "../../../chunk-WER2DWCP.js";
|
|
11
11
|
import "../../../chunk-GZ7HCLLM.js";
|
|
12
12
|
|
|
13
13
|
// transport/impls/uds/client.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UdsConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-PUX3U2SZ.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-UABIFWM7.js";
|
|
7
7
|
import "../../../chunk-VH3NGOXQ.js";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-WER2DWCP.js";
|
|
9
9
|
import "../../../chunk-GZ7HCLLM.js";
|
|
10
10
|
|
|
11
11
|
// transport/impls/uds/server.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-K7CUSLWL.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-UABIFWM7.js";
|
|
7
7
|
import "../../../chunk-VH3NGOXQ.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
10
|
-
} from "../../../chunk-
|
|
10
|
+
} from "../../../chunk-WER2DWCP.js";
|
|
11
11
|
import "../../../chunk-GZ7HCLLM.js";
|
|
12
12
|
|
|
13
13
|
// transport/impls/ws/client.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-K7CUSLWL.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-UABIFWM7.js";
|
|
7
7
|
import "../../../chunk-VH3NGOXQ.js";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-WER2DWCP.js";
|
|
9
9
|
import "../../../chunk-GZ7HCLLM.js";
|
|
10
10
|
|
|
11
11
|
// transport/impls/ws/server.ts
|
package/dist/transport/index.js
CHANGED
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
ServerTransport,
|
|
7
7
|
Session,
|
|
8
8
|
Transport
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-UABIFWM7.js";
|
|
10
10
|
import {
|
|
11
11
|
OpaqueTransportMessageSchema,
|
|
12
12
|
TransportMessageSchema
|
|
13
13
|
} from "../chunk-VH3NGOXQ.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-WER2DWCP.js";
|
|
15
15
|
import "../chunk-GZ7HCLLM.js";
|
|
16
16
|
export {
|
|
17
17
|
ClientTransport,
|
package/dist/util/testHelpers.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNCAUGHT_ERROR,
|
|
3
3
|
pushable
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-D3CC5GL7.js";
|
|
5
5
|
import "../chunk-RPIDSIQG.js";
|
|
6
6
|
import {
|
|
7
7
|
Session,
|
|
8
8
|
defaultTransportOptions
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-UABIFWM7.js";
|
|
10
10
|
import {
|
|
11
11
|
coerceErrorString
|
|
12
12
|
} from "../chunk-VH3NGOXQ.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-WER2DWCP.js";
|
|
14
14
|
import "../chunk-GZ7HCLLM.js";
|
|
15
15
|
|
|
16
16
|
// util/testHelpers.ts
|
package/package.json
CHANGED