Skip to content

Commit

Permalink
chore: upgrade deps 0.5.5
Browse files Browse the repository at this point in the history
Signed-off-by: amitpadmani-awts <[email protected]>
  • Loading branch information
amitpadmani-awts committed Jul 11, 2024
1 parent 5113135 commit 0a64951
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 72 deletions.
12 changes: 6 additions & 6 deletions packages/ssi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"release": "release-it"
},
"dependencies": {
"@credo-ts/anoncreds": "0.5.3",
"@credo-ts/askar": "0.5.3",
"@credo-ts/core": "0.5.3",
"@credo-ts/indy-vdr": "0.5.3",
"@credo-ts/anoncreds": "0.5.5",
"@credo-ts/askar": "0.5.5",
"@credo-ts/core": "0.5.5",
"@credo-ts/indy-vdr": "0.5.5",
"@credo-ts/push-notifications": "0.7.0",
"@credo-ts/question-answer": "0.5.3",
"@credo-ts/question-answer": "0.5.5",
"@credo-ts/react-hooks": "0.6.0",
"@credo-ts/react-native": "0.5.3"
"@credo-ts/react-native": "0.5.5"
},
"peerDependencies": {
"@hyperledger/anoncreds-react-native": "0.2.2",
Expand Down
13 changes: 12 additions & 1 deletion packages/ssi/src/basicMessages/basicMessages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Agent } from '@credo-ts/core'
import type { Agent, BasicMessageRecord, Query } from '@credo-ts/core'

/**
* Sends a basic message to the connection with the given connection id.
Expand All @@ -10,3 +10,14 @@ import type { Agent } from '@credo-ts/core'
export const sendBasicMessage = async (agent: Agent, connectionId: string, message: string) => {
return agent.basicMessages.sendMessage(connectionId, message)
}

/**
* Finds all basic messages that match the given query.
*
* @param agent - The agent instance.
* @param query - The query to match basic messages.
* @returns A promise that resolves to an array of basic message records that match the query.
*/
export const findAllBasicMessageByQuery = async (agent: Agent, query: Query<BasicMessageRecord>) => {
return agent.basicMessages.findAllByQuery(query)
}
Loading

0 comments on commit 0a64951

Please sign in to comment.