@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 CHANGED
@@ -140,6 +140,7 @@ export declare class Spider {
140
140
  prepareHeaders(): {
141
141
  "Content-Type": string;
142
142
  Authorization: string;
143
+ "User-Agent": string;
143
144
  };
144
145
  /**
145
146
  * Handles errors from API requests.
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spider-cloud/spider-client",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "A Javascript SDK for Spider Cloud services",
5
5
  "scripts": {
6
6
  "test": "jest",