Skip to content

Commit

Permalink
feat: get keys using show flag (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rooyca committed Oct 20, 2024
1 parent 53326eb commit 06a3b31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "api-request",
"name": "APIRequest",
"version": "1.4.2",
"version": "1.4.3",
"minAppVersion": "0.15.0",
"description": "Fetch data from APIs or other sources. Responses in JSON, MD or HTML directly in your notes.",
"author": "rooyca",
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": "api-request",
"version": "1.4.2",
"version": "1.4.3",
"description": "Fetch data from APIs or other sources. Responses in JSON, MD or HTML directly in your notes.",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ export default class MainAPIR extends Plugin {
} else {
el.createEl("strong", { text: "Error: {..} used on non-array element" });
}
} else if (part === "{gk}") {
Object.keys(current).forEach((key) => {
traverse(key, idx + 1);
});
} else {
const nextParts = part.split('&').map(p => p.trim());
if (nextParts.length > 1) {
Expand Down

0 comments on commit 06a3b31

Please sign in to comment.