Socket
Socket
Sign inDemoInstall

mjml-parser-xml

Package Overview
Dependencies
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-parser-xml - npm Package Compare versions

Comparing version 4.4.0-beta.1 to 4.4.0-beta.2

18

lib/index.js

@@ -120,2 +120,3 @@ 'use strict';

var partialPath = _path2.default.resolve(cwd, file);
var curBeforeInclude = cur;

@@ -170,4 +171,2 @@ if ((0, _find2.default)(cur.includedIn, { file: partialPath })) throw new Error('Circular inclusion detected on file : ' + partialPath);

cur.children = [].concat((0, _toConsumableArray3.default)(cur.children), (0, _toConsumableArray3.default)(boundChildren));
cur = boundChildren[boundChildren.length - 1];
}

@@ -184,3 +183,4 @@

tagName: 'mj-head',
children: []
children: [],
includedIn: []
});

@@ -193,5 +193,6 @@

curHead.children = [].concat((0, _toConsumableArray3.default)(curHead.children), (0, _toConsumableArray3.default)(_boundChildren));
}
cur = _boundChildren[_boundChildren.length - 1];
}
// must restore cur to the cur before include started
cur = curBeforeInclude;
};

@@ -274,3 +275,5 @@

cur = cur && cur.parent || null;
// for includes, setting cur is handled in handleInclude because when there is
// only mj-head in include it doesn't create any elements, so setting back to parent is wrong
if (name !== 'mj-include') cur = cur && cur.parent || null;
},

@@ -293,3 +296,4 @@ ontext: function ontext(text) {

tagName: 'mj-raw',
content: '<!-- ' + data.trim() + ' -->'
content: '<!-- ' + data.trim() + ' -->',
includedIn: includedIn
});

@@ -296,0 +300,0 @@ }

{
"name": "mjml-parser-xml",
"description": "mjml-parser-xml",
"version": "4.4.0-beta.1",
"version": "4.4.0-beta.2",
"main": "lib/index.js",

@@ -22,3 +22,2 @@ "repository": {

"babel-runtime": "^6.26.0",
"cross-env": "^5.1.4",
"htmlparser2": "^3.9.2",

@@ -29,5 +28,6 @@ "lodash": "^4.17.2"

"chai": "^4.1.1",
"mjml": "4.4.0-beta.1",
"mjml-core": "4.4.0-beta.1"
"cross-env": "^5.2.0",
"mjml": "4.4.0-beta.2",
"mjml-core": "4.4.0-beta.2"
}
}

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