Skip to content

Commit

Permalink
chore(deps): Upgrade dependencies for security alert (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbugh authored Jun 29, 2021
1 parent 94fa8f3 commit ea0d0ad
Show file tree
Hide file tree
Showing 6 changed files with 302 additions and 1,553 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
out
node_modules
.vscode-test
.eslintcache
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

ynpx lint-staged
25 changes: 9 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,42 +65,35 @@
"package": "vsce package",
"pretest": "yarn run lint --fix && rimraf out && yarn run compile ",
"test": "node ./out/test/runTest.js",
"watch": "tsc -watch -p ./"
"watch": "tsc -watch -p ./",
"prepare": "husky install"
},
"devDependencies": {
"@types/color": "^3.0.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "14.x",
"@types/sinon": "^7.0.11",
"@types/sinon": "^10.0.2",
"@types/vscode": "^1.57.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.27.0",
"eslint-config-prettier": "^4.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"glob": "^7.1.7",
"husky": "^2.2.0",
"lint-staged": "^8.1.6",
"mocha": "^8.4.0",
"husky": ">=6",
"lint-staged": ">=10",
"mocha": "^9.0.1",
"prettier": "^2.3.2",
"sinon": "^7.3.2",
"sinon": "^11.1.1",
"typescript": "^4.3.2",
"vsce": "^1.61.0",
"vscode-test": "^1.5.2"
},
"dependencies": {
"color": "^3.1.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix --",
"git add"
]
"*.ts": "eslint --cache --fix"
}
}
4 changes: 1 addition & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import * as vscode from 'vscode';
import * as Color from 'color';

type ConversionCallback = (color: Color) => string;

async function replaceColorText(conversion: ConversionCallback): Promise<boolean> {
async function replaceColorText(conversion: (color: Color) => string): Promise<boolean> {
const editor = vscode.window.activeTextEditor;
if (!editor) {
return false;
Expand Down
Loading

0 comments on commit ea0d0ad

Please sign in to comment.