Socket
Socket
Sign inDemoInstall

react-html-email

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-html-email - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

## 1.1.2 - 2016-08-07
### Fixed
- Removed failing redundant xmlns injection in React 15.3.0. (@orrybaram + @chromakode)
- Resolved test warnings in React 15.3.0 due to https://fb.me/react-warning-dont-call-proptypes. (@chromakode)
## 1.1.1 - 2016-07-25

@@ -7,0 +12,0 @@ ### Added

16

lib/injectReactEmailAttributes.js

@@ -9,4 +9,11 @@ 'use strict';

var _ReactInjection = require('react/lib/ReactInjection');
require('react-dom');
var _DOMProperty = require('react/lib/DOMProperty');
var _DOMProperty2 = _interopRequireDefault(_DOMProperty);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// ensure base DOM properties are already injected
var emailAttributes = exports.emailAttributes = {

@@ -29,6 +36,11 @@ Properties: {

if (_DOMProperty2.default.properties.hasOwnProperty('xmlns')) {
// already exists in React 15.3.0
delete emailAttributes.Properties.xmlns;
}
// make React accept some HTML attributes useful to emails
_ReactInjection.DOMProperty.injectDOMPropertyConfig(emailAttributes);
_DOMProperty2.default.injection.injectDOMPropertyConfig(emailAttributes);
injected = true;
}

@@ -27,3 +27,9 @@ 'use strict';

style: function style(props, propName, componentName) {
var objErr = _react2.default.PropTypes.object(props, propName, componentName);
var _React$PropTypes;
for (var _len = arguments.length, rest = Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
rest[_key - 3] = arguments[_key];
}
var objErr = (_React$PropTypes = _react2.default.PropTypes).object.apply(_React$PropTypes, [props, propName, componentName].concat(rest));
if (objErr) {

@@ -30,0 +36,0 @@ return objErr;

2

package.json
{
"name": "react-html-email",
"description": "Create elegant HTML email templates using React.",
"version": "1.1.1",
"version": "1.1.2",
"keywords": [

@@ -6,0 +6,0 @@ "react",

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