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

react-i13n

Package Overview
Dependencies
Maintainers
9
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-i13n - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

9

dist-es/core/ReactI13n.js

@@ -102,2 +102,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

static getInstance() {
if (IS_CLIENT) {
return _reactI13nInstance;
}
warnAndPrintTrace('ReactI13n instance is not available on server side with getInstance, ' + 'please use this.props.i13n or React context to access ReactI13n utils');
return null;
}
get i13nInstance() {

@@ -104,0 +113,0 @@ return this._i13nInstance;

@@ -118,2 +118,11 @@ "use strict";

ReactI13n.getInstance = function getInstance() {
if (_variables.IS_CLIENT) {
return _reactI13nInstance;
}
(0, _warnAndPrintTrace["default"])('ReactI13n instance is not available on server side with getInstance, ' + 'please use this.props.i13n or React context to access ReactI13n utils');
return null;
};
var _proto = ReactI13n.prototype;

@@ -120,0 +129,0 @@

4

package.json
{
"name": "react-i13n",
"description": "React I13n provides a performant and scalable solution to application instrumentation.",
"version": "3.0.0",
"version": "3.1.0",
"main": "index.js",

@@ -69,3 +69,3 @@ "module": "index.es.js",

"jest-environment-jsdom": "^29.0.0",
"jest-junit": "^14.0.0",
"jest-junit": "^15.0.0",
"minimist": "^1.2.0",

@@ -72,0 +72,0 @@ "mocha": "^10.0.0",

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