@localisprimary/esi 1.3.2 → 2.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/README.md CHANGED
@@ -27,14 +27,12 @@ console.log(alliance.data)
27
27
 
28
28
  ## Options
29
29
 
30
- The `EsiClient` constructor accepts an options object with the following properties:
30
+ The `EsiClient` constructor requires an options object with the following properties:
31
31
  | Parameter | Description | Type | Default | Required |
32
32
  |-----------|-------------|------|---------|----------|
33
- | `token` | Optional auth token for requests | `string` | `undefined` | No |
34
- | `userAgent` | User agent string for requests. Resolves to `"localisprimary/esi <userAgent>"` | `string` | `undefined` | No* |
35
- | `useRequestHeaders` | When false, fall back to query parameters for user agent and token | `boolean` | `true` | No |
36
-
37
- <small>* Will be required in a future version.</small>
33
+ | `userAgent` | Resolves to `"localisprimary/esi <userAgent>"` | `string` | | Yes |
34
+ | `token` | Optional auth token | `string` | `undefined` | No |
35
+ | `useRequestHeaders` | If false, use query parameters for userAgent and token | `boolean` | `true` | No |
38
36
 
39
37
  ## Methods
40
38
 
package/dist/client.d.ts CHANGED
@@ -4,9 +4,9 @@ export declare class EsiClient {
4
4
  private readonly userAgent;
5
5
  private readonly token?;
6
6
  private readonly useRequestHeaders;
7
- constructor(options?: {
7
+ constructor(options: {
8
+ userAgent: string;
8
9
  token?: string;
9
- userAgent?: string;
10
10
  useRequestHeaders?: boolean;
11
11
  });
12
12
  private request;
package/dist/client.js CHANGED
@@ -1,6 +1,6 @@
1
- const COMPATIBILITY_DATE = '2025-09-10';
1
+ const COMPATIBILITY_DATE = '2025-09-19';
2
2
  export class EsiClient {
3
- constructor(options = {}) {
3
+ constructor(options) {
4
4
  this.baseUrl = 'https://esi.evetech.net';
5
5
  this.userAgent = 'localisprimary/esi';
6
6
  this.token = options.token;
@@ -9,7 +9,7 @@ export class EsiClient {
9
9
  this.userAgent += ` ${options.userAgent}`;
10
10
  }
11
11
  else {
12
- console.warn('@localisprimary/esi: No user agent provided in constructor. This will be required in a future release.');
12
+ throw new Error('@localisprimary/esi: No user agent provided to constructor');
13
13
  }
14
14
  }
15
15
  async request(method, path, params, body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localisprimary/esi",
3
- "version": "1.3.2",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "description": "Auto-generated TypeScript client for the EVE Online API",
6
6
  "main": "dist/index.js",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "license": "ISC",
34
34
  "devDependencies": {
35
- "@types/node": "^24.3.1",
36
- "@typescript-eslint/eslint-plugin": "^8.43.0",
37
- "@typescript-eslint/parser": "^8.43.0",
35
+ "@types/node": "^24.5.0",
36
+ "@typescript-eslint/eslint-plugin": "^8.44.0",
37
+ "@typescript-eslint/parser": "^8.44.0",
38
38
  "@vitest/ui": "^3.2.4",
39
39
  "beachball": "^2.55.1",
40
40
  "camelcase": "^8.0.0",
@@ -52,5 +52,5 @@
52
52
  "engines": {
53
53
  "node": "^24.4.1"
54
54
  },
55
- "packageManager": "pnpm@10.15.1+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67"
55
+ "packageManager": "pnpm@10.16.1+sha512.0e155aa2629db8672b49e8475da6226aa4bdea85fdcdfdc15350874946d4f3c91faaf64cbdc4a5d1ab8002f473d5c3fcedcd197989cf0390f9badd3c04678706"
56
56
  }