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

@akylas/kiss-orm

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@akylas/kiss-orm - npm Package Compare versions

Comparing version 2.1.7 to 2.1.8

3

dist/Repositories/CrudRepository.d.ts

@@ -26,3 +26,4 @@ import DatabaseInterface from '../Databases/DatabaseInterface';

}): Promise<Model>;
search({ postfix, where, orderBy, select }?: {
search({ from, postfix, where, orderBy, select }?: {
from?: SqlQuery;
postfix?: SqlQuery;

@@ -29,0 +30,0 @@ where?: SqlQuery;

@@ -39,3 +39,3 @@ import NotFoundError from '../Errors/NotFoundError';

}
async search({ postfix, where, orderBy, select } = {}) {
async search({ from, postfix, where, orderBy, select } = {}) {
const filters = [];

@@ -56,5 +56,7 @@ if (this.scope) {

? sql `${select}` : sql `*`;
const fromClause = select
? sql `${from}` : sql `${new QueryIdentifier(this.table)}`;
const results = await this.database.query(sql `
SELECT ${selectClause}
FROM ${new QueryIdentifier(this.table)} ${postfixClause}
FROM ${fromClause} ${postfixClause}
${whereClause}

@@ -61,0 +63,0 @@ ${orderByClause}

@@ -8,3 +8,3 @@ {

"author": "Sébastien Caparros",
"version": "2.1.7",
"version": "2.1.8",
"engines": {

@@ -11,0 +11,0 @@ "node": ">= 12.0.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