Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const _wrappedSqlFunction = (...args: Parameters) => {
const result = slonikSql(...args)
const key = mapKey(result)
const _identifiers = _map[key] = _map[key] || []
_identifiers.push(identifier)
return result
}
return Object.assign(_wrappedSqlFunction, slonikSql)