Add comprehensive tests for role middleware and fix package dependencies
Some checks are pending
Docker Test / test (push) Waiting to run
Some checks are pending
Docker Test / test (push) Waiting to run
This commit is contained in:
parent
64aa924270
commit
bfd432d094
1884 changed files with 384668 additions and 84 deletions
30
node_modules/mysql2/typings/mysql/lib/Auth.d.ts
generated
vendored
Normal file
30
node_modules/mysql2/typings/mysql/lib/Auth.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { RsaPublicKey, RsaPrivateKey, KeyLike } from 'crypto';
|
||||
import { Connection } from './Connection.js';
|
||||
|
||||
export type AuthPlugin = (pluginMetadata: {
|
||||
connection: Connection;
|
||||
command: string;
|
||||
}) => (
|
||||
pluginData: Buffer
|
||||
) => Promise<string> | string | Buffer | Promise<Buffer> | null;
|
||||
|
||||
type AuthPluginDefinition<T> = (pluginOptions?: T) => AuthPlugin;
|
||||
|
||||
export const authPlugins: {
|
||||
caching_sha2_password: AuthPluginDefinition<{
|
||||
overrideIsSecure?: boolean;
|
||||
serverPublicKey?: RsaPublicKey | RsaPrivateKey | KeyLike;
|
||||
onServerPublicKey?: (data: Buffer) => void;
|
||||
}>;
|
||||
mysql_clear_password: AuthPluginDefinition<{
|
||||
password?: string;
|
||||
}>;
|
||||
mysql_native_password: AuthPluginDefinition<{
|
||||
password?: string;
|
||||
passwordSha1?: string;
|
||||
}>;
|
||||
sha256_password: AuthPluginDefinition<{
|
||||
serverPublicKey?: RsaPublicKey | RsaPrivateKey | KeyLike;
|
||||
onServerPublicKey?: (data: Buffer) => void;
|
||||
}>;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue