Skip to content

Commit

Permalink
Bump deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
agrawal-d committed Nov 24, 2023
1 parent 7a344cf commit 348f7a2
Show file tree
Hide file tree
Showing 6 changed files with 5,202 additions and 8,566 deletions.
13,706 changes: 5,175 additions & 8,531 deletions package-lock.json

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,32 +293,32 @@
"test": "jest out/"
},
"devDependencies": {
"@types/jest": "^25.2.3",
"@types/node": "^13.11.0",
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.8",
"@types/vscode": "^1.52.0",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"@types/jest": "^29.5.10",
"@types/node": "^20.9.5",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"@types/vscode": "^1.84.2",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"@vscode/codicons": "^0.0.35",
"copy-webpack-plugin": "^11.0.0",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"jest": "^23.6.0",
"prettier": "2.0.5",
"ts-loader": "^9.4.3",
"typescript": "^3.8.3",
"vscode-codicons": "^0.0.17",
"webpack": "^5.88.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.7.0",
"prettier": "3.1.0",
"ts-loader": "^9.5.1",
"typescript": "^5.3.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"python-shell": "^2.0.2",
"react": "^16.13.1",
"react-autosize-textarea": "^7.0.0",
"react-dom": "^16.13.1"
"python-shell": "^5.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-textarea-autosize": "^8.5.3"
},
"repository": {
"type": "git",
Expand Down
10 changes: 1 addition & 9 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ import { getRetainWebviewContextPref } from './preferences';

let judgeViewProvider: JudgeViewProvider;

declare global {
module NodeJS {
interface Global {
context: vscode.ExtensionContext;
}
}
}

export const getJudgeViewProvider = () => {
return judgeViewProvider;
};
Expand Down Expand Up @@ -76,7 +68,7 @@ const registerCommands = (context: vscode.ExtensionContext) => {
export function activate(context: vscode.ExtensionContext) {
console.log('cph: activate() execution started');

global.context = context;
(globalThis as any).context = context;

const statusBarItem = vscode.window.createStatusBarItem(
vscode.StatusBarAlignment.Left,
Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ export const saveProblem = (srcPath: string, problem: Problem) => {
try {
fs.writeFileSync(probPath, JSON.stringify(problem));
} catch (err) {
throw new Error(err);
throw new Error(err as string);
}
};
2 changes: 1 addition & 1 deletion src/webview/frontend/CaseView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Case, VSToWebViewMessage } from '../../types';
import { useState, createRef, useEffect } from 'react';
import TextareaAutosize from 'react-autosize-textarea/lib';
import TextareaAutosize from 'react-textarea-autosize';
import React from 'react';

export default function CaseView(props: {
Expand Down
4 changes: 2 additions & 2 deletions webpack.frontend.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ const config = {
},
{ from: 'src/webview/frontend/index.html', to: 'index.html' },
{
from: 'node_modules/vscode-codicons/dist/codicon.css',
from: 'node_modules/@vscode/codicons/dist/codicon.css',
to: 'codicon.css',
},
{
from: 'node_modules/vscode-codicons/dist/codicon.ttf',
from: 'node_modules/@vscode/codicons/dist/codicon.ttf',
to: 'codicon.ttf',
},
],
Expand Down

0 comments on commit 348f7a2

Please sign in to comment.