react-i13n
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -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 @@ |
{ | ||
"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", |
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
252421
5782