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

@saltcorn/db-common

Package Overview
Dependencies
Maintainers
1
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saltcorn/db-common - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3-beta.0

35

dist/internal.d.ts

@@ -76,3 +76,38 @@ /**

orderDesc?: boolean;
cached?: boolean;
versioned?: boolean;
min_role_read?: number;
min_role_write?: number;
ownership_field_id?: string;
ownership_formula?: string;
description?: string;
};
export declare const orderByIsObject: (object: any) => object is {
distance: CoordOpts;
};
export declare type JoinField = {
ref: any;
target: any;
through: any;
[key: string]: any;
};
export declare type JoinOptions = {
joinFields?: JoinField;
aggregations?: AggregationOptions[];
where: any;
} & SelectOptions;
export declare type AggregationOptions = {
table: string;
ref: string;
field: string;
where?: string;
aggregate: string;
subselect?: SubselectOptions;
};
export declare type SubselectOptions = {
tableName: string;
whereField: string;
field: string;
table: any;
};
/**

@@ -79,0 +114,0 @@ * @param {object} selopts

6

dist/internal.js

@@ -7,3 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.mkSelectOptions = exports.mkWhere = exports.sqlsanitizeAllowDots = exports.sqlsanitize = void 0;
exports.mkSelectOptions = exports.orderByIsObject = exports.mkWhere = exports.sqlsanitizeAllowDots = exports.sqlsanitize = void 0;
//https://stackoverflow.com/questions/15300704/regex-with-my-jquery-function-for-sql-variable-name-validation

@@ -230,2 +230,6 @@ /**

};
const orderByIsObject = (object) => {
return object && object.distance;
};
exports.orderByIsObject = orderByIsObject;
/**

@@ -232,0 +236,0 @@ * @param {object} selopts

2

package.json
{
"name": "@saltcorn/db-common",
"version": "0.6.2",
"version": "0.6.3-beta.0",
"description": "Db common structures for Saltcorn, open-source no-code platform",

@@ -5,0 +5,0 @@ "homepage": "https://saltcorn.com",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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