Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

highsql

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highsql - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

2

package.json
{
"name": "highsql",
"version": "1.3.2",
"version": "1.3.3",
"description": "High level MySQL utility",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -59,3 +59,4 @@ /**

}
return this.query(sql, params);
const [res, _] = await this.query(sql, params || []);
return res;
}

@@ -62,0 +63,0 @@ async insert(table, values) {

@@ -72,3 +72,3 @@ /**

// Convenience methods for common operations
async select(table: string, columns: string = '*', where?: string, params?: any[]): Promise<RowDataPacket[]> {
async select(table: string, columns: string = '*', where?: string, params?: any[]): Promise<RowDataPacket> {
let sql = `SELECT ${columns} FROM ${table}`;

@@ -78,3 +78,4 @@ if (where) {

}
return this.query<RowDataPacket[]>(sql, params);
const [res, _] = await this.query<RowDataPacket[]>(sql, params || []);
return res;
}

@@ -81,0 +82,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc