@openfn/compiler
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -230,3 +230,6 @@ // src/compile.ts | ||
if (root && n2.CallExpression.check(root.node)) { | ||
const arg = last; | ||
let arg = last; | ||
if (arg.parentPath && n2.CallExpression.check(arg.parentPath.node) && n2.MemberExpression.check(arg.parentPath.node.callee) && arg.parentPath.node.callee.object.name === "state") { | ||
arg = arg.parentPath; | ||
} | ||
if (!isOpenFunction(arg)) { | ||
@@ -233,0 +236,0 @@ const params = b3.identifier("state"); |
{ | ||
"name": "@openfn/compiler", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Compiler and language tooling for openfn jobs.", | ||
@@ -37,4 +37,4 @@ "author": "Open Function Group <admin@openfn.org>", | ||
"recast": "^0.21.5", | ||
"@openfn/logger": "1.0.2", | ||
"@openfn/describe-package": "0.1.3" | ||
"@openfn/describe-package": "0.1.3", | ||
"@openfn/logger": "1.0.2" | ||
}, | ||
@@ -41,0 +41,0 @@ "files": [ |
19211
572