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

@lingui/react

Package Overview
Dependencies
Maintainers
1
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/react - npm Package Compare versions

Comparing version 3.8.8 to 3.8.9

6

cjs/react.development.js

@@ -97,3 +97,3 @@ 'use strict';

React__default['default'].useEffect(function () {
i18n.on("change", function () {
var unsubscribe = i18n.on("change", function () {
setContext(makeContext());

@@ -110,2 +110,6 @@ setRenderKey(getRenderKey());

}
return function () {
return unsubscribe();
};
}, []);

@@ -112,0 +116,0 @@ if (forceRenderOnLocaleChange && renderKey === 'default') return null;

2

cjs/react.production.min.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),n=require("@babel/runtime/helpers/defineProperty");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(e),a=r(t),u=r(n),l=a.default.createContext(null);function i(){var e=a.default.useContext(l);return e}function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=/<(\d+)>(.*?)<\/\1>|<(\d+)\/>/,d=/(?:\r\n|\r|\n)/g,p={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function m(e){if(!e.length)return[];var t=e.slice(0,4),n=o.default(t,4),r=n[0],a=n[1],u=n[2],l=n[3];return[[parseInt(r||u),a||"",l]].concat(m(e.slice(4,e.length)))}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){return"".concat(t,"_").concat(e++)}};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){u.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=i(),n=t.i18n,r=t.defaultComponent,u=e.render,l=e.component,f=e.id,y=e.message,h=e.formats,g=b({},e.values),O=b({},e.components);g&&Object.keys(g).forEach((function(e){var t=g[e];if(a.default.isValidElement(t)){var n=Object.keys(O).length;O[n]=t,g[e]="<".concat(n,"/>")}}));var j=n&&"function"==typeof n._?n._(f,g,{message:y,formats:h}):f,P=j?function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=v(0,"$lingui$"),u=t.replace(d,"").split(s);if(1===u.length)return t;var l=[],i=u.shift();i&&l.push(i);var f,y=c(m(u));try{for(y.s();!(f=y.n()).done;){var b=o.default(f.value,3),h=b[0],g=b[1],O=b[2],j=n[h];(!j||p[j.type]&&g)&&(j?console.error("".concat(j.type," is a void element tag therefore it must have no children")):console.error("Can use element at index '".concat(h,"' as it is not declared in the original translation")),j=a.default.createElement(a.default.Fragment)),l.push(a.default.cloneElement(j,{key:r()},g?e(g,n):j.props.children)),O&&l.push(O)}}catch(e){y.e(e)}finally{y.f()}return l}(j,O):null;if(null===u||null===l)return P;var w=r||a.default.Fragment;if(u&&l)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(u&&"function"!=typeof u)console.error("Invalid value supplied to prop `render`. It must be a function, provided ".concat(u));else if(l&&"function"!=typeof l)return console.error("Invalid value supplied to prop `component`. It must be a React component, provided ".concat(l)),a.default.createElement(w,null,P);if("function"==typeof u)return u({id:f,translation:P,message:y});var E=l||w;return a.default.createElement(E,null,P)}h.defaultProps={values:{},components:{}},exports.I18nProvider=function(e){var t=e.i18n,n=e.defaultComponent,r=e.forceRenderOnLocaleChange,u=void 0===r||r,i=e.children,c=function(){return{i18n:t,defaultComponent:n}},f=function(){return u&&t.locale||"default"},s=a.default.useState(c()),d=o.default(s,2),p=d[0],m=d[1],v=a.default.useState(f()),y=o.default(v,2),b=y[0],h=y[1];return a.default.useEffect((function(){t.on("change",(function(){m(c()),h(f())})),"default"===b&&h(f()),u&&"default"===b&&console.log("I18nProvider did not render. A call to i18n.activate still needs to happen or forceRenderOnLocaleChange must be set to false.")}),[]),u&&"default"===b?null:a.default.createElement(l.Provider,{value:p,key:b},i)},exports.Trans=h,exports.useLingui=i,exports.withI18n=function(e){return function(e){return function(t){var n=i(),r=n.i18n;return a.default.createElement(e,Object.assign({},t,{i18n:r}))}}};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),n=require("@babel/runtime/helpers/defineProperty");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(e),a=r(t),u=r(n),i=a.default.createContext(null);function l(){var e=a.default.useContext(i);return e}function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){i=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(i)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=/<(\d+)>(.*?)<\/\1>|<(\d+)\/>/,d=/(?:\r\n|\r|\n)/g,p={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function m(e){if(!e.length)return[];var t=e.slice(0,4),n=o.default(t,4),r=n[0],a=n[1],u=n[2],i=n[3];return[[parseInt(r||u),a||"",i]].concat(m(e.slice(4,e.length)))}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){return"".concat(t,"_").concat(e++)}};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){u.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=l(),n=t.i18n,r=t.defaultComponent,u=e.render,i=e.component,f=e.id,y=e.message,h=e.formats,g=b({},e.values),O=b({},e.components);g&&Object.keys(g).forEach((function(e){var t=g[e];if(a.default.isValidElement(t)){var n=Object.keys(O).length;O[n]=t,g[e]="<".concat(n,"/>")}}));var j=n&&"function"==typeof n._?n._(f,g,{message:y,formats:h}):f,P=j?function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=v(0,"$lingui$"),u=t.replace(d,"").split(s);if(1===u.length)return t;var i=[],l=u.shift();l&&i.push(l);var f,y=c(m(u));try{for(y.s();!(f=y.n()).done;){var b=o.default(f.value,3),h=b[0],g=b[1],O=b[2],j=n[h];(!j||p[j.type]&&g)&&(j?console.error("".concat(j.type," is a void element tag therefore it must have no children")):console.error("Can use element at index '".concat(h,"' as it is not declared in the original translation")),j=a.default.createElement(a.default.Fragment)),i.push(a.default.cloneElement(j,{key:r()},g?e(g,n):j.props.children)),O&&i.push(O)}}catch(e){y.e(e)}finally{y.f()}return i}(j,O):null;if(null===u||null===i)return P;var w=r||a.default.Fragment;if(u&&i)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(u&&"function"!=typeof u)console.error("Invalid value supplied to prop `render`. It must be a function, provided ".concat(u));else if(i&&"function"!=typeof i)return console.error("Invalid value supplied to prop `component`. It must be a React component, provided ".concat(i)),a.default.createElement(w,null,P);if("function"==typeof u)return u({id:f,translation:P,message:y});var E=i||w;return a.default.createElement(E,null,P)}h.defaultProps={values:{},components:{}},exports.I18nProvider=function(e){var t=e.i18n,n=e.defaultComponent,r=e.forceRenderOnLocaleChange,u=void 0===r||r,l=e.children,c=function(){return{i18n:t,defaultComponent:n}},f=function(){return u&&t.locale||"default"},s=a.default.useState(c()),d=o.default(s,2),p=d[0],m=d[1],v=a.default.useState(f()),y=o.default(v,2),b=y[0],h=y[1];return a.default.useEffect((function(){var e=t.on("change",(function(){m(c()),h(f())}));return"default"===b&&h(f()),u&&"default"===b&&console.log("I18nProvider did not render. A call to i18n.activate still needs to happen or forceRenderOnLocaleChange must be set to false."),function(){return e()}}),[]),u&&"default"===b?null:a.default.createElement(i.Provider,{value:p,key:b},l)},exports.Trans=h,exports.useLingui=l,exports.withI18n=function(e){return function(e){return function(t){var n=l(),r=n.i18n;return a.default.createElement(e,Object.assign({},t,{i18n:r}))}}};
//# sourceMappingURL=react.production.min.js.map

