You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bettercss-preprocessor

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bettercss-preprocessor - npm Package Compare versions

Comparing version

to
0.0.5

5

bin/bettercss.js

@@ -54,2 +54,7 @@ #!/usr/bin/env node

// Fix for relative import paths
options = objectAssign({}, options, {
from: input
});
read(input, function(error, buffer) {

@@ -56,0 +61,0 @@

2

package.json
{
"name": "bettercss-preprocessor",
"version": "0.0.4",
"version": "0.0.5",
"description": "A modular processor for bettercss",

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

@@ -10,2 +10,3 @@ 'use strict';

var bettercss = require('../');
var objectAssign = require('object-assign');

@@ -26,5 +27,7 @@ var test;

// @TODO Find out why import paths are not relative
it('import', function() {
return test('import', {});
return test('import', {
// Fix for relative paths
from: path.join(__dirname, './fixtures/import.css')
});
});

@@ -47,11 +50,11 @@

test = function(fixture, options) {
var input = fixture + '.css';
var expected = fixture + '.expected.css';
var input = path.join(__dirname, 'fixtures', fixture + '.css');
var expected = path.join(__dirname, 'fixtures', fixture + '.expected.css');
input = fs.readFileSync(path.join(__dirname, 'fixtures', input), 'utf8');
expected = fs.readFileSync(path.join(__dirname, 'fixtures', expected), 'utf8');
input = fs.readFileSync(input, 'utf8');
expected = fs.readFileSync(expected, 'utf8');
// Return promise
return postcss([ bettercss(options) ])
.process(input)
return postcss([ bettercss() ])
.process(input, options)
.then(function (result) {

@@ -58,0 +61,0 @@ expect(result.css).to.eql(expected);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet