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

h-orm

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

h-orm - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

8

lib/model/index.js

@@ -46,5 +46,2 @@ const mysql = require('../mysql')

}
if (this.conditions['sort']) {
SQL = SQL + ' order by ' + this.conditions['sort'].map(d => `${d.key} ${d.rule}`).join(',')
}
break

@@ -85,2 +82,5 @@ case 'like':

}
if ((this.type === 'select' || this.type === 'like') && this.conditions['sort']) {
SQL = SQL + ' order by ' + this.conditions['sort'].map(d => `${d.key} ${d.rule}`).join(',')
}
mysql.query(SQL)

@@ -90,3 +90,3 @@ .then(res => {

// limit
if (this.type = 'select' && this.conditions['limit']) {
if (this.type === 'select' && this.conditions['limit']) {
if (!this.conditions['limit'].count) {

@@ -93,0 +93,0 @@ result = result.slice(0, Number(this.conditions['limit'].num))

{
"name": "h-orm",
"version": "0.0.6",
"version": "0.0.7",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": "https://github.com/yuanhaoyu/h-orm.git",

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