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

prettier-plugin-sql-cst

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-sql-cst - npm Package Compare versions

Comparing version 0.11.6 to 0.11.7

2

dist/node_utils.d.ts

@@ -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;

4

dist/node_utils.js
"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",

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