Skip to content

Commit 2042d47

Browse files
committed
[Dev Deps] update @babel/parser, babel-cli, babel-core, babel-eslint, babel-jest, babel-polyfill, babel-preset-es2015, babylon, coveralls, eslint, eslint-config-airbnb-base, eslint-plugin-import, jest, rimraf
1 parent c5755ca commit 2042d47

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

__tests__/src/getPropValue-test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
/* eslint-env mocha */
22
/* eslint no-template-curly-in-string: 0 */
33
import assert from 'assert';
4-
import { extractProp, changePlugins, fallbackToBabylon, describeIfNotBabylon } from '../helper';
4+
import {
5+
extractProp,
6+
changePlugins,
7+
fallbackToBabylon,
8+
describeIfNotBabylon,
9+
} from '../helper';
510
import getPropValue from '../../src/getPropValue';
611

712
describe('getPropValue', () => {

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@
1414
"test:watch": "npm test -- --watch"
1515
},
1616
"devDependencies": {
17-
"@babel/parser": "^7.3.2",
18-
"babel-cli": "^6.14.0",
19-
"babel-core": "^6.14.0",
20-
"babel-eslint": "^7.0.0",
21-
"babel-jest": "^20.0.0",
22-
"babel-polyfill": "^6.16.0",
23-
"babel-preset-es2015": "^6.14.0",
24-
"babylon": "^6.17.2",
25-
"coveralls": "^2.11.8",
26-
"eslint": "^3.12.1",
27-
"eslint-config-airbnb-base": "^11.1.0",
28-
"eslint-plugin-import": "^2.2.0",
29-
"jest": "^20.0.0",
17+
"@babel/parser": "^7.4.4",
18+
"babel-cli": "^6.26.0",
19+
"babel-core": "^6.26.3",
20+
"babel-eslint": "^7.2.3",
21+
"babel-jest": "^20.0.3",
22+
"babel-polyfill": "^6.26.0",
23+
"babel-preset-es2015": "^6.24.1",
24+
"babylon": "^6.18.0",
25+
"coveralls": "^2.13.3",
26+
"eslint": "^5.16.0",
27+
"eslint-config-airbnb-base": "^13.1.0",
28+
"eslint-plugin-import": "^2.17.2",
29+
"jest": "^20.0.4",
3030
"jest-cli": "^20.0.4",
31-
"rimraf": "^2.5.2"
31+
"rimraf": "^2.6.3"
3232
},
3333
"engines": {
3434
"node": ">=4.0"

src/values/expressions/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ export default function extract(value) {
7373
let { type } = expression;
7474

7575
while (type === 'TSNonNullExpression' || type === 'TSAsExpression') {
76-
expression = expression.expression;
77-
type = expression.type;
76+
({ expression, type } = expression);
7877
}
7978

8079
if (TYPES[type] === undefined) {

0 commit comments

Comments
 (0)