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

leoric

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leoric - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

5

History.md

@@ -0,1 +1,6 @@

0.1.2 / 2017-12-14
==================
* Copy left table's orders into subquery to make order/limit work when combined.
0.1.1 / 2017-12-13

@@ -2,0 +7,0 @@ ==================

11

lib/spell.js

@@ -302,2 +302,12 @@ 'use strict'

subspell.orders = []
for (let i = orders.length - 1; i >= 0; i--) {
const [name, order] = orders[i]
const { type, qualifiers, value } = parseExpr(name)
if (type == 'id' && !qualifiers || qualifiers[0] == baseName) {
subspell.orders.unshift([value, order])
orders[i] = [`${baseName}.${value}`, order]
}
}
const columns = []

@@ -320,3 +330,2 @@ for (const qualifier in selection) {

subspell.orders = []
if (subspell.attributes.size > 0 || subspell.whereConditions.length > 0 || skip > 0 || rowCount > 0) {

@@ -323,0 +332,0 @@ chunks.push(`FROM (${formatSelectWithoutJoin(subspell)}) AS ${escapeId(baseName)}`)

2

package.json
{
"name": "leoric",
"version": "0.1.1",
"version": "0.1.2",
"description": "Object-relational mapping for Node.js",

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

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