node-opcua-crypto-web 5.7.0 → 5.7.2
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_web.js +9 -4
- package/package.json +2 -2
package/dist/index_web.js
CHANGED
|
@@ -61691,6 +61691,10 @@ if (typeof window === "undefined") {
|
|
|
61691
61691
|
function getCrypto() {
|
|
61692
61692
|
return _crypto || crypto || node_crypto_shim_default;
|
|
61693
61693
|
}
|
|
61694
|
+
function ensurePemTrailingNewline(pem2) {
|
|
61695
|
+
return pem2.endsWith("\n") ? pem2 : `${pem2}
|
|
61696
|
+
`;
|
|
61697
|
+
}
|
|
61694
61698
|
|
|
61695
61699
|
// ../node-opcua-crypto/source/x509/build_ca_extensions.ts
|
|
61696
61700
|
init_inject_buffer();
|
|
@@ -61959,7 +61963,7 @@ async function createCertificateFromCsr(options) {
|
|
|
61959
61963
|
},
|
|
61960
61964
|
signingCrypto
|
|
61961
61965
|
);
|
|
61962
|
-
return { cert: cert.toString("pem"), der: cert.rawData };
|
|
61966
|
+
return { cert: ensurePemTrailingNewline(cert.toString("pem")), der: cert.rawData };
|
|
61963
61967
|
}
|
|
61964
61968
|
|
|
61965
61969
|
// ../node-opcua-crypto/source/x509/create_certificate_signing_request.ts
|
|
@@ -62037,7 +62041,7 @@ async function createCertificateSigningRequest({
|
|
|
62037
62041
|
},
|
|
62038
62042
|
crypto4
|
|
62039
62043
|
);
|
|
62040
|
-
return { csr: csr.toString("pem"), der: csr };
|
|
62044
|
+
return { csr: ensurePemTrailingNewline(csr.toString("pem")), der: csr };
|
|
62041
62045
|
}
|
|
62042
62046
|
|
|
62043
62047
|
// ../node-opcua-crypto/source/x509/create_crl.ts
|
|
@@ -62068,7 +62072,8 @@ async function createCrl(options) {
|
|
|
62068
62072
|
},
|
|
62069
62073
|
signingCrypto
|
|
62070
62074
|
);
|
|
62071
|
-
|
|
62075
|
+
const crlPem = ensurePemTrailingNewline(x509_es_exports.PemConverter.encode(crl.rawData, "X509 CRL"));
|
|
62076
|
+
return { crl: crlPem, der: crl.rawData };
|
|
62072
62077
|
}
|
|
62073
62078
|
|
|
62074
62079
|
// ../node-opcua-crypto/source/x509/create_self_signed_certificate.ts
|
|
@@ -62140,7 +62145,7 @@ async function createSelfSignedCertificate({
|
|
|
62140
62145
|
},
|
|
62141
62146
|
crypto4
|
|
62142
62147
|
);
|
|
62143
|
-
return { cert: cert.toString("pem"), der: cert };
|
|
62148
|
+
return { cert: ensurePemTrailingNewline(cert.toString("pem")), der: cert };
|
|
62144
62149
|
}
|
|
62145
62150
|
|
|
62146
62151
|
// ../node-opcua-crypto/source/crypto_utils2.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-crypto-web",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pre-bundled, zero-config browser build of node-opcua-crypto",
|
|
6
6
|
"//why": "This package exists so node-opcua-crypto can stay lean for Node. The pre-bundled browser build inlines its polyfills (crypto-browserify, stream-browserify, ...) and weighs ~344 KB gzip - more than the entire node-opcua-crypto tarball. Shipping it there would make every Node consumer download a browser bundle they never import. Browser consumers install this package explicitly, or let node-opcua-crypto's \"browser\" export condition redirect to it (see node-opcua-crypto/browser/index.js).",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"LICENSE",
|
|
68
68
|
"README.md"
|
|
69
69
|
],
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "1d0adf954c8c34cac820e05d982b029f05884e0c"
|
|
71
71
|
}
|