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 f85627a commit 426a8a5
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 183 deletions.
21 changes: 11 additions & 10 deletions package.json
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"lint": "eslint scripts/ packages/** --fix --ext ts",
"test": "jest",
"style": "pretty-quick",
"style": "prettier --write --loglevel=warn packages/**/*.{js,ts,md,json}",
"build": "lerna run build --parallel",
"docs": "typedoc",
"prepublishOnly": "yarn build",
Expand Down Expand Up @@ -43,20 +43,19 @@
"jest": "^25.2.4",
"jest-circus": "^25.2.4",
"lerna": "^3.20.2",
"lint-staged": "^10.0.9",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"lint-staged": "^10.1.1",
"prettier": "^2.0.2",
"prism-media": "^1.2.1",
"rollup": "^2.2.0",
"rollup": "^2.3.2",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-peer-deps-external": "^2.2.2",
"rollup-plugin-progress": "^1.1.1",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "^0.26.0",
"rollup-plugin-typescript2": "^0.27.0",
"ts-jest": "^25.3.0",
"ts-node": "^8.8.1",
"typedoc": "~0.16.11",
"typedoc": "^0.17.3",
"typedoc-plugin-lerna-packages": "^0.3.0",
"typedoc-plugin-nojekyll": "^1.0.1",
"typescript": "^3.8.3",
Expand All @@ -65,7 +64,7 @@
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "yarn scripts:validateNoOnly && yarn pretty-quick --staged && yarn lint-staged"
"pre-commit": "yarn scripts:validateNoOnly && yarn lint-staged"
}
},
"commitlint": {
Expand All @@ -75,7 +74,8 @@
},
"lint-staged": {
"*.{js,ts}": [
"eslint --fix --ext js,ts"
"eslint --fix --ext js,ts",
"prettier --write"
],
"packages/eslint-config/src/index.ts": [
"yarn scripts:duplicateESLintConfig"
Expand All @@ -88,6 +88,7 @@
},
"resolutions": {
"acorn": "^7.1.1",
"minimist": "^1.2.2"
"minimist": "^1.2.2",
"kind-of": "^6.0.3"
}
}
4 changes: 2 additions & 2 deletions packages/converter/src/converter.ts
Expand Up @@ -53,8 +53,8 @@ export const convert = (

if (!definitionData.name) throw new Error('no_data_found');

const fromData = definitionData.data.find(unit => unit.id === fromUnit);
const toData = definitionData.data.find(unit => unit.id === toUnit);
const fromData = definitionData.data.find((unit) => unit.id === fromUnit);
const toData = definitionData.data.find((unit) => unit.id === toUnit);
if (!fromData) throw new Error('fromUnit_not_supported');
if (!toData) throw new Error('toUnit_not_supported');
if (fromData.uniqueTransform) throw new Error('fromUnit_has_uniqueTransform');
Expand Down
2 changes: 1 addition & 1 deletion packages/querystring/src/querystring.ts
Expand Up @@ -88,7 +88,7 @@ export function stringify(

const keys = Object.keys(obj)
.sort()
.map(key => {
.map((key) => {
const ks = stringifyPrimitive(key, options.encodeUriComponents) + options.equals!;
if (obj[key] === undefined || obj[key] === null) return '';
if (Array.isArray(obj[key])) {
Expand Down
2 changes: 1 addition & 1 deletion packages/unescape/src/unescape.ts
Expand Up @@ -17,7 +17,7 @@ const toRegex = (): RegExp => {
/** TypeGuard to ensure input is an array of only strings */
const isArrayOfOnlyStrings = (array: unknown): array is string[] => {
if (Array.isArray(array)) {
return array.every(val => typeof val === 'string');
return array.every((val) => typeof val === 'string');
}

return false;
Expand Down
4 changes: 2 additions & 2 deletions packages/ytdl-prismplayer/src/index.ts
Expand Up @@ -33,9 +33,9 @@ const filterVorbis = (format: PrismVideoFormat) => format.audioEncoding === 'vor
* @return Best determined format available for the video stream
*/
const nextBestFormat = (formats: PrismVideoFormat[]): PrismVideoFormat => {
formats = formats.filter(format => format.bitrate).sort((a, b) => Number(b.bitrate) - Number(a.bitrate));
formats = formats.filter((format) => format.bitrate).sort((a, b) => Number(b.bitrate) - Number(a.bitrate));

return formats.find(format => !format.bitrate) || formats[0];
return formats.find((format) => !format.bitrate) || formats[0];
};

/**
Expand Down

1 comment on commit 426a8a5

@vercel
Copy link

@vercel vercel bot commented on 426a8a5 Apr 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.