prettier-plugin-sql
Advanced tools
Comparing version 0.13.0 to 0.14.0
@@ -6,8 +6,9 @@ import { type AST, type Option } from 'node-sql-parser'; | ||
declare const NODE_SQL_PARSER = "node-sql-parser"; | ||
export declare type SqlBaseOptions = Option & Partial<FormatOptions> & { | ||
export type SqlBaseOptions = Option & Partial<FormatOptions> & { | ||
language?: string; | ||
formatter?: typeof NODE_SQL_PARSER | typeof SQL_FORMATTER; | ||
}; | ||
export declare type SqlOptions = ParserOptions<AST> & SqlBaseOptions; | ||
export declare type SqlFormatOptions = Options & SqlBaseOptions; | ||
export type SqlOptions = ParserOptions<AST> & SqlBaseOptions; | ||
export type SqlFormatOptions = Options & SqlBaseOptions; | ||
declare const SqlPlugin: Plugin<AST | string>; | ||
export default SqlPlugin; |
import { __rest } from "tslib"; | ||
import nodeSqlParser from 'node-sql-parser'; | ||
import { format, Formatter } from 'sql-formatter'; | ||
import { Parser } from 'node-sql-parser'; | ||
import { format } from 'sql-formatter'; | ||
import { languages } from './languages.js'; | ||
const parser = new nodeSqlParser.Parser(); | ||
const parser = new Parser(); | ||
const SQL_FORMATTER = 'sql-formatter'; | ||
@@ -115,9 +115,8 @@ const NODE_SQL_PARSER = 'node-sql-parser'; | ||
{ | ||
value: 'tsql', | ||
value: 'transactsql', | ||
description: 'SQL Server Transact-SQL: https://docs.microsoft.com/en-us/sql/sql-server/', | ||
}, | ||
{ | ||
since: '0.11.0', | ||
value: Formatter, | ||
description: 'Custom formatter class (experimental)', | ||
value: 'tsql', | ||
description: 'SQL Server Transact-SQL: https://docs.microsoft.com/en-us/sql/sql-server/', | ||
}, | ||
@@ -124,0 +123,0 @@ ], |
{ | ||
"name": "prettier-plugin-sql", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"type": "module", | ||
@@ -10,3 +10,3 @@ "description": "An opinionated sql formatter plugin for Prettier", | ||
"funding": "https://opencollective.com/unts", | ||
"license": "MIT", | ||
"license": "GPLv2", | ||
"engines": { | ||
@@ -48,5 +48,5 @@ "node": "^12.20.0 || ^14.18.0 || >=16.0.0" | ||
"dependencies": { | ||
"node-sql-parser": "^4.4.0", | ||
"sql-formatter": "^11.0.2", | ||
"tslib": "^2.4.0" | ||
"node-sql-parser": "^4.6.6", | ||
"sql-formatter": "^12.2.0", | ||
"tslib": "^2.5.0" | ||
}, | ||
@@ -53,0 +53,0 @@ "publishConfig": { |
@@ -63,2 +63,3 @@ # prettier-plugin-sql ![npm bundle size](https://img.shields.io/bundlephobia/min/prettier-plugin-sql) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/prettier-plugin-sql) | ||
| 'sqlite' | ||
| 'transactsql' | ||
| 'tsql' | ||
@@ -111,9 +112,9 @@ | 'trino' // default `sql` | ||
[MIT][] © [JounQin][]@[1stG.me][] | ||
[GPLv2][] © [JounQin][]@[1stG.me][] | ||
[1stg.me]: https://www.1stg.me | ||
[jounqin]: https://GitHub.com/JounQin | ||
[mit]: http://opensource.org/licenses/MIT | ||
[gplv2]: https://opensource.org/license/gpl-2-0 | ||
[node-sql-parser]: https://github.com/taozhi8833998/node-sql-parser | ||
[prettier]: https://prettier.io | ||
[sql-formatter]: https://github.com/zeroturnaround/sql-formatter |
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
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
74745
39185
119
3
70
1457
+ Addedsql-formatter@12.2.4(transitive)
- Removedsql-formatter@11.0.2(transitive)
Updatednode-sql-parser@^4.6.6
Updatedsql-formatter@^12.2.0
Updatedtslib@^2.5.0