From 512449e1aa667b18d8ca98b6718af420c15a84c5 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 13 May 2024 19:54:12 -0700 Subject: [PATCH] Nick: v21 --- apps/js-sdk/firecrawl/build/index.js | 2 +- apps/js-sdk/firecrawl/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/js-sdk/firecrawl/build/index.js b/apps/js-sdk/firecrawl/build/index.js index 6e0f367..b850d5c 100644 --- a/apps/js-sdk/firecrawl/build/index.js +++ b/apps/js-sdk/firecrawl/build/index.js @@ -240,7 +240,7 @@ export default class FirecrawlApp { * @param {string} action - The action being performed when the error occurred. */ handleError(response, action) { - if ([402, 409, 500].includes(response.status)) { + if ([402, 408, 409, 500].includes(response.status)) { const errorMessage = response.data.error || "Unknown error occurred"; throw new Error(`Failed to ${action}. Status code: ${response.status}. Error: ${errorMessage}`); } diff --git a/apps/js-sdk/firecrawl/package.json b/apps/js-sdk/firecrawl/package.json index 9e1948a..3bacdf4 100644 --- a/apps/js-sdk/firecrawl/package.json +++ b/apps/js-sdk/firecrawl/package.json @@ -1,6 +1,6 @@ { "name": "@mendable/firecrawl-js", - "version": "0.0.20", + "version": "0.0.21", "description": "JavaScript SDK for Firecrawl API", "main": "build/index.js", "types": "types/index.d.ts",