1 line
1.5 KiB
JSON
1 line
1.5 KiB
JSON
{"ast":null,"code":"function HARError(errors) {\n var message = 'validation failed';\n this.name = 'HARError';\n this.message = message;\n this.errors = errors;\n\n if (typeof Error.captureStackTrace === 'function') {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = new Error(message).stack;\n }\n}\n\nHARError.prototype = Error.prototype;\nmodule.exports = HARError;","map":{"version":3,"sources":["/Users/tylerkoenig/Code/personal/react-scss2/node_modules/har-validator/lib/error.js"],"names":["HARError","errors","message","name","Error","captureStackTrace","constructor","stack","prototype","module","exports"],"mappings":"AAAA,SAASA,QAAT,CAAmBC,MAAnB,EAA2B;AACzB,MAAIC,OAAO,GAAG,mBAAd;AAEA,OAAKC,IAAL,GAAY,UAAZ;AACA,OAAKD,OAAL,GAAeA,OAAf;AACA,OAAKD,MAAL,GAAcA,MAAd;;AAEA,MAAI,OAAOG,KAAK,CAACC,iBAAb,KAAmC,UAAvC,EAAmD;AACjDD,IAAAA,KAAK,CAACC,iBAAN,CAAwB,IAAxB,EAA8B,KAAKC,WAAnC;AACD,GAFD,MAEO;AACL,SAAKC,KAAL,GAAc,IAAIH,KAAJ,CAAUF,OAAV,CAAD,CAAqBK,KAAlC;AACD;AACF;;AAEDP,QAAQ,CAACQ,SAAT,GAAqBJ,KAAK,CAACI,SAA3B;AAEAC,MAAM,CAACC,OAAP,GAAiBV,QAAjB","sourcesContent":["function HARError (errors) {\n var message = 'validation failed'\n\n this.name = 'HARError'\n this.message = message\n this.errors = errors\n\n if (typeof Error.captureStackTrace === 'function') {\n Error.captureStackTrace(this, this.constructor)\n } else {\n this.stack = (new Error(message)).stack\n }\n}\n\nHARError.prototype = Error.prototype\n\nmodule.exports = HARError\n"]},"metadata":{},"sourceType":"script"} |