@tui-sandbox/library 11.9.0 → 11.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tui-sandbox/library",
3
- "version": "11.9.0",
3
+ "version": "11.9.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mikavilpas/tui-sandbox"
@@ -17,9 +17,24 @@ export function connectNeovimApi(socketPath: string): Lazy<Promise<NeovimJavascr
17
17
  // https://github.com/neovim/node-client/blob/e0568e32e0fc8837ad900146bfd5ca27b9416235/README.md#logging
18
18
  const logger = createLogger({
19
19
  level: "warn",
20
+
20
21
  transports: [
21
22
  new transports.Console({
22
- format: format.combine(format.colorize(), format.simple()),
23
+ format: format.combine(
24
+ format(info => {
25
+ if ((info.message as string).startsWith("failed request to")) {
26
+ // This is logged when neovim is started with --embed, which we don't use.
27
+ // It's not a problem, so hide it.
28
+ //
29
+ // Returning false removes this log entry
30
+ return false
31
+ }
32
+
33
+ return info
34
+ })(),
35
+ format.colorize(),
36
+ format.simple()
37
+ ),
23
38
  }),
24
39
  ],
25
40
  })