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

prettier-plugin-sql

Package Overview
Dependencies
Maintainers
1
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.4.0 to 0.4.1

lib/index.cjs

6

CHANGELOG.md
# 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 @@

16

lib/index.js

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

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