File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,12 @@ export * from "./translations";
3030// Detect production mode across different build systems (Vite, webpack/Next.js, etc.)
3131const isDevelopment = typeof process !== "undefined" && process . env . NODE_ENV === "production" ;
3232
33- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3433const isViteProduction =
35- typeof import . meta !== "undefined" && ( import . meta as any ) ?. env && ( import . meta as any ) . env . PROD === true ;
34+ typeof import . meta !== "undefined" &&
35+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
36+ ( import . meta as any ) ?. env &&
37+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
38+ ( import . meta as any ) . env . PROD === true ;
3639
3740// Check if in production mode
3841const isProduction = isDevelopment || isViteProduction ;
Original file line number Diff line number Diff line change @@ -27,11 +27,12 @@ export * from "./hooks";
2727// Detect production mode across different build systems (Vite, webpack/Next.js, etc.)
2828const isNodeProduction = typeof process !== "undefined" && process . env . NODE_ENV === "production" ;
2929
30- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3130const isViteProduction =
32- typeof import . meta !== "undefined" && ( import . meta as any ) ?. env && ( import . meta as any ) . env . PROD === true ;
33-
34- // Check if in production mode
31+ typeof import . meta !== "undefined" &&
32+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
33+ ( import . meta as any ) ?. env &&
34+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
35+ ( import . meta as any ) . env . PROD === true ;
3536
3637// Check if in production mode
3738const isProduction = isNodeProduction || isViteProduction ;
Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ describe("mapping.ts", () => {
7272 "userNotFound" ,
7373 "wrongPassword" ,
7474 "invalidEmail" ,
75+ "unverifiedEmail" ,
7576 "userDisabled" ,
77+ "invalidCredential" ,
7678 "networkRequestFailed" ,
7779 "tooManyRequests" ,
7880 "emailAlreadyInUse" ,
You can’t perform that action at this time.
0 commit comments