Skip to content
Open
2 changes: 1 addition & 1 deletion experimental/li-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion experimental/li-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.16",
"tslib": "^2.8.1",
"typescript": "^5.9.3"
"typescript": "^6.0.3"
}
}
262 changes: 148 additions & 114 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@
"supertest": "^7.2.2",
"ts-node": "^10.9.2",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.54.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.61.1",
"vite": "^7.3.1",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4"
Expand Down
4 changes: 2 additions & 2 deletions src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ const handleConfigUpdate = async (newConfig: Configuration) => {
const validatedConfig = Convert.toGitProxyConfig(JSON.stringify(newConfig));

// 2. Get proxy module dynamically to avoid circular dependency
const proxy = (await import('../proxy')) as any;
const proxy = (await import('../proxy/index.js')) as any;

// 3. Stop existing services
await proxy.stop();
Expand All @@ -525,7 +525,7 @@ const handleConfigUpdate = async (newConfig: Configuration) => {
handleErrorAndLog(error, 'Failed to apply new configuration');
// Attempt to restart with previous config
try {
const proxy = (await import('../proxy')) as any;
const proxy = (await import('../proxy/index.js')) as any;
await proxy.start();
} catch (startError: unknown) {
handleErrorAndLog(startError, 'Failed to restart services');
Expand Down
1 change: 1 addition & 0 deletions src/proxy/processors/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type AttestationBase = {
reviewer: {
username: string;
email: string;
gitAccount?: string; // For legacy GitHub usernames
};
timestamp: string | Date;
automated?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/service/passport/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const type = 'local';

// Dynamic import to always get the current db module instance
// This is necessary for test environments where modules may be reset
const getDb = () => import('../../db');
const getDb = () => import('../../db/index.js');

export const configure = async (passport: PassportStatic): Promise<PassportStatic> => {
passport.use(
Expand Down
4 changes: 2 additions & 2 deletions src/service/passport/oidc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
import * as db from '../../db';
import { PassportStatic } from 'passport';
import { getAuthMethods } from '../../config';
import { type UserInfoResponse } from 'openid-client';
import type { UserInfoResponse } from 'openid-client';
import type { Request } from 'express';
import { handleErrorAndLog } from '../../utils/errors';

export const type = 'openidconnect';

export const configure = async (passport: PassportStatic): Promise<PassportStatic> => {
// Use dynamic imports to avoid ESM/CommonJS issues
const { discovery, fetchUserInfo } = await import('openid-client');
// @ts-expect-error - throws error due to missing type definitions
const { Strategy } = await import('openid-client/passport');

const authMethods = getAuthMethods();
Expand Down
17 changes: 17 additions & 0 deletions src/types/globals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Copyright 2026 GitProxy Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

declare module '*.css';
94 changes: 50 additions & 44 deletions test/fixtures/test-package/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"allowJs": true,
"checkJs": false,
"jsx": "react-jsx",
"moduleResolution": "Node",
"moduleResolution": "nodenext",
"strict": true,
"skipLibCheck": true,
"isolatedModules": false,
"module": "CommonJS",
"module": "NodeNext",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
Expand Down
Loading