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

btrz-pdf

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btrz-pdf - npm Package Compare versions

Comparing version 1.18.0 to 1.19.0

2

package.json
{
"name": "btrz-pdf",
"version": "1.18.0",
"version": "1.19.0",
"description": "Generates pdf documents based on a liquid template",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -397,3 +397,2 @@ /*eslint no-unused-vars: ["error", {"args": "none"}]*/

case 'vector':
console.log("VECTOR");
renderVector(item.item, patterns, pdfKitDoc);

@@ -408,3 +407,2 @@ break;

case 'image':
console.log("IMAGE");
if (docDefinition && docDefinition.direction === "vertical") {

@@ -411,0 +409,0 @@ item.item.y = calculateVerticalY(docDefinition, item);

@@ -23,2 +23,11 @@ const {timezones, BzDate} = require("bz-date");

function formatBzDate2(bzDate, format, envs) {
const lang = shortLang(envs.lang);
const timeFormat = envs.providerPreferences.preferences.timeFormat;
// const timeZone = envs.providerPreferences.preferences.timeZone;
// const offset = timezones.getOffset(timeZone, bzDate);
// const createdLocal = bzDate.addMinutes(offset);
return `${formatter.dateFormat(bzDate.toString(`'yyyy-mm-dd' ${timeFormat}`), `${format}`, false, lang)}`;
}
function getDate(envs, item, propName, format) {

@@ -166,3 +175,3 @@ let dateObjOrString = envs[item][propName];

const format = this.format || `${ctx.environments.providerPreferences.preferences.dateFormat} ${ctx.environments.providerPreferences.preferences.timeFormat}`;
return formatBzDate(expireDate, format, ctx.environments);
return formatBzDate2(expireDate, format, ctx.environments);
}

@@ -169,0 +178,0 @@ return "PNA";

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