fix(core): update

This commit is contained in:
2022-10-26 23:04:59 +02:00
parent 67f21d2500
commit 65756457aa
10 changed files with 52 additions and 67 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartpdf',
version: '3.0.13',
version: '3.0.14',
description: 'create pdfs on the fly'
}

View File

@ -1,7 +1,7 @@
/*
* pdf candidate is a construct used internally for mapping html
* to pdf buffers delivered by puppeteer
*/
* pdf candidate is a construct used internally for mapping html
* to pdf buffers delivered by puppeteer
*/
import * as plugins from './smartpdf.plugins.js';
export class PdfCandidate {

View File

@ -193,7 +193,7 @@ export class SmartPdf {
name: 'mergedPdf',
buffer: resultBuffer,
id: null,
metadata: null
metadata: null,
};
}
@ -205,8 +205,8 @@ export class SmartPdf {
name: parsedPath.base,
buffer,
id: null,
metadata: null
}
metadata: null,
};
}
public async extractTextFromPdfBuffer(pdfBufferArg: Buffer): Promise<string> {

View File

@ -1,3 +1,6 @@
import * as plugins from './smartpdf.plugins.js';
export const packageDir = plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
export const packageDir = plugins.path.join(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
'../'
);

View File

@ -13,14 +13,20 @@ import * as smartpuppeteer from '@pushrocks/smartpuppeteer';
import * as smartnetwork from '@pushrocks/smartnetwork';
import * as smartunique from '@pushrocks/smartunique';
export { smartfile, smartdelay, smartpromise, smartpath, smartpuppeteer, smartunique, smartnetwork };
export {
smartfile,
smartdelay,
smartpromise,
smartpath,
smartpuppeteer,
smartunique,
smartnetwork,
};
// tsclass scope
import * as tsclass from '@tsclass/tsclass';
export {
tsclass
}
export { tsclass };
// thirdparty
import pdfMerger from 'pdf-merger-js';