Socket
Socket
Sign inDemoInstall

cormo

Package Overview
Dependencies
32
Maintainers
4
Versions
169
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.14.5 to 0.14.6

11

lib/adapters/mysql.d.ts

@@ -0,1 +1,3 @@

/// <reference types="node" />
import tls = require('tls');
export interface AdapterSettingsMySQL {

@@ -21,2 +23,11 @@ host?: string;

};
ssl?: string | (tls.SecureContextOptions & {
rejectUnauthorized?: boolean;
});
authPlugins?: {
[plugin: string]: ({ connection, command }: {
connection: any;
command: any;
}) => (data: any) => string;
};
}

@@ -23,0 +34,0 @@ import { Connection } from '../connection';

13

lib/adapters/mysql.js

@@ -14,7 +14,14 @@ "use strict";

let mysql;
let is_mysql2 = false;
try {
mysql = require('mysql');
mysql = require('mysql2');
is_mysql2 = true;
}
catch (error) {
//
catch (error1) {
try {
mysql = require('mysql');
}
catch (error2) {
//
}
}

@@ -21,0 +28,0 @@ const stream_1 = __importDefault(require("stream"));

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

@@ -62,2 +62,3 @@ "orm",

"mysql": "^2.18.1",
"mysql2": "^2.1.0",
"pg": "^7.18.2",

@@ -72,3 +73,3 @@ "pg-query-stream": "^3.0.3",

},
"gitHead": "6af22e3abc651aab4d3f1854f30690eb0f0c3944"
"gitHead": "cdfec522008952ea01b18a9afb829cf8eaae05b6"
}
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