sequelize-core-papandreou
Advanced tools
Comparing version 7.0.0-alpha.41-patch3 to 7.0.0-alpha.41-patch4
@@ -100,3 +100,2 @@ "use strict"; | ||
await this.beforeAcquire?.(options); | ||
Object.freeze(options); | ||
const { useMaster = false, type = "write" } = options; | ||
@@ -103,0 +102,0 @@ if (type !== "read" && type !== "write") { |
@@ -71,5 +71,5 @@ "use strict"; | ||
writeConfig.shardId = shardId; | ||
const connection = await connect(writeConfig); | ||
owningPools.set(connection, `write:${shardId}`); | ||
return connection; | ||
const client = await connect(writeConfig); | ||
owningPools.set(client.connection, `write:${shardId}`); | ||
return client; | ||
}, | ||
@@ -76,0 +76,0 @@ destroy: disconnect, |
{ | ||
"name": "sequelize-core-papandreou", | ||
"description": "Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication and more.", | ||
"version": "7.0.0-alpha.41-patch3", | ||
"version": "7.0.0-alpha.41-patch4", | ||
"funding": [ | ||
@@ -6,0 +6,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3084850
0
38330