Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-import

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-import - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 2.0.0 - 2014-11-12
- upgrade to postcss 3
# 1.0.3 - 2014-10-29

@@ -2,0 +6,0 @@

16

index.js

@@ -32,4 +32,4 @@ /**

// auto add from option if possible
if (!options.from && styles && styles.rules && styles.rules[0] && styles.rules[0].source && styles.rules[0].source.file) {
options.from = styles.rules[0].source.file
if (!options.from && styles && styles.childs && styles.childs[0] && styles.childs[0].source && styles.childs[0].source.file) {
options.from = styles.childs[0].source.file
}

@@ -137,9 +137,9 @@

newStyles.before = atRule.before
if (newStyles.rules && newStyles.rules.length) {
newStyles.rules[0].before = newStyles.rules[0].before || "\n"
if (newStyles.childs && newStyles.childs.length) {
newStyles.childs[0].before = newStyles.childs[0].before || "\n"
}
newStyles.after = atRule.after
newStyles.after = atRule.after || "\n"
}
else if (newStyles.rules && newStyles.rules.length) {
newStyles.rules[0].before = atRule.before
else if (newStyles.childs && newStyles.childs.length) {
newStyles.childs[0].before = atRule.before
}

@@ -225,3 +225,3 @@

function gnuMessage(message, source) {
return (source ? (source.file ? source.file : "<css input>") + ":" + source.start.line + ":" + source.start.column : "") + " " + message
return (source ? (source.file ? source.file : "<css input>") + ":" + source.start.line + ":" + source.start.column + " " : "") + message
}
{
"name": "postcss-import",
"version": "1.0.3",
"version": "2.0.0",
"description": "PostCSS plugin to import CSS files",

@@ -25,3 +25,3 @@ "keywords": [

"find-file": "^0.1.4",
"postcss": "^2.1.0"
"postcss": "^3.0.0"
},

@@ -28,0 +28,0 @@ "devDependencies": {

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