@spider-cloud/spider-client 0.0.16 → 0.0.18

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,9 +25,7 @@ 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 pkg from '@spider-cloud/spider-client';
29
-
30
- const { default: Spider } = pkg;
28
+ import { Spider } from '@spider-cloud/spider-client';
31
29
 
32
30
  // Initialize the SDK with your API key
33
31
  const app = new Spider({ apiKey: "YOUR_API_KEY" });
@@ -7,7 +7,7 @@ export interface SpiderConfig {
7
7
  /**
8
8
  * A class to interact with the Spider API.
9
9
  */
10
- export default class Spider {
10
+ export declare class Spider {
11
11
  private apiKey?;
12
12
  /**
13
13
  * 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
  */
@@ -149,4 +150,4 @@ class Spider {
149
150
  throw new Error(`Failed to ${action}. Status code: ${response.status}.`);
150
151
  }
151
152
  }
152
- exports.default = Spider;
153
+ exports.Spider = Spider;
@@ -0,0 +1,2 @@
1
+ import { Spider } from "./client";
2
+ export { Spider };
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Spider = void 0;
4
+ const client_1 = require("./client");
5
+ Object.defineProperty(exports, "Spider", { enumerable: true, get: function () { return client_1.Spider; } });
package/package.json CHANGED
@@ -1,22 +1,23 @@
1
1
  {
2
2
  "name": "@spider-cloud/spider-client",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "A Javascript SDK for Spider Cloud services",
5
5
  "scripts": {
6
6
  "test": "jest",
7
7
  "build": "tsc",
8
8
  "prepublishOnly": "npm test && npm run build"
9
9
  },
10
- "main": "dist/spiderwebai.js",
11
- "types": "dist/spiderwebai.d.ts",
10
+ "main": "dist/index.js",
11
+ "types": "dist/client.d.ts",
12
12
  "files": [
13
13
  "dist/**/*"
14
14
  ],
15
15
  "keywords": [
16
- "spiderwebai",
16
+ "spider",
17
17
  "sdk",
18
18
  "web scraping",
19
- "api"
19
+ "api",
20
+ "llm scraping"
20
21
  ],
21
22
  "author": "Jeff Mendez<jeff@a11ywatch.com>",
22
23
  "license": "MIT",