cx 24.3.7 → 24.3.9

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/util.js CHANGED
@@ -284,7 +284,7 @@ function buildFormatter(format) {
284
284
  var format = {
285
285
  cache: {},
286
286
  };
287
- function getFormatCache() {
287
+ function getDefaultFormatCache() {
288
288
  if (format.cacheIdentifier != GlobalCacheIdentifier.get()) {
289
289
  format = {
290
290
  cache: {},
@@ -293,6 +293,10 @@ function getFormatCache() {
293
293
  }
294
294
  return format.cache;
295
295
  }
296
+ var getFormatCache = getDefaultFormatCache;
297
+ function setGetFormatCacheCallback(callback) {
298
+ getFormatCache = callback;
299
+ }
296
300
  function getFormatter(format) {
297
301
  if (!format) format = "";
298
302
  var formatCache = getFormatCache();
@@ -1529,6 +1533,7 @@ export {
1529
1533
  routeAppend,
1530
1534
  sameDate,
1531
1535
  scrollElementIntoView,
1536
+ setGetFormatCacheCallback,
1532
1537
  shallowEquals,
1533
1538
  shouldUpdateFlag,
1534
1539
  stopPropagation,