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

mjml-react

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-react - npm Package Compare versions

Comparing version 1.0.16 to 1.0.17

dist/es/src/mjml-all.js

3

dist/es/src/index.js

@@ -24,2 +24,5 @@ import _extends from 'babel-runtime/helpers/extends';

export { MjmlWrapper } from './mjml-wrapper';
export { MjmlAttributes } from './mjml-attributes';
export { MjmlClass } from './mjml-class';
export { MjmlAll } from './mjml-all';

@@ -26,0 +29,0 @@ function render(email) {

@@ -160,2 +160,12 @@ import React from 'react';

});
it('should render <MjmlAttributes/>', function () {
expect(renderToMjml(React.createElement(
tags.MjmlAttributes,
null,
React.createElement(tags.MjmlText, { padding: 0 }),
React.createElement(tags.MjmlClass, { name: 'white', color: 'white' }),
React.createElement(tags.MjmlAll, { padding: 0 })
))).to.equal('<mj-attributes><mj-text padding="0px"></mj-text><mj-class name="white" color="white"></mj-class><mj-all padding="0px"></mj-all></mj-attributes>');
});
});

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

});
exports.MjmlWrapper = exports.MjmlText = exports.MjmlSpacer = exports.MjmlImage = exports.MjmlDivider = exports.MjmlButton = exports.MjmlColumn = exports.MjmlSection = exports.MjmlRaw = exports.MjmlTitle = exports.MjmlStyle = exports.MjmlPreview = exports.MjmlFont = exports.MjmlBreakpoint = exports.MjmlBody = exports.MjmlHead = exports.Mjml = exports.renderToMjml = exports.render = undefined;
exports.MjmlAll = exports.MjmlClass = exports.MjmlAttributes = exports.MjmlWrapper = exports.MjmlText = exports.MjmlSpacer = exports.MjmlImage = exports.MjmlDivider = exports.MjmlButton = exports.MjmlColumn = exports.MjmlSection = exports.MjmlRaw = exports.MjmlTitle = exports.MjmlStyle = exports.MjmlPreview = exports.MjmlFont = exports.MjmlBreakpoint = exports.MjmlBody = exports.MjmlHead = exports.Mjml = exports.renderToMjml = exports.render = undefined;

@@ -166,2 +166,29 @@ var _extends2 = require('babel-runtime/helpers/extends');

var _mjmlAttributes = require('./mjml-attributes');
Object.defineProperty(exports, 'MjmlAttributes', {
enumerable: true,
get: function get() {
return _mjmlAttributes.MjmlAttributes;
}
});
var _mjmlClass = require('./mjml-class');
Object.defineProperty(exports, 'MjmlClass', {
enumerable: true,
get: function get() {
return _mjmlClass.MjmlClass;
}
});
var _mjmlAll = require('./mjml-all');
Object.defineProperty(exports, 'MjmlAll', {
enumerable: true,
get: function get() {
return _mjmlAll.MjmlAll;
}
});
var _server = require('react-dom/server');

@@ -168,0 +195,0 @@

@@ -171,2 +171,12 @@ 'use strict';

});
it('should render <MjmlAttributes/>', function () {
(0, _chai.expect)(renderToMjml(_react2.default.createElement(
tags.MjmlAttributes,
null,
_react2.default.createElement(tags.MjmlText, { padding: 0 }),
_react2.default.createElement(tags.MjmlClass, { name: 'white', color: 'white' }),
_react2.default.createElement(tags.MjmlAll, { padding: 0 })
))).to.equal('<mj-attributes><mj-text padding="0px"></mj-text><mj-class name="white" color="white"></mj-class><mj-all padding="0px"></mj-all></mj-attributes>');
});
});

2

package.json
{
"name": "mjml-react",
"version": "1.0.16",
"version": "1.0.17",
"license": "UNLICENSED",

@@ -5,0 +5,0 @@ "author": {

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