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

@pdfme/generator

Package Overview
Dependencies
Maintainers
1
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pdfme/generator - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

dist/cjs/src/helper.js

11

dist/cjs/src/generate.js

@@ -18,4 +18,3 @@ "use strict";

const common_1 = require("@pdfme/common");
const index_js_1 = require("./helper/index.js");
const draw_js_1 = require("./helper/draw.js");
const helper_js_1 = require("./helper.js");
const constants_js_1 = require("./constants.js");

@@ -28,4 +27,4 @@ const preprocessing = (arg) => __awaiter(void 0, void 0, void 0, function* () {

const fallbackFontName = (0, common_1.getFallbackFontName)(font);
const fontObj = yield (0, index_js_1.embedAndGetFontObj)({ pdfDoc, font });
const pagesAndBoxes = yield (0, index_js_1.getEmbeddedPagesAndEmbedPdfBoxes)({ pdfDoc, basePdf });
const fontObj = yield (0, helper_js_1.embedAndGetFontObj)({ pdfDoc, font });
const pagesAndBoxes = yield (0, helper_js_1.getEmbeddedPagesAndEmbedPdfBoxes)({ pdfDoc, basePdf });
const { embeddedPages, embedPdfBoxes } = pagesAndBoxes;

@@ -54,3 +53,3 @@ return { pdfDoc, fontObj, fallbackFontName, embeddedPages, embedPdfBoxes };

const page = pdfDoc.addPage([pageWidth, pageHeight]);
(0, draw_js_1.drawEmbeddedPage)({ page, embeddedPage, embedPdfBox });
(0, helper_js_1.drawEmbeddedPage)({ page, embeddedPage, embedPdfBox });
for (let l = 0; l < keys.length; l += 1) {

@@ -63,3 +62,3 @@ const key = keys[l];

// eslint-disable-next-line no-await-in-loop
yield (0, draw_js_1.drawInputByTemplateSchema)({
yield (0, helper_js_1.drawInputByTemplateSchema)({
input,

@@ -66,0 +65,0 @@ templateSchema,

@@ -13,4 +13,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { getDefaultFont, getFallbackFontName, checkGenerateProps } from '@pdfme/common';
import { getEmbeddedPagesAndEmbedPdfBoxes, embedAndGetFontObj } from './helper/index.js';
import { drawInputByTemplateSchema, drawEmbeddedPage } from './helper/draw.js';
import { getEmbeddedPagesAndEmbedPdfBoxes, drawInputByTemplateSchema, drawEmbeddedPage, embedAndGetFontObj, } from './helper.js';
import { TOOL_NAME } from './constants.js';

@@ -17,0 +16,0 @@ const preprocessing = (arg) => __awaiter(void 0, void 0, void 0, function* () {

{
"name": "@pdfme/generator",
"version": "1.1.6",
"version": "1.1.7",
"sideEffects": false,

@@ -37,3 +37,3 @@ "author": "hand-dot",

"scripts": {
"develop": "tsc -w -p tsconfig.esm.json",
"develop": "tsc -w",
"build": "npm run build:cjs && npm run build:esm",

@@ -40,0 +40,0 @@ "build:cjs": "tsc -p tsconfig.cjs.json",

@@ -5,6 +5,10 @@ import { PDFDocument } from 'pdf-lib';

import { getDefaultFont, getFallbackFontName, checkGenerateProps } from '@pdfme/common';
import { getEmbeddedPagesAndEmbedPdfBoxes, embedAndGetFontObj } from './helper/index.js';
import { drawInputByTemplateSchema, drawEmbeddedPage } from './helper/draw.js';
import {
getEmbeddedPagesAndEmbedPdfBoxes,
drawInputByTemplateSchema,
drawEmbeddedPage,
embedAndGetFontObj,
InputImageCache,
} from './helper.js';
import { TOOL_NAME } from './constants.js';
import type { InputImageCache } from './type';

@@ -11,0 +15,0 @@ const preprocessing = async (arg: {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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