Skip to content

Commit

Permalink
fix bug and update 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Hananoshika Yomaru committed Oct 4, 2023
1 parent 12f117d commit fd0f37f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "run",
"name": "Run",
"version": "1.0.4",
"version": "1.0.5",
"minAppVersion": "0.15.0",
"description": "Generate markdown from dataview query and javascript",
"author": "Hananoshika Yomaru",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-run",
"version": "1.0.4",
"version": "1.0.5",
"description": "Generate markdown from dataview query and javascript",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/evalFromExpression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ export function evalFromExpression(
result: Primitive | Promise<Primitive>;
} {
try {
console.log(parse);
const ast = parse(expression, {
parser: require("recast/parsers/babel"),
});

const func = new (
JSON.stringify(ast.program.body[0])?.includes("AwaitExpression")
JSON.stringify(ast.program.body)?.includes("AwaitExpression")
? AsyncFunction
: Function
)(
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"1.0.0": "0.15.0",
"1.0.1": "0.15.0",
"1.0.3": "0.15.0",
"1.0.4": "0.15.0"
"1.0.4": "0.15.0",
"1.0.5": "0.15.0"
}

0 comments on commit fd0f37f

Please sign in to comment.