| Server IP : 68.183.124.220 / Your IP : 216.73.217.137 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/gavin/workspace/happymandarin/node_modules/make-error-cause/dist/ |
Upload File : |
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,IAAO,SAAS,WAAW,YAAY,CAAC,CAAA;AAGxC,wBACE,KAAwB,EACxB,MAAqE;IAArE,sBAAqE,GAArE,SAAsC,cAAc,CAAC,SAAgB;IAErE,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;AACjC,CAAC;AAED,IAAU,cAAc,CAoBvB;AApBD,WAAU,cAAc,EAAC,CAAC;IAExB;QAA+B,6BAAmB;QAEhD,mBAAa,OAAe,EAAS,KAAa;YAChD,kBAAM,OAAO,CAAC,CAAA;YADqB,UAAK,GAAL,KAAK,CAAQ;QAElD,CAAC;QAED,4BAAQ,GAAR;YACE,MAAM,CAAC,gBAAK,CAAC,QAAQ,WAAE,GAAG,CAAC,IAAI,CAAC,KAAK,GAAG,kBAAgB,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAI,GAAG,EAAE,CAAC,CAAA;QACvF,CAAC;QAEH,gBAAC;IAAD,CAAC,AAVD,CAA+B,SAAS,CAAC,SAAS,GAUjD;IAVY,wBAAS,YAUrB,CAAA;AAQH,CAAC,EApBS,cAAc,KAAd,cAAc,QAoBvB;AAED,iBAAS,cAAc,CAAA","sourcesContent":["import makeError = require('make-error')\n\nfunction makeErrorCause (value: string | Function): makeErrorCause.Constructor<makeErrorCause.BaseError>\nfunction makeErrorCause <T extends Error> (\n value: string | Function,\n _super: { new (...args: any[]): T } = makeErrorCause.BaseError as any\n): makeErrorCause.Constructor<T> {\n return makeError(value, _super)\n}\n\nnamespace makeErrorCause {\n\n export class BaseError extends makeError.BaseError {\n\n constructor (message: string, public cause?: Error) {\n super(message)\n }\n\n toString () {\n return super.toString() + (this.cause ? `\\nCaused by: ${this.cause.toString()}` : '')\n }\n\n }\n\n export interface Constructor <T> {\n new (message: string, cause?: Error): T\n super_: any\n prototype: T\n }\n\n}\n\nexport = makeErrorCause\n"]}