File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
sources/new-test-completed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 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" : [
1313 "access" : " public"
1414 },
1515 "dependencies" : {
16- "@pipedream/platform" : " ^1.5.1 "
16+ "@pipedream/platform" : " ^3.1.0 "
1717 }
1818}
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments