@sharpapi/sharpapi-node-web-scraping 1.0.0 → 1.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharpapi/sharpapi-node-web-scraping",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "SharpAPI.com Node.js SDK for Web Scraping API",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -20,7 +20,7 @@
20
20
  "author": "Dawid Makowski <contact@sharpapi.com>",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@sharpapi/sharpapi-node-core": "file:../sharpapi-node-core"
23
+ "@sharpapi/sharpapi-node-core": "^1.0.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "jest": "^29.7.0"
@@ -4,6 +4,15 @@ const { SharpApiCoreService } = require('@sharpapi/sharpapi-node-core');
4
4
  * Service for accessing Web Scraping API using SharpAPI.com
5
5
  */
6
6
  class SharpApiWebScrapingService extends SharpApiCoreService {
7
+ /**
8
+ * Creates a new SharpApiWebScrapingService instance
9
+ * @param {string} apiKey - Your SharpAPI API key
10
+ * @param {string} [apiBaseUrl='https://sharpapi.com/api/v1'] - API base URL
11
+ */
12
+ constructor(apiKey, apiBaseUrl = 'https://sharpapi.com/api/v1') {
13
+ super(apiKey, apiBaseUrl, '@sharpapi/sharpapi-node-web-scraping/1.0.1');
14
+ }
15
+
7
16
  /**
8
17
  * Scrape a webpage URL and extract its content (synchronous endpoint)
9
18
  *