Comparing version 0.1.0 to 0.2.0
var mirror = exports; | ||
var fs = require('fs'); | ||
mirror.assets = function assets(require, assets, options) { | ||
mirror.assets = function assets(assets, options) { | ||
if (!Array.isArray(assets)) assets = [ assets ]; | ||
@@ -13,5 +13,7 @@ if (!options) options = {}; | ||
if (options.sort) options.sort(assets); | ||
var pending = assets.length, cancelled = false; | ||
for (var i = 0; i < assets.length; i++) { | ||
fs.readFile(require.resolve(assets[i]), 'utf8', function(err, file) { | ||
fs.readFile(assets[i], 'utf8', function(err, file) { | ||
if (err) { | ||
@@ -18,0 +20,0 @@ cancelled = true; |
{ | ||
"name": "mirror", | ||
"version": "0.1.0" | ||
"version": "0.2.0" | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
4756
42
2