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.
@@ -6,10 +6,10 @@
6
6
  // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7
7
  */
8
8
  /**
9
- * THIS TSD IS AUTO GENERATED, DO NOT EDIT
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.2.6 of the EVE Online ESI response types.
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
- getEVEStatus(fire).then(eveStatus => console.log(eveStatus));
128
+ if (!is("x")) {
129
+ getEVEStatus(fire).then(eveStatus => log(eveStatus));
130
+ }
129
131
  // {
130
132
  // "players": 16503,
131
133
  // "server_version": "2794925",