New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

adost

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adost - npm Package Compare versions

Comparing version

to
1.5.0

4

lib/PGActiveModel.js

@@ -374,4 +374,4 @@ 'use strict';

*/
static async findAll() {
return await this._toADModels(await super.findAll());
static async findAll(limit,params = '*') {
return await this._toADModels(await super.findAll(limit, params));
}

@@ -378,0 +378,0 @@

@@ -61,4 +61,4 @@ 'use strict';

static async findAll() {
return this._convertToModel(await pg.query(`SELECT * FROM ${this.table}`));
static async findAll(limit, params = '*') {
return this._convertToModel(await pg.query(`SELECT ${params} FROM ${this.table} ${limit ? 'LIMIT ' + limit : ''}` ));
}

@@ -65,0 +65,0 @@

@@ -43,4 +43,4 @@ 'use strict';

static async findAll() {
const newModels = await super.findAll();
static async findAll(limit, params = '*') {
const newModels = await super.findAll(limit, params);

@@ -47,0 +47,0 @@ for (var i = 0; i < newModels.length; i++) {

{
"name": "adost",
"version": "1.4.0",
"version": "1.5.0",
"description": "A fast postgres CRUD ORM",

@@ -5,0 +5,0 @@ "keywords": [