fix(api): use bcrypt directly instead of passlib for compatibility

This commit is contained in:
bwstudio
2026-05-21 22:18:36 +08:00
parent 7f51d200f1
commit 4651781bc3
23511 changed files with 2587254 additions and 8 deletions
+1
View File
@@ -0,0 +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,EAAE;EACR,KAAK,OAAO;;;AAIhB,SAAgB,WAAW,OAAe,GAAkB;CAC1D,MAAM,IAAI,iBAAiB,IAAI,MAAM,IAAI,IAAI;;AAK/C,SAAgB,UAAU,OAAuB,SAAwB;CAC5B;EACzC,MAAM,QAAe,SAAS,MAAM,GAChC,IAAI,iBAAiB,IAAI,MAAM,IAAI,UAAU,GAC7C;EAEJ,QAAQ,KAAK,MAAM"}