Comparing version 4.0.7 to 4.1.0
@@ -53,4 +53,5 @@ const cssPrefix = require('postcss-prefix') | ||
function applyTransforms (filename, src, options, done) { | ||
var use = options.use || [] | ||
use = Array.isArray(use) ? use.slice() : [ use ] | ||
options.u = options.u || [] | ||
options.use = options.use || [] | ||
var use = [].concat(options.use).concat(options.u) | ||
@@ -57,0 +58,0 @@ mapLimit(use, 1, iterate, function (err) { |
{ | ||
"name": "sheetify", | ||
"version": "4.0.7", | ||
"version": "4.1.0", | ||
"description": "Modular CSS bundler", | ||
@@ -5,0 +5,0 @@ "repository": "sheetify/sheetify", |
@@ -25,3 +25,3 @@ const cssResolve = require('style-resolve').sync | ||
// obj -> (str, opts) -> str | ||
function transform (filename, opts) { | ||
function transform (filename, options) { | ||
const bufs = [] | ||
@@ -31,5 +31,4 @@ const nodes = [] | ||
opts = opts || {} | ||
const opts = xtend(options || {}) | ||
opts.basedir = opts.basedir || process.cwd() | ||
opts = xtend(opts) | ||
@@ -91,2 +90,3 @@ // argv parsing | ||
node.update('"' + prefix + '"') | ||
ws.emit('file', filename) | ||
ws.write(css) | ||
@@ -111,2 +111,4 @@ done() | ||
function walk (node) { | ||
opts.global = false | ||
// transform require calls | ||
@@ -147,3 +149,5 @@ if (node.type === 'CallExpression' && | ||
try { | ||
var resolvePath = cssResolve(node.arguments[0].value, { basedir: opts.basedir }) | ||
var resolvePath = cssResolve(node.arguments[0].value, { | ||
basedir: opts.basedir | ||
}) | ||
} catch (err) { | ||
@@ -150,0 +154,0 @@ if (err.message.substring(0, 18) !== 'Cannot find module') { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26672
543