@localisprimary/esi 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
@@ -1,6 +1,6 @@
1
1
  # @localisprimary/esi
2
2
 
3
- A slightly opinionated TypeScript client library for the EVE Online ESI (EVE Swagger Interface) API.
3
+ A slightly opinionated TypeScript client for the [EVE Online API](https://developers.eveonline.com/api-explorer).
4
4
 
5
5
  ## Usage
6
6
 
@@ -42,7 +42,7 @@ All methods are fully typed: `getAlliance` will take `GetAllianceParams` and ret
42
42
  ```typescript
43
43
  const esi = new EsiClient({ token: 'bearer-token' })
44
44
 
45
- // https://esi.evetech.net/characters/{character_id}/mail
45
+ // POST https://esi.evetech.net/characters/{character_id}/mail
46
46
  esi.postCharacterMail({
47
47
  // character_id path parameter
48
48
  character_id: 91884358,
package/dist/client.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EsiClient = void 0;
4
- class EsiClient {
1
+ export class EsiClient {
5
2
  constructor(options = {}) {
6
3
  this.baseUrl = 'https://esi.evetech.net';
7
4
  this.token = options.token;
@@ -2073,5 +2070,4 @@ class EsiClient {
2073
2070
  return this.request('GET', path, queryParams, undefined);
2074
2071
  }
2075
2072
  }
2076
- exports.EsiClient = EsiClient;
2077
- exports.default = EsiClient;
2073
+ export default EsiClient;
package/dist/index.js CHANGED
@@ -1,20 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.EsiClient = void 0;
18
- var client_1 = require("./client");
19
- Object.defineProperty(exports, "EsiClient", { enumerable: true, get: function () { return client_1.EsiClient; } });
20
- __exportStar(require("./types"), exports);
1
+ export { EsiClient } from './client';
2
+ export * from './types';
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export interface EsiResponse<T> {
2
- data: T;
1
+ export interface EsiResponse<TData> {
2
+ data: TData;
3
3
  status: number;
4
4
  headers: Record<string, string>;
5
5
  }
package/dist/types.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/package.json CHANGED
@@ -1,11 +1,24 @@
1
1
  {
2
2
  "name": "@localisprimary/esi",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
- "description": "Auto-generated TypeScript client for EVE Online ESI API",
5
+ "description": "Auto-generated TypeScript client for the EVE Online API",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "sideEffects": false,
9
+ "scripts": {
10
+ "fetch-schema": "node scripts/fetch-schema.ts",
11
+ "generate": "node scripts/generate.ts && pnpm lint:fix",
12
+ "build": "rimraf dist && tsc",
13
+ "compile": "pnpm fetch-schema && pnpm generate && pnpm build",
14
+ "lint": "eslint src",
15
+ "lint:fix": "eslint src --fix",
16
+ "test": "vitest run",
17
+ "change": "beachball change"
18
+ },
19
+ "beacball": {
20
+ "access": "public"
21
+ },
9
22
  "keywords": [
10
23
  "eve",
11
24
  "eve online",
@@ -15,6 +28,7 @@
15
28
  "typescript"
16
29
  ],
17
30
  "author": "Adam Trager <hello@adamtrager.com>",
31
+ "funding": "https://buymeacoffee.com/nfinished",
18
32
  "repository": {
19
33
  "type": "git",
20
34
  "url": "https://github.com/localisprimary/esi.git"
@@ -41,14 +55,5 @@
41
55
  "engines": {
42
56
  "node": "^24.4.1"
43
57
  },
44
- "scripts": {
45
- "fetch-schema": "node scripts/fetch-schema.ts",
46
- "generate": "node scripts/generate.ts && pnpm lint:fix",
47
- "build": "rimraf dist && tsc",
48
- "compile": "pnpm fetch-schema && pnpm generate && pnpm build",
49
- "lint": "eslint src",
50
- "lint:fix": "eslint src --fix",
51
- "test": "vitest run",
52
- "change": "beachball change"
53
- }
54
- }
58
+ "packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad"
59
+ }