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

docx-templates

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docx-templates - npm Package Versions

1
7

4.6.0

Diff

Changelog

Source

4.6.0 (2021-03-27)

  • Add support for .docm (macro-enabled) templates (issue #195). Thanks @brockfanning!
guigrpa
published 4.5.4 •

Changelog

Source

4.5.4 (2021-03-05)

  • Improve error messages.
  • Export error types at the library level.
  • Update dependencies.
guigrpa
published 4.5.3 •

Changelog

Source

4.5.3 (2020-12-18)

  • Correctly export getMetadata function from library index module / entrypoint.
guigrpa
published 4.5.2 •

Changelog

Source

4.5.2 (2020-11-13)

  • Corrected check for valid image data. ArrayBuffers are now also valid image data containers, as the type definitions suggest (issue #166).
guigrpa
published 4.5.1 •

Changelog

Source

4.5.1 (2020-10-24)

  • Enhancement: extensive validation of IMAGE command parameters before execution to prevent silent failures caused by user error, particularly in plain javascript and untyped settings. Related to issue #158.
guigrpa
published 4.5.0 •

Changelog

Source

4.5.0 (2020-09-16)

  • Feature: added fixSmartQuotes flag (see PR #152). Thanks @speedpro! MS Word usually autocorrects JS string literal quotes with unicode 'smart' quotes ('curly' quotes). E.g. 'aubergine' -> ‘aubergine’. This causes an error when evaluating commands containing these smart quotes, as they are not valid JavaScript. If you set fixSmartQuotes to 'true', these smart quotes will automatically get replaced with straight quotes (') before command evaluation. Defaults to false.
guigrpa
published 4.4.0 •

Changelog

Source

4.4.0 (2020-08-19)

  • Feature: added getMetadata function to extract the metadata fields from a document, such as the number of pages or words (see issue #94).
  • Feature: user can now provide a custom errorHandler callback to handle any errors that may occur when executing commands from a template. The value returned by this callback will be inserted into the rendered document instead (see issue #138).
  • Restructured CommandExecutionError to make it contain the full Error original object that caused it to be thrown.
guigrpa
published 4.3.0 •

Changelog

Source

4.3.0 (2020-06-23)

  • Feature: added listCommands function to find and list all commands in a document (see issue #90).
  • Minor refactoring.
  • Updated jszip dependency.
guigrpa
published 4.2.0 •

Changelog

Source

4.2.0 (2020-06-15)

  • Feature: added 'rejectNullish' setting. When set to true, this setting ensures createReport throws a NullishCommandResultError when the result of an INS, HTML, IMAGE, or LINK command is null or undefined. This is useful as nullish return values usually indicate a mistake in the template or the invoking code. Defaults to false.
  • Enhancement: typed Errors to facilitate more fine-grained downstream error handling.
guigrpa
published 4.1.1 •

Changelog

Source

4.1.1 (2020-06-06)

  • PR #121 Improved detection of built-in commands in templates to avoid confusion with javascript symbols.
  • #107 Library now correctly recognizes user-defined commands with non-alphanumeric names (like Chinese characters).
  • #131: .docx template files originating from Office365 or SharePoint can now be used (PR #132)
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