fix(build): modernize package configuration and simplify tests for the current toolchain

This commit is contained in:
2026-05-01 18:57:42 +00:00
parent e58a54f8c6
commit 831cb6734d
13 changed files with 6899 additions and 4679 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
* autocreated commitinfo by @push.rocks/commitinfo
*/
export const commitinfo = {
name: '@push.rocks/smartsign',
version: '1.0.5',
description: 'sign documents'
version: '1.0.6',
description: 'A library for signing PDF documents.'
}
+2 -2
View File
@@ -8,6 +8,6 @@ export class SigningEnvelope {
}
exportSignedPdf() {
// TODO: implement PDF signing once the envelope API is finalized.
}
}
}
+2 -2
View File
@@ -3,7 +3,7 @@ import * as plugins from './smartsign.plugins.js';
export class SmartSign {
public p12Cert: Buffer;
public smartpdfInstance: plugins.smartpdf.SmartPdf;
public smartpdfInstance!: plugins.smartpdf.SmartPdf;
constructor(p12CertBuffer: Buffer) {
this.p12Cert = p12CertBuffer;
}
@@ -19,4 +19,4 @@ export class SmartSign {
public async createEnvelopeFromPdf(pdfArg: plugins.smartpdf.IPdf) {
return new SigningEnvelope(this, pdfArg);
}
}
}
+2 -2
View File
@@ -3,7 +3,7 @@ import * as smartpdf from '@push.rocks/smartpdf';
export {
smartpdf,
}
};
// thirdparty scope
import * as signpdf from '@signpdf/signpdf';
@@ -12,4 +12,4 @@ import * as signerP12 from '@signpdf/signer-p12';
export {
signpdf,
signerP12,
}
};