Socket
Socket
Sign inDemoInstall

cormo

Package Overview
Dependencies
22
Maintainers
5
Versions
169
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.1 to 0.16.2

12

lib/adapters/mysql.js

@@ -326,5 +326,11 @@ "use strict";

try {
await connection.queryAsync('SET FOREIGN_KEY_CHECKS = 0');
await connection.queryAsync(`DELETE FROM \`${table_name}\``);
await connection.queryAsync('SET FOREIGN_KEY_CHECKS = 1');
try {
await connection.queryAsync(`DELETE FROM \`${table_name}\``);
}
catch (error) {
// try again with ignoring foreign key constraints
await connection.queryAsync('SET FOREIGN_KEY_CHECKS = 0');
await connection.queryAsync(`DELETE FROM \`${table_name}\``);
await connection.queryAsync('SET FOREIGN_KEY_CHECKS = 1');
}
}

@@ -331,0 +337,0 @@ finally {

{
"name": "cormo",
"description": "ORM framework for Node.js",
"version": "0.16.1",
"version": "0.16.2",
"keywords": [

@@ -71,3 +71,3 @@ "orm",

},
"gitHead": "8f1e9e710797f4a52aa958970cf848a7d3e3e3a9"
"gitHead": "fc004aa446a4a6bd8416bd61b29206b2c7262063"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc