prettier-plugin-sql
Advanced tools
Comparing version 0.3.0 to 0.4.0
# Change Log | ||
## 0.4.0 | ||
### Minor Changes | ||
- [`96626a2`](https://github.com/rx-ts/prettier/commit/96626a2293dc044d7f159aab9d2b1436246cb5cd) Thanks [@JounQin](https://github.com/JounQin)! - feat: support native esm with exports field | ||
## 0.3.0 | ||
@@ -4,0 +10,0 @@ |
@@ -1,9 +0,11 @@ | ||
import { Parser } from 'node-sql-parser'; | ||
import { format } from 'sql-formatter'; | ||
import { languages } from './languages'; | ||
const parser = new Parser(); | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const node_sql_parser_1 = require("node-sql-parser"); | ||
const sql_formatter_1 = require("sql-formatter"); | ||
const languages_1 = require("./languages"); | ||
const parser = new node_sql_parser_1.Parser(); | ||
const SQL_FORMATTER = 'sql-formatter'; | ||
const NODE_SQL_PARSER = 'node-sql-parser'; | ||
const SqlPlugin = { | ||
languages, | ||
languages: languages_1.languages, | ||
parsers: { | ||
@@ -26,3 +28,3 @@ sql: { | ||
return typeof value === 'string' | ||
? format(value, { | ||
? (0, sql_formatter_1.format)(value, { | ||
language, | ||
@@ -178,3 +180,3 @@ uppercase, | ||
}; | ||
export default SqlPlugin; | ||
exports.default = SqlPlugin; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,5 @@ | ||
export const languages = [ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.languages = void 0; | ||
exports.languages = [ | ||
{ | ||
@@ -3,0 +6,0 @@ "name": "HiveQL", |
{ | ||
"name": "prettier-plugin-sql", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "An opinionated sql formatter plugin for Prettier", | ||
@@ -9,9 +9,11 @@ "repository": "git@github.com/rx-ts/prettier.git", | ||
"license": "MIT", | ||
"main": "lib/cjs", | ||
"module": "lib", | ||
"es2015": "lib/es2015", | ||
"fesm5": "lib/esm", | ||
"jsdelivr": "lib/umd.min", | ||
"unpkg": "lib/umd.min", | ||
"types": "lib", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.esm.mjs", | ||
"exports": { | ||
"import": "./lib/index.esm.mjs", | ||
"require": "./lib/index.js" | ||
}, | ||
"jsdelivr": "./lib/umd.min.js", | ||
"unpkg": "./lib/umd.min.js", | ||
"types": "./lib/index.d.ts", | ||
"files": [ | ||
@@ -42,3 +44,3 @@ "lib" | ||
"dependencies": { | ||
"node-sql-parser": "^3.1.0", | ||
"node-sql-parser": "^3.9.4", | ||
"sql-formatter": "^4.0.2" | ||
@@ -45,0 +47,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
45288
14
993
2
1
Updatednode-sql-parser@^3.9.4