🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

halifier-sequelize

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

halifier-sequelize - npm Package Compare versions

Comparing version

to
0.0.4

{
"name": "halifier-sequelize",
"version": "0.0.3",
"version": "0.0.4",
"description": "sequelize adapters for halifier library",

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

@@ -24,4 +24,7 @@ const R = require('ramda')

if (listMeta.order) {
const direction = (listMeta.direction && listMeta.direction === 'desc') ? 'DESC' : 'ASC'
query.order = [[listMeta.order, direction]];
query.order = listMeta.order.map(fieldOrder => {
const field = R.nth(0, R.keys(fieldOrder))
return [field, String(fieldOrder[field]).toUpperCase()]
})
.filter(R.nth(0))
}

@@ -28,0 +31,0 @@

Sorry, the diff of this file is not supported yet