@esri/arcgis-rest-portal 4.10.1 → 4.10.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/dist/bundled/portal.esm.js +8 -3
- package/dist/bundled/portal.esm.js.map +1 -1
- package/dist/bundled/portal.esm.min.js +3 -3
- package/dist/bundled/portal.esm.min.js.map +1 -1
- package/dist/bundled/portal.umd.js +8 -3
- package/dist/bundled/portal.umd.js.map +1 -1
- package/dist/bundled/portal.umd.min.js +3 -3
- package/dist/bundled/portal.umd.min.js.map +1 -1
- package/dist/cjs/items/get.js +6 -1
- package/dist/cjs/items/get.js.map +1 -1
- package/dist/esm/items/get.js +6 -1
- package/dist/esm/items/get.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-portal - v4.10.
|
|
2
|
+
* @esri/arcgis-rest-portal - v4.10.2 - Apache-2.0
|
|
3
3
|
* Copyright (c) 2017-2026 Esri, Inc.
|
|
4
|
-
*
|
|
4
|
+
* Tue Apr 07 2026 14:52:28 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
|
-
|
|
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
|
});
|