@opengeoweb/core 9.29.1 → 9.30.0

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.
Files changed (2) hide show
  1. package/index.esm.js +3 -3
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -3791,7 +3791,7 @@ const getImageLoadDuration = layerId => {
3791
3791
  return loadDurationMs;
3792
3792
  };
3793
3793
  const roundToDecimals = (num, decimals) => {
3794
- return num.toLocaleString(undefined, {
3794
+ return num.toLocaleString('en', {
3795
3795
  maximumFractionDigits: decimals,
3796
3796
  useGrouping: false
3797
3797
  });
@@ -3826,10 +3826,10 @@ const useLoadDurationLabel = (mapId, layerId) => {
3826
3826
  }
3827
3827
  const loadDurationInSeconds = loadDurationMs / MILLISECONDS_PER_SECOND;
3828
3828
  if (loadDurationInSeconds > MAX_DURATION_IN_SECONDS) {
3829
- return `> ${MAX_DURATION_IN_SECONDS.toLocaleString()} s`;
3829
+ return `> ${MAX_DURATION_IN_SECONDS.toLocaleString('en')} s`;
3830
3830
  }
3831
3831
  if (loadDurationInSeconds < MIN_DURATION_IN_SECONDS) {
3832
- return `< ${MIN_DURATION_IN_SECONDS.toLocaleString()} s`;
3832
+ return `< ${MIN_DURATION_IN_SECONDS.toLocaleString('en')} s`;
3833
3833
  }
3834
3834
  return `${roundToDecimals(loadDurationInSeconds, DECIMALS_IN_LABEL)} s`;
3835
3835
  }, [layerId]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "9.29.1",
3
+ "version": "9.30.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {