From 91c9c7046f8c613c03016f1d17cb7099b374a1e2 Mon Sep 17 00:00:00 2001 From: Valery Buchinsky Date: Mon, 29 Jan 2024 10:08:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=F0=9F=90=9B=20[signer-?= =?UTF-8?q?p12]=20Fix=20the=20JSDoc=20on=20P12Signer.sign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #224 --- packages/signer-p12/dist/P12Signer.d.ts | 6 ------ packages/signer-p12/dist/P12Signer.d.ts.map | 2 +- packages/signer-p12/dist/P12Signer.js | 2 +- packages/signer-p12/src/P12Signer.js | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/signer-p12/dist/P12Signer.d.ts b/packages/signer-p12/dist/P12Signer.d.ts index a1b4e0c8..490bb73c 100644 --- a/packages/signer-p12/dist/P12Signer.d.ts +++ b/packages/signer-p12/dist/P12Signer.d.ts @@ -14,12 +14,6 @@ export class P12Signer extends Signer { asn1StrictParsing: boolean; }; cert: any; - /** - * @param {Buffer} pdfBuffer - * @param {Date | undefined} signingTime - * @returns {Buffer} - */ - sign(pdfBuffer: Buffer, signingTime?: Date | undefined): Buffer; } export type SignerOptions = { passphrase?: string; diff --git a/packages/signer-p12/dist/P12Signer.d.ts.map b/packages/signer-p12/dist/P12Signer.d.ts.map index b8382fde..cb8a89eb 100644 --- a/packages/signer-p12/dist/P12Signer.d.ts.map +++ b/packages/signer-p12/dist/P12Signer.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"P12Signer.d.ts","sourceRoot":"","sources":["../src/P12Signer.js"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH;IACI;;;OAGG;IACH,uBAHW,MAAM,GAAG,UAAU,GAAG,MAAM,sBAC5B,aAAa,EAavB;IANG;oBAdE,MAAM;2BACN,OAAO;MAiBR;IACD,UAA8D;IAGlE;;;;OAIG;IACH,gBAJW,MAAM,gBACN,IAAI,GAAG,SAAS,GACd,MAAM,CAoFlB;CACJ;;iBA9GS,MAAM;wBACN,OAAO;;uBALiC,gBAAgB"} \ No newline at end of file +{"version":3,"file":"P12Signer.d.ts","sourceRoot":"","sources":["../src/P12Signer.js"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH;IACI;;;OAGG;IACH,uBAHW,MAAM,GAAG,UAAU,GAAG,MAAM,sBAC5B,aAAa,EAavB;IANG;oBAdE,MAAM;2BACN,OAAO;MAiBR;IACD,UAA8D;CA2FrE;;iBA9GS,MAAM;wBACN,OAAO;;uBALiC,gBAAgB"} \ No newline at end of file diff --git a/packages/signer-p12/dist/P12Signer.js b/packages/signer-p12/dist/P12Signer.js index 2a32b884..bd1fa688 100644 --- a/packages/signer-p12/dist/P12Signer.js +++ b/packages/signer-p12/dist/P12Signer.js @@ -32,7 +32,7 @@ class P12Signer extends _utils.Signer { /** * @param {Buffer} pdfBuffer * @param {Date | undefined} signingTime - * @returns {Buffer} + * @returns {Promise} */ async sign(pdfBuffer, signingTime = undefined) { if (!(pdfBuffer instanceof Buffer)) { diff --git a/packages/signer-p12/src/P12Signer.js b/packages/signer-p12/src/P12Signer.js index 74a98729..90c487dc 100644 --- a/packages/signer-p12/src/P12Signer.js +++ b/packages/signer-p12/src/P12Signer.js @@ -28,7 +28,7 @@ export class P12Signer extends Signer { /** * @param {Buffer} pdfBuffer * @param {Date | undefined} signingTime - * @returns {Buffer} + * @returns {Promise} */ async sign(pdfBuffer, signingTime = undefined) { if (!(pdfBuffer instanceof Buffer)) {