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.0 to 0.12.1

14

lib/index.js

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

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