@spider-cloud/spider-client 0.0.24 → 0.0.26
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/dist/client.d.ts +1 -0
- package/dist/client.js +2 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
package/dist/client.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Spider = void 0;
|
|
4
|
+
const package_json_1 = require("../package.json");
|
|
4
5
|
/**
|
|
5
6
|
* A class to interact with the Spider API.
|
|
6
7
|
*/
|
|
@@ -201,6 +202,7 @@ class Spider {
|
|
|
201
202
|
return {
|
|
202
203
|
"Content-Type": "application/json",
|
|
203
204
|
Authorization: `Bearer ${this.apiKey}`,
|
|
205
|
+
"User-Agent": `Spider-Client/${package_json_1.version}`,
|
|
204
206
|
};
|
|
205
207
|
}
|
|
206
208
|
/**
|