npm-update-package 0.28.3 → 0.29.0

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/README.md CHANGED
@@ -46,8 +46,9 @@ Log level to show
46
46
  - `off`: Do not output any logs.
47
47
  - `fatal`: Output fatal logs.
48
48
  - `error`: Output fatal/error logs.
49
- - `info`: Output fatal/error/info logs.
50
- - `debug`: Output fatal/error/info/debug logs.
49
+ - `warn`: Output fatal/error/warn logs.
50
+ - `info`: Output fatal/error/warn/info logs.
51
+ - `debug`: Output fatal/error/warn/info/debug logs.
51
52
  - default: `info`
52
53
 
53
54
  ### `--package-manager`
package/dist/app.js CHANGED
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.app = void 0;
4
4
  exports.app = {
5
5
  name: 'npm-update-package',
6
- version: '0.28.3',
6
+ version: '0.29.0',
7
7
  web: 'https://github.com/npm-update-package/npm-update-package'
8
8
  };
@@ -6,7 +6,8 @@ exports.LogLevel = {
6
6
  Error: 'error',
7
7
  Fatal: 'fatal',
8
8
  Info: 'info',
9
- Off: 'off'
9
+ Off: 'off',
10
+ Warn: 'warn'
10
11
  };
11
12
  const logLevels = Object.values(exports.LogLevel);
12
13
  const isLogLevel = (value) => logLevels.includes(value);
@@ -8,8 +8,18 @@ const Options = (0, io_ts_1.intersection)([
8
8
  (0, io_ts_1.type)({
9
9
  commitMessage: io_ts_1.string,
10
10
  githubToken: io_ts_1.string,
11
- logLevel: (0, io_ts_1.union)([(0, io_ts_1.literal)(logger_1.LogLevel.Off), (0, io_ts_1.literal)(logger_1.LogLevel.Fatal), (0, io_ts_1.literal)(logger_1.LogLevel.Error), (0, io_ts_1.literal)(logger_1.LogLevel.Info), (0, io_ts_1.literal)(logger_1.LogLevel.Debug)]),
12
- packageManager: (0, io_ts_1.union)([(0, io_ts_1.literal)(package_manager_1.PackageManagerName.Npm), (0, io_ts_1.literal)(package_manager_1.PackageManagerName.Yarn)]),
11
+ logLevel: (0, io_ts_1.union)([
12
+ (0, io_ts_1.literal)(logger_1.LogLevel.Off),
13
+ (0, io_ts_1.literal)(logger_1.LogLevel.Fatal),
14
+ (0, io_ts_1.literal)(logger_1.LogLevel.Error),
15
+ (0, io_ts_1.literal)(logger_1.LogLevel.Warn),
16
+ (0, io_ts_1.literal)(logger_1.LogLevel.Info),
17
+ (0, io_ts_1.literal)(logger_1.LogLevel.Debug)
18
+ ]),
19
+ packageManager: (0, io_ts_1.union)([
20
+ (0, io_ts_1.literal)(package_manager_1.PackageManagerName.Npm),
21
+ (0, io_ts_1.literal)(package_manager_1.PackageManagerName.Yarn)
22
+ ]),
13
23
  pullRequestTitle: io_ts_1.string
14
24
  }),
15
25
  (0, io_ts_1.partial)({
@@ -27,6 +27,7 @@ exports.cliOptions = [
27
27
  logger_1.LogLevel.Off,
28
28
  logger_1.LogLevel.Fatal,
29
29
  logger_1.LogLevel.Error,
30
+ logger_1.LogLevel.Warn,
30
31
  logger_1.LogLevel.Info,
31
32
  logger_1.LogLevel.Debug
32
33
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "0.28.3",
3
+ "version": "0.29.0",
4
4
  "description": "CLI tool for creating pull requests to update npm packages",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",