Skip to content

Commit 2b930b0

Browse files
authored
Fix console.warning is not a function (#360)
Fixes #359 Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@cloudity.com>
1 parent 16b80ea commit 2b930b0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## UNRELEASED
44

5+
## [14.2.2] 2024-02-18
6+
7+
- Fix `console.warning is not a function`
8+
59
## [14.2.1] 2024-02-09
610

711
- fix: class not found request failure

docs/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## UNRELEASED
44

5+
## [14.2.2] 2024-02-18
6+
7+
- Fix `console.warning is not a function`
8+
9+
## [14.2.1] 2024-02-09
10+
11+
- fix: class not found request failure
12+
513
## [14.1.0] 2024-01-15
614

715
- fix: missing parse errors with --noserver

lib/filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function collectDisabledBlocks(allLines) {
2323
if (matchingIndex > -1) {
2424
disabledBlocks[matchingIndex].endLine = lineNb;
2525
} else {
26-
console.warning(`npm-groovy-lint: Unable to find matching groovylint-disable for ${line}`);
26+
console.warn(`npm-groovy-lint: Unable to find matching groovylint-disable for ${line}`);
2727
}
2828
}
2929
lineNb++;

0 commit comments

Comments
 (0)