easy-template-x
Advanced tools
Comparing version 0.8.2 to 0.8.3
# Change Log | ||
## [0.8.3 - 2019-12-27](https://github.com/alonrbar/easy-template-x/tree/v0.8.3) | ||
### Added | ||
- Allow overriding container tag logic using explicit content type. | ||
## [0.8.2 - 2019-11-30](https://github.com/alonrbar/easy-template-x/tree/v0.8.2) | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "easy-template-x", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "Generate docx documents from templates, in Node or in the browser.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -99,5 +99,3 @@ import { UnclosedTagError, UnknownContentTypeError } from '../errors'; | ||
if (tag.disposition === TagDisposition.Open || tag.disposition === TagDisposition.Close) | ||
return this.containerContentType; | ||
// explicit content type | ||
const scopeData = data.getScopeData(); | ||
@@ -107,2 +105,7 @@ if (PluginContent.isPluginContent(scopeData)) | ||
// implicit - loop | ||
if (tag.disposition === TagDisposition.Open || tag.disposition === TagDisposition.Close) | ||
return this.containerContentType; | ||
// implicit - text | ||
return this.defaultContentType; | ||
@@ -109,0 +112,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
333272
7917
0