From ae4ebbca0138e95f7591b734a4ca5bb9b789e936 Mon Sep 17 00:00:00 2001 From: Ken Franqueiro Date: Fri, 10 Sep 2021 22:35:45 -0400 Subject: [PATCH] Pass table name to extension functions --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a12c44d..6d26c35 100644 --- a/src/index.ts +++ b/src/index.ts @@ -96,7 +96,7 @@ class PgAnonymizer extends Command { }; }); - let table = null; + let table: string | null = null; let indices: Number[] = []; let cols: string[] = []; @@ -150,7 +150,7 @@ class PgAnonymizer extends Command { return acc[key]; } return acc; - }, extension)(v); + }, extension)(v, table); } return replacement; }