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

prettier-plugin-stylus

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-stylus - npm Package Compare versions

Comparing version 0.0.1-beta.8 to 0.0.1-beta.9

10

dist/index.js

@@ -48,3 +48,3 @@ "use strict";

const printStylus = (path, options, print) => {
var _a;
var _a, _b;
const node = path.getValue();

@@ -77,3 +77,5 @@ const children = (_, prop) => path.map(print, prop);

const isUrl = (grandparent == null ? void 0 : grandparent.nodeName) === "call" && grandparent.name === "url";
const content = b.join(isUrl ? "" : " ", children(node, "nodes"));
const isCompound = ((_a = node.nodes[0]) == null ? void 0 : _a.nodeName) === "expression";
const separator = isUrl ? "" : isCompound ? ", " : " ";
const content = b.join(separator, children(node, "nodes"));
if ((parent == null ? void 0 : parent.nodeName) === "selector" || (parent == null ? void 0 : parent.nodeName) === "keyframes") {

@@ -111,3 +113,3 @@ return ["{", content, "}"];

case "unit":
return `${node.val}${(_a = node.type) != null ? _a : ""}`;
return `${node.val}${(_b = node.type) != null ? _b : ""}`;
case "ident":

@@ -156,2 +158,4 @@ if ((0, import_utils.isSingleIdent)(node)) {

];
case "atrule":
return ["@" + node.type, child(node, "block")];
default:

@@ -158,0 +162,0 @@ console.error(node);

{
"name": "prettier-plugin-stylus",
"version": "0.0.1-beta.8",
"version": "0.0.1-beta.9",
"description": "Prettier plugin for Stylus",

@@ -9,10 +9,2 @@ "main": "dist/index.js",

],
"scripts": {
"build": "esbuild src/parser.ts src/index.ts src/utils.ts --sourcemap --format=cjs --outdir=dist",
"example": "pnpm build && prettier --plugin . ",
"typeCheck": "tsc --noEmit",
"prepublishOnly": "pnpm typeCheck && pnpm build",
"bump": "bumpp --commit --tag --push",
"test": "pnpm build && jest"
},
"homepage": "https://github.com/lsdsjy/prettier-plugin-stylus",

@@ -44,8 +36,14 @@ "repository": {

"esbuild": "^0.14.38",
"jest": "^27.5.1",
"jest-watch-typeahead": "^1.1.0",
"prettier": "^2.7.1",
"tslib": "^2.4.0",
"typescript": "^4.6.3"
"typescript": "^4.6.3",
"vitest": "^0.22.1"
},
"scripts": {
"build": "esbuild src/parser.ts src/index.ts src/utils.ts --sourcemap --format=cjs --outdir=dist",
"example": "pnpm build && prettier --plugin . ",
"typeCheck": "tsc --noEmit",
"bump": "bumpp --commit --tag --push",
"test": "vitest"
}
}
}

@@ -35,3 +35,3 @@ # prettier-plugin-stylus

- [ ] use vitest for tests
- [x] use vitest for tests
- [ ] @font-face

@@ -38,0 +38,0 @@ - [ ] object/hashes

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