@spider-cloud/spider-client 0.0.11 → 0.0.13

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
@@ -25,13 +25,13 @@ Before using the SDK, you will need to provide it with your API key. Obtain an A
25
25
  Here's a basic example to demonstrate how to use the SDK:
26
26
 
27
27
  ```javascript
28
- import Spider from "spider-client";
28
+ import { Spider } from "@spider-cloud/spider-client";
29
29
 
30
30
  // Initialize the SDK with your API key
31
- const app = new Spider("your_api_key");
31
+ const app = new Spider({ apiKey: "YOUR_API_KEY" });
32
32
 
33
33
  // Scrape a URL
34
- const url = "https://spiderwebai.xyz";
34
+ const url = "https://spider.cloud";
35
35
  app
36
36
  .scrapeUrl(url)
37
37
  .then((data) => {
@@ -8,7 +8,7 @@ export interface SpiderConfig {
8
8
  /**
9
9
  * A class to interact with the Spider API.
10
10
  */
11
- export default class Spider {
11
+ export declare class Spider {
12
12
  private apiKey?;
13
13
  /**
14
14
  * Create an instance of Spider.
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Spider = void 0;
3
4
  /**
4
5
  * A class to interact with the Spider API.
5
6
  */
@@ -148,4 +149,4 @@ class Spider {
148
149
  throw new Error(`Failed to ${action}. Status code: ${response.status}.`);
149
150
  }
150
151
  }
151
- exports.default = Spider;
152
+ exports.Spider = Spider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spider-cloud/spider-client",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "A Javascript SDK for Spider Cloud services",
5
5
  "scripts": {
6
6
  "test": "jest",