inline-loops.macro
Advanced tools
Comparing version 2.0.0 to 2.0.1
## CHANGELOG | ||
# 2.0.1 | ||
- [#32](https://github.com/planttheidea/inline-loops.macro/pull/32) - Fix `forEach*` methods not including the hoisted function call | ||
# 2.0.0 | ||
@@ -4,0 +8,0 @@ |
@@ -89,3 +89,6 @@ "use strict"; | ||
var _returned = t.callExpression(localFnName, (0, _utils.getCachedFnArgs)(local, isReduce)); | ||
return { | ||
return isForEach ? { | ||
injectedBody: [t.expressionStatement(_returned)], | ||
returned: undefined | ||
} : { | ||
injectedBody: [], | ||
@@ -92,0 +95,0 @@ returned: _returned |
@@ -61,3 +61,3 @@ { | ||
"typings": "./index.d.ts", | ||
"version": "2.0.0" | ||
"version": "2.0.1" | ||
} |
68989
1275