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.3.0 to 0.4.0

lib/index.esm.min.mjs

6

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

16

lib/index.js

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

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