Comparing version 6.0.1 to 6.0.2
{ | ||
"name": "sheetify", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "Modular CSS bundler", | ||
@@ -44,2 +44,3 @@ "repository": "stackcss/sheetify", | ||
"dependency-check": "^2.5.1", | ||
"domify": "^1.4.0", | ||
"from2-string": "^1.1.0", | ||
@@ -46,0 +47,0 @@ "istanbul": "^0.4.5", |
@@ -8,2 +8,10 @@ const sf = require('sheetify') | ||
` | ||
var foo = {} | ||
foo.bar = sf` | ||
:host .hello, :host .world { | ||
transform: translate(0, 0); | ||
} | ||
` | ||
console.log(prefix) |
@@ -31,3 +31,3 @@ const browserify = require('browserify') | ||
const str = buf.toString('utf8') | ||
this.push(str.replace(/sheetify\/insert/, 'insert-css')) | ||
this.push(str.replace(/sheetify\/insert/g, 'insert-css')) | ||
next() | ||
@@ -34,0 +34,0 @@ }) |
@@ -110,7 +110,5 @@ const cssResolve = require('style-resolve').sync | ||
if (node.callee.name !== mname) return | ||
var pathOpts = { basedir: path.dirname(filename) } | ||
try { | ||
var resolvePath = cssResolve(node.arguments[0].value, { | ||
basedir: path.dirname(filename) | ||
}) | ||
self.emit('file', resolvePath) | ||
var resolvePath = cssResolve(node.arguments[0].value, pathOpts) | ||
} catch (err) { | ||
@@ -120,3 +118,5 @@ return self.emit('error', err) | ||
const iOpts = (node.arguments[1]) | ||
self.emit('file', resolvePath) | ||
const iOpts = node.arguments[1] | ||
? xtend(opts, staticEval(node.arguments[1])) | ||
@@ -154,3 +154,5 @@ : opts | ||
const lolSemicolon = (val.node.parent.type === 'VariableDeclarator') | ||
const parentNodeType = val.node.parent.type | ||
const lolSemicolon = parentNodeType === 'VariableDeclarator' || | ||
parentNodeType === 'AssignmentExpression' | ||
? '' | ||
@@ -157,0 +159,0 @@ : ';' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
25932
519
16
28