File tree Expand file tree Collapse file tree 5 files changed +15
-11
lines changed
Expand file tree Collapse file tree 5 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export default {
44 key : "e2b-run-code" ,
55 name : "Run Code" ,
66 description : "Run or interpret code using the E2B service. [See the documentation](https://www.npmjs.com/package/e2b)." ,
7- version : "0.0.4 " ,
7+ version : "0.0.5 " ,
88 annotations : {
99 destructiveHint : false ,
1010 openWorldHint : true ,
Original file line number Diff line number Diff line change 1- import { Sandbox } from "@e2b/code-interpreter" ;
1+ import { Sandbox } from "@e2b/code-interpreter@1.0.3 " ;
22
33export default {
44 type : "app" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @pipedream/e2b" ,
3- "version" : " 0.1.2 " ,
3+ "version" : " 0.1.3 " ,
44 "description" : " Pipedream E2B Components" ,
55 "main" : " e2b.app.mjs" ,
66 "keywords" : [
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export default {
55 name : "List Messages" ,
66 description : "Lists all messages in a conversation. [See the documentation](https://developers.freshchat.com/api/#list_messages)" ,
77 type : "action" ,
8- version : "0.0.2 " ,
8+ version : "0.0.3 " ,
99 annotations : {
1010 destructiveHint : false ,
1111 openWorldHint : true ,
@@ -54,15 +54,19 @@ export default {
5454 args : {
5555 $,
5656 conversationId,
57- params : {
58- from_time : fromTime ,
59- } ,
6057 } ,
6158 resourceKey : "messages" ,
62- max : maxResults ,
6359 } ) ;
6460
65- $ . export ( "$summary" , `Listed ${ response . length } message(s)` ) ;
66- return response ;
61+ let messages = response . reverse ( ) ;
62+ if ( fromTime ) {
63+ messages = messages . filter ( ( { created_time : ts } ) => Date . parse ( ts ) > Date . parse ( fromTime ) ) ;
64+ }
65+ if ( maxResults ) {
66+ messages = messages . slice ( 0 , maxResults ) ;
67+ }
68+
69+ $ . export ( "$summary" , `Listed ${ messages . length } message(s)` ) ;
70+ return messages ;
6771 } ,
6872} ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @pipedream/freshchat" ,
3- "version" : " 0.3.0 " ,
3+ "version" : " 0.3.1 " ,
44 "description" : " Pipedream Freshchat Components" ,
55 "main" : " freshchat.app.mjs" ,
66 "keywords" : [
You can’t perform that action at this time.
0 commit comments