Skip to content

Commit

Permalink
chore(deps): bump winston from 3.3.3 to 3.11.0 (#477)
Browse files Browse the repository at this point in the history
* chore(deps): bump winston from 3.3.3 to 3.11.0

Bumps [winston](https://github.com/winstonjs/winston) from 3.3.3 to 3.11.0.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](winstonjs/winston@v3.3.3...v3.11.0)

---
updated-dependencies:
- dependency-name: winston
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix broken winston mock object to add missing `rejections` field

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Masafumi Koba <[email protected]>
  • Loading branch information
dependabot[bot] and ybiquitous authored Feb 13, 2024
1 parent de9b929 commit 2b59af3
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 27 deletions.
56 changes: 30 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
"vscode-languageserver-textdocument": "^1.0.5",
"vscode-languageserver-types": "^3.16.0",
"vscode-uri": "^3.0.2",
"winston": "^3.3.3",
"winston": "^3.11.0",
"winston-transport": "^4.7.0"
},
"devDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions test/unit/server-mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,17 @@ export function getLogger(): jest.Mocked<winston.Logger> {
remove: jest.fn(),
removeAllListeners: jest.fn(),
removeListener: jest.fn(),
rejections: Object.assign(jest.fn(), {
catcher: false,
getAllInfo: jest.fn(),
getOsInfo: jest.fn(),
getProcessInfo: jest.fn(),
getTrace: jest.fn(),
handle: jest.fn(),
handlers: new Map(),
logger: undefined as unknown as winston.Logger,
unhandle: jest.fn(),
}),
resume: jest.fn(),
setDefaultEncoding: jest.fn(),
setEncoding: jest.fn(),
Expand Down

0 comments on commit 2b59af3

Please sign in to comment.