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

easy-template-x

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-template-x - npm Package Versions

1235

0.7.1

Diff

Changelog

Source

0.7.1 - 2019-10-03

Fixed

  • Link plugin in cases where the link tag is not the only node in it's run.
alonrbar
published 0.7.0 •

Changelog

Source

0.7.0 - 2019-10-02

Added

  • Link plugin.
  • TemplateHandler.version property.
alonrbar
published 0.6.0 •

Changelog

Source

0.6.0 - 2019-09-29

This version removes the notion of a "tag type" and uses instead the notion of "content type". Instead of inferring the type from the tag prefix the type is now explicitly declared in the supplied JSON data.

Example:

Before:

tag: "{@newPage}"  
data: {  
    newPage: "<w:br w:type="page"/>"
}

After:

tag: "{newPage}"
data: {
    newPage: {
        _type: "rawXml",
        xml: "<w:br w:type="page"/>"
    }
}

The only exceptions are the "loop" content type which still uses the "#" opening prefix and "/" closing prefix, and the "text" content type which is the default and does not requires explicitly stating it.

Added

  • Image plugin.
  • Support multi-character delimiters.
  • Template plugins can be async.
  • Improved the docs (readme).

Changed

  • BREAKING: RawXmlPlugin requires data of the form { _type: 'rawXml', xml: string }.

Removed

  • BREAKING: Remove the Tag.type property.

Fixed

  • Parsing error in some cases where multiple tags are declared in the same run.
alonrbar
published 0.5.2 •

Changelog

Source

0.5.2 - 2019-09-11

Fixed

  • "Binary type 'Buffer' is not supported." on Node 12.
alonrbar
published 0.5.1 •

Changelog

Source

0.5.1 - 2019-06-05

Fixed

  • Handle non-textual values (numbers, booleans...) in TextPlugin.
alonrbar
published 0.5.0 •

Changelog

Source

0.5.0 - 2019-05-07

Added

  • Loop over lists and table rows.
    Notice: The loop logic for tables is a bit different than the logic of the existing paragraph loop. Instead of repeating the content in between the opening and closing tags it repeats entire rows (including content in the row that appears before the opening or after the closing tag). The same goes for lists - the entire bullet is repeated.
  • Throw MalformedFileError when fails to open template file as zip.
  • Continuous integration with CircleCI.

Changed

  • Change dev stack to Babel, Jest and ESLint.
alonrbar
published 0.4.0 •

Changelog

Source

0.4.0 - 2018-12-13

Added

  • Easily find out what tags are present in a given template (TemplateHandler.parseTags).
alonrbar
published 0.3.4 •

Changelog

Source

0.3.4 - 2018-12-09

Added

  • Full browser example in readme file.
alonrbar
published 0.3.3 •

Changelog

Source

0.3.3 - 2018-07-17

Added

  • Package keywords for npm visibility.
alonrbar
published 0.3.2 •

Changelog

Source

0.3.2 - 2018-06-22

Fixed

  • Fix serialization of text nodes with empty values.
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