Socket
Socket
Sign inDemoInstall

postcss-styled-syntax

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-styled-syntax - npm Package Compare versions

Comparing version 0.3.3 to 0.4.0

2

lib/parse.js

@@ -102,4 +102,2 @@ let postcss = require('postcss');

}
parsedNode.raws.styledSyntaxIsComponent = true;
}

@@ -106,0 +104,0 @@

8

lib/parser.js

@@ -36,3 +36,9 @@ // @ts-nocheck

if (!options.isComponent) {
// Add a flag to enable PostCSS and Stylelint to adjust to CSS-in-JS quirks
// E. g. if something processes only rules, it could also process `root` if this flag is present
this.root.raws.isRuleLike = true;
if (options.isComponent) {
this.root.raws.styledSyntaxIsComponent = true;
} else {
this.root.raws.styledOriginalContent = options.raws.originalContent;

@@ -39,0 +45,0 @@ }

{
"name": "postcss-styled-syntax",
"version": "0.3.3",
"version": "0.4.0",
"description": "PostCSS syntax for template literals CSS-in-JS (e. g. styled-components).",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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