@brightspace-ui/intl 3.30.0 → 3.30.1

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.
@@ -172,12 +172,12 @@ export class TimeZoneMapper {
172
172
  * @param {string} basePath - Base path to the timeZone mappings directory
173
173
  * @returns {Promise<void>}
174
174
  */
175
- async loadMappings(basePath = './data/') {
175
+ async loadMappings() {
176
176
  if (this.loaded) return;
177
177
 
178
178
  try {
179
179
  for (const moduleName of this.modules) {
180
- const module = await import(`${basePath}${moduleName}.js`);
180
+ const module = await import(`./data/${moduleName}.js`);
181
181
  const timeZoneData = module.default || module[`${moduleName}TimeZones`];
182
182
 
183
183
  // Merge all timeZone data into the main mappings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/intl",
3
- "version": "3.30.0",
3
+ "version": "3.30.1",
4
4
  "description": "Internationalization APIs for number, date, time and file size formatting and parsing in D2L Brightspace.",
5
5
  "main": "lib/number.js",
6
6
  "type": "module",