kysely-replication
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -88,3 +88,7 @@ // src/connection.ts | ||
const { query } = compiledQuery; | ||
return this.#isOperationNodeForPrimary(query) || SelectQueryNode.is(query) && Boolean(query.with?.expressions.some(this.#isOperationNodeForPrimary)); | ||
return this.#isOperationNodeForPrimary(query) || SelectQueryNode.is(query) && Boolean( | ||
query.with?.expressions.some( | ||
(e) => this.#isOperationNodeForPrimary(e.expression) | ||
) | ||
); | ||
} | ||
@@ -91,0 +95,0 @@ #isOperationNodeForPrimary(node) { |
{ | ||
"name": "kysely-replication", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -72,4 +72,5 @@ "type": "module", | ||
"check:dts": "attw --pack .", | ||
"check:types": "tsc" | ||
"check:types": "tsc", | ||
"test": "vitest" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
73297
41
954