Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/sql-kysely/src/internal/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ function effectifyWith(
}
return new Proxy(obj, {
get(target, prop): any {
if (typeof prop === "symbol") {
return target[prop]
}
const descriptor = Object.getOwnPropertyDescriptor(target, prop)
if (descriptor && !descriptor.configurable) {
return target[prop]
}
const prototype = Object.getPrototypeOf(target)
if (Effect.EffectTypeId in prototype && prop === "commit") {
return commit.bind(target)
Expand Down
Loading