@mendable/firecrawl-js 0.0.2 → 0.0.5

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/README.md CHANGED
@@ -7,7 +7,7 @@ The Firecrawl JavaScript SDK is a library that allows you to easily scrape and c
7
7
  To install the Firecrawl JavaScript SDK, you can use npm:
8
8
 
9
9
  ```bash
10
- npm install @mendableai/firecrawl-js
10
+ npm install @mendable/firecrawl-js
11
11
  ```
12
12
 
13
13
  ## Usage
@@ -19,7 +19,7 @@ npm install @mendableai/firecrawl-js
19
19
  Here's an example of how to use the SDK with error handling:
20
20
 
21
21
  ```js
22
- import { FirecrawlApp } from '@mendableai/firecrawl-js';
22
+ import { FirecrawlApp } from '@mendable/firecrawl-js';
23
23
 
24
24
  async function main() {
25
25
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mendable/firecrawl-js",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -10,7 +10,7 @@ interface Params {
10
10
  [key: string]: any;
11
11
  }
12
12
 
13
- class FirecrawlApp {
13
+ export default class FirecrawlApp {
14
14
  private apiKey: string;
15
15
 
16
16
  constructor({ apiKey = null }: FirecrawlAppConfig) {
@@ -132,6 +132,4 @@ class FirecrawlApp {
132
132
  throw new Error(`Unexpected error occurred while trying to ${action}. Status code: ${response.status}`);
133
133
  }
134
134
  }
135
- }
136
-
137
- export { FirecrawlApp }
135
+ }