Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18next-hmr

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-hmr - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

6

CHANGELOG.md

@@ -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)

14

lib/webpack/plugin.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc