1 line
1.3 KiB
Plaintext
1 line
1.3 KiB
Plaintext
{"version":3,"file":"b64u-lite.umd.js","sources":["../index.mjs"],"sourcesContent":["import { atob, btoa, toBase64, fromBase64, toBuffer as toBuffer64 } from 'b64-lite'\n\nexport function toBinaryString(b64u) {\n return atob(b64u\n .replace(/-/g, '+')\n .replace(/_/g, '/'))\n}\n\nexport function fromBinaryString(binaryString, padding) {\n return btoa(binaryString)\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, padding ? '=' : '')\n}\n\nexport function toBase64Url(input, padding) {\n return toBase64(input)\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, padding ? '=' : '')\n}\n\nexport function fromBase64Url(b64u) {\n return fromBase64(b64u\n .replace(/-/g, '+')\n .replace(/_/g, '/'))\n}\n\nexport function toBuffer(b64u) {\n return toBuffer64(b64u\n .replace(/-/g, '+')\n .replace(/_/g, '/'))\n}\n"],"names":["b64u","atob","replace","binaryString","padding","btoa","input","toBase64","fromBase64","toBuffer64"],"mappings":"0OAEO,SAAwBA,UACtBC,OAAKD,EACTE,QAAQ,KAAM,KACdA,QAAQ,KAAM,0BAGZ,SAA0BC,EAAcC,UACtCC,OAAKF,GACTD,QAAQ,MAAO,KACfA,QAAQ,MAAO,KACfA,QAAQ,KAAME,EAAU,IAAM,mBAG5B,SAAqBE,EAAOF,UAC1BG,WAASD,GACbJ,QAAQ,MAAO,KACfA,QAAQ,MAAO,KACfA,QAAQ,KAAME,EAAU,IAAM,qBAG5B,SAAuBJ,UACrBQ,aAAWR,EACfE,QAAQ,KAAM,KACdA,QAAQ,KAAM,kBAGZ,SAAkBF,UAChBS,WAAWT,EACfE,QAAQ,KAAM,KACdA,QAAQ,KAAM"} |