Skip to content

Commit 0d876a3

Browse files
committed
fix: separate cjs and mjs typings
1 parent fee24ad commit 0d876a3

6 files changed

+3115
-2228
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 7.2.0
2+
3+
- fix: separate cjs and mjs typings
4+
15
### 7.1.0
26

37
- introduce convertDetectedLanguage option

i18nextBrowserLanguageDetector.js

+7-9
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
}
1111
}
1212

13-
function _typeof(obj) {
13+
function _typeof(o) {
1414
"@babel/helpers - typeof";
1515

16-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
17-
return typeof obj;
18-
} : function (obj) {
19-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
20-
}, _typeof(obj);
16+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
17+
return typeof o;
18+
} : function (o) {
19+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
20+
}, _typeof(o);
2121
}
2222

2323
function _toPrimitive(input, hint) {
@@ -139,9 +139,7 @@
139139
var ca = document.cookie.split(';');
140140
for (var i = 0; i < ca.length; i++) {
141141
var c = ca[i];
142-
while (c.charAt(0) === ' ') {
143-
c = c.substring(1, c.length);
144-
}
142+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
145143
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
146144
}
147145
return null;

index.d.mts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as index from './index.js';
2+
3+
export default index.default;
4+
5+
export type DetectorOptions = index.DetectorOptions;
6+
export type CustomDetector = index.CustomDetector;

0 commit comments

Comments
 (0)