From 3ab5fe8a8ae8efd6f86c7d2fdd847f3660a24eb6 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Tue, 17 Mar 2026 20:54:01 -0700 Subject: [PATCH] replace plugin with this a thinly veiled excuse to trigger a release --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 4285ab6..b3038fc 100644 --- a/index.js +++ b/index.js @@ -196,7 +196,6 @@ async function hookDataPostAsync(stream, plugin, connection) { } exports.hook_data_post = function (next, connection) { - const plugin = this; const txn = connection?.transaction; if (!txn) { @@ -204,12 +203,12 @@ exports.hook_data_post = function (next, connection) { } const stream = new PassThrough(); - hookDataPostAsync(stream, plugin, connection) + hookDataPostAsync(stream, this, connection) .then(() => { next(); }) .catch(err => { - plugin.logerror(err, plugin, connection); + this.logerror(err, this, connection); next(); });