Comparing version 1.18.0 to 1.19.0
{ | ||
"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"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
383635
9430
0