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

sql-formatter

Package Overview
Dependencies
Maintainers
2
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql-formatter - npm Package Compare versions

Comparing version 14.1.0-beta.2 to 15.0.0

7

dist/index.d.ts

@@ -29,2 +29,4 @@ declare type ParamItems = {

VARIABLE = "VARIABLE",
RESERVED_DATA_TYPE = "RESERVED_DATA_TYPE",
RESERVED_PARAMETERIZED_DATA_TYPE = "RESERVED_PARAMETERIZED_DATA_TYPE",
RESERVED_KEYWORD = "RESERVED_KEYWORD",

@@ -112,2 +114,3 @@ RESERVED_FUNCTION_NAME = "RESERVED_FUNCTION_NAME",

reservedFunctionNames: string[];
reservedDataTypes: string[];
reservedKeywords: string[];

@@ -130,2 +133,4 @@ stringTypes: QuoteType[];

declare type IdentifierCase = 'preserve' | 'upper' | 'lower';
declare type DataTypeCase = 'preserve' | 'upper' | 'lower';
declare type FunctionCase = 'preserve' | 'upper' | 'lower';
declare type LogicalOperatorNewline = 'before' | 'after';

@@ -137,2 +142,4 @@ interface FormatOptions {

identifierCase: IdentifierCase;
dataTypeCase: DataTypeCase;
functionCase: FunctionCase;
indentStyle: IndentStyle;

@@ -139,0 +146,0 @@ logicalOperatorNewline: LogicalOperatorNewline;

2

package.json
{
"name": "sql-formatter",
"version": "14.1.0-beta.2",
"version": "15.0.0",
"description": "Format whitespace in a SQL query to make it more readable",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -153,2 +153,4 @@ <a href='https://github.com/sql-formatter-org/sql-formatter'><img src="static/prettier-sql-clean.svg" width="128"/></a>

- [**`keywordCase`**](docs/keywordCase.md) uppercases or lowercases keywords.
- [**`dataTypeCase`**](docs/dataTypeCase.md) uppercases or lowercases data types.
- [**`functionCase`**](docs/functionCase.md) uppercases or lowercases function names.
- [**`identifierCase`**](docs/identifierCase.md) uppercases or lowercases identifiers. (**experimental!**)

@@ -155,0 +157,0 @@ - [**`indentStyle`**](docs/indentStyle.md) defines overall indentation style.

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

Sorry, the diff of this file is too big to display

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 too big to display

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