Edit: /tmp/tsx-0/17887-bf8914fec2ca41230a73aaebeac2350ccf83603d (2589B)
{"code":"__filename=\"/opt/canhelp/node_modules/jose/dist/webapi/jws/compact/verify.js\";(()=>{\nvar __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from===\"object\"||typeof from===\"function\"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:true}),mod);var verify_exports={};__export(verify_exports,{compactVerify:()=>compactVerify});module.exports=__toCommonJS(verify_exports);var import_verify=require(\"../flattened/verify.js\");var import_errors=require(\"../../util/errors.js\");var import_buffer_utils=require(\"../../lib/buffer_utils.js\");async function compactVerify(jws,key,options){if(jws instanceof Uint8Array){jws=import_buffer_utils.decoder.decode(jws)}if(typeof jws!==\"string\"){throw new import_errors.JWSInvalid(\"Compact JWS must be a string or Uint8Array\")}const{0:protectedHeader,1:payload,2:signature,length}=jws.split(\".\");if(length!==3){throw new import_errors.JWSInvalid(\"Invalid Compact JWS\")}const verified=await(0,import_verify.flattenedVerify)({payload,protected:protectedHeader,signature},key,options);const result={payload:verified.payload,protectedHeader:verified.protectedHeader};if(typeof key===\"function\"){return{...result,key:verified.key}}return result}__name(compactVerify,\"compactVerify\");0&&(module.exports={compactVerify});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,+IAAgC,kCAChC,kBAA2B,gCAC3B,wBAAwB,qCACxB,eAAsB,cAAc,IAAK,IAAK,QAAS,CACnD,GAAI,eAAe,WAAY,CAC3B,IAAM,4BAAQ,OAAO,GAAG,CAC5B,CACA,GAAI,OAAO,MAAQ,SAAU,CACzB,MAAM,IAAI,yBAAW,4CAA4C,CACrE,CACA,KAAM,CAAE,EAAG,gBAAiB,EAAG,QAAS,EAAG,UAAW,MAAO,EAAI,IAAI,MAAM,GAAG,EAC9E,GAAI,SAAW,EAAG,CACd,MAAM,IAAI,yBAAW,qBAAqB,CAC9C,CACA,MAAM,SAAW,QAAM,+BAAgB,CAAE,QAAS,UAAW,gBAAiB,SAAU,EAAG,IAAK,OAAO,EACvG,MAAM,OAAS,CAAE,QAAS,SAAS,QAAS,gBAAiB,SAAS,eAAgB,EACtF,GAAI,OAAO,MAAQ,WAAY,CAC3B,MAAO,CAAE,GAAG,OAAQ,IAAK,SAAS,GAAI,CAC1C,CACA,OAAO,MACX,CAjBsB","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/jose/dist/webapi/jws/compact/verify.js"],"sourcesContent":[null]}}