prettier-plugin-sql
Advanced tools
Comparing version 0.4.0 to 0.4.1
# Change Log | ||
## 0.4.1 | ||
### Patch Changes | ||
- [#138](https://github.com/rx-ts/prettier/pull/138) [`184ff13`](https://github.com/rx-ts/prettier/commit/184ff13d014ad063c8b644fd27f17aca46bc2235) Thanks [@JounQin](https://github.com/JounQin)! - fix: cjs outputs via rollup | ||
## 0.4.0 | ||
@@ -4,0 +10,0 @@ |
@@ -1,11 +0,9 @@ | ||
"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(); | ||
import { Parser } from 'node-sql-parser'; | ||
import { format } from 'sql-formatter'; | ||
import { languages } from './languages'; | ||
const parser = new Parser(); | ||
const SQL_FORMATTER = 'sql-formatter'; | ||
const NODE_SQL_PARSER = 'node-sql-parser'; | ||
const SqlPlugin = { | ||
languages: languages_1.languages, | ||
languages, | ||
parsers: { | ||
@@ -28,3 +26,3 @@ sql: { | ||
return typeof value === 'string' | ||
? (0, sql_formatter_1.format)(value, { | ||
? format(value, { | ||
language, | ||
@@ -180,3 +178,3 @@ uppercase, | ||
}; | ||
exports.default = SqlPlugin; | ||
export default SqlPlugin; | ||
//# sourceMappingURL=index.js.map |
@@ -1,5 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.languages = void 0; | ||
exports.languages = [ | ||
export const languages = [ | ||
{ | ||
@@ -6,0 +3,0 @@ "name": "HiveQL", |
{ | ||
"name": "prettier-plugin-sql", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"type": "module", | ||
"description": "An opinionated sql formatter plugin for Prettier", | ||
@@ -9,7 +10,7 @@ "repository": "git@github.com/rx-ts/prettier.git", | ||
"license": "MIT", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.esm.mjs", | ||
"main": "./lib/index.cjs", | ||
"module": "./lib/index.js", | ||
"exports": { | ||
"import": "./lib/index.esm.mjs", | ||
"require": "./lib/index.js" | ||
"import": "./lib/index.js", | ||
"require": "./lib/index.cjs" | ||
}, | ||
@@ -44,3 +45,3 @@ "jsdelivr": "./lib/umd.min.js", | ||
"dependencies": { | ||
"node-sql-parser": "^3.9.4", | ||
"node-sql-parser": "^4.0.0", | ||
"sql-formatter": "^4.0.2" | ||
@@ -47,0 +48,0 @@ }, |
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
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
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
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
45412
0
Yes
989
3
+ Addednode-sql-parser@4.18.0(transitive)
- Removednode-sql-parser@3.9.4(transitive)
Updatednode-sql-parser@^4.0.0