Update Fix
This commit is contained in:
8
node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js
generated
vendored
8
node_modules/mysql2/lib/auth_plugins/caching_sha2_password.js
generated
vendored
@@ -42,7 +42,7 @@ function encrypt(password, scramble, key) {
|
||||
);
|
||||
}
|
||||
|
||||
module.exports =
|
||||
const pluginFactory =
|
||||
(pluginOptions = {}) =>
|
||||
({ connection }) => {
|
||||
let state = 0;
|
||||
@@ -106,3 +106,9 @@ module.exports =
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
// Export the plugin factory as default
|
||||
module.exports = pluginFactory;
|
||||
|
||||
// Export calculateToken for reuse in initial handshake optimization
|
||||
module.exports.calculateToken = calculateToken;
|
||||
|
||||
Reference in New Issue
Block a user