@peculiar/certificates-viewer 4.3.0 → 4.3.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/components/attribute-certificate-viewer.js +5 -5
- package/components/attribute-certificate-viewer.js.map +1 -1
- package/components/attribute.js +1 -1
- package/components/certificate-chain-viewer.js +66 -0
- package/components/certificate-chain-viewer.js.map +1 -0
- package/components/certificate-viewer.js +5 -5
- package/components/certificate-viewer.js.map +1 -1
- package/components/circular-progress.js +3 -3
- package/components/crl-viewer.js +5 -5
- package/components/crl-viewer.js.map +1 -1
- package/components/download.js +257 -46
- package/components/download.js.map +1 -1
- package/components/highlight-words.js +1 -1
- package/components/index2.js +1 -1
- package/components/issuer_name.js +1 -1
- package/components/miscellaneous.js +1 -1
- package/components/miscellaneous.js.map +1 -1
- package/components/peculiar-certificate-chain-viewer.d.ts +11 -0
- package/components/peculiar-certificate-chain-viewer.js +11 -0
- package/components/peculiar-certificate-chain-viewer.js.map +1 -0
- package/components/peculiar-certificate-decoder.js +105 -19
- package/components/peculiar-certificate-decoder.js.map +1 -1
- package/components/peculiar-certificates-viewer.js +2 -2
- package/components/peculiar-certificates-viewer.js.map +1 -1
- package/components/peculiar-text-hider.js +1 -1
- package/components/pkcs10_certificate_request.js +5 -5
- package/components/pkcs10_certificate_request.js.map +1 -1
- package/components/subject_name.js +1 -1
- package/dist/cjs/{actions-789906f5.js → actions-64ce3326.js} +2 -2
- package/dist/cjs/{actions-789906f5.js.map → actions-64ce3326.js.map} +1 -1
- package/dist/cjs/{arrow_top-76e4261e.js → arrow_top-b9b9f280.js} +2 -2
- package/dist/cjs/{arrow_top-76e4261e.js.map → arrow_top-b9b9f280.js.map} +1 -1
- package/dist/cjs/{button-87086210.js → button-61bb8305.js} +2 -2
- package/dist/cjs/{button-87086210.js.map → button-61bb8305.js.map} +1 -1
- package/dist/cjs/{certification_request-314859bb.js → certification_request-393a843d.js} +279 -66
- package/dist/cjs/certification_request-393a843d.js.map +1 -0
- package/dist/cjs/{cross-bd099933.js → cross-3aeffd04.js} +2 -2
- package/dist/cjs/{cross-bd099933.js.map → cross-3aeffd04.js.map} +1 -1
- package/dist/cjs/{download-820d66ba.js → download-c2836546.js} +2 -2
- package/dist/cjs/{download-820d66ba.js.map → download-c2836546.js.map} +1 -1
- package/dist/cjs/index-484a84a0.js +2113 -0
- package/dist/cjs/index-484a84a0.js.map +1 -0
- package/dist/cjs/index.cjs.js +9 -9
- package/dist/cjs/{link-a3d3799d.js → link-dad7195a.js} +3 -3
- package/dist/cjs/{link-a3d3799d.js.map → link-dad7195a.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{miscellaneous-f1bc3a4b.js → miscellaneous-ca06fb81.js} +6 -6
- package/dist/cjs/{miscellaneous-f1bc3a4b.js.map → miscellaneous-ca06fb81.js.map} +1 -1
- package/dist/cjs/{peculiar-attribute-certificate-viewer_3.cjs.entry.js → peculiar-attribute-certificate-viewer_4.cjs.entry.js} +40 -9
- package/dist/cjs/peculiar-attribute-certificate-viewer_4.cjs.entry.js.map +1 -0
- package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +7 -7
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +101 -21
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +7 -7
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +8 -8
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-text-hider.cjs.entry.js +4 -4
- package/dist/cjs/peculiar.cjs.js +10 -10
- package/dist/cjs/peculiar.cjs.js.map +1 -1
- package/dist/cjs/{pkcs10_certificate_request-93c66ce7.js → pkcs10_certificate_request-56990e4f.js} +6 -6
- package/dist/cjs/pkcs10_certificate_request-56990e4f.js.map +1 -0
- package/dist/cjs/{x509_certificate-0776e3ec.js → x509_certificate-d162984c.js} +6 -6
- package/dist/cjs/x509_certificate-d162984c.js.map +1 -0
- package/dist/cjs/{x509_crl-5326d209.js → x509_crl-13322e13.js} +11 -11
- package/dist/cjs/x509_crl-13322e13.js.map +1 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +14 -0
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -1
- package/dist/collection/components/button-menu/button-menu.js +2 -0
- package/dist/collection/components/button-menu/button-menu.js.map +1 -1
- package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.css +1019 -0
- package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js +101 -0
- package/dist/collection/components/certificate-chain-viewer/certificate-chain-viewer.js.map +1 -0
- package/dist/collection/components/certificate-decoder/certificate-decoder.css +1 -4
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +40 -18
- package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -1
- package/dist/collection/components/certificate-viewer/certificate-viewer.js +16 -0
- package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -1
- package/dist/collection/components/certificates-viewer/certificates-viewer.js +9 -1
- package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -1
- package/dist/collection/components/circular-progress/circular-progress.js +7 -3
- package/dist/collection/components/circular-progress/circular-progress.js.map +1 -1
- package/dist/collection/components/crl-viewer/crl-viewer.js +12 -0
- package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -1
- package/dist/collection/components/csr-viewer/csr-viewer.js +10 -0
- package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -1
- package/dist/collection/components/highlight-words/highlight-words.js +3 -1
- package/dist/collection/components/highlight-words/highlight-words.js.map +1 -1
- package/dist/collection/components/text-hider/text-hider.js +1 -1
- package/dist/collection/crypto/index.js +1 -0
- package/dist/collection/crypto/index.js.map +1 -1
- package/dist/collection/crypto/pem_converter.js +169 -0
- package/dist/collection/crypto/pem_converter.js.map +1 -0
- package/dist/collection/crypto/pkcs10_certificate_request.js +6 -5
- package/dist/collection/crypto/pkcs10_certificate_request.js.map +1 -1
- package/dist/collection/crypto/utils.js +18 -21
- package/dist/collection/crypto/utils.js.map +1 -1
- package/dist/collection/crypto/x509_attribute_certificate.js +6 -5
- package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -1
- package/dist/collection/crypto/x509_certificate.js +6 -5
- package/dist/collection/crypto/x509_certificate.js.map +1 -1
- package/dist/collection/crypto/x509_certificates.js +69 -0
- package/dist/collection/crypto/x509_certificates.js.map +1 -0
- package/dist/collection/crypto/x509_crl.js +6 -5
- package/dist/collection/crypto/x509_crl.js.map +1 -1
- package/dist/collection/utils/index.js +0 -2
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/collection/www-copy/index.js +123 -121
- package/dist/esm/{actions-aebcbc9d.js → actions-2e39a3b9.js} +2 -2
- package/dist/esm/{actions-aebcbc9d.js.map → actions-2e39a3b9.js.map} +1 -1
- package/dist/esm/{arrow_top-aee1ee02.js → arrow_top-72c7543a.js} +2 -2
- package/dist/esm/{arrow_top-aee1ee02.js.map → arrow_top-72c7543a.js.map} +1 -1
- package/dist/esm/{button-a2fabf9a.js → button-e0909687.js} +2 -2
- package/dist/esm/{button-a2fabf9a.js.map → button-e0909687.js.map} +1 -1
- package/dist/esm/{certification_request-b531916a.js → certification_request-714bd438.js} +258 -47
- package/dist/esm/certification_request-714bd438.js.map +1 -0
- package/dist/esm/{cross-1377606f.js → cross-0c62835f.js} +2 -2
- package/dist/esm/{cross-1377606f.js.map → cross-0c62835f.js.map} +1 -1
- package/dist/esm/{download-14dc1047.js → download-5686d86f.js} +2 -2
- package/dist/esm/{download-14dc1047.js.map → download-5686d86f.js.map} +1 -1
- package/dist/esm/index-38365508.js +2084 -0
- package/dist/esm/index-38365508.js.map +1 -0
- package/dist/esm/index.js +9 -9
- package/dist/esm/{link-7e4e9060.js → link-09718951.js} +3 -3
- package/dist/esm/{link-7e4e9060.js.map → link-09718951.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{miscellaneous-7fe71e3f.js → miscellaneous-0657d00e.js} +6 -6
- package/dist/esm/{miscellaneous-7fe71e3f.js.map → miscellaneous-0657d00e.js.map} +1 -1
- package/dist/esm/{peculiar-attribute-certificate-viewer_3.entry.js → peculiar-attribute-certificate-viewer_4.entry.js} +40 -10
- package/dist/esm/peculiar-attribute-certificate-viewer_4.entry.js.map +1 -0
- package/dist/esm/peculiar-button-menu_3.entry.js +7 -7
- package/dist/esm/peculiar-certificate-decoder.entry.js +101 -21
- package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +7 -7
- package/dist/esm/peculiar-certificates-viewer.entry.js +8 -8
- package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-text-hider.entry.js +4 -4
- package/dist/esm/peculiar.js +11 -11
- package/dist/esm/peculiar.js.map +1 -1
- package/dist/esm/{pkcs10_certificate_request-cca2ca68.js → pkcs10_certificate_request-d3871050.js} +6 -6
- package/dist/esm/pkcs10_certificate_request-d3871050.js.map +1 -0
- package/dist/esm/{x509_certificate-050175dd.js → x509_certificate-d0d0c5c1.js} +6 -6
- package/dist/esm/x509_certificate-d0d0c5c1.js.map +1 -0
- package/dist/esm/{x509_crl-c497f907.js → x509_crl-e837f4c3.js} +11 -11
- package/dist/esm/x509_crl-e837f4c3.js.map +1 -0
- package/dist/esm-es5/{actions-aebcbc9d.js → actions-2e39a3b9.js} +2 -2
- package/dist/esm-es5/{actions-aebcbc9d.js.map → actions-2e39a3b9.js.map} +1 -1
- package/dist/esm-es5/app-globals-5e9b67e0.js.map +1 -1
- package/dist/esm-es5/{arrow_top-aee1ee02.js → arrow_top-72c7543a.js} +2 -2
- package/dist/esm-es5/{arrow_top-aee1ee02.js.map → arrow_top-72c7543a.js.map} +1 -1
- package/dist/esm-es5/{button-a2fabf9a.js → button-e0909687.js} +2 -2
- package/dist/esm-es5/{button-a2fabf9a.js.map → button-e0909687.js.map} +1 -1
- package/dist/esm-es5/{certification_request-b531916a.js → certification_request-714bd438.js} +19 -12
- package/dist/esm-es5/certification_request-714bd438.js.map +1 -0
- package/dist/esm-es5/{cross-1377606f.js → cross-0c62835f.js} +2 -2
- package/dist/esm-es5/{cross-1377606f.js.map → cross-0c62835f.js.map} +1 -1
- package/dist/esm-es5/{download-14dc1047.js → download-5686d86f.js} +2 -2
- package/dist/esm-es5/{download-14dc1047.js.map → download-5686d86f.js.map} +1 -1
- package/dist/esm-es5/index-38365508.js +6 -0
- package/dist/esm-es5/index-38365508.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/{link-7e4e9060.js → link-09718951.js} +3 -3
- package/dist/esm-es5/{link-7e4e9060.js.map → link-09718951.js.map} +1 -1
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/{miscellaneous-7fe71e3f.js → miscellaneous-0657d00e.js} +2 -2
- package/dist/esm-es5/{miscellaneous-7fe71e3f.js.map → miscellaneous-0657d00e.js.map} +1 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_4.entry.js +110 -0
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_4.entry.js.map +1 -0
- package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -1
- package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js +2 -2
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +2 -2
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
- package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -1
- package/dist/esm-es5/peculiar.js +2 -2
- package/dist/esm-es5/peculiar.js.map +1 -1
- package/dist/esm-es5/{pkcs10_certificate_request-cca2ca68.js → pkcs10_certificate_request-d3871050.js} +3 -3
- package/dist/esm-es5/pkcs10_certificate_request-d3871050.js.map +1 -0
- package/dist/esm-es5/read_file-bb0b1450.js.map +1 -1
- package/dist/esm-es5/x509_certificate-d0d0c5c1.js +12 -0
- package/dist/esm-es5/x509_certificate-d0d0c5c1.js.map +1 -0
- package/dist/esm-es5/x509_crl-e837f4c3.js +19 -0
- package/dist/esm-es5/x509_crl-e837f4c3.js.map +1 -0
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/index.esm.js.map +1 -1
- package/dist/peculiar/{p-5a662d6f.system.js → p-02529999.system.js} +2 -2
- package/dist/peculiar/{p-5a662d6f.system.js.map → p-02529999.system.js.map} +1 -1
- package/dist/peculiar/{p-cc256004.system.entry.js → p-04228f9c.system.entry.js} +3 -3
- package/dist/peculiar/{p-cc256004.system.entry.js.map → p-04228f9c.system.entry.js.map} +1 -1
- package/dist/peculiar/{p-bd7fb688.system.entry.js → p-12bc3ebc.system.entry.js} +2 -2
- package/dist/peculiar/{p-bd7fb688.system.entry.js.map → p-12bc3ebc.system.entry.js.map} +1 -1
- package/dist/peculiar/{p-afbd1c8e.entry.js → p-161f7f97.entry.js} +2 -2
- package/dist/peculiar/{p-afbd1c8e.entry.js.map → p-161f7f97.entry.js.map} +1 -1
- package/dist/peculiar/p-25a532a3.js.map +1 -1
- package/dist/peculiar/p-32cf293c.system.js +5 -0
- package/dist/peculiar/p-32cf293c.system.js.map +1 -0
- package/dist/peculiar/{p-52f13c4a.system.js → p-35cd359e.system.js} +2 -2
- package/dist/peculiar/{p-52f13c4a.system.js.map → p-35cd359e.system.js.map} +1 -1
- package/dist/peculiar/p-39bbe0b9.system.entry.js +5 -0
- package/dist/peculiar/{p-b5389885.system.entry.js.map → p-39bbe0b9.system.entry.js.map} +1 -1
- package/dist/peculiar/p-41eacbcd.system.entry.js +111 -0
- package/dist/peculiar/p-41eacbcd.system.entry.js.map +1 -0
- package/dist/peculiar/p-47b7dd9e.entry.js +110 -0
- package/dist/peculiar/p-47b7dd9e.entry.js.map +1 -0
- package/dist/peculiar/{p-8bbee8f4.system.js → p-4ee5beee.system.js} +2 -2
- package/dist/peculiar/{p-8bbee8f4.system.js.map → p-4ee5beee.system.js.map} +1 -1
- package/dist/peculiar/p-55303453.system.js.map +1 -1
- package/dist/peculiar/{p-ae91d778.js → p-562652dd.js} +2 -2
- package/dist/peculiar/{p-ae91d778.js.map → p-562652dd.js.map} +1 -1
- package/dist/peculiar/p-5b4db88b.system.js +5 -0
- package/dist/peculiar/p-5b4db88b.system.js.map +1 -0
- package/dist/peculiar/{p-e4ad4f13.system.entry.js → p-67452b74.system.entry.js} +2 -2
- package/dist/peculiar/{p-e4ad4f13.system.entry.js.map → p-67452b74.system.entry.js.map} +1 -1
- package/dist/peculiar/p-684b7f0f.system.js +142 -0
- package/dist/peculiar/p-684b7f0f.system.js.map +1 -0
- package/dist/peculiar/{p-8ff95ad8.entry.js → p-6eb92f5a.entry.js} +2 -2
- package/dist/peculiar/{p-8ff95ad8.entry.js.map → p-6eb92f5a.entry.js.map} +1 -1
- package/dist/peculiar/p-8dd6d1ee.entry.js +5 -0
- package/dist/peculiar/p-8dd6d1ee.entry.js.map +1 -0
- package/dist/peculiar/{p-a9487007.js → p-90c3a063.js} +2 -2
- package/dist/peculiar/{p-a9487007.js.map → p-90c3a063.js.map} +1 -1
- package/dist/peculiar/{p-adf16adb.js → p-90f461c0.js} +13 -13
- package/dist/peculiar/{p-adf16adb.js.map → p-90f461c0.js.map} +1 -1
- package/dist/peculiar/{p-99efefea.js → p-92f9641a.js} +2 -2
- package/dist/peculiar/{p-99efefea.js.map → p-92f9641a.js.map} +1 -1
- package/dist/peculiar/p-93e299aa.system.entry.js +5 -0
- package/dist/peculiar/p-93e299aa.system.entry.js.map +1 -0
- package/dist/peculiar/p-9987b899.js +19 -0
- package/dist/peculiar/{p-4bc5ddbe.js.map → p-9987b899.js.map} +1 -1
- package/dist/peculiar/p-9b64adaa.system.js +13 -0
- package/dist/peculiar/p-9b64adaa.system.js.map +1 -0
- package/dist/peculiar/{p-243244af.system.js → p-9ca02302.system.js} +2 -2
- package/dist/peculiar/{p-243244af.system.js.map → p-9ca02302.system.js.map} +1 -1
- package/dist/peculiar/p-a1adb881.js +6 -0
- package/dist/peculiar/p-a1adb881.js.map +1 -0
- package/dist/peculiar/{p-eea904d7.system.js → p-a3054d6e.system.js} +2 -2
- package/dist/peculiar/{p-eea904d7.system.js.map → p-a3054d6e.system.js.map} +1 -1
- package/dist/peculiar/{p-666438a8.js → p-a55fd6f1.js} +20 -13
- package/dist/peculiar/p-a55fd6f1.js.map +1 -0
- package/dist/peculiar/p-a87e1a0e.js +12 -0
- package/dist/peculiar/{p-e6a6e602.js.map → p-a87e1a0e.js.map} +1 -1
- package/dist/peculiar/p-a9ea6c79.system.js +20 -0
- package/dist/peculiar/p-a9ea6c79.system.js.map +1 -0
- package/dist/peculiar/{p-ddadcb44.entry.js → p-b01c70cf.entry.js} +3 -3
- package/dist/peculiar/{p-ddadcb44.entry.js.map → p-b01c70cf.entry.js.map} +1 -1
- package/dist/peculiar/p-b5674f82.js +19 -0
- package/dist/peculiar/p-b5674f82.js.map +1 -0
- package/dist/peculiar/{p-27ca6743.js → p-ba3dfc03.js} +2 -2
- package/dist/peculiar/{p-27ca6743.js.map → p-ba3dfc03.js.map} +1 -1
- package/dist/peculiar/p-bc91996c.system.js +6 -0
- package/dist/peculiar/p-bc91996c.system.js.map +1 -0
- package/dist/peculiar/p-c2995a63.system.js.map +1 -1
- package/dist/peculiar/p-c5d3333c.system.js +19 -0
- package/dist/peculiar/p-c5d3333c.system.js.map +1 -0
- package/dist/peculiar/p-cb8a0b79.js +19 -0
- package/dist/peculiar/p-cb8a0b79.js.map +1 -0
- package/dist/peculiar/{p-c241e4ba.system.js → p-d46670fa.system.js} +2 -2
- package/dist/peculiar/{p-c241e4ba.system.js.map → p-d46670fa.system.js.map} +1 -1
- package/dist/peculiar/{p-9712b827.system.js → p-d9145ee8.system.js} +2 -2
- package/dist/peculiar/{p-9712b827.system.js.map → p-d9145ee8.system.js.map} +1 -1
- package/dist/peculiar/p-dac867e8.js.map +1 -1
- package/dist/peculiar/p-f456fe47.js +12 -0
- package/dist/peculiar/p-f456fe47.js.map +1 -0
- package/dist/peculiar/p-f6ec61db.entry.js +5 -0
- package/dist/peculiar/{p-713563fb.entry.js.map → p-f6ec61db.entry.js.map} +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/peculiar/peculiar.esm.js.map +1 -1
- package/dist/peculiar/peculiar.js +1 -1
- package/dist/types/components/certificate-chain-viewer/certificate-chain-viewer.d.ts +21 -0
- package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +5 -4
- package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +2 -2
- package/dist/types/components/typography/typography.d.ts +0 -1
- package/dist/types/components.d.ts +33 -4
- package/dist/types/crypto/index.d.ts +1 -0
- package/dist/types/crypto/pem_converter.d.ts +71 -0
- package/dist/types/crypto/pkcs10_certificate_request.d.ts +2 -2
- package/dist/types/crypto/utils.d.ts +7 -3
- package/dist/types/crypto/x509_attribute_certificate.d.ts +2 -2
- package/dist/types/crypto/x509_certificate.d.ts +2 -2
- package/dist/types/crypto/x509_certificates.d.ts +9 -0
- package/dist/types/crypto/x509_crl.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +9 -10
- package/dist/types/utils/index.d.ts +0 -2
- package/hydrate/index.d.ts +36 -12
- package/hydrate/index.js +25200 -15088
- package/hydrate/index.mjs +34931 -0
- package/hydrate/package.json +7 -1
- package/loader/cdn.js +1 -1
- package/loader/index.cjs.js +1 -1
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -1
- package/loader/index.js +1 -1
- package/package.json +32 -29
- package/dist/cjs/certification_request-314859bb.js.map +0 -1
- package/dist/cjs/index-e2ae280a.js +0 -2730
- package/dist/cjs/index-e2ae280a.js.map +0 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +0 -1
- package/dist/cjs/pkcs10_certificate_request-93c66ce7.js.map +0 -1
- package/dist/cjs/x509_certificate-0776e3ec.js.map +0 -1
- package/dist/cjs/x509_crl-5326d209.js.map +0 -1
- package/dist/collection/utils/validator.js +0 -25
- package/dist/collection/utils/validator.js.map +0 -1
- package/dist/esm/certification_request-b531916a.js.map +0 -1
- package/dist/esm/index-ae188432.js +0 -2701
- package/dist/esm/index-ae188432.js.map +0 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +0 -1
- package/dist/esm/pkcs10_certificate_request-cca2ca68.js.map +0 -1
- package/dist/esm/x509_certificate-050175dd.js.map +0 -1
- package/dist/esm/x509_crl-c497f907.js.map +0 -1
- package/dist/esm-es5/certification_request-b531916a.js.map +0 -1
- package/dist/esm-es5/index-ae188432.js +0 -6
- package/dist/esm-es5/index-ae188432.js.map +0 -1
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +0 -110
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +0 -1
- package/dist/esm-es5/pkcs10_certificate_request-cca2ca68.js.map +0 -1
- package/dist/esm-es5/x509_certificate-050175dd.js +0 -12
- package/dist/esm-es5/x509_certificate-050175dd.js.map +0 -1
- package/dist/esm-es5/x509_crl-c497f907.js +0 -19
- package/dist/esm-es5/x509_crl-c497f907.js.map +0 -1
- package/dist/peculiar/p-05af3b74.system.js +0 -13
- package/dist/peculiar/p-05af3b74.system.js.map +0 -1
- package/dist/peculiar/p-163a3052.system.js +0 -20
- package/dist/peculiar/p-163a3052.system.js.map +0 -1
- package/dist/peculiar/p-2d9c40d6.system.entry.js +0 -111
- package/dist/peculiar/p-2d9c40d6.system.entry.js.map +0 -1
- package/dist/peculiar/p-3cb79cd9.js +0 -6
- package/dist/peculiar/p-3cb79cd9.js.map +0 -1
- package/dist/peculiar/p-494d26fb.entry.js +0 -5
- package/dist/peculiar/p-494d26fb.entry.js.map +0 -1
- package/dist/peculiar/p-4bc5ddbe.js +0 -19
- package/dist/peculiar/p-5a699274.js +0 -19
- package/dist/peculiar/p-5a699274.js.map +0 -1
- package/dist/peculiar/p-6221d0a4.system.entry.js +0 -5
- package/dist/peculiar/p-6221d0a4.system.entry.js.map +0 -1
- package/dist/peculiar/p-666438a8.js.map +0 -1
- package/dist/peculiar/p-713563fb.entry.js +0 -5
- package/dist/peculiar/p-7a5173be.entry.js +0 -110
- package/dist/peculiar/p-7a5173be.entry.js.map +0 -1
- package/dist/peculiar/p-80477c05.js +0 -12
- package/dist/peculiar/p-80477c05.js.map +0 -1
- package/dist/peculiar/p-821bdcdc.system.js +0 -6
- package/dist/peculiar/p-821bdcdc.system.js.map +0 -1
- package/dist/peculiar/p-8393399a.system.js +0 -5
- package/dist/peculiar/p-8393399a.system.js.map +0 -1
- package/dist/peculiar/p-a06f51a2.system.js +0 -19
- package/dist/peculiar/p-a06f51a2.system.js.map +0 -1
- package/dist/peculiar/p-b5389885.system.entry.js +0 -5
- package/dist/peculiar/p-b6d5e413.js +0 -19
- package/dist/peculiar/p-b6d5e413.js.map +0 -1
- package/dist/peculiar/p-d1066b51.system.js +0 -135
- package/dist/peculiar/p-d1066b51.system.js.map +0 -1
- package/dist/peculiar/p-d6229f42.system.js +0 -5
- package/dist/peculiar/p-d6229f42.system.js.map +0 -1
- package/dist/peculiar/p-e6a6e602.js +0 -12
- package/dist/types/utils/validator.d.ts +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"pkcs10_certificate_request.js","mappings":";;;;;;AAAA;;;;;;;
|
|
1
|
+
{"file":"pkcs10_certificate_request.js","mappings":"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","names":["Convert"],"sources":["src/crypto/pkcs10_certificate_request.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { ECParameters, id_ecPublicKey } from '@peculiar/asn1-ecc';\nimport { id_rsaEncryption, RSAPublicKey } from '@peculiar/asn1-rsa';\nimport { CertificationRequest } from '@peculiar/asn1-csr';\nimport {\n id_pkcs9_at_extensionRequest,\n ExtensionRequest,\n} from '@peculiar/asn1-pkcs9';\nimport { Convert } from 'pvtsutils';\n\nimport { Download } from '../utils';\n\nimport { AsnData } from './asn_data';\nimport { Name, INameJSON } from './name';\nimport { Attribute, TAttributeValue } from './attribute';\nimport { Extension, TExtensionValue } from './extension';\nimport { PemConverter } from './pem_converter';\nimport {\n certificateRawToBuffer,\n getCertificateThumbprint,\n} from './utils';\n\ninterface ISignature {\n algorithm: string;\n value: BufferSource;\n}\n\ninterface IPublicKey {\n algorithm: string;\n value: BufferSource;\n params?: ECParameters | RSAPublicKey;\n}\n\nexport class Pkcs10CertificateRequest extends AsnData<CertificationRequest> {\n public readonly subject: INameJSON[];\n\n public readonly version: number;\n\n public attributes: Attribute<TAttributeValue>[];\n\n public extensions: Extension<TExtensionValue>[];\n\n public thumbprints: Record<string, string> = {};\n\n public readonly type = 'PKCS#10 Certificate Request';\n\n public readonly tag = PemConverter.CertificateRequestTag;\n\n constructor(raw: string) {\n super(certificateRawToBuffer(raw), CertificationRequest);\n\n const { certificationRequestInfo } = this.asn;\n\n this.subject = new Name(certificationRequestInfo.subject).toJSON();\n this.version = certificationRequestInfo.version;\n }\n\n public get publicKey(): IPublicKey {\n const { subjectPublicKey, algorithm } = this.asn.certificationRequestInfo.subjectPKInfo;\n let params;\n\n if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {\n params = AsnConvert.parse(algorithm.parameters, ECParameters);\n }\n\n if (algorithm.algorithm === id_rsaEncryption) {\n params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);\n }\n\n const spki = AsnConvert.serialize(this.asn.certificationRequestInfo.subjectPKInfo);\n\n return {\n params,\n value: spki,\n algorithm: algorithm.algorithm,\n };\n }\n\n public get signature(): ISignature {\n const { signature, signatureAlgorithm } = this.asn;\n\n return {\n value: signature,\n algorithm: signatureAlgorithm.algorithm,\n };\n }\n\n public get commonName(): string {\n if (!this.subject) {\n return '';\n }\n\n for (let i = 0; i < this.subject.length; i += 1) {\n const name = this.subject[i];\n\n if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {\n return name.value;\n }\n }\n\n return '';\n }\n\n public async getThumbprint(\n algorithm: string = 'SHA-1',\n ): Promise<void> {\n try {\n const thumbprint = await getCertificateThumbprint(algorithm, this.raw);\n\n if (thumbprint) {\n this.thumbprints[algorithm] = Convert.ToHex(thumbprint);\n }\n } catch (error) {\n console.error('Error thumbprint get:', error);\n }\n }\n\n public parseAttributes() {\n const { certificationRequestInfo } = this.asn;\n\n if (certificationRequestInfo.attributes) {\n this.attributes = certificationRequestInfo.attributes\n .map((e) => new Attribute(AsnConvert.serialize(e)));\n\n const extensionRequestAttribute = this.attributes.find(\n (attribute) => attribute.asn.type === id_pkcs9_at_extensionRequest,\n ) as Attribute<ExtensionRequest>;\n\n if (extensionRequestAttribute) {\n this.extensions = extensionRequestAttribute.value\n .map((e) => new Extension(AsnConvert.serialize(e)));\n }\n }\n }\n\n public toString(format: 'pem' | 'base64' | 'base64url' = 'pem'): string {\n switch (format) {\n case 'pem':\n return PemConverter.encode(this.raw, this.tag);\n case 'base64url':\n return Convert.ToBase64Url(this.raw);\n default:\n return Convert.ToBase64(this.raw);\n }\n }\n\n public downloadAsPEM(name?: string) {\n Download.csr.asPEM(\n this.toString('pem'),\n name || this.commonName,\n );\n }\n\n public downloadAsDER(name?: string) {\n Download.csr.asDER(\n this.raw,\n name || this.commonName,\n );\n }\n}\n"],"version":3}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { h } from '@stencil/core/internal/client';
|
|
5
|
-
import {
|
|
5
|
+
import { M as l10n, f as Convert_1 } from './download.js';
|
|
6
6
|
import { R as RowTitle, a as RowValue, g as getStringByOID, T as TableRowTable } from './miscellaneous.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const index = require('./index-
|
|
6
|
+
const index = require('./index-484a84a0.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
@@ -20,4 +20,4 @@ const ActionsIcon = (props) => {
|
|
|
20
20
|
|
|
21
21
|
exports.ActionsIcon = ActionsIcon;
|
|
22
22
|
|
|
23
|
-
//# sourceMappingURL=actions-
|
|
23
|
+
//# sourceMappingURL=actions-64ce3326.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"actions-
|
|
1
|
+
{"file":"actions-64ce3326.js","mappings":";;;;;;;AAAA;;;;;;;MAWa,WAAW,GAA+C,CAAC,KAAK;IAC3E,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEpC,QACEA,iBACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;QAEXA,kBACE,IAAI,EAAE,kBAAkB,KAAK,GAAG,EAChC,CAAC,EAAC,2GAA2G,GAC7G,CACE,EACN;AACJ;;;;","names":["h"],"sources":["src/components/icons/actions.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const ActionsIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'gray-10' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"31\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n d=\"M15 13.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm14 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z\"\n />\n </svg>\n );\n};\n"],"version":3}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const index = require('./index-
|
|
6
|
+
const index = require('./index-484a84a0.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
@@ -34,4 +34,4 @@ const ArrowTopIcon = (props) => {
|
|
|
34
34
|
exports.ArrowBottomIcon = ArrowBottomIcon;
|
|
35
35
|
exports.ArrowTopIcon = ArrowTopIcon;
|
|
36
36
|
|
|
37
|
-
//# sourceMappingURL=arrow_top-
|
|
37
|
+
//# sourceMappingURL=arrow_top-b9b9f280.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"arrow_top-
|
|
1
|
+
{"file":"arrow_top-b9b9f280.js","mappings":";;;;;;;AAAA;;;;;;;MAWa,eAAe,GAA+C,CAAC,KAAK;IAC/E,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEpC,QACEA,iBACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;QAEXA,kBACE,MAAM,EAAE,kBAAkB,KAAK,GAAG,oBAEnB,OAAO,kBACT,KAAK,EAClB,CAAC,EAAC,0DAA0D,GAC5D,CACE,EACN;AACJ;;AC9BA;;;;;;;MAWa,YAAY,GAA+C,CAAC,KAAK;IAC5E,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEpC,QACEA,iBACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM;QAEXA,kBACE,MAAM,EAAE,kBAAkB,KAAK,GAAG,oBAEnB,OAAO,kBACT,KAAK,EAClB,CAAC,EAAC,wDAAwD,GAC1D,CACE,EACN;AACJ;;;;;","names":["h"],"sources":["src/components/icons/arrow_bottom.tsx","src/components/icons/arrow_top.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const ArrowBottomIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'gray-10' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n fill=\"none\"\n >\n <path\n stroke={`var(--pv-color-${color})`}\n // eslint-disable-next-line react/no-unknown-property\n stroke-linecap=\"round\"\n stroke-width=\"1.5\"\n d=\"m19.222 12.778-3.851 4.279a.2.2 0 0 1-.297 0l-3.852-4.28\"\n />\n </svg>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const ArrowTopIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'gray-10' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n fill=\"none\"\n >\n <path\n stroke={`var(--pv-color-${color})`}\n // eslint-disable-next-line react/no-unknown-property\n stroke-linecap=\"round\"\n stroke-width=\"1.5\"\n d=\"m11.222 17.722 3.852-4.28a.2.2 0 0 1 .297 0l3.851 4.28\"\n />\n </svg>\n );\n};\n"],"version":3}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const index = require('./index-
|
|
6
|
+
const index = require('./index-484a84a0.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
@@ -74,4 +74,4 @@ const Button = (props, children) => {
|
|
|
74
74
|
exports.Button = Button;
|
|
75
75
|
exports.Typography = Typography;
|
|
76
76
|
|
|
77
|
-
//# sourceMappingURL=button-
|
|
77
|
+
//# sourceMappingURL=button-61bb8305.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"button-
|
|
1
|
+
{"file":"button-61bb8305.js","mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;;;AAkBA,MAAM,cAAc,GAAmF;IACrG,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;CACR,CAAC;MAEW,UAAU,GAAyC,CAAC,KAAK,EAAE,QAAQ;IAC9E,MAAM,EACJ,SAAS,EAAE,aAAa,EACxB,OAAO,GAAG,IAAI,EACd,KAAK,GAAG,OAAO,EACf,KAAK,EAAE,SAAS,KAEd,KAAK,EADJ,KAAK,UACN,KAAK,EANH,0CAML,CAAQ,CAAC;IAEV,MAAM,SAAS,GAAG,aAAa,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC;IAElE,QACEA,QAAC,SAAS,oBACJ,KAAK,IACT,KAAK,EAAE;YACL,UAAU,EAAE,IAAI;YAChB,CAAC,KAAK,OAAO,EAAE,GAAG,IAAI;YACtB,CAAC,KAAK,KAAK,EAAE,GAAG,IAAI;YACpB,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;SAChC,KAEA,QAAQ,CACC,EACZ;AACJ;;AC3DA;;;;;;;MAkBa,MAAM,GAAqC,CAAC,KAAK,EAAE,QAAQ;IACtE,MAAM,EACJ,IAAI,EACJ,KAAK,EAAE,SAAS,EAChB,SAAS,EACT,OAAO,GACR,GAAG,KAAK,CAAC;IAEV,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;IACtB,MAAM,OAAO,GAAG,MAAM,GAAG,GAAG,GAAG,QAAQ,CAAC;IAExC,QACEA,QAAC,OAAO,IACN,IAAI,EAAE,CAAC,MAAM,IAAI,QAAQ,EACzB,IAAI,EAAE,MAAM,IAAI,IAAI,EACpB,MAAM,EAAE,MAAM,IAAI,QAAQ,EAC1B,GAAG,EAAE,MAAM,IAAI,qBAAqB,EACpC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE;YACL,MAAM,EAAE,IAAI;;YAEZ,YAAY,EAAE,QAAQ,CAAC,MAAM,KAAK,CAAC;YACnC,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;SAChC;QAEA,SAAS;QAET,QAAQ,CAAC,MAAM,GAAG,CAAC,KAClBA,QAAC,UAAU,IACT,OAAO,EAAC,IAAI,EACZ,KAAK,EAAC,OAAO,EACb,SAAS,EAAC,MAAM,IAEf,QAAQ,CACE,CACd,CACO,EACV;AACJ;;;;;","names":["h"],"sources":["src/components/typography/typography.tsx","src/components/button/button.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { TypographyType, ColorType } from '../../interface';\n\ninterface TypographyProps {\n component?: keyof JSX.IntrinsicElements;\n variant?: TypographyType;\n color?: ColorType;\n class?: string;\n}\n\nconst variantMapping: Record<TypographyType, 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n s1: 'h6',\n s2: 'h6',\n b1: 'p',\n b2: 'p',\n b3: 'p',\n btn1: 'span',\n btn2: 'span',\n c1: 'p',\n c2: 'p',\n};\n\nexport const Typography: FunctionalComponent<TypographyProps> = (props, children) => {\n const {\n component: componentProp,\n variant = 'b2',\n color = 'black',\n class: classProp,\n ...other\n } = props;\n\n const Component = componentProp || variantMapping[variant] || 'p';\n\n return (\n <Component\n {...other}\n class={{\n typography: true,\n [`t-${variant}`]: true,\n [`c-${color}`]: true,\n [classProp]: Boolean(classProp),\n }}\n >\n {children}\n </Component>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h, VNode } from '@stencil/core';\nimport { Typography } from '../typography';\n\nexport interface ButtonProps {\n href?: string;\n class?: string;\n startIcon?: VNode;\n onClick?: (event: MouseEvent) => void;\n}\n\nexport const Button: FunctionalComponent<ButtonProps> = (props, children) => {\n const {\n href,\n class: classProp,\n startIcon,\n onClick,\n } = props;\n\n const isLink = !!href;\n const TagType = isLink ? 'a' : 'button';\n\n return (\n <TagType\n type={!isLink && 'button'}\n href={isLink && href}\n target={isLink && '_blank'}\n rel={isLink && 'noreferrer noopener'}\n onClick={onClick}\n class={{\n button: true,\n // eslint-disable-next-line react/destructuring-assignment\n m_no_padding: children.length === 0,\n [classProp]: Boolean(classProp),\n }}\n >\n {startIcon}\n {/* eslint-disable-next-line react/destructuring-assignment */}\n {children.length > 0 && (\n <Typography\n variant=\"b3\"\n color=\"black\"\n component=\"span\"\n >\n {children}\n </Typography>\n )}\n </TagType>\n );\n};\n"],"version":3}
|
|
@@ -56,7 +56,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
56
56
|
/*!
|
|
57
57
|
* MIT License
|
|
58
58
|
*
|
|
59
|
-
* Copyright (c) 2017-
|
|
59
|
+
* Copyright (c) 2017-2024 Peculiar Ventures, LLC
|
|
60
60
|
*
|
|
61
61
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
62
62
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -168,7 +168,7 @@ class BufferSourceConverter {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
const STRING_TYPE = "string";
|
|
171
|
-
const HEX_REGEX = /^[0-9a-f]+$/i;
|
|
171
|
+
const HEX_REGEX = /^[0-9a-f\s]+$/i;
|
|
172
172
|
const BASE64_REGEX = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
|
173
173
|
const BASE64URL_REGEX = /^[a-zA-Z0-9-_]+$/;
|
|
174
174
|
class Utf8Converter {
|
|
@@ -6765,6 +6765,71 @@ create$1(id_ecdsaWithSHA256);
|
|
|
6765
6765
|
create$1(id_ecdsaWithSHA384);
|
|
6766
6766
|
create$1(id_ecdsaWithSHA512);
|
|
6767
6767
|
|
|
6768
|
+
let FieldID = class FieldID {
|
|
6769
|
+
constructor(params = {}) {
|
|
6770
|
+
Object.assign(this, params);
|
|
6771
|
+
}
|
|
6772
|
+
};
|
|
6773
|
+
__decorate$1([
|
|
6774
|
+
AsnProp({ type: exports.AsnPropTypes.ObjectIdentifier })
|
|
6775
|
+
], FieldID.prototype, "fieldType", void 0);
|
|
6776
|
+
__decorate$1([
|
|
6777
|
+
AsnProp({ type: exports.AsnPropTypes.Any })
|
|
6778
|
+
], FieldID.prototype, "parameters", void 0);
|
|
6779
|
+
FieldID = __decorate$1([
|
|
6780
|
+
AsnType({ type: exports.AsnTypeTypes.Sequence })
|
|
6781
|
+
], FieldID);
|
|
6782
|
+
class ECPoint extends OctetString {
|
|
6783
|
+
}
|
|
6784
|
+
let Curve = class Curve {
|
|
6785
|
+
constructor(params = {}) {
|
|
6786
|
+
Object.assign(this, params);
|
|
6787
|
+
}
|
|
6788
|
+
};
|
|
6789
|
+
__decorate$1([
|
|
6790
|
+
AsnProp({ type: exports.AsnPropTypes.OctetString })
|
|
6791
|
+
], Curve.prototype, "a", void 0);
|
|
6792
|
+
__decorate$1([
|
|
6793
|
+
AsnProp({ type: exports.AsnPropTypes.OctetString })
|
|
6794
|
+
], Curve.prototype, "b", void 0);
|
|
6795
|
+
__decorate$1([
|
|
6796
|
+
AsnProp({ type: exports.AsnPropTypes.BitString, optional: true })
|
|
6797
|
+
], Curve.prototype, "seed", void 0);
|
|
6798
|
+
Curve = __decorate$1([
|
|
6799
|
+
AsnType({ type: exports.AsnTypeTypes.Sequence })
|
|
6800
|
+
], Curve);
|
|
6801
|
+
var ECPVer;
|
|
6802
|
+
(function (ECPVer) {
|
|
6803
|
+
ECPVer[ECPVer["ecpVer1"] = 1] = "ecpVer1";
|
|
6804
|
+
})(ECPVer || (ECPVer = {}));
|
|
6805
|
+
let SpecifiedECDomain = class SpecifiedECDomain {
|
|
6806
|
+
constructor(params = {}) {
|
|
6807
|
+
this.version = ECPVer.ecpVer1;
|
|
6808
|
+
Object.assign(this, params);
|
|
6809
|
+
}
|
|
6810
|
+
};
|
|
6811
|
+
__decorate$1([
|
|
6812
|
+
AsnProp({ type: exports.AsnPropTypes.Integer })
|
|
6813
|
+
], SpecifiedECDomain.prototype, "version", void 0);
|
|
6814
|
+
__decorate$1([
|
|
6815
|
+
AsnProp({ type: FieldID })
|
|
6816
|
+
], SpecifiedECDomain.prototype, "fieldID", void 0);
|
|
6817
|
+
__decorate$1([
|
|
6818
|
+
AsnProp({ type: Curve })
|
|
6819
|
+
], SpecifiedECDomain.prototype, "curve", void 0);
|
|
6820
|
+
__decorate$1([
|
|
6821
|
+
AsnProp({ type: ECPoint })
|
|
6822
|
+
], SpecifiedECDomain.prototype, "base", void 0);
|
|
6823
|
+
__decorate$1([
|
|
6824
|
+
AsnProp({ type: exports.AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
6825
|
+
], SpecifiedECDomain.prototype, "order", void 0);
|
|
6826
|
+
__decorate$1([
|
|
6827
|
+
AsnProp({ type: exports.AsnPropTypes.Integer, optional: true })
|
|
6828
|
+
], SpecifiedECDomain.prototype, "cofactor", void 0);
|
|
6829
|
+
SpecifiedECDomain = __decorate$1([
|
|
6830
|
+
AsnType({ type: exports.AsnTypeTypes.Sequence })
|
|
6831
|
+
], SpecifiedECDomain);
|
|
6832
|
+
|
|
6768
6833
|
exports.ECParameters = class ECParameters {
|
|
6769
6834
|
constructor(params = {}) {
|
|
6770
6835
|
Object.assign(this, params);
|
|
@@ -6773,6 +6838,12 @@ exports.ECParameters = class ECParameters {
|
|
|
6773
6838
|
__decorate$1([
|
|
6774
6839
|
AsnProp({ type: exports.AsnPropTypes.ObjectIdentifier })
|
|
6775
6840
|
], exports.ECParameters.prototype, "namedCurve", void 0);
|
|
6841
|
+
__decorate$1([
|
|
6842
|
+
AsnProp({ type: exports.AsnPropTypes.Null })
|
|
6843
|
+
], exports.ECParameters.prototype, "implicitCurve", void 0);
|
|
6844
|
+
__decorate$1([
|
|
6845
|
+
AsnProp({ type: SpecifiedECDomain })
|
|
6846
|
+
], exports.ECParameters.prototype, "specifiedCurve", void 0);
|
|
6776
6847
|
exports.ECParameters = __decorate$1([
|
|
6777
6848
|
AsnType({ type: exports.AsnTypeTypes.Choice })
|
|
6778
6849
|
], exports.ECParameters);
|
|
@@ -7171,28 +7242,6 @@ CompositePrivateKey = CompositePrivateKey_1 = __decorate$1([
|
|
|
7171
7242
|
AsnType({ type: exports.AsnTypeTypes.Sequence, itemType: OneAsymmetricKey })
|
|
7172
7243
|
], CompositePrivateKey);
|
|
7173
7244
|
|
|
7174
|
-
/**
|
|
7175
|
-
* @license
|
|
7176
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
7177
|
-
*
|
|
7178
|
-
* This source code is licensed under the MIT license found in the
|
|
7179
|
-
* LICENSE file in the root directory of this source tree.
|
|
7180
|
-
*/
|
|
7181
|
-
/* eslint-disable no-useless-escape */
|
|
7182
|
-
const isHex = (value) => (/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/
|
|
7183
|
-
.test(value));
|
|
7184
|
-
const isPem = (value) => (/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/
|
|
7185
|
-
.test(value));
|
|
7186
|
-
const isBase64 = (value) => {
|
|
7187
|
-
try {
|
|
7188
|
-
window.atob(value);
|
|
7189
|
-
return true;
|
|
7190
|
-
}
|
|
7191
|
-
catch (error) {
|
|
7192
|
-
return false;
|
|
7193
|
-
}
|
|
7194
|
-
};
|
|
7195
|
-
|
|
7196
7245
|
var dayjs_min = {exports: {}};
|
|
7197
7246
|
|
|
7198
7247
|
(function (module, exports) {
|
|
@@ -11309,6 +11358,171 @@ class Extension extends AsnData {
|
|
|
11309
11358
|
}
|
|
11310
11359
|
}
|
|
11311
11360
|
|
|
11361
|
+
/**
|
|
11362
|
+
* @license
|
|
11363
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
11364
|
+
*
|
|
11365
|
+
* This source code is licensed under the MIT license found in the
|
|
11366
|
+
* LICENSE file in the root directory of this source tree.
|
|
11367
|
+
*/
|
|
11368
|
+
const rPaddingTag = '-{5}';
|
|
11369
|
+
const rEolChars = '\\n';
|
|
11370
|
+
const rNameTag = `[^${rEolChars}]+`;
|
|
11371
|
+
const rBeginTag = `${rPaddingTag}BEGIN (${rNameTag}(?=${rPaddingTag}))${rPaddingTag}`;
|
|
11372
|
+
const rEndTag = `${rPaddingTag}END \\1${rPaddingTag}`;
|
|
11373
|
+
const rEolGroup = '\\n';
|
|
11374
|
+
const rHeaderKey = `[^:${rEolChars}]+`;
|
|
11375
|
+
const rHeaderValue = `(?:[^${rEolChars}]+${rEolGroup}(?: +[^${rEolChars}]+${rEolGroup})*)`;
|
|
11376
|
+
const rBase64Chars = '[a-zA-Z0-9=+/]+';
|
|
11377
|
+
const rBase64 = `(?:${rBase64Chars}${rEolGroup})+`;
|
|
11378
|
+
const rPem = `${rBeginTag}${rEolGroup}(?:((?:${rHeaderKey}: ${rHeaderValue})+))?${rEolGroup}?(${rBase64})${rEndTag}`;
|
|
11379
|
+
/**
|
|
11380
|
+
* Represents PEM Converter.
|
|
11381
|
+
*/
|
|
11382
|
+
class PemConverter {
|
|
11383
|
+
static isPem(data) {
|
|
11384
|
+
return typeof data === 'string'
|
|
11385
|
+
&& new RegExp(rPem, 'g').test(data);
|
|
11386
|
+
}
|
|
11387
|
+
static decodeWithHeaders(pem) {
|
|
11388
|
+
// eslint-disable-next-line no-param-reassign
|
|
11389
|
+
pem = pem.replace(/\r/g, ''); // CRLF -> LF
|
|
11390
|
+
const pattern = new RegExp(rPem, 'g');
|
|
11391
|
+
const res = [];
|
|
11392
|
+
let matches = null;
|
|
11393
|
+
// eslint-disable-next-line no-cond-assign
|
|
11394
|
+
while (matches = pattern.exec(pem)) {
|
|
11395
|
+
// prepare pem encoded message
|
|
11396
|
+
const base64 = matches[3]
|
|
11397
|
+
.replace(new RegExp(`[${rEolChars}]+`, 'g'), '');
|
|
11398
|
+
const pemStruct = {
|
|
11399
|
+
type: matches[1],
|
|
11400
|
+
headers: [],
|
|
11401
|
+
rawData: Convert_1.FromBase64(base64),
|
|
11402
|
+
};
|
|
11403
|
+
// read headers
|
|
11404
|
+
const headersString = matches[2];
|
|
11405
|
+
if (headersString) {
|
|
11406
|
+
const headers = headersString.split(new RegExp(rEolGroup, 'g'));
|
|
11407
|
+
let lastHeader = null;
|
|
11408
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
11409
|
+
for (const header of headers) {
|
|
11410
|
+
const [key, value] = header.split(/:(.*)/);
|
|
11411
|
+
if (value === undefined) {
|
|
11412
|
+
// value
|
|
11413
|
+
if (!lastHeader) {
|
|
11414
|
+
throw new Error('Cannot parse PEM string. Incorrect header value');
|
|
11415
|
+
}
|
|
11416
|
+
lastHeader.value += key.trim();
|
|
11417
|
+
}
|
|
11418
|
+
else {
|
|
11419
|
+
// key and value
|
|
11420
|
+
if (lastHeader) {
|
|
11421
|
+
pemStruct.headers.push(lastHeader);
|
|
11422
|
+
}
|
|
11423
|
+
lastHeader = { key, value: value.trim() };
|
|
11424
|
+
}
|
|
11425
|
+
}
|
|
11426
|
+
// add last header
|
|
11427
|
+
if (lastHeader) {
|
|
11428
|
+
pemStruct.headers.push(lastHeader);
|
|
11429
|
+
}
|
|
11430
|
+
}
|
|
11431
|
+
res.push(pemStruct);
|
|
11432
|
+
}
|
|
11433
|
+
return res;
|
|
11434
|
+
}
|
|
11435
|
+
/**
|
|
11436
|
+
* Decodes PEM to a list of raws
|
|
11437
|
+
* @param pem message in PEM format
|
|
11438
|
+
*/
|
|
11439
|
+
static decode(pem) {
|
|
11440
|
+
const blocks = this.decodeWithHeaders(pem);
|
|
11441
|
+
return blocks.map((o) => o.rawData);
|
|
11442
|
+
}
|
|
11443
|
+
static encode(rawData, tag) {
|
|
11444
|
+
if (Array.isArray(rawData)) {
|
|
11445
|
+
const raws = new Array();
|
|
11446
|
+
if (tag) {
|
|
11447
|
+
// encode BufferSource[]
|
|
11448
|
+
rawData.forEach((element) => {
|
|
11449
|
+
if (!BufferSourceConverter_1.isBufferSource(element)) {
|
|
11450
|
+
throw new TypeError('Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource');
|
|
11451
|
+
}
|
|
11452
|
+
raws.push(this.encodeStruct({
|
|
11453
|
+
type: tag,
|
|
11454
|
+
rawData: BufferSourceConverter_1.toArrayBuffer(element),
|
|
11455
|
+
}));
|
|
11456
|
+
});
|
|
11457
|
+
}
|
|
11458
|
+
else {
|
|
11459
|
+
// encode PemStruct[]
|
|
11460
|
+
rawData.forEach((element) => {
|
|
11461
|
+
if (!('type' in element)) {
|
|
11462
|
+
throw new TypeError('Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut');
|
|
11463
|
+
}
|
|
11464
|
+
raws.push(this.encodeStruct(element));
|
|
11465
|
+
});
|
|
11466
|
+
}
|
|
11467
|
+
return raws.join('\n');
|
|
11468
|
+
}
|
|
11469
|
+
if (!tag) {
|
|
11470
|
+
throw new Error("Required argument 'tag' is missed");
|
|
11471
|
+
}
|
|
11472
|
+
return this.encodeStruct({
|
|
11473
|
+
type: tag,
|
|
11474
|
+
rawData: BufferSourceConverter_1.toArrayBuffer(rawData),
|
|
11475
|
+
});
|
|
11476
|
+
}
|
|
11477
|
+
/**
|
|
11478
|
+
* Encodes PEMStruct in PEM block
|
|
11479
|
+
* @param pem PEM structure for encoding
|
|
11480
|
+
* @returns Returns PEM encoded block
|
|
11481
|
+
*/
|
|
11482
|
+
static encodeStruct(pem) {
|
|
11483
|
+
var _a;
|
|
11484
|
+
const upperCaseType = pem.type.toLocaleUpperCase();
|
|
11485
|
+
const res = [];
|
|
11486
|
+
res.push(`-----BEGIN ${upperCaseType}-----`);
|
|
11487
|
+
if ((_a = pem.headers) === null || _a === void 0 ? void 0 : _a.length) {
|
|
11488
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
11489
|
+
for (const header of pem.headers) {
|
|
11490
|
+
res.push(`${header.key}: ${header.value}`);
|
|
11491
|
+
}
|
|
11492
|
+
res.push(''); // blank line
|
|
11493
|
+
}
|
|
11494
|
+
const base64 = Convert_1.ToBase64(pem.rawData);
|
|
11495
|
+
let sliced;
|
|
11496
|
+
let offset = 0;
|
|
11497
|
+
const rows = Array();
|
|
11498
|
+
while (offset < base64.length) {
|
|
11499
|
+
if (base64.length - offset < 64) {
|
|
11500
|
+
sliced = base64.substring(offset);
|
|
11501
|
+
}
|
|
11502
|
+
else {
|
|
11503
|
+
sliced = base64.substring(offset, offset + 64);
|
|
11504
|
+
offset += 64;
|
|
11505
|
+
}
|
|
11506
|
+
if (sliced.length !== 0) {
|
|
11507
|
+
rows.push(sliced);
|
|
11508
|
+
if (sliced.length < 64) {
|
|
11509
|
+
break;
|
|
11510
|
+
}
|
|
11511
|
+
}
|
|
11512
|
+
else {
|
|
11513
|
+
break;
|
|
11514
|
+
}
|
|
11515
|
+
}
|
|
11516
|
+
res.push(...rows);
|
|
11517
|
+
res.push(`-----END ${upperCaseType}-----`);
|
|
11518
|
+
return res.join('\n');
|
|
11519
|
+
}
|
|
11520
|
+
}
|
|
11521
|
+
PemConverter.CertificateTag = 'CERTIFICATE';
|
|
11522
|
+
PemConverter.CrlTag = 'CRL';
|
|
11523
|
+
PemConverter.CertificateRequestTag = 'CERTIFICATE REQUEST';
|
|
11524
|
+
PemConverter.AttributeCertificateTag = 'ATTRIBUTE CERTIFICATE';
|
|
11525
|
+
|
|
11312
11526
|
/**
|
|
11313
11527
|
* @license
|
|
11314
11528
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -11351,30 +11565,27 @@ class CryptoProvider {
|
|
|
11351
11565
|
CryptoProvider.DEFAULT = 'default';
|
|
11352
11566
|
const cryptoProvider = new CryptoProvider();
|
|
11353
11567
|
|
|
11354
|
-
|
|
11355
|
-
|
|
11356
|
-
|
|
11357
|
-
|
|
11358
|
-
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
.replace(/(.{4})/g, '$1 ')
|
|
11362
|
-
.trim());
|
|
11363
|
-
const base64Format = (base64) => (base64
|
|
11364
|
-
.replace(/(.{64})/g, '$1\n'));
|
|
11568
|
+
/**
|
|
11569
|
+
* @license
|
|
11570
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
11571
|
+
*
|
|
11572
|
+
* This source code is licensed under the MIT license found in the
|
|
11573
|
+
* LICENSE file in the root directory of this source tree.
|
|
11574
|
+
*/
|
|
11365
11575
|
const certificateRawToBuffer = (raw) => {
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
if (isHex(rawClarified)) {
|
|
11369
|
-
buffer = Convert_1.FromHex(rawClarified);
|
|
11576
|
+
if (PemConverter.isPem(raw)) {
|
|
11577
|
+
return PemConverter.decode(raw)[0];
|
|
11370
11578
|
}
|
|
11371
|
-
|
|
11372
|
-
|
|
11579
|
+
if (Convert_1.isHex(raw)) {
|
|
11580
|
+
return Convert_1.FromHex(raw);
|
|
11373
11581
|
}
|
|
11374
|
-
|
|
11375
|
-
|
|
11582
|
+
if (Convert_1.isBase64(raw)) {
|
|
11583
|
+
return Convert_1.FromBase64(raw);
|
|
11584
|
+
}
|
|
11585
|
+
if (Convert_1.isBase64Url(raw)) {
|
|
11586
|
+
return Convert_1.FromBase64Url(raw);
|
|
11376
11587
|
}
|
|
11377
|
-
|
|
11588
|
+
throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
|
|
11378
11589
|
};
|
|
11379
11590
|
const getCertificateThumbprint = async (algorithm, data) => {
|
|
11380
11591
|
const crypto = cryptoProvider.get();
|
|
@@ -12090,32 +12301,32 @@ __decorate$1([
|
|
|
12090
12301
|
__decorate$1([
|
|
12091
12302
|
AsnProp({ type: exports.AsnPropTypes.Any })
|
|
12092
12303
|
], OtherCertificateFormat.prototype, "otherCert", void 0);
|
|
12093
|
-
|
|
12304
|
+
exports.CertificateChoices = class CertificateChoices {
|
|
12094
12305
|
constructor(params = {}) {
|
|
12095
12306
|
Object.assign(this, params);
|
|
12096
12307
|
}
|
|
12097
12308
|
};
|
|
12098
12309
|
__decorate$1([
|
|
12099
12310
|
AsnProp({ type: Certificate })
|
|
12100
|
-
], CertificateChoices.prototype, "certificate", void 0);
|
|
12311
|
+
], exports.CertificateChoices.prototype, "certificate", void 0);
|
|
12101
12312
|
__decorate$1([
|
|
12102
12313
|
AsnProp({ type: AttributeCertificate, context: 2, implicit: true })
|
|
12103
|
-
], CertificateChoices.prototype, "v2AttrCert", void 0);
|
|
12314
|
+
], exports.CertificateChoices.prototype, "v2AttrCert", void 0);
|
|
12104
12315
|
__decorate$1([
|
|
12105
12316
|
AsnProp({ type: OtherCertificateFormat, context: 3, implicit: true })
|
|
12106
|
-
], CertificateChoices.prototype, "other", void 0);
|
|
12107
|
-
CertificateChoices = __decorate$1([
|
|
12317
|
+
], exports.CertificateChoices.prototype, "other", void 0);
|
|
12318
|
+
exports.CertificateChoices = __decorate$1([
|
|
12108
12319
|
AsnType({ type: exports.AsnTypeTypes.Choice })
|
|
12109
|
-
], CertificateChoices);
|
|
12110
|
-
|
|
12320
|
+
], exports.CertificateChoices);
|
|
12321
|
+
exports.CertificateSet = CertificateSet_1 = class CertificateSet extends AsnArray {
|
|
12111
12322
|
constructor(items) {
|
|
12112
12323
|
super(items);
|
|
12113
12324
|
Object.setPrototypeOf(this, CertificateSet_1.prototype);
|
|
12114
12325
|
}
|
|
12115
12326
|
};
|
|
12116
|
-
CertificateSet = CertificateSet_1 = __decorate$1([
|
|
12117
|
-
AsnType({ type: exports.AsnTypeTypes.Set, itemType: CertificateChoices })
|
|
12118
|
-
], CertificateSet);
|
|
12327
|
+
exports.CertificateSet = CertificateSet_1 = __decorate$1([
|
|
12328
|
+
AsnType({ type: exports.AsnTypeTypes.Set, itemType: exports.CertificateChoices })
|
|
12329
|
+
], exports.CertificateSet);
|
|
12119
12330
|
|
|
12120
12331
|
class ContentInfo {
|
|
12121
12332
|
constructor(params = {}) {
|
|
@@ -12131,20 +12342,20 @@ __decorate$1([
|
|
|
12131
12342
|
AsnProp({ type: exports.AsnPropTypes.Any, context: 0 })
|
|
12132
12343
|
], ContentInfo.prototype, "content", void 0);
|
|
12133
12344
|
|
|
12134
|
-
|
|
12345
|
+
exports.EncapsulatedContent = class EncapsulatedContent {
|
|
12135
12346
|
constructor(params = {}) {
|
|
12136
12347
|
Object.assign(this, params);
|
|
12137
12348
|
}
|
|
12138
12349
|
};
|
|
12139
12350
|
__decorate$1([
|
|
12140
12351
|
AsnProp({ type: OctetString })
|
|
12141
|
-
], EncapsulatedContent.prototype, "single", void 0);
|
|
12352
|
+
], exports.EncapsulatedContent.prototype, "single", void 0);
|
|
12142
12353
|
__decorate$1([
|
|
12143
12354
|
AsnProp({ type: exports.AsnPropTypes.Any })
|
|
12144
|
-
], EncapsulatedContent.prototype, "any", void 0);
|
|
12145
|
-
EncapsulatedContent = __decorate$1([
|
|
12355
|
+
], exports.EncapsulatedContent.prototype, "any", void 0);
|
|
12356
|
+
exports.EncapsulatedContent = __decorate$1([
|
|
12146
12357
|
AsnType({ type: exports.AsnTypeTypes.Choice })
|
|
12147
|
-
], EncapsulatedContent);
|
|
12358
|
+
], exports.EncapsulatedContent);
|
|
12148
12359
|
class EncapsulatedContentInfo {
|
|
12149
12360
|
constructor(params = {}) {
|
|
12150
12361
|
this.eContentType = "";
|
|
@@ -12155,7 +12366,7 @@ __decorate$1([
|
|
|
12155
12366
|
AsnProp({ type: exports.AsnPropTypes.ObjectIdentifier })
|
|
12156
12367
|
], EncapsulatedContentInfo.prototype, "eContentType", void 0);
|
|
12157
12368
|
__decorate$1([
|
|
12158
|
-
AsnProp({ type: EncapsulatedContent, context: 0, optional: true })
|
|
12369
|
+
AsnProp({ type: exports.EncapsulatedContent, context: 0, optional: true })
|
|
12159
12370
|
], EncapsulatedContentInfo.prototype, "eContent", void 0);
|
|
12160
12371
|
|
|
12161
12372
|
let EncryptedContent = class EncryptedContent {
|
|
@@ -12493,7 +12704,7 @@ class OriginatorInfo {
|
|
|
12493
12704
|
}
|
|
12494
12705
|
}
|
|
12495
12706
|
__decorate$1([
|
|
12496
|
-
AsnProp({ type: CertificateSet, context: 0, implicit: true, optional: true })
|
|
12707
|
+
AsnProp({ type: exports.CertificateSet, context: 0, implicit: true, optional: true })
|
|
12497
12708
|
], OriginatorInfo.prototype, "certs", void 0);
|
|
12498
12709
|
__decorate$1([
|
|
12499
12710
|
AsnProp({ type: RevocationInfoChoices, context: 1, implicit: true, optional: true })
|
|
@@ -12562,10 +12773,10 @@ __decorate$1([
|
|
|
12562
12773
|
AsnProp({ type: EncapsulatedContentInfo })
|
|
12563
12774
|
], SignedData.prototype, "encapContentInfo", void 0);
|
|
12564
12775
|
__decorate$1([
|
|
12565
|
-
AsnProp({ type: CertificateSet, context: 0, implicit: true, optional: true })
|
|
12776
|
+
AsnProp({ type: exports.CertificateSet, context: 0, implicit: true, optional: true })
|
|
12566
12777
|
], SignedData.prototype, "certificates", void 0);
|
|
12567
12778
|
__decorate$1([
|
|
12568
|
-
AsnProp({ type:
|
|
12779
|
+
AsnProp({ type: RevocationInfoChoices, context: 1, implicit: true, optional: true })
|
|
12569
12780
|
], SignedData.prototype, "crls", void 0);
|
|
12570
12781
|
__decorate$1([
|
|
12571
12782
|
AsnProp({ type: SignerInfos })
|
|
@@ -12996,6 +13207,7 @@ exports.CertificateList = CertificateList;
|
|
|
12996
13207
|
exports.CertificateTemplate = CertificateTemplate;
|
|
12997
13208
|
exports.CertificateTransparency = CertificateTransparency;
|
|
12998
13209
|
exports.CertificationRequest = CertificationRequest;
|
|
13210
|
+
exports.ContentInfo = ContentInfo;
|
|
12999
13211
|
exports.Convert_1 = Convert_1;
|
|
13000
13212
|
exports.Download = Download;
|
|
13001
13213
|
exports.EDIPartyName = EDIPartyName;
|
|
@@ -13009,23 +13221,24 @@ exports.NameConstraints = NameConstraints;
|
|
|
13009
13221
|
exports.NetscapeCertType = NetscapeCertType;
|
|
13010
13222
|
exports.NonStandardKeyDescription = NonStandardKeyDescription;
|
|
13011
13223
|
exports.OIDs = OIDs;
|
|
13224
|
+
exports.OctetString = OctetString;
|
|
13012
13225
|
exports.OtherName = OtherName;
|
|
13226
|
+
exports.PemConverter = PemConverter;
|
|
13013
13227
|
exports.PolicyConstraints = PolicyConstraints;
|
|
13014
13228
|
exports.PrivateKeyUsagePeriod = PrivateKeyUsagePeriod;
|
|
13015
13229
|
exports.RSAPublicKey = RSAPublicKey;
|
|
13016
13230
|
exports.RootOfTrust = RootOfTrust;
|
|
13017
13231
|
exports.SemanticsInformation = SemanticsInformation;
|
|
13232
|
+
exports.SignedData = SignedData;
|
|
13018
13233
|
exports.SubjectKeyIdentifier = SubjectKeyIdentifier;
|
|
13019
13234
|
exports.Timestamp = Timestamp;
|
|
13020
13235
|
exports.UserNotice = UserNotice;
|
|
13021
13236
|
exports.__decorate = __decorate$1;
|
|
13022
|
-
exports.base64Format = base64Format;
|
|
13023
13237
|
exports.certificateRawToBuffer = certificateRawToBuffer;
|
|
13024
13238
|
exports.dateDiff = dateDiff;
|
|
13025
13239
|
exports.dateShort = dateShort;
|
|
13026
13240
|
exports.downloadFromBuffer = downloadFromBuffer;
|
|
13027
13241
|
exports.getCertificateThumbprint = getCertificateThumbprint;
|
|
13028
|
-
exports.hexFormat = hexFormat;
|
|
13029
13242
|
exports.id_ActivityDescription = id_ActivityDescription;
|
|
13030
13243
|
exports.id_DomainNameBeneficiary = id_DomainNameBeneficiary;
|
|
13031
13244
|
exports.id_DomainNameLegalRepresentative = id_DomainNameLegalRepresentative;
|
|
@@ -13045,4 +13258,4 @@ exports.id_qcs_pkixQCSyntax_v2 = id_qcs_pkixQCSyntax_v2;
|
|
|
13045
13258
|
exports.id_rsaEncryption = id_rsaEncryption;
|
|
13046
13259
|
exports.l10n = l10n;
|
|
13047
13260
|
|
|
13048
|
-
//# sourceMappingURL=certification_request-
|
|
13261
|
+
//# sourceMappingURL=certification_request-393a843d.js.map
|