Edit: /tmp/tsx-0/17887-055ea1b8e1c7d4afd32c478a853807f28d2872d8 (2743B)
{"code":"__filename=\"/opt/canhelp/node_modules/jose/dist/webapi/lib/invalid_key_input.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 invalid_key_input_exports={};__export(invalid_key_input_exports,{invalidKeyInput:()=>invalidKeyInput,withAlg:()=>withAlg});module.exports=__toCommonJS(invalid_key_input_exports);function message(msg,actual,...types){types=types.filter(Boolean);if(types.length>2){const last=types.pop();msg+=`one of type ${types.join(\", \")}, or ${last}.`}else if(types.length===2){msg+=`one of type ${types[0]} or ${types[1]}.`}else{msg+=`of type ${types[0]}.`}if(actual==null){msg+=` Received ${actual}`}else if(typeof actual===\"function\"&&actual.name){msg+=` Received function ${actual.name}`}else if(typeof actual===\"object\"&&actual!=null){if(actual.constructor?.name){msg+=` Received an instance of ${actual.constructor.name}`}}return msg}__name(message,\"message\");const invalidKeyInput=__name((actual,...types)=>message(\"Key must be \",actual,...types),\"invalidKeyInput\");const withAlg=__name((alg,actual,...types)=>message(`Key for the ${alg} algorithm must be `,actual,...types),\"withAlg\");0&&(module.exports={invalidKeyInput,withAlg});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,+LAAS,QAAQ,IAAK,UAAW,MAAO,CACpC,MAAQ,MAAM,OAAO,OAAO,EAC5B,GAAI,MAAM,OAAS,EAAG,CAClB,MAAM,KAAO,MAAM,IAAI,EACvB,KAAO,eAAe,MAAM,KAAK,IAAI,CAAC,QAAQ,IAAI,GACtD,SACS,MAAM,SAAW,EAAG,CACzB,KAAO,eAAe,MAAM,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,GACjD,KACK,CACD,KAAO,WAAW,MAAM,CAAC,CAAC,GAC9B,CACA,GAAI,QAAU,KAAM,CAChB,KAAO,aAAa,MAAM,EAC9B,SACS,OAAO,SAAW,YAAc,OAAO,KAAM,CAClD,KAAO,sBAAsB,OAAO,IAAI,EAC5C,SACS,OAAO,SAAW,UAAY,QAAU,KAAM,CACnD,GAAI,OAAO,aAAa,KAAM,CAC1B,KAAO,4BAA4B,OAAO,YAAY,IAAI,EAC9D,CACJ,CACA,OAAO,GACX,CAxBS,0BAyBF,MAAM,gBAAkB,QAAC,UAAW,QAAU,QAAQ,eAAgB,OAAQ,GAAG,KAAK,EAA9D,mBACxB,MAAM,QAAU,QAAC,IAAK,UAAW,QAAU,QAAQ,eAAe,GAAG,sBAAuB,OAAQ,GAAG,KAAK,EAA5F","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/jose/dist/webapi/lib/invalid_key_input.js"],"sourcesContent":[null]}}