@@ -1,2 +0,2 @@

import e from"@babel/runtime/helpers/slicedToArray";import n from"react";import t from"@babel/runtime/helpers/defineProperty";var r=n.createContext(null);function o(){var e=n.useContext(r);return e}function a(e){return function(e){return function(t){var r=o(),a=r.i18n;return n.createElement(e,Object.assign({},t,{i18n:a}))}}}var i=function(t){var o=t.i18n,a=t.defaultComponent,i=t.forceRenderOnLocaleChange,c=void 0===i||i,u=t.children,l=function(){return{i18n:o,defaultComponent:a}},f=function(){return c&&o.locale||"default"},s=n.useState(l()),p=e(s,2),m=p[0],d=p[1],v=n.useState(f()),y=e(v,2),h=y[0],b=y[1];return n.useEffect((function(){o.on("change",(function(){d(l()),b(f())})),"default"===h&&b(f()),c&&"default"===h&&console.log("I18nProvider did not render. A call to i18n.activate still needs to happen or forceRenderOnLocaleChange must be set to false.")}),[]),c&&"default"===h?null:n.createElement(r.Provider,{value:m,key:h},u)};function c(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var l=/<(\d+)>(.*?)<\/\1>|<(\d+)\/>/,f=/(?:\r\n|\r|\n)/g,s={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function p(n){if(!n.length)return[];var t=n.slice(0,4),r=e(t,4),o=r[0],a=r[1],i=r[2],c=r[3];return[[parseInt(o||i),a||"",c]].concat(p(n.slice(4,n.length)))}var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){return"".concat(n,"_").concat(e++)}};function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?d(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function y(t){var r=o(),a=r.i18n,i=r.defaultComponent,u=t.render,d=t.component,y=t.id,h=t.message,b=t.formats,g=v({},t.values),O=v({},t.components);g&&Object.keys(g).forEach((function(e){var t=g[e];if(n.isValidElement(t)){var r=Object.keys(O).length;O[r]=t,g[e]="<".concat(r,"/>")}}));var j=a&&"function"==typeof a._?a._(y,g,{message:h,formats:b}):y,w=j?function t(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=m(0,"$lingui$"),i=r.replace(f,"").split(l);if(1===i.length)return r;var u=[],d=i.shift();d&&u.push(d);var v,y=c(p(i));try{for(y.s();!(v=y.n()).done;){var h=e(v.value,3),b=h[0],g=h[1],O=h[2],j=o[b];(!j||s[j.type]&&g)&&(j?console.error("".concat(j.type," is a void element tag therefore it must have no children")):console.error("Can use element at index '".concat(b,"' as it is not declared in the original translation")),j=n.createElement(n.Fragment)),u.push(n.cloneElement(j,{key:a()},g?t(g,o):j.props.children)),O&&u.push(O)}}catch(e){y.e(e)}finally{y.f()}return u}(j,O):null;if(null===u||null===d)return w;var E=i||n.Fragment;if(u&&d)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(u&&"function"!=typeof u)console.error("Invalid value supplied to prop `render`. It must be a function, provided ".concat(u));else if(d&&"function"!=typeof d)return console.error("Invalid value supplied to prop `component`. It must be a React component, provided ".concat(d)),n.createElement(E,null,w);if("function"==typeof u)return u({id:y,translation:w,message:h});var P=d||E;return n.createElement(P,null,w)}y.defaultProps={values:{},components:{}};export{i as I18nProvider,y as Trans,o as useLingui,a as withI18n};
import e from"@babel/runtime/helpers/slicedToArray";import n from"react";import t from"@babel/runtime/helpers/defineProperty";var r=n.createContext(null);function o(){var e=n.useContext(r);return e}function a(e){return function(e){return function(t){var r=o(),a=r.i18n;return n.createElement(e,Object.assign({},t,{i18n:a}))}}}var i=function(t){var o=t.i18n,a=t.defaultComponent,i=t.forceRenderOnLocaleChange,c=void 0===i||i,u=t.children,l=function(){return{i18n:o,defaultComponent:a}},f=function(){return c&&o.locale||"default"},s=n.useState(l()),p=e(s,2),m=p[0],d=p[1],v=n.useState(f()),y=e(v,2),h=y[0],b=y[1];return n.useEffect((function(){var e=o.on("change",(function(){d(l()),b(f())}));return"default"===h&&b(f()),c&&"default"===h&&console.log("I18nProvider did not render. A call to i18n.activate still needs to happen or forceRenderOnLocaleChange must be set to false."),function(){return e()}}),[]),c&&"default"===h?null:n.createElement(r.Provider,{value:m,key:h},u)};function c(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw a}}}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var l=/<(\d+)>(.*?)<\/\1>|<(\d+)\/>/,f=/(?:\r\n|\r|\n)/g,s={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function p(n){if(!n.length)return[];var t=n.slice(0,4),r=e(t,4),o=r[0],a=r[1],i=r[2],c=r[3];return[[parseInt(o||i),a||"",c]].concat(p(n.slice(4,n.length)))}var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){return"".concat(n,"_").concat(e++)}};function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?d(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function y(t){var r=o(),a=r.i18n,i=r.defaultComponent,u=t.render,d=t.component,y=t.id,h=t.message,b=t.formats,g=v({},t.values),O=v({},t.components);g&&Object.keys(g).forEach((function(e){var t=g[e];if(n.isValidElement(t)){var r=Object.keys(O).length;O[r]=t,g[e]="<".concat(r,"/>")}}));var j=a&&"function"==typeof a._?a._(y,g,{message:h,formats:b}):y,w=j?function t(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=m(0,"$lingui$"),i=r.replace(f,"").split(l);if(1===i.length)return r;var u=[],d=i.shift();d&&u.push(d);var v,y=c(p(i));try{for(y.s();!(v=y.n()).done;){var h=e(v.value,3),b=h[0],g=h[1],O=h[2],j=o[b];(!j||s[j.type]&&g)&&(j?console.error("".concat(j.type," is a void element tag therefore it must have no children")):console.error("Can use element at index '".concat(b,"' as it is not declared in the original translation")),j=n.createElement(n.Fragment)),u.push(n.cloneElement(j,{key:a()},g?t(g,o):j.props.children)),O&&u.push(O)}}catch(e){y.e(e)}finally{y.f()}return u}(j,O):null;if(null===u||null===d)return w;var E=i||n.Fragment;if(u&&d)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(u&&"function"!=typeof u)console.error("Invalid value supplied to prop `render`. It must be a function, provided ".concat(u));else if(d&&"function"!=typeof d)return console.error("Invalid value supplied to prop `component`. It must be a React component, provided ".concat(d)),n.createElement(E,null,w);if("function"==typeof u)return u({id:y,translation:w,message:h});var P=d||E;return n.createElement(P,null,w)}y.defaultProps={values:{},components:{}};export{i as I18nProvider,y as Trans,o as useLingui,a as withI18n};
//# sourceMappingURL=react.esm.js.map
{
"name": "@lingui/react",
"version": "3.8.8",
"version": "3.8.9",
"description": "React components for translations",

@@ -45,3 +45,3 @@ "main": "index.js",

"@babel/runtime": "^7.11.2",
"@lingui/core": "^3.8.8"
"@lingui/core": "^3.8.9"
},

@@ -48,0 +48,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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