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

broccoli-postcss

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-postcss - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

4

CHANGELOG.md
# master
# 2.1.1
* Upgrades Broccoli Caching Writer to version 2.
# 2.1.0

@@ -4,0 +8,0 @@

17

index.js

@@ -5,2 +5,3 @@ var path = require('path');

var assign = require("object-assign");
var includePathSearcher = require('include-path-searcher');
var CachingWriter = require('broccoli-caching-writer');

@@ -19,3 +20,3 @@ var postcss = require('postcss');

CachingWriter.call(this, inputTrees, inputFile);
CachingWriter.call(this, Array.isArray(inputTrees) ? inputTrees : [inputTrees]);

@@ -32,5 +33,5 @@ this.inputFile = inputFile;

PostcssCompiler.prototype.updateCache = function (includePaths, destDir) {
var toFilePath = path.join(destDir, this.outputFile);
var fromFilePath = path.join(includePaths[0], this.inputFile);
PostcssCompiler.prototype.build = function() {
var toFilePath = this.outputPath + '/' + this.outputFile;
var fromFilePath = includePathSearcher.findFileSync(this.inputFile, this.inputPaths);

@@ -63,6 +64,10 @@ if ( !this.plugins || this.plugins.length < 1 ) {

mkdirp.sync(path.dirname(toFilePath));
fs.writeFileSync(toFilePath, result.css);
fs.writeFileSync(toFilePath, result.css, {
encoding: 'utf8'
});
if (result.map) {
fs.writeFileSync(toFilePath + '.map', result.map)
fs.writeFileSync(toFilePath + '.map', result.map, {
encoding: 'utf8'
})
}

@@ -69,0 +74,0 @@ })

{
"name": "broccoli-postcss",
"version": "2.1.0",
"version": "2.1.1",
"description": "Postcss compiler for Broccoli",

@@ -26,3 +26,4 @@ "main": "index.js",

"dependencies": {
"broccoli-caching-writer": "^0.5.5",
"broccoli-caching-writer": "^2.1.0",
"include-path-searcher": "0.1.0",
"mkdirp": "^0.5.0",

@@ -29,0 +30,0 @@ "object-assign": "^3.0.0",

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