camoufox-js 0.6.1 → 0.6.2

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/dist/locale.js +4 -2
  2. package/package.json +1 -1
package/dist/locale.js CHANGED
@@ -114,8 +114,10 @@ export function handleLocales(locales, config) {
114
114
  if (typeof locales === 'string') {
115
115
  locales = locales.split(',').map(loc => loc.trim());
116
116
  }
117
- const intlLocale = handleLocale(locales[0]);
118
- config = { ...config, ...intlLocale.asConfig() };
117
+ const intlLocale = handleLocale(locales[0]).asConfig();
118
+ for (const key in intlLocale) {
119
+ config[key] = intlLocale[key];
120
+ }
119
121
  if (locales.length < 2) {
120
122
  return;
121
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camoufox-js",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {