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.2 to 2.0.3

2

es6/classes/select-statement.d.ts

@@ -36,3 +36,3 @@ import { SafeString } from "../safe-string";

*/
with_: <NewSelection extends string>(it: Record<NewSelection, SelectStatement<any, any, any, any> | AliasedSelectStatement<any, any, any, any> | StringifiedSelectStatement<any, any, any, any> | AliasedStringifiedSelectStatement<any, any, any, any>>) => SelectStatement<Selection | NewSelection, Alias, Scope, FlatScope | NewSelection>;
with_: <NewSelection extends string>(it: Record<NewSelection, SafeString | SelectStatement<any, any, any, any> | AliasedSelectStatement<any, any, any, any> | StringifiedSelectStatement<any, any, any, any> | AliasedStringifiedSelectStatement<any, any, any, any>>) => SelectStatement<Selection | NewSelection, Alias, Scope, FlatScope | NewSelection>;
/**

@@ -39,0 +39,0 @@ * @since 2.0.0

@@ -45,4 +45,6 @@ var __extends = (this && this.__extends) || (function () {

import { printAliasedSelectStatement, printSelectStatement } from "../print";
import { isSafeString } from "../safe-string";
import { makeArray } from "../utils";
import { Joined, JoinedFactory } from "./joined";
import { StringifiedSelectStatement, } from "./stringified-select-statement";
/**

@@ -133,3 +135,11 @@ *

return _this.copy().setClickhouseWith(__spreadArray(__spreadArray([], _this.__props.clickhouseWith, true), [
it,
Object.fromEntries(Object.entries(it).map(function (_a) {
var key = _a[0], value = _a[1];
return [
key,
isSafeString(value)
? StringifiedSelectStatement.fromSafeString(value)
: value,
];
})),
], false));

@@ -136,0 +146,0 @@ },

@@ -36,3 +36,3 @@ import { SafeString } from "../safe-string";

*/
with_: <NewSelection extends string>(it: Record<NewSelection, SelectStatement<any, any, any, any> | AliasedSelectStatement<any, any, any, any> | StringifiedSelectStatement<any, any, any, any> | AliasedStringifiedSelectStatement<any, any, any, any>>) => SelectStatement<Selection | NewSelection, Alias, Scope, FlatScope | NewSelection>;
with_: <NewSelection extends string>(it: Record<NewSelection, SafeString | SelectStatement<any, any, any, any> | AliasedSelectStatement<any, any, any, any> | StringifiedSelectStatement<any, any, any, any> | AliasedStringifiedSelectStatement<any, any, any, any>>) => SelectStatement<Selection | NewSelection, Alias, Scope, FlatScope | NewSelection>;
/**

@@ -39,0 +39,0 @@ * @since 2.0.0

@@ -48,4 +48,6 @@ "use strict";

var print_1 = require("../print");
var safe_string_1 = require("../safe-string");
var utils_1 = require("../utils");
var joined_1 = require("./joined");
var stringified_select_statement_1 = require("./stringified-select-statement");
/**

@@ -136,3 +138,11 @@ *

return _this.copy().setClickhouseWith(__spreadArray(__spreadArray([], _this.__props.clickhouseWith, true), [
it,
Object.fromEntries(Object.entries(it).map(function (_a) {
var key = _a[0], value = _a[1];
return [
key,
(0, safe_string_1.isSafeString)(value)
? stringified_select_statement_1.StringifiedSelectStatement.fromSafeString(value)
: value,
];
})),
], false));

@@ -139,0 +149,0 @@ },

{
"name": "sql-select-ts",
"version": "2.0.2",
"version": "2.0.3",
"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