UNPKG

@hazae41/x509

Version:

Zero-copy X.509 certificates in pure modern TypeScript

1 lines 456 B
{"version":3,"file":"write.mjs","sources":["../../../../src/mods/types/write.ts"],"sourcesContent":["import { DERable } from \"@hazae41/asn1\";\nimport { Writable } from \"@hazae41/binary\";\n\nexport function writeToBytesOrThrow(type: DERable): Uint8Array<ArrayBuffer> {\n return Writable.writeToBytesOrThrow(type.toDER())\n}"],"names":[],"mappings":";;AAGM,SAAU,mBAAmB,CAAC,IAAa,EAAA;IAC/C,OAAO,QAAQ,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;AACnD;;;;"}