@bbn/bbn 2.0.53 → 2.0.54

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.
@@ -115,11 +115,7 @@ export default function guessFormat(input, formats, lng) {
115
115
  return tryFormats(list);
116
116
  }
117
117
  // autodetect via Intl-derived formats
118
- const resolvedLocale = lng ||
119
- (typeof navigator !== 'undefined'
120
- ? navigator.language
121
- : Intl.DateTimeFormat().resolvedOptions().locale);
122
- const common = getCommonFormatsForLocale(resolvedLocale);
118
+ const common = getCommonFormatsForLocale(lng);
123
119
  // Avoid trivial duplicates
124
120
  const seen = new Set();
125
121
  const mysqlNativeCandidates = MYSQL_AND_NATIVE_FORMATS.filter(fmt => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.53",
3
+ "version": "2.0.54",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",