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

idea-html2pdf

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idea-html2pdf - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

5

dist/src/html2pdf.js

@@ -66,3 +66,2 @@ "use strict";

handlebarsRegisterDefaultHelpers() {
const lang = this.options.language ?? this.options.languages.default;
const defaultHelpers = {

@@ -87,3 +86,5 @@ get: (context, x) => context[x],

mdToHTML: (s) => typeof s === 'string' ? new Handlebars.SafeString((0, idea_toolbox_1.mdToHtml)(s)) : s,
label: (label) => this.options.languages && label ? label[lang] ?? label[this.options.languages.default] : null,
label: (label) => this.options.language && this.options.languages && label
? label[this.options.language] ?? label[this.options.languages.default]
: null,
translate: (s) => this.options.additionalTranslations && s && this.options.additionalTranslations[s]

@@ -90,0 +91,0 @@ ? this.options.additionalTranslations[s]

2

package.json
{
"name": "idea-html2pdf",
"version": "2.0.3",
"version": "2.0.4",
"description": "IDEA helper for generating a PDF from HTML contents",

@@ -5,0 +5,0 @@ "engines": {

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