New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

easy-template-x

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-template-x - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

6

CHANGELOG.md
# Change Log
## [0.11.1 - 2020-03-29](https://github.com/alonrbar/easy-template-x/tree/v0.11.1)
### Fixed
- Consistent handling of `RawXmlContent` when the `xml` prop is null.
## [0.11.0 - 2020-03-29](https://github.com/alonrbar/easy-template-x/tree/v0.11.0)

@@ -4,0 +10,0 @@

2

package.json
{
"name": "easy-template-x",
"version": "0.11.0",
"version": "0.11.1",
"description": "Generate docx documents from templates, in Node or in the browser.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -12,10 +12,9 @@ import { ScopeData, Tag } from '../../compilation';

let replaceNode: XmlNode = this.utilities.docxParser.containingTextNode(tag.xmlTextNode);
const value = data.getScopeData<RawXmlContent>();
if (value && typeof value.xml === 'string') {
if (value.replaceParagraph === true) {
replaceNode = this.utilities.docxParser.containingParagraphNode(tag.xmlTextNode);
}
const replaceNode = value?.replaceParagraph ?
this.utilities.docxParser.containingParagraphNode(tag.xmlTextNode) :
this.utilities.docxParser.containingTextNode(tag.xmlTextNode);
if (typeof value?.xml === 'string') {
const newNode = this.utilities.xmlParser.parse(value.xml);

@@ -22,0 +21,0 @@ XmlNode.insertBefore(newNode, replaceNode);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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