@arcgis/components-utils 4.33.0-next.96 → 4.33.0-next.98

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.cjs CHANGED
@@ -199,7 +199,7 @@ function safeCall(callback, thisContext, ...rest) {
199
199
  async function safeAsyncCall(callback, thisContext, ...rest) {
200
200
  try {
201
201
  const result = callback?.call(thisContext, ...rest);
202
- return result instanceof Promise ? await result : result;
202
+ return await result;
203
203
  } catch (error) {
204
204
  console.error(error, callback);
205
205
  }
package/dist/index.js CHANGED
@@ -197,7 +197,7 @@ function safeCall(callback, thisContext, ...rest) {
197
197
  async function safeAsyncCall(callback, thisContext, ...rest) {
198
198
  try {
199
199
  const result = callback?.call(thisContext, ...rest);
200
- return result instanceof Promise ? await result : result;
200
+ return await result;
201
201
  } catch (error) {
202
202
  console.error(error, callback);
203
203
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/components-utils",
3
- "version": "4.33.0-next.96",
3
+ "version": "4.33.0-next.98",
4
4
  "description": "Collection of common internal patterns and utilities for ArcGIS Maps SDK for JavaScript components.",
5
5
  "homepage": "https://developers.arcgis.com/javascript/latest/",
6
6
  "sideEffects": false,