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 +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/dump.rdb +0 -0
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
package/dist/index.d.ts
CHANGED
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
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
|