@capbypass/sdk 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -62,6 +62,7 @@ interface ClientOptions {
|
|
|
62
62
|
developerKey?: string;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
declare const SDK_VERSION: string;
|
|
65
66
|
/**
|
|
66
67
|
* CapBypass API Client
|
|
67
68
|
*/
|
|
@@ -209,4 +210,4 @@ declare class ParseError extends Error {
|
|
|
209
210
|
constructor(message: string, cause?: Error | undefined);
|
|
210
211
|
}
|
|
211
212
|
|
|
212
|
-
export { AuthenticationError, type BaseTask, CapBypassClient, CapBypassError, type ClientOptions, GatewayError, InsufficientBalanceError, InternalError, NetworkError, ParseError, type PricingItem, type ProxyConfig, RateLimitError, ServerError, SolverError, TaskNotFoundError, type TaskResult, TaskType, type TaskTypeValue, TimeoutError, ValidationError };
|
|
213
|
+
export { AuthenticationError, type BaseTask, CapBypassClient, CapBypassError, type ClientOptions, GatewayError, InsufficientBalanceError, InternalError, NetworkError, ParseError, type PricingItem, type ProxyConfig, RateLimitError, SDK_VERSION, ServerError, SolverError, TaskNotFoundError, type TaskResult, TaskType, type TaskTypeValue, TimeoutError, ValidationError };
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ interface ClientOptions {
|
|
|
62
62
|
developerKey?: string;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
declare const SDK_VERSION: string;
|
|
65
66
|
/**
|
|
66
67
|
* CapBypass API Client
|
|
67
68
|
*/
|
|
@@ -209,4 +210,4 @@ declare class ParseError extends Error {
|
|
|
209
210
|
constructor(message: string, cause?: Error | undefined);
|
|
210
211
|
}
|
|
211
212
|
|
|
212
|
-
export { AuthenticationError, type BaseTask, CapBypassClient, CapBypassError, type ClientOptions, GatewayError, InsufficientBalanceError, InternalError, NetworkError, ParseError, type PricingItem, type ProxyConfig, RateLimitError, ServerError, SolverError, TaskNotFoundError, type TaskResult, TaskType, type TaskTypeValue, TimeoutError, ValidationError };
|
|
213
|
+
export { AuthenticationError, type BaseTask, CapBypassClient, CapBypassError, type ClientOptions, GatewayError, InsufficientBalanceError, InternalError, NetworkError, ParseError, type PricingItem, type ProxyConfig, RateLimitError, SDK_VERSION, ServerError, SolverError, TaskNotFoundError, type TaskResult, TaskType, type TaskTypeValue, TimeoutError, ValidationError };
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
NetworkError: () => NetworkError,
|
|
40
40
|
ParseError: () => ParseError,
|
|
41
41
|
RateLimitError: () => RateLimitError,
|
|
42
|
+
SDK_VERSION: () => SDK_VERSION,
|
|
42
43
|
ServerError: () => ServerError,
|
|
43
44
|
SolverError: () => SolverError,
|
|
44
45
|
TaskNotFoundError: () => TaskNotFoundError,
|
|
@@ -166,7 +167,7 @@ function parseError(errorCode, errorDescription) {
|
|
|
166
167
|
|
|
167
168
|
// src/client.ts
|
|
168
169
|
var DEFAULT_BASE_URL = "https://api.capbypass.pro";
|
|
169
|
-
var SDK_VERSION = "1.0.
|
|
170
|
+
var SDK_VERSION = true ? "1.0.9" : "unknown";
|
|
170
171
|
var USER_AGENT = `capbypass-sdk-typescript/${SDK_VERSION}`;
|
|
171
172
|
var POLL_DELAYS_SECONDS = [1, 1, 1, 2, 2];
|
|
172
173
|
var MAX_POLL_DELAY_SECONDS = 3;
|
|
@@ -416,6 +417,7 @@ var TaskType = {
|
|
|
416
417
|
NetworkError,
|
|
417
418
|
ParseError,
|
|
418
419
|
RateLimitError,
|
|
420
|
+
SDK_VERSION,
|
|
419
421
|
ServerError,
|
|
420
422
|
SolverError,
|
|
421
423
|
TaskNotFoundError,
|
package/dist/index.mjs
CHANGED
|
@@ -116,7 +116,7 @@ function parseError(errorCode, errorDescription) {
|
|
|
116
116
|
|
|
117
117
|
// src/client.ts
|
|
118
118
|
var DEFAULT_BASE_URL = "https://api.capbypass.pro";
|
|
119
|
-
var SDK_VERSION = "1.0.
|
|
119
|
+
var SDK_VERSION = true ? "1.0.9" : "unknown";
|
|
120
120
|
var USER_AGENT = `capbypass-sdk-typescript/${SDK_VERSION}`;
|
|
121
121
|
var POLL_DELAYS_SECONDS = [1, 1, 1, 2, 2];
|
|
122
122
|
var MAX_POLL_DELAY_SECONDS = 3;
|
|
@@ -365,6 +365,7 @@ export {
|
|
|
365
365
|
NetworkError,
|
|
366
366
|
ParseError,
|
|
367
367
|
RateLimitError,
|
|
368
|
+
SDK_VERSION,
|
|
368
369
|
ServerError,
|
|
369
370
|
SolverError,
|
|
370
371
|
TaskNotFoundError,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capbypass/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Official TypeScript/JavaScript SDK for CapBypass CAPTCHA solving service",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "tsup
|
|
19
|
+
"build": "tsup",
|
|
20
20
|
"test": "jest",
|
|
21
21
|
"test:watch": "jest --watch",
|
|
22
22
|
"test:coverage": "jest --coverage",
|