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

prettier-plugin-sql

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-sql - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

7

lib/index.d.ts

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

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