Skip to content

Commit

Permalink
fix: separate cjs and mjs typings
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Nov 10, 2023
1 parent fee24ad commit 0d876a3
Show file tree
Hide file tree
Showing 6 changed files with 3,115 additions and 2,228 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 7.2.0

- fix: separate cjs and mjs typings

### 7.1.0

- introduce convertDetectedLanguage option
Expand Down
16 changes: 7 additions & 9 deletions i18nextBrowserLanguageDetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
}
}

function _typeof(obj) {
function _typeof(o) {
"@babel/helpers - typeof";

return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
}, _typeof(obj);
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, _typeof(o);
}

function _toPrimitive(input, hint) {
Expand Down Expand Up @@ -139,9 +139,7 @@
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) === ' ') {
c = c.substring(1, c.length);
}
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
}
return null;
Expand Down
6 changes: 6 additions & 0 deletions index.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import * as index from './index.js';

export default index.default;

export type DetectorOptions = index.DetectorOptions;
export type CustomDetector = index.CustomDetector;
Loading

0 comments on commit 0d876a3

Please sign in to comment.