@mendable/firecrawl-js 4.43.0 → 4.44.0
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/{chunk-HEXXQWYV.js → chunk-BD2TNHAD.js} +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -3
- package/dist/{package-GSILJ5AJ.js → package-WSFVH42J.js} +1 -1
- package/package.json +1 -1
- package/src/v2/client.ts +1 -1
- package/src/v2/methods/browser.ts +3 -0
|
@@ -12,7 +12,7 @@ var require_package = __commonJS({
|
|
|
12
12
|
"package.json"(exports, module) {
|
|
13
13
|
module.exports = {
|
|
14
14
|
name: "@mendable/firecrawl-js",
|
|
15
|
-
version: "4.
|
|
15
|
+
version: "4.44.0",
|
|
16
16
|
description: "JavaScript SDK for the Firecrawl API: web scraping, crawling, web search, and scientific literature search over a research paper index of PubMed, bioRxiv, medRxiv and arXiv abstracts",
|
|
17
17
|
main: "dist/index.js",
|
|
18
18
|
types: "dist/index.d.ts",
|
package/dist/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ var require_package = __commonJS({
|
|
|
39
39
|
"package.json"(exports2, module2) {
|
|
40
40
|
module2.exports = {
|
|
41
41
|
name: "@mendable/firecrawl-js",
|
|
42
|
-
version: "4.
|
|
42
|
+
version: "4.44.0",
|
|
43
43
|
description: "JavaScript SDK for the Firecrawl API: web scraping, crawling, web search, and scientific literature search over a research paper index of PubMed, bioRxiv, medRxiv and arXiv abstracts",
|
|
44
44
|
main: "dist/index.js",
|
|
45
45
|
types: "dist/index.d.ts",
|
|
@@ -1663,6 +1663,7 @@ async function browser(http, args = {}) {
|
|
|
1663
1663
|
if (args.ttl != null) body.ttl = args.ttl;
|
|
1664
1664
|
if (args.activityTtl != null) body.activityTtl = args.activityTtl;
|
|
1665
1665
|
if (args.streamWebView != null) body.streamWebView = args.streamWebView;
|
|
1666
|
+
if (args.blockAds != null) body.blockAds = args.blockAds;
|
|
1666
1667
|
if (args.profile != null) body.profile = args.profile;
|
|
1667
1668
|
if (args.integration != null) body.integration = args.integration;
|
|
1668
1669
|
if (args.origin) body.origin = args.origin;
|
|
@@ -2727,7 +2728,7 @@ var FirecrawlClient = class {
|
|
|
2727
2728
|
// Browser
|
|
2728
2729
|
/**
|
|
2729
2730
|
* Create a new browser session.
|
|
2730
|
-
* @param args Session options (ttl, activityTtl, streamWebView, profile).
|
|
2731
|
+
* @param args Session options (ttl, activityTtl, streamWebView, blockAds, profile).
|
|
2731
2732
|
* @returns Session id, CDP URL, live view URL, and expiration time.
|
|
2732
2733
|
*/
|
|
2733
2734
|
async browser(args = {}) {
|
package/dist/index.d.cts
CHANGED
|
@@ -2105,6 +2105,8 @@ declare function browser(http: HttpClient, args?: {
|
|
|
2105
2105
|
ttl?: number;
|
|
2106
2106
|
activityTtl?: number;
|
|
2107
2107
|
streamWebView?: boolean;
|
|
2108
|
+
/** Block ads, trackers and cookie notices, as in scrape (default true). */
|
|
2109
|
+
blockAds?: boolean;
|
|
2108
2110
|
profile?: {
|
|
2109
2111
|
name: string;
|
|
2110
2112
|
saveChanges?: boolean;
|
|
@@ -2572,7 +2574,7 @@ declare class FirecrawlClient {
|
|
|
2572
2574
|
}): Promise<AgentThreadResponse>;
|
|
2573
2575
|
/**
|
|
2574
2576
|
* Create a new browser session.
|
|
2575
|
-
* @param args Session options (ttl, activityTtl, streamWebView, profile).
|
|
2577
|
+
* @param args Session options (ttl, activityTtl, streamWebView, blockAds, profile).
|
|
2576
2578
|
* @returns Session id, CDP URL, live view URL, and expiration time.
|
|
2577
2579
|
*/
|
|
2578
2580
|
browser(args?: Parameters<typeof browser>[1]): Promise<BrowserCreateResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2105,6 +2105,8 @@ declare function browser(http: HttpClient, args?: {
|
|
|
2105
2105
|
ttl?: number;
|
|
2106
2106
|
activityTtl?: number;
|
|
2107
2107
|
streamWebView?: boolean;
|
|
2108
|
+
/** Block ads, trackers and cookie notices, as in scrape (default true). */
|
|
2109
|
+
blockAds?: boolean;
|
|
2108
2110
|
profile?: {
|
|
2109
2111
|
name: string;
|
|
2110
2112
|
saveChanges?: boolean;
|
|
@@ -2572,7 +2574,7 @@ declare class FirecrawlClient {
|
|
|
2572
2574
|
}): Promise<AgentThreadResponse>;
|
|
2573
2575
|
/**
|
|
2574
2576
|
* Create a new browser session.
|
|
2575
|
-
* @param args Session options (ttl, activityTtl, streamWebView, profile).
|
|
2577
|
+
* @param args Session options (ttl, activityTtl, streamWebView, blockAds, profile).
|
|
2576
2578
|
* @returns Session id, CDP URL, live view URL, and expiration time.
|
|
2577
2579
|
*/
|
|
2578
2580
|
browser(args?: Parameters<typeof browser>[1]): Promise<BrowserCreateResponse>;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_package
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BD2TNHAD.js";
|
|
4
4
|
|
|
5
5
|
// src/v2/utils/httpClient.ts
|
|
6
6
|
import axios from "axios";
|
|
@@ -1531,6 +1531,7 @@ async function browser(http, args = {}) {
|
|
|
1531
1531
|
if (args.ttl != null) body.ttl = args.ttl;
|
|
1532
1532
|
if (args.activityTtl != null) body.activityTtl = args.activityTtl;
|
|
1533
1533
|
if (args.streamWebView != null) body.streamWebView = args.streamWebView;
|
|
1534
|
+
if (args.blockAds != null) body.blockAds = args.blockAds;
|
|
1534
1535
|
if (args.profile != null) body.profile = args.profile;
|
|
1535
1536
|
if (args.integration != null) body.integration = args.integration;
|
|
1536
1537
|
if (args.origin) body.origin = args.origin;
|
|
@@ -2595,7 +2596,7 @@ var FirecrawlClient = class {
|
|
|
2595
2596
|
// Browser
|
|
2596
2597
|
/**
|
|
2597
2598
|
* Create a new browser session.
|
|
2598
|
-
* @param args Session options (ttl, activityTtl, streamWebView, profile).
|
|
2599
|
+
* @param args Session options (ttl, activityTtl, streamWebView, blockAds, profile).
|
|
2599
2600
|
* @returns Session id, CDP URL, live view URL, and expiration time.
|
|
2600
2601
|
*/
|
|
2601
2602
|
async browser(args = {}) {
|
|
@@ -2734,7 +2735,7 @@ var FirecrawlApp = class {
|
|
|
2734
2735
|
if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
|
|
2735
2736
|
return process.env.npm_package_version;
|
|
2736
2737
|
}
|
|
2737
|
-
const packageJson = await import("./package-
|
|
2738
|
+
const packageJson = await import("./package-WSFVH42J.js");
|
|
2738
2739
|
return packageJson.default.version;
|
|
2739
2740
|
} catch (error) {
|
|
2740
2741
|
const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mendable/firecrawl-js",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.44.0",
|
|
4
4
|
"description": "JavaScript SDK for the Firecrawl API: web scraping, crawling, web search, and scientific literature search over a research paper index of PubMed, bioRxiv, medRxiv and arXiv abstracts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
package/src/v2/client.ts
CHANGED
|
@@ -641,7 +641,7 @@ export class FirecrawlClient {
|
|
|
641
641
|
// Browser
|
|
642
642
|
/**
|
|
643
643
|
* Create a new browser session.
|
|
644
|
-
* @param args Session options (ttl, activityTtl, streamWebView, profile).
|
|
644
|
+
* @param args Session options (ttl, activityTtl, streamWebView, blockAds, profile).
|
|
645
645
|
* @returns Session id, CDP URL, live view URL, and expiration time.
|
|
646
646
|
*/
|
|
647
647
|
async browser(
|
|
@@ -16,6 +16,8 @@ export async function browser(
|
|
|
16
16
|
ttl?: number;
|
|
17
17
|
activityTtl?: number;
|
|
18
18
|
streamWebView?: boolean;
|
|
19
|
+
/** Block ads, trackers and cookie notices, as in scrape (default true). */
|
|
20
|
+
blockAds?: boolean;
|
|
19
21
|
profile?: {
|
|
20
22
|
name: string;
|
|
21
23
|
saveChanges?: boolean;
|
|
@@ -28,6 +30,7 @@ export async function browser(
|
|
|
28
30
|
if (args.ttl != null) body.ttl = args.ttl;
|
|
29
31
|
if (args.activityTtl != null) body.activityTtl = args.activityTtl;
|
|
30
32
|
if (args.streamWebView != null) body.streamWebView = args.streamWebView;
|
|
33
|
+
if (args.blockAds != null) body.blockAds = args.blockAds;
|
|
31
34
|
if (args.profile != null) body.profile = args.profile;
|
|
32
35
|
if (args.integration != null) body.integration = args.integration;
|
|
33
36
|
if (args.origin) body.origin = args.origin;
|