error.mjs.map 1.1 KB

1
  1. {"version":3,"file":"error.mjs","names":[],"sources":["../../../../packages/utils/error.ts"],"sourcesContent":["import { isString } from './types'\n\nclass ElementPlusError extends Error {\n constructor(m: string) {\n super(m)\n this.name = 'ElementPlusError'\n }\n}\n\nexport function throwError(scope: string, m: string): never {\n throw new ElementPlusError(`[${scope}] ${m}`)\n}\n\nexport function debugWarn(err: Error): void\nexport function debugWarn(scope: string, message: string): void\nexport function debugWarn(scope: string | Error, message?: string): void {\n if (process.env.NODE_ENV !== 'production') {\n const error: Error = isString(scope)\n ? new ElementPlusError(`[${scope}] ${message}`)\n : scope\n // eslint-disable-next-line no-console\n console.warn(error)\n }\n}\n"],"mappings":";;AAEA,IAAM,mBAAN,cAA+B,MAAM;CACnC,YAAY,GAAW;EACrB,MAAM,CAAC;EACP,KAAK,OAAO;CACd;AACF;AAEA,SAAgB,WAAW,OAAe,GAAkB;CAC1D,MAAM,IAAI,iBAAiB,IAAI,MAAM,IAAI,GAAG;AAC9C;AAIA,SAAgB,UAAU,OAAuB,SAAwB;CAC5B;EACzC,MAAM,QAAe,SAAS,KAAK,IAC/B,IAAI,iBAAiB,IAAI,MAAM,IAAI,SAAS,IAC5C;EAEJ,QAAQ,KAAK,KAAK;CACpB;AACF"}