mjml-parser-xml
Advanced tools
Comparing version 4.4.0-beta.1 to 4.4.0-beta.2
@@ -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
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
99678
3
353
4
- Removedcross-env@^5.1.4
- Removedcross-env@5.2.1(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removedisexe@2.0.0(transitive)
- Removednice-try@1.0.5(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedwhich@1.3.1(transitive)