@mendable/firecrawl-js 0.0.14 → 0.0.15

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/build/index.js CHANGED
@@ -65,7 +65,7 @@ export default class FirecrawlApp {
65
65
  * Searches for a query using the Firecrawl API.
66
66
  * @param {string} query - The query to search for.
67
67
  * @param {Params | null} params - Additional parameters for the search request.
68
- * @returns {Promise<ScrapeResponse>} The response from the scrape operation.
68
+ * @returns {Promise<SearchResponse>} The response from the search operation.
69
69
  */
70
70
  search(query_1) {
71
71
  return __awaiter(this, arguments, void 0, function* (query, params = null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mendable/firecrawl-js",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "build/index.js",
6
6
  "types": "types/index.d.ts",
package/src/index.ts CHANGED
@@ -108,9 +108,9 @@ export default class FirecrawlApp {
108
108
  * Searches for a query using the Firecrawl API.
109
109
  * @param {string} query - The query to search for.
110
110
  * @param {Params | null} params - Additional parameters for the search request.
111
- * @returns {Promise<ScrapeResponse>} The response from the scrape operation.
111
+ * @returns {Promise<SearchResponse>} The response from the search operation.
112
112
  */
113
- async search(query: string, params: Params | null = null): Promise<ScrapeResponse> {
113
+ async search(query: string, params: Params | null = null): Promise<SearchResponse> {
114
114
  const headers: AxiosRequestHeaders = {
115
115
  'Content-Type': 'application/json',
116
116
  'Authorization': `Bearer ${this.apiKey}`,
package/types/index.d.ts CHANGED
@@ -67,9 +67,9 @@ export default class FirecrawlApp {
67
67
  * Searches for a query using the Firecrawl API.
68
68
  * @param {string} query - The query to search for.
69
69
  * @param {Params | null} params - Additional parameters for the search request.
70
- * @returns {Promise<ScrapeResponse>} The response from the scrape operation.
70
+ * @returns {Promise<SearchResponse>} The response from the search operation.
71
71
  */
72
- search(query: string, params?: Params | null): Promise<ScrapeResponse>;
72
+ search(query: string, params?: Params | null): Promise<SearchResponse>;
73
73
  /**
74
74
  * Initiates a crawl job for a URL using the Firecrawl API.
75
75
  * @param {string} url - The URL to crawl.