mcpscraper-sdk 0.30.0 → 0.30.1
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.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -189,7 +189,7 @@ var Requester = class {
|
|
|
189
189
|
error: "mcp_request_timeout",
|
|
190
190
|
error_code: "mcp_request_timeout",
|
|
191
191
|
error_type: "timeout",
|
|
192
|
-
message: `
|
|
192
|
+
message: `The client stopped waiting after ${Math.round(this.timeoutMs / 1e3)}s. This does not prove server-side work stopped; use the same Idempotency-Key or poll a returned job before starting a new paid run.`,
|
|
193
193
|
retryable: true
|
|
194
194
|
});
|
|
195
195
|
}
|
|
@@ -457,7 +457,7 @@ var ScraperClient = class {
|
|
|
457
457
|
memoryTools;
|
|
458
458
|
tools;
|
|
459
459
|
constructor(options) {
|
|
460
|
-
const requestTimeoutMs = options.requestTimeoutMs ??
|
|
460
|
+
const requestTimeoutMs = options.requestTimeoutMs ?? 59e4;
|
|
461
461
|
if (!Number.isFinite(requestTimeoutMs) || requestTimeoutMs <= 0) throw new TypeError("requestTimeoutMs must be a positive number");
|
|
462
462
|
this.r = new Requester(options.apiKey, options.baseUrl ?? "https://mcpscraper.dev", options.fetch ?? globalThis.fetch, requestTimeoutMs);
|
|
463
463
|
this.youtube = new YoutubeNamespace(this.r);
|
package/dist/index.d.cts
CHANGED
|
@@ -3484,7 +3484,7 @@ interface ScraperClientOptions {
|
|
|
3484
3484
|
apiKey: string;
|
|
3485
3485
|
baseUrl?: string;
|
|
3486
3486
|
fetch?: typeof globalThis.fetch;
|
|
3487
|
-
/** Bounded HTTP
|
|
3487
|
+
/** Bounded HTTP wait window for every request. Defaults to 590 seconds. */
|
|
3488
3488
|
requestTimeoutMs?: number;
|
|
3489
3489
|
}
|
|
3490
3490
|
interface IdempotentRequestOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -3484,7 +3484,7 @@ interface ScraperClientOptions {
|
|
|
3484
3484
|
apiKey: string;
|
|
3485
3485
|
baseUrl?: string;
|
|
3486
3486
|
fetch?: typeof globalThis.fetch;
|
|
3487
|
-
/** Bounded HTTP
|
|
3487
|
+
/** Bounded HTTP wait window for every request. Defaults to 590 seconds. */
|
|
3488
3488
|
requestTimeoutMs?: number;
|
|
3489
3489
|
}
|
|
3490
3490
|
interface IdempotentRequestOptions {
|
package/dist/index.js
CHANGED
|
@@ -174,7 +174,7 @@ var Requester = class {
|
|
|
174
174
|
error: "mcp_request_timeout",
|
|
175
175
|
error_code: "mcp_request_timeout",
|
|
176
176
|
error_type: "timeout",
|
|
177
|
-
message: `
|
|
177
|
+
message: `The client stopped waiting after ${Math.round(this.timeoutMs / 1e3)}s. This does not prove server-side work stopped; use the same Idempotency-Key or poll a returned job before starting a new paid run.`,
|
|
178
178
|
retryable: true
|
|
179
179
|
});
|
|
180
180
|
}
|
|
@@ -442,7 +442,7 @@ var ScraperClient = class {
|
|
|
442
442
|
memoryTools;
|
|
443
443
|
tools;
|
|
444
444
|
constructor(options) {
|
|
445
|
-
const requestTimeoutMs = options.requestTimeoutMs ??
|
|
445
|
+
const requestTimeoutMs = options.requestTimeoutMs ?? 59e4;
|
|
446
446
|
if (!Number.isFinite(requestTimeoutMs) || requestTimeoutMs <= 0) throw new TypeError("requestTimeoutMs must be a positive number");
|
|
447
447
|
this.r = new Requester(options.apiKey, options.baseUrl ?? "https://mcpscraper.dev", options.fetch ?? globalThis.fetch, requestTimeoutMs);
|
|
448
448
|
this.youtube = new YoutubeNamespace(this.r);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcpscraper-sdk",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "Official Node.js client for all 259 mcpscraper.dev MCP tools and the REST API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"seo-api"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"mcpscraper-memory-sdk": "^0.31.
|
|
35
|
+
"mcpscraper-memory-sdk": "^0.31.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"openapi-typescript": "^7.13.0"
|