Skip to content

Commit

Permalink
refactor(npm): Reduce severity of warnings from the output of npm
Browse files Browse the repository at this point in the history
The warning messages are unrelated ORT and just forwarded.

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Jan 29, 2024
1 parent c00cbbc commit 24fb911
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1192,9 +1192,9 @@ issues:
message: "The <REPLACE_LOCKFILE_NAME> file was created with an old version of npm, so\
\ supplemental metadata must be fetched from the registry. This is a one-time\
\ fix-up, please be patient..."
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: CoffeeScript on NPM has moved to \"coffeescript\"\
\ (no hyphen)"
severity: "WARNING"
severity: "HINT"
Original file line number Diff line number Diff line change
Expand Up @@ -5152,54 +5152,54 @@ issues:
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: Removed event-stream from gulp-header"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: Please upgrade to v0.1.7"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: Please upgrade to v1.0.1"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: Please upgrade to v0.1.5"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: Please upgrade to v1.0.1"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: Legacy versions of mkdirp are no longer supported.\
\ Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises\
\ in 1.x.)"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated"
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "skipping integrity check for git dependency ssh://[email protected]/jonschlinkert/gulp-format-md.git "
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "skipping integrity check for git dependency ssh://[email protected]/mochajs/mocha.git "
severity: "WARNING"
severity: "HINT"
- timestamp: "1970-01-01T00:00:00Z"
source: "NPM"
message: "skipping integrity check for git dependency ssh://[email protected]/tinydesk/angular-tileview.git "
severity: "WARNING"
severity: "HINT"
2 changes: 1 addition & 1 deletion plugins/package-managers/node/src/main/kotlin/Npm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ open class Npm(
val issues = mutableListOf<Issue>()

lines.groupLines("npm WARN ").mapTo(issues) {
Issue(source = managerName, message = it, severity = Severity.WARNING)
Issue(source = managerName, message = it, severity = Severity.HINT)
}

lines.groupLines("npm ERR! ").mapTo(issues) {
Expand Down

0 comments on commit 24fb911

Please sign in to comment.