@autoapicom/client 1.0.1 → 1.0.2

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
@@ -19,7 +19,7 @@ npm install @autoapicom/client
19
19
  ```typescript
20
20
  import { Client } from '@autoapicom/client';
21
21
 
22
- const client = new Client('your-api-key');
22
+ const client = new Client('your-api-key', 'https://api1.auto-api.com');
23
23
  ```
24
24
 
25
25
  ### Get filters
package/dist/client.js CHANGED
@@ -4,7 +4,7 @@ export class Client {
4
4
  baseUrl;
5
5
  apiVersion;
6
6
  timeout;
7
- constructor(apiKey, baseUrl = 'https://auto-api.com', apiVersion = 'v2') {
7
+ constructor(apiKey, baseUrl = 'https://api1.auto-api.com', apiVersion = 'v2') {
8
8
  this.apiKey = apiKey;
9
9
  this.baseUrl = baseUrl.replace(/\/+$/, '');
10
10
  this.apiVersion = apiVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoapicom/client",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Auto-api.com client for Node.js — fetch car listings from encar, mobile.de, autoscout24 and 5 other sources",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",