@libpdf/core 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { createCMSECDSASignature } from "pkijs";
|
|
|
11
11
|
import { base64 } from "@scure/base";
|
|
12
12
|
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.2.
|
|
14
|
+
var version = "0.2.12";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/objects/pdf-array.ts
|
|
@@ -44369,6 +44369,7 @@ var P12Signer = class P12Signer {
|
|
|
44369
44369
|
*/
|
|
44370
44370
|
static async create(p12Bytes, password, options = {}) {
|
|
44371
44371
|
try {
|
|
44372
|
+
getCrypto();
|
|
44372
44373
|
const asn1 = fromBER(toArrayBuffer(p12Bytes));
|
|
44373
44374
|
if (asn1.offset === -1) throw new SignerError("Invalid PKCS#12 file: failed to parse ASN.1 structure");
|
|
44374
44375
|
const pfx = new pkijs.PFX({ schema: asn1.result });
|