Skip to content

Commit 45c682a

Browse files
add extended response
1 parent 778dd9b commit 45c682a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/structs/2captcha.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ export class Solver {
338338
try {
339339
data = JSON.parse(result)
340340
if (data.status == 1) {
341-
return { data: data.request, id: id }
341+
let dataJSON = { ...data, data: data.request, id: id}
342+
delete dataJSON.request
343+
return dataJSON
342344
}
343345
} catch {
344346
throw new APIError(result)

0 commit comments

Comments
 (0)