prettier-plugin-sql
Advanced tools
Comparing version 0.14.0 to 0.15.0-alpha.0
@@ -1,2 +0,1 @@ | ||
import { __rest } from "tslib"; | ||
import { Parser } from 'node-sql-parser'; | ||
@@ -17,3 +16,3 @@ import { format } from 'sql-formatter'; | ||
sql: { | ||
parse(text, _parsers, { formatter, type, database }) { | ||
parse(text, { formatter, type, database }) { | ||
return formatter === SQL_FORMATTER | ||
@@ -30,5 +29,4 @@ ? text | ||
sql: { | ||
print(path, _a) { | ||
var { type, database, endOfLine } = _a, options = __rest(_a, ["type", "database", "endOfLine"]); | ||
const value = path.getValue(); | ||
print(path, { type, database, endOfLine, ...options }) { | ||
const value = path.node; | ||
let formatted = typeof value === 'string' | ||
@@ -45,3 +43,2 @@ ? format(value, options) | ||
formatter: { | ||
since: '0.1.0', | ||
category: 'Config', | ||
@@ -63,3 +60,2 @@ type: 'choice', | ||
language: { | ||
since: '0.1.0', | ||
category: 'Config', | ||
@@ -129,3 +125,2 @@ type: 'choice', | ||
keywordCase: { | ||
since: '0.7.0', | ||
category: 'Output', | ||
@@ -151,3 +146,2 @@ type: 'choice', | ||
uppercase: { | ||
since: '0.1.0', | ||
category: 'Output', | ||
@@ -159,3 +153,2 @@ type: 'boolean', | ||
indentStyle: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
@@ -185,3 +178,2 @@ type: 'choice', | ||
logicalOperatorNewline: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
@@ -203,3 +195,2 @@ type: 'choice', | ||
tabulateAlias: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
@@ -211,3 +202,2 @@ type: 'boolean', | ||
commaPosition: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
@@ -233,3 +223,2 @@ type: 'choice', | ||
expressionWidth: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
@@ -241,3 +230,2 @@ type: 'int', | ||
linesBetweenQueries: { | ||
since: '0.1.0', | ||
category: 'Format', | ||
@@ -249,3 +237,2 @@ type: 'int', | ||
denseOperators: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
@@ -257,3 +244,2 @@ type: 'boolean', | ||
newlineBeforeSemicolon: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
@@ -265,3 +251,2 @@ type: 'boolean', | ||
params: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
@@ -288,3 +273,2 @@ type: 'choice', | ||
paramTypes: { | ||
since: '0.11.0', | ||
category: 'Config', | ||
@@ -301,3 +285,2 @@ type: 'choice', | ||
type: { | ||
since: '0.1.0', | ||
category: 'Config', | ||
@@ -319,3 +302,2 @@ type: 'choice', | ||
database: { | ||
since: '0.1.0', | ||
category: 'Config', | ||
@@ -322,0 +304,0 @@ type: 'choice', |
{ | ||
"name": "prettier-plugin-sql", | ||
"version": "0.14.0", | ||
"version": "0.15.0-alpha.0", | ||
"type": "module", | ||
@@ -12,3 +12,3 @@ "description": "An opinionated sql formatter plugin for Prettier", | ||
"engines": { | ||
"node": "^12.20.0 || ^14.18.0 || >=16.0.0" | ||
"node": "^14.18.0 || >=16.0.0" | ||
}, | ||
@@ -45,3 +45,3 @@ "main": "./lib/index.cjs", | ||
"peerDependencies": { | ||
"prettier": "^2.0.0" | ||
"prettier": "^3.0.0-alpha.0" | ||
}, | ||
@@ -48,0 +48,0 @@ "dependencies": { |
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
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
73878
1439