Socket
Socket
Sign inDemoInstall

sql-select-ts

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.4 to 2.0.5

22

es6/print.js

@@ -137,6 +137,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {

export var printSelectStatementInternal = function (selectStatement, parenthesis) {
var selection = selectStatement.__props.selection
var selectionStar = selectStatement.__props.selection
.map(function (it) {
if (isStarSymbol(it)) {
return ["*"];
return [];
}

@@ -146,2 +146,15 @@ if (isStarOfAliasSymbol(it)) {

}
return [];
})
// flatten
.reduce(function (p, c) { return __spreadArray(__spreadArray([], p, true), c, true); }, [])
.join(", ");
var selectionKvs = selectStatement.__props.selection
.map(function (it) {
if (isStarSymbol(it)) {
return ["*"];
}
if (isStarOfAliasSymbol(it)) {
return [];
}
// check if the proxy was returned in an identity function

@@ -162,2 +175,7 @@ if (isTheProxyObject(it.content)) {

.join(", ");
var selection = selectionStar.length > 0
? selectionKvs.length > 0
? "".concat(selectionStar, ", (").concat(selectionKvs, ")")
: selectionStar
: selectionKvs;
var replaceInner = selectStatement.__props.replace

@@ -164,0 +182,0 @@ .map(function (_a) {

@@ -141,6 +141,6 @@ "use strict";

var printSelectStatementInternal = function (selectStatement, parenthesis) {
var selection = selectStatement.__props.selection
var selectionStar = selectStatement.__props.selection
.map(function (it) {
if ((0, data_wrappers_1.isStarSymbol)(it)) {
return ["*"];
return [];
}

@@ -150,2 +150,15 @@ if ((0, data_wrappers_1.isStarOfAliasSymbol)(it)) {

}
return [];
})
// flatten
.reduce(function (p, c) { return __spreadArray(__spreadArray([], p, true), c, true); }, [])
.join(", ");
var selectionKvs = selectStatement.__props.selection
.map(function (it) {
if ((0, data_wrappers_1.isStarSymbol)(it)) {
return ["*"];
}
if ((0, data_wrappers_1.isStarOfAliasSymbol)(it)) {
return [];
}
// check if the proxy was returned in an identity function

@@ -166,2 +179,7 @@ if ((0, consume_fields_1.isTheProxyObject)(it.content)) {

.join(", ");
var selection = selectionStar.length > 0
? selectionKvs.length > 0
? "".concat(selectionStar, ", (").concat(selectionKvs, ")")
: selectionStar
: selectionKvs;
var replaceInner = selectStatement.__props.replace

@@ -168,0 +186,0 @@ .map(function (_a) {

2

package.json
{
"name": "sql-select-ts",
"version": "2.0.4",
"version": "2.0.5",
"description": "A modern, database-agnostic, composable SELECT query builder with great typescript support.",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc