@lgriffin/esi.ts 10.2.0 → 10.2.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/dist/index.mjs CHANGED
@@ -206,7 +206,7 @@ import {
206
206
  sanitizeUrl,
207
207
  setLogger,
208
208
  toPinoLogger
209
- } from "./chunk-D5L5HZVF.mjs";
209
+ } from "./chunk-4W66ONJI.mjs";
210
210
  import "./chunk-JIW4BXLP.mjs";
211
211
 
212
212
  // src/core/middleware/Middleware.ts
@@ -444,7 +444,7 @@ function buildDedupeKey(endpoint, client, requiresAuth = false) {
444
444
 
445
445
  // src/core/constants.ts
446
446
  var PACKAGE_NAME = "esi.ts";
447
- var PACKAGE_VERSION = "10.2.0";
447
+ var PACKAGE_VERSION = "10.2.1";
448
448
  var USER_AGENT = `${PACKAGE_NAME}/${PACKAGE_VERSION}`;
449
449
  var COMPATIBILITY_DATE = "2026-05-19";
450
450
 
@@ -1944,7 +1944,6 @@ async function fetchAllPages(client, endpoint, method, requiresAuth = false, bod
1944
1944
  );
1945
1945
  const totalPages = parseInt(firstResponse.headers["x-pages"] || "1", 10);
1946
1946
  const result = extractArray(firstBody);
1947
- if (totalPages <= 1) return result;
1948
1947
  const remaining = Array.from({ length: totalPages - 1 }, (_, i) => i + 2);
1949
1948
  for (let i = 0; i < remaining.length; i += concurrency) {
1950
1949
  const batch = remaining.slice(i, i + concurrency);
@@ -9367,7 +9366,7 @@ function resolveLimit(requested) {
9367
9366
  }
9368
9367
  async function runWithConcurrency(items, worker, options = {}) {
9369
9368
  const limit = resolveLimit(options.concurrency);
9370
- const results = new Array(items.length);
9369
+ const results = [];
9371
9370
  let nextIndex = 0;
9372
9371
  let completed = 0;
9373
9372
  async function runOne() {