@maz-ui/node 4.2.1-alpha.10 → 4.2.1-alpha.13

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.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as consola from 'consola';
1
2
  import { ConsolaOptions, InputLogObject, ConsolaReporter, ConsolaInstance } from 'consola';
2
3
  export { ConsolaOptions } from 'consola';
3
4
 
@@ -33,6 +34,7 @@ declare function createLogger(options?: LoggerOptions): {
33
34
  addReporter: (reporter: ConsolaReporter) => ConsolaInstance;
34
35
  removeReporter: (reporter: ConsolaReporter) => ConsolaInstance | ConsolaReporter[];
35
36
  setLevel: (level: LogLevel) => void;
37
+ getLevel: () => consola.LogLevel;
36
38
  };
37
39
  declare const logger: Logger;
38
40
 
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as consola from 'consola';
1
2
  import { ConsolaOptions, InputLogObject, ConsolaReporter, ConsolaInstance } from 'consola';
2
3
  export { ConsolaOptions } from 'consola';
3
4
 
@@ -33,6 +34,7 @@ declare function createLogger(options?: LoggerOptions): {
33
34
  addReporter: (reporter: ConsolaReporter) => ConsolaInstance;
34
35
  removeReporter: (reporter: ConsolaReporter) => ConsolaInstance | ConsolaReporter[];
35
36
  setLevel: (level: LogLevel) => void;
37
+ getLevel: () => consola.LogLevel;
36
38
  };
37
39
  declare const logger: Logger;
38
40
 
package/dist/index.mjs CHANGED
@@ -41,7 +41,8 @@ function createLogger(options) {
41
41
  removeReporter: (reporter) => consola.removeReporter(reporter),
42
42
  setLevel: (level) => {
43
43
  consola.level = LogLevelMap[level];
44
- }
44
+ },
45
+ getLevel: () => consola.level
45
46
  };
46
47
  }
47
48
  const logger = createLogger();
@@ -52,7 +53,7 @@ async function execPromise(command, {
52
53
  noSuccess = false,
53
54
  noStdout = false,
54
55
  noStderr = false,
55
- logLevel = "default"
56
+ logLevel
56
57
  } = {}) {
57
58
  if (logLevel) {
58
59
  logger.setLevel(logLevel);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/node",
3
3
  "type": "module",
4
- "version": "4.2.1-alpha.10",
4
+ "version": "4.2.1-alpha.13",
5
5
  "description": "Node utilities for Maz-UI library",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",