prettier-plugin-sh
Advanced tools
Comparing version 0.12.0 to 0.12.1
@@ -11,10 +11,10 @@ import path from 'node:path'; | ||
constructor(err) { | ||
super(err.Text); | ||
const error = err; | ||
super(('Text' in error && error.Text) || error.message); | ||
this.cause = err; | ||
this.loc = { | ||
start: { | ||
column: err.Pos.Col, | ||
line: err.Pos.Line, | ||
}, | ||
}; | ||
// FIXME: `error instanceof ParseError` is not working | ||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- just for robustness | ||
if ('Pos' in error && error.Pos != null && typeof error.Pos === 'object') { | ||
this.loc = { start: { column: error.Pos.Col, line: error.Pos.Line } }; | ||
} | ||
} | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "prettier-plugin-sh", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "An opinionated `shellscript、Dockerfile、properties、gitignore、dotenv、hosts、jvmoptions...` formatter plugin for Prettier", |
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
42435
1143