Security fixes to lib files

This commit is contained in:
Roman Krček
2025-07-03 00:02:35 +02:00
parent 81e2e53cc5
commit 6debb8a7ce
11 changed files with 55 additions and 23 deletions

8
src/lib/google/client.ts Normal file
View File

@@ -0,0 +1,8 @@
/**
* Client-side Google API integration module
*
* This module provides utilities for interacting with Google APIs from the client-side.
*/
// Re-export auth utilities
export * from './auth/client.js';

View File

@@ -0,0 +1,5 @@
// Re-export client-side auth utilities
export * from '../auth/client.js';
// Re-export types
export * from './types.js';

View File

@@ -0,0 +1,14 @@
/**
* Client-side type definitions for Google API integration
*/
export interface GoogleSheet {
id: string;
name: string;
modifiedTime: string;
webViewLink: string;
}
export interface SheetData {
values: string[][];
}

View File

@@ -1,18 +1,9 @@
/**
* Google API integration module
*
* This module provides utilities for interacting with Google APIs:
* - Authentication (server and client-side)
* - Sheets API
* - Gmail API
* This module provides utilities for interacting with Google APIs.
* NOTE: This is a client-side module. For server-side code, import from '$lib/google/server.js'
*/
// Re-export auth utilities
// Re-export client-side auth utilities
export * from './auth/client.js';
export * as authServer from './auth/server.js';
// Re-export sheets utilities
export * as sheets from './sheets/index.js';
// Re-export Gmail utilities
export * as gmail from './gmail/index.js';

14
src/lib/google/server.ts Normal file
View File

@@ -0,0 +1,14 @@
/**
* Server-side Google API integration module
*
* This module provides utilities for interacting with Google APIs from the server-side.
*/
// Re-export server-side auth utilities
export * from './auth/server.js';
// Re-export sheets utilities
export * from './sheets/index.js';
// Re-export Gmail utilities
export * from './gmail/index.js';