feat(smartpdf): replace internal Express server with @push.rocks/smartserve, add PDF→WebP rendering, improve start/stop handling and bump dependencies

This commit is contained in:
2026-03-09 17:05:19 +00:00
parent d0c5821f80
commit c1208b5216
7 changed files with 700 additions and 1751 deletions
+4 -4
View File
@@ -1,8 +1,7 @@
// native
import * as http from 'http';
import * as path from 'path';
export { http, path };
export { path };
// @pushrocks
import * as smartbuffer from '@push.rocks/smartbuffer';
@@ -12,6 +11,7 @@ import * as smartpromise from '@push.rocks/smartpromise';
import * as smartpath from '@push.rocks/smartpath';
import * as smartpuppeteer from '@push.rocks/smartpuppeteer';
import * as smartnetwork from '@push.rocks/smartnetwork';
import * as smartserve from '@push.rocks/smartserve';
import * as smartunique from '@push.rocks/smartunique';
import * as smartjimp from '@push.rocks/smartjimp';
@@ -24,6 +24,7 @@ export {
smartpuppeteer,
smartunique,
smartnetwork,
smartserve,
smartjimp,
};
@@ -33,8 +34,7 @@ import * as tsclass from '@tsclass/tsclass';
export { tsclass };
// thirdparty
import express from 'express';
import pdf2json from 'pdf2json';
import pdfLib from 'pdf-lib';
export { express, pdf2json, pdfLib, };
export { pdf2json, pdfLib };