builder-amd-css
Advanced tools
+14
-10
@@ -72,3 +72,3 @@ var requireCssFiles, | ||
| requirejs.optimize( config, function() { | ||
| callback( null, files[ "dist/output.css" ], files ); | ||
| callback( null, files[ "dist/output.css" ] || "", files ); | ||
| done(); | ||
@@ -88,12 +88,16 @@ }, function( error ) { | ||
| // Clone files + make sure all CSSes are String utf-8. | ||
| Object.keys( files ).forEach(function( path ) { | ||
| if ( /\.css$/i.test( path ) ) { | ||
| clonedFiles[ path ] = files[ path ].toString( "utf-8" ); | ||
| } else { | ||
| clonedFiles[ path ] = files[ path ]; | ||
| } | ||
| }); | ||
| try { | ||
| // Clone files + make sure all CSSes are String utf-8. | ||
| Object.keys( files ).forEach(function( path ) { | ||
| if ( /\.css$/i.test( path ) ) { | ||
| clonedFiles[ path ] = files[ path ].toString( "utf-8" ); | ||
| } else { | ||
| clonedFiles[ path ] = files[ path ]; | ||
| } | ||
| }); | ||
| buildCss( clonedFiles, config, callback ); | ||
| buildCss( clonedFiles, config, callback ); | ||
| } catch( error ) { | ||
| callback( error ); | ||
| } | ||
| }; |
+1
-1
| { | ||
| "name": "builder-amd-css", | ||
| "version": "0.0.6", | ||
| "version": "0.0.7", | ||
| "main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
40467
0.16%735
0.55%