npm-update-package 0.15.0 → 0.16.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
@@ -5,10 +5,6 @@
5
5
 
6
6
  CLI tool for creating pull request to update npm packages
7
7
 
8
- ## Caution
9
-
10
- This package is currently under development, so the major version is 0 yet.
11
-
12
8
  ## Usage
13
9
 
14
10
  ```sh
@@ -88,9 +84,10 @@ Log level to show
88
84
 
89
85
  - type: string
90
86
  - allowed values:
91
- - `error`
92
- - `info`
93
- - `debug`
87
+ - `off`: Do not output any logs.
88
+ - `error`: Output error logs.
89
+ - `info`: Output error/info logs.
90
+ - `debug`: Output error/info/debug logs.
94
91
  - required: false
95
92
  - default: `info`
96
93
 
@@ -147,6 +144,6 @@ Pull request title template
147
144
 
148
145
  ## FAQ
149
146
 
150
- ### Conflicts has occurred in PR. What should I do?
147
+ ### Conflicts have occurred in PR. What should I do?
151
148
 
152
- If conflicts has occurred in PR, close it and run npm-update-package again.
149
+ If conflicts have occurred in PR, close it and run npm-update-package again.
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.15.0',
6
+ version: '0.16.0',
7
7
  web: 'https://github.com/npm-update-package/npm-update-package'
8
8
  };
@@ -4,7 +4,8 @@ exports.isLogLevel = exports.LogLevel = void 0;
4
4
  exports.LogLevel = {
5
5
  Debug: 'debug',
6
6
  Error: 'error',
7
- Info: 'info'
7
+ Info: 'info',
8
+ Off: 'off'
8
9
  };
9
10
  const logLevels = Object.values(exports.LogLevel);
10
11
  const isLogLevel = (value) => logLevels.includes(value);
@@ -8,7 +8,7 @@ const Options = (0, io_ts_1.type)({
8
8
  branchName: io_ts_1.string,
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.Error), (0, io_ts_1.literal)(logger_1.LogLevel.Info), (0, io_ts_1.literal)(logger_1.LogLevel.Debug)]),
11
+ logLevel: (0, io_ts_1.union)([(0, io_ts_1.literal)(logger_1.LogLevel.Off), (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
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)]),
13
13
  pullRequestBody: io_ts_1.string,
14
14
  pullRequestTitle: io_ts_1.string
@@ -15,6 +15,7 @@ const initOptions = () => {
15
15
  .requiredOption('--github-token <value>', 'GitHub token')
16
16
  .addOption(new commander_1.Option('--log-level <value>', 'Log level to show')
17
17
  .choices([
18
+ logger_1.LogLevel.Off,
18
19
  logger_1.LogLevel.Error,
19
20
  logger_1.LogLevel.Info,
20
21
  logger_1.LogLevel.Debug
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "CLI tool for creating pull request to update npm packages",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",