@faable/faable 1.13.0 → 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.
package/dist/index.js CHANGED
@@ -11,9 +11,17 @@ import { Configuration } from './lib/Configuration.js';
11
11
  import { notifyIfUpdateAvailable } from './lib/UpdateChecker.js';
12
12
  import { log } from './log.js';
13
13
 
14
+ // yargs re-runs before-validation middlewares once per nested command level
15
+ // (`deploy secrets` = 2 runs), so keep the banner and update check to one.
16
+ let banner_shown = false;
14
17
  const yg = yargs();
15
18
  yg.scriptName('faable')
19
+ // Keep CLI output in English regardless of the system locale
20
+ .locale('en')
16
21
  .middleware(async function (argv) {
22
+ if (banner_shown)
23
+ return;
24
+ banner_shown = true;
17
25
  log.info(`Faable CLI ${version}`);
18
26
  // `upgrade` does its own (forced) check
19
27
  if (argv._[0] !== 'upgrade') {
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.0",
3
+ "version": "1.13.2",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",