Skip to content

Commit

Permalink
Upgrade and audit npm packages (#4457)
Browse files Browse the repository at this point in the history
* Upgrade and audit npm packages

* Go back to mocha 8.4.0

* Fix build, update for new api
  • Loading branch information
jeremy-rifkin committed Dec 18, 2022
1 parent afbdbd6 commit 5ee5386
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 116 deletions.
224 changes: 112 additions & 112 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
Expand Up @@ -53,7 +53,7 @@
"lodash.clonedeep": "^4.5.0",
"lru-cache": "^5.1.1",
"lz-string": "^1.4.4",
"monaco-editor": "^0.32.1",
"monaco-editor": "^0.34.1",
"monaco-vim": "^0.3.4",
"morgan": "^1.10.0",
"node-graceful": "^3.1.0",
Expand Down
7 changes: 4 additions & 3 deletions static/panes/editor.ts
Expand Up @@ -1497,16 +1497,16 @@ export class Editor extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Edit

if (obj.tag.fixes && editorModel) {
fixes = fixes.concat(
obj.tag.fixes.map((fs, ind) => {
obj.tag.fixes.map((fs, ind): monaco.languages.CodeAction => {
return {
title: fs.title,
diagnostics: [diag],
kind: 'quickfix',
edit: {
edits: fs.edits.map(f => {
edits: fs.edits.map((f): monaco.languages.IWorkspaceTextEdit => {
return {
resource: editorModel.uri,
edit: {
textEdit: {
range: new monaco.Range(
f.line ?? 0,
f.column ?? 0,
Expand All @@ -1515,6 +1515,7 @@ export class Editor extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Edit
),
text: f.text,
},
versionId: undefined,
};
}),
},
Expand Down

0 comments on commit 5ee5386

Please sign in to comment.