Skip to content

Commit 411f3d6

Browse files
committed
chore(*): release packages
1 parent 79d43cf commit 411f3d6

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

examples/nextjs/app/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
// import { getCurrentUser } from "@/lib/firebase/serverApp";
1818
import type { Metadata } from "next";
1919
import { Geist, Geist_Mono } from "next/font/google";
20-
20+
import { FirebaseUIProviderHoc } from "../lib/firebase/ui";
2121
// import { Header } from "@/lib/components/header";
22-
import { FirebaseUIProviderWrapper } from "@/lib/firebase/FirebaseUIProviderWrapper";
22+
2323
import "./globals.css";
2424
// import { useUser } from "@/lib/firebase/hooks";
2525

@@ -49,7 +49,7 @@ export default async function RootLayout({
4949
<html lang="en">
5050
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
5151
{/* <Header currentUser={{null}} /> */}
52-
<FirebaseUIProviderWrapper>{children}</FirebaseUIProviderWrapper>
52+
<FirebaseUIProviderHoc>{children}</FirebaseUIProviderHoc>
5353
</body>
5454
</html>
5555
);

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@invertase/firebaseui-core",
3-
"version": "0.0.8",
3+
"version": "0.0.10",
44
"description": "Core authentication service for Firebase UI",
55
"type": "module",
66
"main": "./dist/index.cjs",

packages/core/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export * from "./translations";
3131
const isDevelopment = typeof process !== "undefined" && process.env.NODE_ENV === "production";
3232

3333
// eslint-disable-next-line @typescript-eslint/no-explicit-any
34-
const isViteProduction = (import.meta as any)?.env?.PROD === true;
34+
const isViteProduction =
35+
typeof import.meta !== "undefined" && (import.meta as any)?.env && (import.meta as any).env.PROD === true;
3536

3637
// Check if in production mode
3738
const isProduction = isDevelopment || isViteProduction;

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@invertase/firebaseui-react",
3-
"version": "0.0.7",
3+
"version": "0.0.9",
44
"type": "module",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.js",

packages/react/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export * from "./hooks";
2828
const isNodeProduction = typeof process !== "undefined" && process.env.NODE_ENV === "production";
2929

3030
// eslint-disable-next-line @typescript-eslint/no-explicit-any
31-
const isViteProduction = (import.meta as any)?.env?.PROD === true;
31+
const 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
3235

3336
// Check if in production mode
3437
const isProduction = isNodeProduction || isViteProduction;

0 commit comments

Comments
 (0)