@esri/arcgis-rest-portal 4.10.1 → 4.10.3

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.
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-portal - v4.10.1 - Apache-2.0
2
+ * @esri/arcgis-rest-portal - v4.10.3 - Apache-2.0
3
3
  * Copyright (c) 2017-2026 Esri, Inc.
4
- * Mon Mar 09 2026 17:09:04 GMT+0000 (Coordinated Universal Time)
4
+ * Wed Jun 17 2026 23:14:54 GMT+0000 (Coordinated Universal Time)
5
5
  */
6
6
  import { cleanUrl, request, appendCustomParams, warn } from '@esri/arcgis-rest-request';
7
7
 
@@ -534,7 +534,12 @@ function getItem(id, requestOptions) {
534
534
  if ((requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.authentication) &&
535
535
  typeof requestOptions.authentication !== "string" &&
536
536
  item.access !== "public") {
537
- token = await requestOptions.authentication.getToken(url);
537
+ try {
538
+ token = await requestOptions.authentication.getToken(url);
539
+ }
540
+ catch (e) {
541
+ // Ignore token acquisition errors because `getToken()` can fail for some authentication types, but we still want to return the item info when possible since the browser may still provide thumbnail access via an auth cookie.
542
+ }
538
543
  }
539
544
  return decorateThumbnail(item, portal, token);
540
545
  });