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":"element.mjs","names":[],"sources":["../../../../../packages/utils/dom/element.ts"],"sourcesContent":["import { isString } from '../types'\nimport { isClient } from '../browser'\n\ntype GetElement = <T extends string | HTMLElement | Window | null | undefined>(\n target: T\n) => T extends string ? HTMLElement | null : T\n\nexport const getElement = ((\n target: string | HTMLElement | Window | null | undefined\n) => {\n if (!isClient || target === '') return null\n if (isString(target)) {\n try {\n return document.querySelector<HTMLElement>(target)\n } catch {\n return null\n }\n }\n return target\n}) as GetElement\n"],"mappings":";;;AAOA,MAAa,eACX,WACG;CACH,IAAI,CAAC,YAAY,WAAW,IAAI,OAAO;CACvC,IAAI,SAAS,OAAO,EAClB,IAAI;EACF,OAAO,SAAS,cAA2B,OAAO;SAC5C;EACN,OAAO;;CAGX,OAAO"}