eve-esi-types 2.2.6 → 2.3.0
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 +25 -0
- package/lib/request-api.d.mts +27 -0
- package/lib/request-api.mjs +76 -0
- package/{rq-util.d.mts → lib/rq-util.d.mts} +2 -1
- package/{rq-util.mjs → lib/rq-util.mjs} +3 -2
- package/lib/tagged-request-api.d.mts +29 -0
- package/lib/tagged-request-api.mjs +69 -0
- package/minimal-rq.d.mts +1 -29
- package/minimal-rq.mjs +5 -48
- package/package.json +4 -2
- package/tagged-rq.d.mts +1 -0
- package/tagged-rq.mjs +22 -0
- package/tsconfig.json +2 -2
- package/v2/esi-tagged-types.d.ts +148 -0
- package/v2/get_characters_character_id_skillqueue_ok.d.ts +1 -1
- package/v2/index.d.ts +8 -8
- package/v2/response-map.d.ts +207 -7
- package/v2/types-index.d.ts +2 -2
- package/v2.d.mts +1 -1
- package/v2.mjs +5 -3
package/v2/types-index.d.ts
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* THIS
|
|
9
|
+
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/types-index.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 2.
|
|
12
|
+
* @summary This file is auto-generated and defines version 2.3.0 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import "./get_wars_ok.d.ts";
|
|
15
15
|
import "./get_status_ok.d.ts";
|
package/v2.d.mts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
7
7
|
*/
|
|
8
8
|
import type { TESIResponseOKMap } from "./v2";
|
|
9
|
-
import { type ESIRequestOptions } from "./rq-util.mjs";
|
|
9
|
+
import { type ESIRequestOptions } from "./lib/rq-util.mjs";
|
|
10
10
|
/**
|
|
11
11
|
* fire ESI request
|
|
12
12
|
* @template {TESIEntryMethod} M
|
package/v2.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// import type { TESIResponseOKMap } from "eve-esi-types";
|
|
2
|
-
import { curl, fetchP, replaceCbt, getSDEVersion, ESIRequesError, initOptions, isDebug, ESIErrorLimitReachedError, fireRequestsDoesNotRequireAuth } from "./rq-util.mjs";
|
|
2
|
+
import { is, curl, fetchP, replaceCbt, getSDEVersion, ESIRequesError, initOptions, isDebug, ESIErrorLimitReachedError, fireRequestsDoesNotRequireAuth } from "./lib/rq-util.mjs";
|
|
3
3
|
// - - - - - - - - - - - - - - - - - - - -
|
|
4
4
|
// constants, types
|
|
5
5
|
// - - - - - - - - - - - - - - - - - - - -
|
|
@@ -12,7 +12,7 @@ const isArray = Array.isArray;
|
|
|
12
12
|
let LOG = isDebug();
|
|
13
13
|
/**
|
|
14
14
|
* @typedef {import("./v2").TESIResponseOKMap} TESIResponseOKMap
|
|
15
|
-
* @typedef {import("./rq-util.mjs").ESIRequestOptions} ESIRequestOptions
|
|
15
|
+
* @typedef {import("./lib/rq-util.mjs").ESIRequestOptions} ESIRequestOptions
|
|
16
16
|
*/
|
|
17
17
|
// - - - - - - - - - - - - - - - - - - - -
|
|
18
18
|
// module vars, functions
|
|
@@ -125,7 +125,9 @@ async function getEVEStatus(fn) {
|
|
|
125
125
|
// type following and run
|
|
126
126
|
// node v2.mjs
|
|
127
127
|
// or yarn test
|
|
128
|
-
|
|
128
|
+
if (!is("x")) {
|
|
129
|
+
getEVEStatus(fire).then(eveStatus => log(eveStatus));
|
|
130
|
+
}
|
|
129
131
|
// {
|
|
130
132
|
// "players": 16503,
|
|
131
133
|
// "server_version": "2794925",
|