mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix: 🚨 Fix further DeepSource issues
This commit is contained in:
parent
870b6dbe85
commit
0bf5f7c983
|
|
@ -108,7 +108,10 @@ export class PluginLoader {
|
||||||
* @returns {Promise<Manifest>} - The parsed manifest object.
|
* @returns {Promise<Manifest>} - The parsed manifest object.
|
||||||
* @throws Will throw an error if the manifest file is missing or invalid.
|
* @throws Will throw an error if the manifest file is missing or invalid.
|
||||||
*/
|
*/
|
||||||
public async parseManifest(dir: string, plugin: string): Promise<Manifest> {
|
public static async parseManifest(
|
||||||
|
dir: string,
|
||||||
|
plugin: string,
|
||||||
|
): Promise<Manifest> {
|
||||||
const manifestFile = await PluginLoader.findManifestFile(
|
const manifestFile = await PluginLoader.findManifestFile(
|
||||||
`${dir}/${plugin}`,
|
`${dir}/${plugin}`,
|
||||||
);
|
);
|
||||||
|
|
@ -178,7 +181,7 @@ export class PluginLoader {
|
||||||
|
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
plugins.map(async (plugin) => {
|
plugins.map(async (plugin) => {
|
||||||
const manifest = await this.parseManifest(dir, plugin);
|
const manifest = await PluginLoader.parseManifest(dir, plugin);
|
||||||
|
|
||||||
// If autoload is disabled, only load plugins explicitly enabled
|
// If autoload is disabled, only load plugins explicitly enabled
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ export const automaticOidcFlow = async (
|
||||||
|
|
||||||
const authServer = await getAuthServer(issuerUrl);
|
const authServer = await getAuthServer(issuerUrl);
|
||||||
|
|
||||||
const parameters = await getParameters(
|
const parameters = getParameters(
|
||||||
authServer,
|
authServer,
|
||||||
issuer.client_id,
|
issuer.client_id,
|
||||||
currentUrl,
|
currentUrl,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue