@faable/faable 1.13.1 → 1.13.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.
Files changed (2) hide show
  1. package/dist/log.js +8 -9
  2. package/package.json +1 -1
package/dist/log.js CHANGED
@@ -1,13 +1,12 @@
1
1
  import pino from 'pino';
2
- import 'pino-pretty';
2
+ import pretty from 'pino-pretty';
3
3
 
4
- const log = pino({
5
- transport: {
6
- target: "pino-pretty",
7
- options: {
8
- colorize: true,
9
- },
10
- },
11
- });
4
+ // Run pino-pretty as an in-process sync stream instead of a worker-thread
5
+ // transport: the worker's MessagePort can stay referenced after the last log
6
+ // (thread-stream race) and intermittently keep the CLI from exiting.
7
+ const log = pino(pretty({
8
+ colorize: true,
9
+ sync: true,
10
+ }));
12
11
 
13
12
  export { log };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",