Skip to content

Commit

Permalink
[skip ci] v3.4.4: Build artifacts for Deno
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCullum authored and github-actions[bot] committed Dec 22, 2023
1 parent de9e4a3 commit 89be15a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 7 additions & 3 deletions dist/main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,20 @@ var peculiarCrypto__namespace = /*#__PURE__*/_interopNamespaceDefault(peculiarCr

class Certificate {
constructor(cert) {

let decoded;

// Clean up base64 string
if (typeof cert === "string" || cert instanceof String) {
cert = cert.replace(/\r/g, "");
cert = cert.replace(/\r/g, "").trim();
decoded = ab2str(coerceToArrayBuffer$1(cert, "certificate"));
}

if (isPem(cert)) {
cert = pemToBase64(cert);
} else if (decoded && isPem(decoded)) {
cert = pemToBase64(decoded);
}

// Clean up certificate
if (typeof cert === "string" || cert instanceof String) {
cert = cert.replace(/\n/g, "");
Expand Down
6 changes: 5 additions & 1 deletion dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39926,11 +39926,15 @@ const mod3 = {
};
class Certificate1 {
constructor(cert){
let decoded;
if (typeof cert === "string" || cert instanceof String) {
cert = cert.replace(/\r/g, "");
cert = cert.replace(/\r/g, "").trim();
decoded = ab2str(coerceToArrayBuffer(cert, "certificate"));
}
if (isPem(cert)) {
cert = pemToBase64(cert);
} else if (decoded && isPem(decoded)) {
cert = pemToBase64(decoded);
}
if (typeof cert === "string" || cert instanceof String) {
cert = cert.replace(/\n/g, "");
Expand Down

0 comments on commit 89be15a

Please sign in to comment.