prettier-plugin-sh
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -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
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
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
42526
1145
Updatedsh-syntax@^0.3.4