@autoapicom/client 1.0.1 → 1.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 +1 -1
- package/dist/client.js +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
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.
|
|
3
|
+
"version": "1.0.5",
|
|
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",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "tsc",
|
|
22
|
+
"test": "vitest run",
|
|
22
23
|
"prepublishOnly": "tsc"
|
|
23
24
|
},
|
|
24
25
|
"keywords": [
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"author": "AUTO-API.COM <access@auto-api.com>",
|
|
49
50
|
"license": "MIT",
|
|
50
51
|
"devDependencies": {
|
|
51
|
-
"typescript": "^5.0.0"
|
|
52
|
+
"typescript": "^5.0.0",
|
|
53
|
+
"vitest": "^3.0.0"
|
|
52
54
|
}
|
|
53
55
|
}
|