New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@huggingface/prettier-plugin-vertical-align

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huggingface/prettier-plugin-vertical-align - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

dist/index.js

@@ -20,3 +20,6 @@ import tsParsers from "prettier/parser-typescript.js";

setOriginalPrinter(options.printer);
options.printer = printer;
options.printer = {
...options.printer,
...printer
};
return parser.preprocess?.(text, options) ?? text;

@@ -23,0 +26,0 @@ }

12

dist/printer.js
import prettier from "prettier";
import { inspect } from "node:util";
// import { inspect } from "node:util";
const { doc } = prettier;

@@ -12,5 +12,9 @@ import { getOriginalPrinter } from "./original-printer.js";

const node = path.node;
if (node.type === "Program") {
console.log("node", inspect(node.body, { depth: 10 }));
}
// if (node.comments) {
// console.log("!!COMMENTS");
// }
// if (node.type === "Program") {
// console.log("node", inspect(path, {depth: 10}));
// console.log(options);
// }
if (node[keyLengthSymbol]) {

@@ -17,0 +21,0 @@ const keyLength = node[keyLengthSymbol];

{
"name": "@huggingface/prettier-plugin-vertical-align",
"packageManager": "pnpm@9.11.0",
"version": "0.0.3",
"version": "0.0.4",
"description": "",

@@ -6,0 +6,0 @@ "scripts": {

@@ -25,3 +25,6 @@ import type { Parser, Printer } from "prettier";

setOriginalPrinter(options.printer as Printer);
options.printer = printer;
options.printer = {
...(options.printer as Printer),
...printer
};
return parser.preprocess?.(text, options) ?? text;

@@ -28,0 +31,0 @@ }

@@ -19,4 +19,9 @@ import type { AstPath, Printer } from "prettier";

// if (node.comments) {
// console.log("!!COMMENTS");
// }
// if (node.type === "Program") {
// console.log("node", inspect(node.body, {depth: 10}));
// console.log("node", inspect(path, {depth: 10}));
// console.log(options);
// }

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