lingui-react
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -14,2 +14,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _linguiI18n = require('lingui-i18n'); | ||
@@ -115,3 +119,3 @@ | ||
I18nProvider.childContextTypes = { | ||
i18nManager: _react2.default.PropTypes.object.isRequired | ||
i18nManager: _propTypes2.default.object.isRequired | ||
}; | ||
@@ -118,0 +122,0 @@ |
@@ -15,2 +15,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -98,5 +102,5 @@ | ||
}(_react2.default.Component), _class.contextTypes = { | ||
i18nManager: _react2.default.PropTypes.object | ||
i18nManager: _propTypes2.default.object | ||
}, _temp2; | ||
}; | ||
}; |
{ | ||
"name": "lingui-react", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "React components for translations", | ||
@@ -36,3 +36,4 @@ "main": "lib/index.js", | ||
"lingui-formats": "^v0.3.0", | ||
"lingui-i18n": "^v0.6.0" | ||
"lingui-i18n": "^v0.6.0", | ||
"prop-types": "^15.5.10" | ||
}, | ||
@@ -39,0 +40,0 @@ "scripts": { |
/* @flow */ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { I18n } from 'lingui-i18n' | ||
@@ -75,3 +76,3 @@ import type { Catalogs } from 'lingui-i18n' | ||
I18nProvider.childContextTypes = { | ||
i18nManager: React.PropTypes.object.isRequired | ||
i18nManager: PropTypes.object.isRequired | ||
} | ||
@@ -78,0 +79,0 @@ |
// @flow | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import type { I18n } from 'lingui-i18n' | ||
@@ -17,3 +18,3 @@ | ||
static contextTypes = { | ||
i18nManager: React.PropTypes.object | ||
i18nManager: PropTypes.object | ||
} | ||
@@ -20,0 +21,0 @@ |
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
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
118809
2134
4
+ Addedprop-types@^15.5.10