Comparing version 6.1.1 to 6.2.0
{ | ||
"name": "sheetify", | ||
"version": "6.1.1", | ||
"version": "6.2.0", | ||
"description": "Modular CSS bundler", | ||
@@ -5,0 +5,0 @@ "repository": "stackcss/sheetify", |
@@ -138,7 +138,14 @@ const cssResolve = require('style-resolve').sync | ||
if (val.css) return handleCss(val) | ||
fs.readFile(val.filename, 'utf8', function (err, css) { | ||
if (err) return done(err) | ||
val.css = css | ||
if (/\.js$/.test(val.filename)) { | ||
delete require.cache[require.resolve(val.filename)] | ||
val.css = require(val.filename) | ||
handleCss(val) | ||
}) | ||
} else { | ||
fs.readFile(val.filename, 'utf8', function (err, css) { | ||
if (err) return done(err) | ||
val.css = css | ||
handleCss(val) | ||
}) | ||
} | ||
@@ -145,0 +152,0 @@ function handleCss (val) { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
6
17873
10
269
1