Skip to content

Commit 3cb8df5

Browse files
Merging pull request PipedreamHQ#18382
* add testSources prop * pnpm-lock.yaml * fix
1 parent cef1e1b commit 3cb8df5

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

components/gtmetrix/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/gtmetrix",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream GTmetrix Components",
55
"main": "gtmetrix.app.mjs",
66
"keywords": [
@@ -13,6 +13,6 @@
1313
"access": "public"
1414
},
1515
"dependencies": {
16-
"@pipedream/platform": "^1.5.1"
16+
"@pipedream/platform": "^3.1.0"
1717
}
1818
}

components/gtmetrix/sources/new-test-completed/new-test-completed.mjs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,25 @@ export default {
55
key: "gtmetrix-new-test-completed",
66
name: "New Test Completed",
77
description: "Emit new event when a test is completed in GTMetrix. [See the documentation](https://gtmetrix.com/api/docs/2.0/#api-test-list)",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "source",
1010
dedupe: "unique",
11+
props: {
12+
...common.props,
13+
testSources: {
14+
type: "string[]",
15+
label: "Test Sources",
16+
description: "The test sources to emit events for",
17+
options: [
18+
"api",
19+
"on-demand",
20+
"monitored",
21+
],
22+
default: [
23+
"api",
24+
],
25+
},
26+
},
1127
methods: {
1228
...common.methods,
1329
getResourceFn() {
@@ -19,6 +35,7 @@ export default {
1935
"sort": "-finished",
2036
"filter[state]": "completed",
2137
"filter[finished:gt]": lastTs,
38+
"filter[source]": this.testSources.join(", "),
2239
},
2340
};
2441
},

pnpm-lock.yaml

Lines changed: 5 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)