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

prettier-plugin-sh

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-sh - npm Package Compare versions

Comparing version 0.12.2 to 0.12.3

6

lib/index.js

@@ -14,4 +14,3 @@ import path from 'node:path';

this.cause = err;
// FIXME: `error instanceof ParseError` is not working
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- just for robustness
// `error instanceof ParseError` won't not work because the error is thrown wrapped by `synckit`
if ('Pos' in error && error.Pos != null && typeof error.Pos === 'object') {

@@ -46,4 +45,5 @@ this.loc = { start: { column: error.Pos.Col, line: error.Pos.Line } };

sh: {
print: (path, { originalText, useTabs, tabWidth, indent = useTabs ? 0 : tabWidth, binaryNextLine = true, switchCaseIndent = true, spaceRedirects = true, keepPadding, minify, functionNextLine, }) => processor(path.getNode(), {
print: (path, { originalText, filepath, useTabs, tabWidth, indent = useTabs ? 0 : tabWidth, binaryNextLine = true, switchCaseIndent = true, spaceRedirects = true, keepPadding, minify, functionNextLine, }) => processor(path.getNode(), {
originalText,
filepath,
useTabs,

@@ -50,0 +50,0 @@ tabWidth,

{
"name": "prettier-plugin-sh",
"version": "0.12.2",
"version": "0.12.3",
"type": "module",

@@ -39,3 +39,3 @@ "description": "An opinionated `shellscript` formatter plugin for Prettier, also support simple format of `Dockerfile`, `properties`, `gitignore`, `dotenv`, `hosts`, `jvmoptions`...",

"dependencies": {
"sh-syntax": "^0.3.2",
"sh-syntax": "^0.3.4",
"synckit": "^0.7.1"

@@ -42,0 +42,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