@pipedream/todoist 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ export default {
4
4
  key: "todoist-search-tasks",
5
5
  name: "Search Tasks",
6
6
  description: "Search tasks by name, label, project and/or section. [See Docs](https://developer.todoist.com/rest/v2/#get-active-tasks)",
7
- version: "0.0.1",
7
+ version: "0.0.2",
8
8
  type: "action",
9
9
  props: {
10
10
  todoist,
@@ -21,7 +21,7 @@ export default {
21
21
  ],
22
22
  type: "string",
23
23
  label: "Label",
24
- description: "Select a label to filter results by"
24
+ description: "Select a label to filter results by",
25
25
  },
26
26
  project: {
27
27
  propDefinition: [
@@ -39,7 +39,7 @@ export default {
39
39
  ],
40
40
  },
41
41
  },
42
- async run ({ $ }) {
42
+ async run({ $ }) {
43
43
  const {
44
44
  name,
45
45
  label,
@@ -54,7 +54,9 @@ export default {
54
54
  section_id: section,
55
55
  },
56
56
  });
57
- let result = name ? tasks.filter((task) => task.content.includes(name)) : tasks;
57
+ let result = name
58
+ ? tasks.filter((task) => task.content.includes(name))
59
+ : tasks;
58
60
  let summary = `${result.length} task${result.length == 1
59
61
  ? ""
60
62
  : "s"} found`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/todoist",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Pipedream Todoist Components",
5
5
  "main": "todoist.app.mjs",
6
6
  "keywords": [