From 7215abc79b02c166edf4004f6023018d532ace40 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Tue, 16 Jul 2024 17:16:16 +0800 Subject: [PATCH] fix build --- lib/index.d.ts | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index e3aa044..dc4d47f 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -9,5 +9,5 @@ export default class FleetbaseAuthPlugin implements IPluginAuth { authenticate(identity: string, password: string, callback: Callback): Promise; adduser(identity: string, password: string, callback: Callback): Promise; allow_access(user: RemoteUser, pkg: (Config & PackageAccess) | (AllowAccess & PackageAccess), callback: AuthAccessCallback): Promise; - allow_publish(user: RemoteUser, pkg: PackageAccess, callback: Callback): Promise; + allow_publish(user: RemoteUser, pkg: (Config & PackageAccess) | (AllowAccess & PackageAccess), callback: Callback): Promise; } diff --git a/src/index.ts b/src/index.ts index 8a418b0..8a3d137 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,7 +82,7 @@ export default class FleetbaseAuthPlugin implements IPluginAuth { } } - public async allow_publish(user: RemoteUser, pkg: PackageAccess, callback: Callback): Promise { + public async allow_publish(user: RemoteUser, pkg: (Config & PackageAccess) | (AllowAccess & PackageAccess), callback: Callback): Promise { // Allow publish should check with Fleetbase API for the extension and check the status for approved // After publish registry should update the extension as published this.logger.debug({ user }, 'Auth::allow_publish() - User: @{user}');