-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): upgrade
oidc-provider
to version 8.5.1
This version of `oidc-provider` exports the Provider as a named export. The latest version of the `@types` package also includes the previously missing typings. BREAKING CHANGE: The `InteractionDetails` type has been renamed to `Interaction` and is now exported directly from `oidc-provider`.
- Loading branch information
Showing
7 changed files
with
5,147 additions
and
4,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,12 @@ | ||
import type _Provider from 'oidc-provider'; | ||
import type { errors, interactionPolicy } from 'oidc-provider'; | ||
import type * as _OidcProvider from 'oidc-provider'; | ||
|
||
//===================================// | ||
// RE-EXPORT ONLY TYPES TO AVOID // | ||
// IMPORTING ESM AT RUNTIME // | ||
//===================================// | ||
export type * from 'oidc-provider'; | ||
|
||
export type Provider = _Provider; | ||
export type ProviderClass = typeof _Provider; | ||
|
||
export type ProviderModule = { | ||
Provider: ProviderClass; | ||
errors: typeof errors; | ||
interactionPolicy: typeof interactionPolicy; | ||
}; | ||
|
||
//===================================// | ||
// MISSING NON-EXPORTED OIDC TYPES // | ||
//===================================// | ||
|
||
type SessionPromise = ReturnType<Provider['Session']['get']>; | ||
export type Session = | ||
SessionPromise extends Promise<infer T> ? T : SessionPromise; | ||
|
||
type InteractionDetailsPromise = ReturnType<Provider['interactionDetails']>; | ||
export type InteractionDetails = | ||
InteractionDetailsPromise extends Promise<infer T> | ||
? T | ||
: InteractionDetailsPromise; | ||
/** | ||
* Represents the `oidc-provider` module imported via dynamic import. | ||
*/ | ||
export type OidcProviderModule = typeof _OidcProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.