@dxos/util 0.6.10 → 0.6.11-staging.32b42e4

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.
@@ -1663,12 +1663,12 @@ var isNotFalsy = (value) => !!value;
1663
1663
  var nonNullable = (value) => value !== null && value !== void 0;
1664
1664
  var isNotNullOrUndefined = (value) => value != null;
1665
1665
  var boolGuard = (value) => Boolean(value);
1666
- var getAsyncValue = async (value) => {
1667
- if (typeof value === "function") {
1668
- return value();
1669
- } else {
1670
- return value;
1671
- }
1666
+ var doAsync = async (fn) => fn();
1667
+ var getProviderValue = (provider, arg) => {
1668
+ return typeof provider === "function" ? provider(arg) : provider;
1669
+ };
1670
+ var getAsyncProviderValue = (provider, arg) => {
1671
+ return getProviderValue(provider, arg);
1672
1672
  };
1673
1673
  var stripUndefinedValues = (obj) => {
1674
1674
  if (typeof obj === "object") {
@@ -1920,15 +1920,17 @@ export {
1920
1920
  deferFunction,
1921
1921
  diff,
1922
1922
  distinctBy,
1923
+ doAsync,
1923
1924
  entry,
1924
1925
  exponentialBackoffInterval,
1925
1926
  forEachAsync,
1926
- getAsyncValue,
1927
+ getAsyncProviderValue,
1927
1928
  getDate,
1928
1929
  getDebugName,
1929
1930
  getDeep,
1930
1931
  getHostPlatform,
1931
1932
  getPrototypeSpecificInstanceId,
1933
+ getProviderValue,
1932
1934
  hexToEmoji,
1933
1935
  hexToFallback,
1934
1936
  hexToHue,