firecrawl 4.27.0 → 4.28.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.
@@ -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.27.0",
15
+ version: "4.28.0",
16
16
  description: "JavaScript SDK for Firecrawl API",
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.27.0",
42
+ version: "4.28.0",
43
43
  description: "JavaScript SDK for Firecrawl API",
44
44
  main: "dist/index.js",
45
45
  types: "dist/index.d.ts",
package/dist/index.d.cts CHANGED
@@ -889,6 +889,7 @@ interface BrowserCreateResponse {
889
889
  }
890
890
  interface BrowserExecuteResponse {
891
891
  success: boolean;
892
+ cdpUrl?: string;
892
893
  liveViewUrl?: string;
893
894
  interactiveLiveViewUrl?: string;
894
895
  output?: string;
package/dist/index.d.ts CHANGED
@@ -889,6 +889,7 @@ interface BrowserCreateResponse {
889
889
  }
890
890
  interface BrowserExecuteResponse {
891
891
  success: boolean;
892
+ cdpUrl?: string;
892
893
  liveViewUrl?: string;
893
894
  interactiveLiveViewUrl?: string;
894
895
  output?: string;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-TVFWAIIZ.js";
3
+ } from "./chunk-WZCSDWB2.js";
4
4
 
5
5
  // src/v2/utils/httpClient.ts
6
6
  import axios from "axios";
@@ -2300,7 +2300,7 @@ var FirecrawlApp = class {
2300
2300
  if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
2301
2301
  return process.env.npm_package_version;
2302
2302
  }
2303
- const packageJson = await import("./package-JE2ZVGM4.js");
2303
+ const packageJson = await import("./package-ASYTUOW4.js");
2304
2304
  return packageJson.default.version;
2305
2305
  } catch (error) {
2306
2306
  const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
@@ -1,4 +1,4 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-TVFWAIIZ.js";
3
+ } from "./chunk-WZCSDWB2.js";
4
4
  export default require_package();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firecrawl",
3
- "version": "4.27.0",
3
+ "version": "4.28.0",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,6 +33,7 @@ describe("JS SDK v2 scrape-browser methods", () => {
33
33
  data: {
34
34
  success: true,
35
35
  output: "Clicked the button",
36
+ cdpUrl: "wss://browser.example.com/cdp",
36
37
  liveViewUrl: "https://live.example.com/view",
37
38
  interactiveLiveViewUrl: "https://live.example.com/interactive",
38
39
  stdout: "",
@@ -52,6 +53,7 @@ describe("JS SDK v2 scrape-browser methods", () => {
52
53
  );
53
54
  expect(response.success).toBe(true);
54
55
  expect(response.output).toBe("Clicked the button");
56
+ expect(response.cdpUrl).toBe("wss://browser.example.com/cdp");
55
57
  expect(response.liveViewUrl).toBe("https://live.example.com/view");
56
58
  expect(response.interactiveLiveViewUrl).toBe(
57
59
  "https://live.example.com/interactive",
package/src/v2/types.ts CHANGED
@@ -1115,6 +1115,7 @@ export interface BrowserCreateResponse {
1115
1115
 
1116
1116
  export interface BrowserExecuteResponse {
1117
1117
  success: boolean;
1118
+ cdpUrl?: string;
1118
1119
  liveViewUrl?: string;
1119
1120
  interactiveLiveViewUrl?: string;
1120
1121
  output?: string;