Skip to content

Commit 000ce0a

Browse files
committed
chore: Upgrade dependencies
1 parent 1a13d7d commit 000ce0a

File tree

3 files changed

+1299
-1728
lines changed

3 files changed

+1299
-1728
lines changed

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"main": "dist/main.js",
2222
"scripts": {
2323
"build": "rimraf dist/ && babel src/ --out-dir dist/ --ignore **/__tests__,**/__mocks__,**/src/types.js",
24-
"build:website":"cd website/ && yarn && yarn build",
24+
"build:website": "cd website/ && yarn && yarn build",
2525
"lint": "eslint . --report-unused-disable-directives",
2626
"fix": "eslint . --fix --report-unused-disable-directives",
2727
"prepublish": "yarn build",
@@ -42,9 +42,9 @@
4242
"@babel/runtime": "^7.0.0",
4343
"async": "^2.1.4",
4444
"commander": "^2.19.0",
45-
"doctrine": "^2.0.0",
45+
"doctrine": "^3.0.0",
4646
"node-dir": "^0.1.10",
47-
"recast": "^0.16.0"
47+
"recast": "^0.17.3"
4848
},
4949
"devDependencies": {
5050
"@babel/cli": "^7.0.0",
@@ -53,23 +53,24 @@
5353
"@babel/plugin-transform-runtime": "^7.0.0",
5454
"@babel/preset-env": "^7.0.0",
5555
"@babel/preset-flow": "^7.0.0",
56-
"babel-core": "^7.0.0-bridge.0",
5756
"babel-eslint": "^10.0.1",
58-
"babel-jest": "^23.6.0",
57+
"babel-jest": "^24.1.0",
5958
"cross-spawn": "^6.0.4",
6059
"eslint": "^5.7.0",
61-
"eslint-config-prettier": "^3.1.0",
60+
"eslint-config-prettier": "^4.0.0",
6261
"eslint-plugin-prettier": "^3.0.0",
6362
"flow-bin": "^0.93.0",
64-
"jest": "^23.6.0",
65-
"jest-diff": "^23.6.0",
66-
"jest-matcher-utils": "^23.6.0",
63+
"jest": "^24.1.0",
64+
"jest-diff": "^24.0.0",
65+
"jest-matcher-utils": "^24.0.0",
6766
"prettier": "^1.14.3",
6867
"rimraf": "^2.3.2",
69-
"temp": "^0.8.1"
68+
"temp": "^0.9.0"
7069
},
7170
"jest": {
72-
"setupTestFrameworkScriptFile": "<rootDir>/tests/setupTestFramework.js",
71+
"setupFilesAfterEnv": [
72+
"<rootDir>/tests/setupTestFramework.js"
73+
],
7374
"roots": [
7475
"bin",
7576
"src"

src/utils/parseJsDoc.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,16 @@ function getParamsJsDoc(jsDoc) {
9191
if (!jsDoc.tags) {
9292
return [];
9393
}
94-
return jsDoc.tags.filter(tag => tag.title === 'param').map(tag => {
95-
return {
96-
name: tag.name,
97-
description: tag.description,
98-
type: getType(tag.type),
99-
optional: getOptional(tag),
100-
};
101-
});
94+
return jsDoc.tags
95+
.filter(tag => tag.title === 'param')
96+
.map(tag => {
97+
return {
98+
name: tag.name,
99+
description: tag.description,
100+
type: getType(tag.type),
101+
optional: getOptional(tag),
102+
};
103+
});
102104
}
103105

104106
export default function parseJsDoc(docblock: string): JsDoc {

0 commit comments

Comments
 (0)