prettier-plugin-sql-cst
Advanced tools
Comparing version 0.11.6 to 0.11.7
@@ -15,2 +15,4 @@ import { Node } from "sql-parser-cst"; | ||
export declare const isParenExpr: (node: any) => node is import("sql-parser-cst").ParenExpr<Node>; | ||
export declare const isSelectStmt: (node: any) => node is import("sql-parser-cst").SelectStmt; | ||
export declare const isCompoundSelectStmt: (node: any) => node is import("sql-parser-cst").CompoundSelectStmt; | ||
export declare const isListExpr: (node: any) => node is import("sql-parser-cst").ListExpr<Node>; | ||
@@ -17,0 +19,0 @@ export declare const isCreateFunctionStmt: (node: any) => node is import("sql-parser-cst").CreateFunctionStmt; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isDynamicallyLoadedFunction = exports.isLanguageClause = exports.isCreateFunctionStmt = exports.isListExpr = exports.isParenExpr = exports.isAsClause = exports.isArraySubscript = exports.isStringLiteral = exports.isJsonbLiteral = exports.isJsonLiteral = exports.isEmpty = exports.isKeyword = exports.isCreateTableStmt = exports.isFuncArgs = exports.isFuncCall = exports.isValuesClause = exports.isProgram = void 0; | ||
exports.isDynamicallyLoadedFunction = exports.isLanguageClause = exports.isCreateFunctionStmt = exports.isListExpr = exports.isCompoundSelectStmt = exports.isSelectStmt = exports.isParenExpr = exports.isAsClause = exports.isArraySubscript = exports.isStringLiteral = exports.isJsonbLiteral = exports.isJsonLiteral = exports.isEmpty = exports.isKeyword = exports.isCreateTableStmt = exports.isFuncArgs = exports.isFuncCall = exports.isValuesClause = exports.isProgram = void 0; | ||
var utils_1 = require("./utils"); | ||
@@ -23,2 +23,4 @@ var is = function (type) { | ||
exports.isParenExpr = is("paren_expr"); | ||
exports.isSelectStmt = is("select_stmt"); | ||
exports.isCompoundSelectStmt = is("compound_select_stmt"); | ||
exports.isListExpr = is("list_expr"); | ||
@@ -25,0 +27,0 @@ exports.isCreateFunctionStmt = is("create_function_stmt"); |
@@ -42,3 +42,5 @@ "use strict"; | ||
if ((0, node_utils_1.isListExpr)(path.getParentNode(0)) && | ||
(0, node_utils_1.isFuncArgs)(path.getParentNode(1))) { | ||
(0, node_utils_1.isFuncArgs)(path.getParentNode(1)) && | ||
!(0, node_utils_1.isSelectStmt)(node.expr) && | ||
!(0, node_utils_1.isCompoundSelectStmt)(node.expr)) { | ||
return print("expr"); | ||
@@ -45,0 +47,0 @@ } |
{ | ||
"name": "prettier-plugin-sql-cst", | ||
"version": "0.11.6", | ||
"version": "0.11.7", | ||
"description": "Prettier plugin for SQL", | ||
"author": "Rene Saarsoo <nene@triin.net>", | ||
"contributors": [ | ||
"Bowen Parnell <bparnell@4tel.com.au>", | ||
"Rene Saarsoo <nene@triin.net>" | ||
], | ||
"license": "GPL-3.0-or-later", | ||
@@ -7,0 +10,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176399
2962