Skip to content

Commit 2321ece

Browse files
committed
chore: upgrade babel deps
1 parent 30e8a92 commit 2321ece

File tree

4 files changed

+3050
-2585
lines changed

4 files changed

+3050
-2585
lines changed

package.json

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,26 @@
9494
},
9595
"homepage": "https://github.com/codemodsquad/asyncify#readme",
9696
"devDependencies": {
97-
"@babel/cli": "^7.1.5",
98-
"@babel/core": "^7.1.6",
99-
"@babel/plugin-proposal-class-properties": "^7.1.0",
100-
"@babel/plugin-proposal-export-default-from": "^7.0.0",
101-
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
102-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
103-
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
104-
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
97+
"@babel/cli": "^7.12.13",
98+
"@babel/core": "^7.12.13",
99+
"@babel/plugin-proposal-class-properties": "^7.12.13",
100+
"@babel/plugin-proposal-export-default-from": "^7.12.13",
101+
"@babel/plugin-proposal-export-namespace-from": "^7.12.13",
102+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.13",
103+
"@babel/plugin-proposal-object-rest-spread": "^7.12.13",
104+
"@babel/plugin-proposal-optional-chaining": "^7.12.13",
105105
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
106-
"@babel/plugin-transform-runtime": "^7.1.0",
107-
"@babel/preset-env": "^7.1.6",
108-
"@babel/preset-typescript": "^7.7.2",
109-
"@babel/register": "^7.0.0",
106+
"@babel/plugin-transform-runtime": "^7.12.15",
107+
"@babel/preset-env": "^7.12.13",
108+
"@babel/preset-typescript": "^7.12.13",
109+
"@babel/register": "^7.12.13",
110110
"@commitlint/cli": "^6.0.2",
111111
"@commitlint/config-conventional": "^6.0.2",
112112
"@jedwards1211/commitlint-config": "^1.0.0",
113113
"@jedwards1211/eslint-config-typescript": "^1.0.0",
114-
"@types/babel__generator": "^7.6.1",
115-
"@types/babel__template": "^7.0.2",
116-
"@types/babel__traverse": "^7.0.10",
114+
"@types/babel__generator": "^7.6.2",
115+
"@types/babel__template": "^7.4.0",
116+
"@types/babel__traverse": "^7.11.0",
117117
"@types/chai": "^4.2.0",
118118
"@types/chai-subset": "^1.3.3",
119119
"@types/chalk": "^2.2.0",
@@ -122,8 +122,7 @@
122122
"@types/mocha": "^5.2.7",
123123
"@types/node": "^13.7.4",
124124
"@types/prettier": "^1.19.0",
125-
"babel-eslint": "^10.0.1",
126-
"babel-plugin-istanbul": "^5.1.0",
125+
"babel-plugin-istanbul": "^6.0.0",
127126
"chai": "^4.2.0",
128127
"chai-subset": "^1.6.0",
129128
"chalk": "^4.0.0",
@@ -150,11 +149,11 @@
150149
"typescript": "^3.7.2"
151150
},
152151
"dependencies": {
153-
"@babel/generator": "^7.9.5",
154-
"@babel/runtime": "^7.1.5",
155-
"@babel/template": "^7.8.6",
156-
"@babel/traverse": "^7.9.5",
157-
"@babel/types": "^7.9.5",
152+
"@babel/generator": "^7.12.15",
153+
"@babel/runtime": "^7.12.13",
154+
"@babel/template": "^7.12.13",
155+
"@babel/traverse": "^7.12.13",
156+
"@babel/types": "^7.12.13",
158157
"recast": "^0.19.0"
159158
},
160159
"renovate": {

src/util/canDefinitelyInvoke.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function canDefinitelyInvoke<T extends t.Node>(
55
expr: NodePath<T>
66
): boolean {
77
if (expr.isIdentifier()) {
8-
let target: NodePath<any> | undefined = expr
8+
let target: NodePath<any> | undefined = expr as NodePath<any>
99
while (target) {
1010
if (target.isIdentifier()) {
1111
const nextTarget: NodePath<any> | undefined = target.scope.getBinding(

src/util/replaceLink.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function findReplaceTarget<T extends t.Node>(link: NodePath<T>): NodePath<any> {
3232
declaration.isVariableDeclaration() &&
3333
declaration.node.declarations.length === 1
3434
) {
35-
return declaration
35+
return declaration as NodePath<any>
3636
}
3737
}
3838
return link
@@ -78,7 +78,10 @@ export default function replaceLink<T extends t.Expression | t.BlockStatement>(
7878
const { parentPath } = link
7979
const target = parentPath.isAwaitExpression() ? parentPath : link
8080
target.replaceWith(awaited(value))
81-
return insertStatementsBefore(target, replacement.node.body) as any
81+
return insertStatementsBefore(
82+
target as NodePath<any>,
83+
replacement.node.body
84+
) as any
8285
}
8386
const target = findReplaceTarget(link)
8487
if (

0 commit comments

Comments
 (0)