i18next-hmr
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -7,4 +7,10 @@ ### Changelog | ||
#### [v3.0.2](https://github.com/felixmosh/i18next-hmr/compare/v3.0.1...v3.0.2) | ||
- fix: align named export with v2 [`c931611`](https://github.com/felixmosh/i18next-hmr/commit/c9316118c6616403672279e5393c089e82acba80) | ||
#### [v3.0.1](https://github.com/felixmosh/i18next-hmr/compare/v3.0.0...v3.0.1) | ||
> 13 September 2023 | ||
- feat: add vite example [`b1332c1`](https://github.com/felixmosh/i18next-hmr/commit/b1332c18bfbd17cce28252b86a06390a2da01686) | ||
@@ -11,0 +17,0 @@ - build(deps): bump tough-cookie in /examples/react-i18next [`e300f5b`](https://github.com/felixmosh/i18next-hmr/commit/e300f5b1ed6fb39f824d30b3f96ac1677c9b36db) |
@@ -11,3 +11,3 @@ const path = require('path'); | ||
class I18nextHMRPlugin { | ||
class I18NextHMRPlugin { | ||
constructor(options) { | ||
@@ -68,3 +68,3 @@ this.options = { ...DEFAULT_OPTIONS, ...options }; | ||
I18nextHMRPlugin.callbacks.forEach((cb) => cb({ changedFiles })); | ||
I18NextHMRPlugin.callbacks.forEach((cb) => cb({ changedFiles })); | ||
}); | ||
@@ -92,9 +92,9 @@ | ||
I18nextHMRPlugin.callbacks = []; | ||
I18NextHMRPlugin.callbacks = []; | ||
I18nextHMRPlugin.addListener = function (cb) { | ||
I18nextHMRPlugin.callbacks.length = 0; | ||
I18nextHMRPlugin.callbacks.push(cb); | ||
I18NextHMRPlugin.addListener = function (cb) { | ||
I18NextHMRPlugin.callbacks.length = 0; | ||
I18NextHMRPlugin.callbacks.push(cb); | ||
}; | ||
module.exports = I18nextHMRPlugin; | ||
module.exports.I18NextHMRPlugin = I18NextHMRPlugin; |
@@ -54,5 +54,5 @@ const { extractList, printList, uniqueList, createLoggerOnce } = require('../utils'); | ||
const HMRPlugin = require('./plugin'); | ||
const HMRPlugin = require('./plugin').I18NextHMRPlugin; | ||
HMRPlugin.addListener(reloadServerTranslation); | ||
} | ||
}; |
{ | ||
"name": "i18next-hmr", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "I18Next HMR🔥 webpack / vite plugin that allows reload translation resources instantly on the client & the server.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41202