Skip to content

Commit e6db64b

Browse files
committed
chore: format, version and docs
1 parent 08e94a5 commit e6db64b

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nevermined-io/payments",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "Typescript SDK to interact with the Nevermined Payments Protocol",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/api/nvm-backend.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ export class NVMBackendApi {
163163
throw new Error('Unable to subscribe to the server becase a key was not provided')
164164

165165
if (this.isWebSocketConnected()) {
166-
console.log(
167-
`_connectInternalSocketClient:: Already connected to the websocket server with id ${this.socketClient.id}`,
168-
)
166+
// `_connectInternalSocketClient:: Already connected to the websocket server with id ${this.socketClient.id}`,
169167
return
170168
}
171169

@@ -186,9 +184,6 @@ export class NVMBackendApi {
186184
) {
187185
try {
188186
// nvm-backend:: Connecting to websocket server: ${this.opts.webSocketHost}
189-
console.log(
190-
`nvm-backend:: Connecting to websocket server: ${JSON.stringify(this.opts.webSocketOptions)}`,
191-
)
192187
this._connectInternalSocketClient()
193188

194189
await this.socketClient.on('_connected', async () => {
@@ -207,22 +202,17 @@ export class NVMBackendApi {
207202
throw new Error('No task rooms to join in configuration')
208203
}
209204

210-
console.log(
211-
`connectTasksSocket:: Connecting to websocket server: ${JSON.stringify(this.opts.webSocketOptions)}`,
212-
)
213205
this._connectInternalSocketClient()
214206

215-
console.log(`connectTasksSocket:: Is connected? ${this.isWebSocketConnected()}`)
207+
// `connectTasksSocket:: Is connected? ${this.isWebSocketConnected()}`
216208

217209
await this.socketClient.on('_connected', async () => {
218-
console.log(`connectTasksSocket:: Joining tasks: ${JSON.stringify(tasks)}`)
210+
// `connectTasksSocket:: Joining tasks: ${JSON.stringify(tasks)}`
219211
await this.socketClient.emit('_join-tasks', JSON.stringify({ tasks }))
220212
await this.socketClient.on('task-log', (data: any) => {
221213
_callback(data)
222214
})
223215
})
224-
225-
console.log(`connectTasksSocket:: ending`)
226216
} catch (error) {
227217
throw new PaymentsError(
228218
`Unable to initialize websocket client: ${this.opts.webSocketHost} - ${(error as Error).message}`,

src/api/query-api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export class AIQueryApi extends NVMBackendApi {
137137
* @param did - Agent DID
138138
* @param task - Task object. The task object should contain the query to execute and the name of the task. All the attributes here: @see https://docs.nevermined.io/docs/protocol/query-protocol#tasks-attributes
139139
* @param queryOpts - The query options @see {@link Payments.getServiceAccessConfig}
140+
* @param _callback - The callback to execute when a new task log event is received (optional)
140141
* @returns The result of the operation
141142
*/
142143
async createTask(

0 commit comments

Comments
 (0)