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.
- package/dist/{chunk-TVFWAIIZ.js → chunk-WZCSDWB2.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/{package-JE2ZVGM4.js → package-ASYTUOW4.js} +1 -1
- package/package.json +1 -1
- package/src/__tests__/unit/v2/scrape-browser.unit.test.ts +2 -0
- package/src/v2/types.ts +1 -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.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.
|
|
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
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_package
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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);
|
package/package.json
CHANGED
|
@@ -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