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 6.2.0 to 7.0.0

9

CHANGELOG.md

@@ -0,1 +1,10 @@

# 7.0.0 - 2015-08-25
- Removed: compatibility with postcss v4.x
([#75](https://github.com/postcss/postcss-import/pull/75))
- Added: compatibility with postcss v5.x
([#76](https://github.com/postcss/postcss-import/pull/76))
- Added: lighter package by upgrading some dependencies
([#73](https://github.com/postcss/postcss-import/issues/73))
# 6.2.0 - 2015-07-21

@@ -2,0 +11,0 @@

21

index.js

@@ -14,4 +14,3 @@ /**

var Promize = global.Promise || require("es6-promise").Promise
var resolvedPromise = new Promize(function(resolvePromise) {
var resolvedPromise = new Promise(function(resolvePromise) {
resolvePromise()

@@ -135,3 +134,3 @@ })

var imports = []
styles.eachAtRule("import", function checkAtRule(atRule) {
styles.walkAtRules("import", function checkAtRule(atRule) {
if (atRule.nodes) {

@@ -162,3 +161,3 @@ result.warn(warnNodesMessage, {node: atRule})

if (options.async) {
return Promize.all(importResults)
return Promise.all(importResults)
}

@@ -210,3 +209,3 @@ // else (!options.async)

})
atRule.removeSelf()
atRule.remove()

@@ -241,4 +240,4 @@ return imports

if (first &&
first.before.indexOf("\n") === -1) {
first.before = "\n\n" + first.before
first.raws.before.indexOf("\n") === -1) {
first.raws.before = "\n\n" + first.raws.before
}

@@ -428,3 +427,3 @@ }

if (newStyles.nodes && newStyles.nodes.length) {
newStyles.nodes[0].before = newStyles.nodes[0].before || "\n"
newStyles.nodes[0].raws.before = newStyles.nodes[0].raws.before || "\n"
}

@@ -445,4 +444,4 @@

// copy code style
wrapper.before = atRule.before
wrapper.after = atRule.after
wrapper.raws.before = atRule.raws.before
wrapper.raws.after = atRule.raws.after

@@ -454,3 +453,3 @@ // move nodes

else if (newNodes && newNodes.length) {
newNodes[0].before = atRule.before
newNodes[0].raws.before = atRule.raws.before
}

@@ -457,0 +456,0 @@

{
"name": "postcss-import",
"version": "6.2.0",
"version": "7.0.0",
"description": "PostCSS plugin to import CSS files",

@@ -20,19 +20,16 @@ "keywords": [

"files": [
"CHANGELOG.md",
"LICENSE",
"index.js"
],
"dependencies": {
"clone": "^0.1.17",
"es6-promise": "^2.3.0",
"glob": "^5.0.1",
"object-assign": "^3.0.0",
"postcss": "^4.1.4",
"clone": "^1.0.2",
"glob": "^5.0.14",
"object-assign": "^4.0.1",
"postcss": "^5.0.2",
"postcss-message-helpers": "^2.0.0",
"resolve": "^1.0.0"
"resolve": "^1.1.6"
},
"devDependencies": {
"css-whitespace": "^1.1.0",
"eslint": "^0.23.0",
"tape": "^3.0.0"
"css-whitespace": "^1.1.1",
"eslint": "^1.1.0",
"tape": "^4.0.3"
},

@@ -39,0 +36,0 @@ "scripts": {

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