Skip to content

Commit

Permalink
build: upgrade kind-of to fix security vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Apr 1, 2020
1 parent afbbb7f commit 5d81d6a
Show file tree
Hide file tree
Showing 4 changed files with 598 additions and 556 deletions.
31 changes: 16 additions & 15 deletions package.json
Expand Up @@ -9,7 +9,7 @@
"homepage": "https://favware.tech/api",
"scripts": {
"lint": "eslint src scripts __tests__ --ext ts --fix",
"style": "yarn pretty-quick",
"style": "prettier --write --loglevel=warn src/**/*.{ts,json}",
"test": "jest",
"build": "tsc -b src",
"watch": "tsc -b src -w",
Expand Down Expand Up @@ -37,15 +37,15 @@
"@favware/eslint-config": "^3.3.0",
"@favware/ts-config": "^1.1.2",
"@graphql-codegen/cli": "^1.13.1",
"@graphql-codegen/typescript": "^1.13.0",
"@graphql-codegen/typescript-resolvers": "^1.13.0",
"@graphql-codegen/typescript": "^1.13.1",
"@graphql-codegen/typescript-resolvers": "^1.13.1",
"@klasa/timestamp": "^0.0.1",
"@types/express": "^4.17.3",
"@types/express": "^4.17.4",
"@types/glob": "^7.1.1",
"@types/graphql": "^14.5.0",
"@types/graphql-type-json": "^0.3.2",
"@types/jest": "^25.1.4",
"@types/node": "^13.9.1",
"@types/node": "^13.9.8",
"@types/node-fetch": "^2.5.5",
"apollo-server-express": "^2.11.0",
"chalk": "^3.0.0",
Expand All @@ -58,17 +58,16 @@
"glob": "^7.1.6",
"graphql-type-json": "^0.3.1",
"husky": "^4.2.3",
"jest": "^25.1.0",
"jest-circus": "^25.1.0",
"lint-staged": "^10.0.8",
"jest": "^25.2.4",
"jest-circus": "^25.2.4",
"lint-staged": "^10.1.1",
"node-fetch": "^2.6.0",
"nodemon": "^2.0.2",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"prettier": "^2.0.2",
"reflect-metadata": "^0.1.13",
"standard-version": "^7.1.0",
"ts-jest": "^25.2.1",
"ts-node": "^8.6.2",
"ts-jest": "^25.3.0",
"ts-node": "^8.8.1",
"type-graphql": "^0.17.6",
"typescript": "^3.8.3"
},
Expand Down Expand Up @@ -97,7 +96,7 @@
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "yarn scripts:validateNoOnly && pretty-quick --staged && yarn lint-staged",
"pre-commit": "yarn scripts:validateNoOnly && yarn lint-staged",
"post-merge": "yarn scripts:yarnAfterPull"
}
},
Expand All @@ -108,7 +107,8 @@
},
"lint-staged": {
"*.ts": [
"eslint --fix --ext ts"
"eslint --fix --ext ts",
"prettier --write"
]
},
"config": {
Expand All @@ -121,6 +121,7 @@
},
"resolutions": {
"acorn": "^7.1.1",
"minimist": "^1.2.2"
"minimist": "^1.2.2",
"kind-of": "^6.0.3"
}
}
2 changes: 1 addition & 1 deletion src/services/DexService.ts
Expand Up @@ -18,7 +18,7 @@ export default class DexService {
private tiers: Record<string, string>;

public findByNum(@Arg('num') num: number) {
return pokedex.find(poke => poke.num === num);
return pokedex.find((poke) => poke.num === num);
}

public findBySpecies(@Arg('species') species: string) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/util.ts
Expand Up @@ -10,7 +10,7 @@ export default class Util {
* @param str The string to title case
*/
public static toTitleCase(str: string): string {
return str.replace(TOTITLECASE, txt => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
return str.replace(TOTITLECASE, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
}

/**
Expand Down

0 comments on commit 5d81d6a

Please sign in to comment.