Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zennolab_com/capmonstercloud-client",
"version": "2.9.1",
"version": "3.0.0",
"description": "Official JS client library for https://capmonster.cloud/ captcha recognition service",
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/Requests/FunCaptchaRequest/FunCaptchaRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { FunCaptchaRequestBase, FunCaptchaRequestBaseIn } from './FunCaptchaRequ
import { ProxyInfo, ProxyInfoIn } from '../ProxyInfo';

export type FunCaptchaRequestIn = Pick<FunCaptchaRequestBaseIn, Exclude<keyof FunCaptchaRequestBaseIn, 'type'>> & {
proxy: ProxyInfoIn;
proxy: ProxyInfoIn & { proxyLogin: string; proxyPassword: string };
};

/**
* FunCaptcha recognition request.
* Own proxy is required.
* Own proxy is required: proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword.
* {@link https://docs.capmonster.cloud/docs/captchas/funcaptcha-task/}
*/
export class FunCaptchaRequest extends FunCaptchaRequestBase {
Expand Down
4 changes: 4 additions & 0 deletions src/Requests/RequestsSerialization.u.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ describe('Check unit tests for SerializeObject()', () => {
proxyType: 'http',
proxyAddress: '8.8.8.8',
proxyPort: 8080,
proxyLogin: 'login',
proxyPassword: 'password',
},
}),
});
Expand All @@ -194,6 +196,8 @@ describe('Check unit tests for SerializeObject()', () => {
proxyType: 'http',
proxyAddress: '8.8.8.8',
proxyPort: 8080,
proxyLogin: 'login',
proxyPassword: 'password',
},
});
});
Expand Down
Loading