firecrawl 1.20.0 → 1.20.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 CHANGED
@@ -841,7 +841,7 @@ var FirecrawlApp = class {
841
841
  * @param {string} action - The action being performed when the error occurred.
842
842
  */
843
843
  handleError(response, action) {
844
- if ([400, 402, 408, 409, 500].includes(response.status)) {
844
+ if ([400, 402, 403, 408, 409, 500].includes(response.status)) {
845
845
  const errorMessage = response.data.error || "Unknown error occurred";
846
846
  const details = response.data.details ? ` - ${JSON.stringify(response.data.details)}` : "";
847
847
  throw new FirecrawlError(
package/dist/index.d.cts CHANGED
@@ -97,6 +97,7 @@ type Action = {
97
97
  } | {
98
98
  type: "click";
99
99
  selector: string;
100
+ all?: boolean;
100
101
  } | {
101
102
  type: "screenshot";
102
103
  fullPage?: boolean;
package/dist/index.d.ts CHANGED
@@ -97,6 +97,7 @@ type Action = {
97
97
  } | {
98
98
  type: "click";
99
99
  selector: string;
100
+ all?: boolean;
100
101
  } | {
101
102
  type: "screenshot";
102
103
  fullPage?: boolean;
package/dist/index.js CHANGED
@@ -805,7 +805,7 @@ var FirecrawlApp = class {
805
805
  * @param {string} action - The action being performed when the error occurred.
806
806
  */
807
807
  handleError(response, action) {
808
- if ([400, 402, 408, 409, 500].includes(response.status)) {
808
+ if ([400, 402, 403, 408, 409, 500].includes(response.status)) {
809
809
  const errorMessage = response.data.error || "Unknown error occurred";
810
810
  const details = response.data.details ? ` - ${JSON.stringify(response.data.details)}` : "";
811
811
  throw new FirecrawlError(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firecrawl",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -104,6 +104,7 @@ export type Action = {
104
104
  } | {
105
105
  type: "click",
106
106
  selector: string,
107
+ all?: boolean,
107
108
  } | {
108
109
  type: "screenshot",
109
110
  fullPage?: boolean,
@@ -1388,7 +1389,7 @@ export default class FirecrawlApp {
1388
1389
  * @param {string} action - The action being performed when the error occurred.
1389
1390
  */
1390
1391
  handleError(response: AxiosResponse, action: string): void {
1391
- if ([400, 402, 408, 409, 500].includes(response.status)) {
1392
+ if ([400, 402, 403, 408, 409, 500].includes(response.status)) {
1392
1393
  const errorMessage: string =
1393
1394
  response.data.error || "Unknown error occurred";
1394
1395
  const details = response.data.details ? ` - ${JSON.stringify(response.data.details)}` : '';
package/dump.rdb DELETED
Binary file