xades-bes-signer 1.0.0 → 1.0.1
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.
|
@@ -123,7 +123,7 @@ function getPCK12CertInfo(certificate, certKey) {
|
|
|
123
123
|
const certBags = (_b = data[forge.pki.oids.certBag]) !== null && _b !== void 0 ? _b : [];
|
|
124
124
|
const friendlyName = certBags[1].attributes.friendlyName[0];
|
|
125
125
|
let certBag = getCertificate(certBags);
|
|
126
|
-
if (isCerticateValid(certBag.cert)) {
|
|
126
|
+
if (!isCerticateValid(certBag.cert)) {
|
|
127
127
|
throw new Error("Invalid certificate, check the validity");
|
|
128
128
|
}
|
|
129
129
|
const cert = certBag.cert;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xades-bes-signer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "XAdES-BES signer utilities for Node.js (TypeScript) — certificate handling and XAdES-BES signature helpers.",
|
|
5
5
|
"main": "/dist/src/main.js",
|
|
6
6
|
"types": "/dist/src/main.d.ts",
|