Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "fncli", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "cli framework using function signatures", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -47,3 +47,3 @@ const {Parser} = require("acorn") | ||
// function source may be using method shorthand, eg {a(){}}.a.toString() -> 'a() {}' | ||
source = '(function ' + fn.toString().replace(/^async /, '') + ')' | ||
source = '(' + fn.toString().replace(/^(async )?/, '$1function ') + ')' | ||
node = Parser.parse(source, options) | ||
@@ -50,0 +50,0 @@ } |
14482