Comparing version 1.15.2 to 1.15.3
## History | ||
- v1.15.3 December 24, 2012 | ||
- `balUtilModules` changes: | ||
- Added `requireFresh` | ||
- v1.15.2 December 16, 2012 | ||
@@ -4,0 +8,0 @@ - `balUtilPaths` changes: |
@@ -29,2 +29,10 @@ // Generated by CoffeeScript 1.4.0 | ||
balUtilModules = { | ||
requireFresh: function(path) { | ||
var result; | ||
path = require('path').resolve(path); | ||
delete require.cache[path]; | ||
result = require(path); | ||
delete require.cache[path]; | ||
return result; | ||
}, | ||
isWindows: function() { | ||
@@ -31,0 +39,0 @@ return isWindows; |
{ | ||
"name": "bal-util", | ||
"version": "1.15.2", | ||
"version": "1.15.3", | ||
"description": "Common utility functions for Node.js used and maintained by Benjamin Lupton", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/balupton/bal-util", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
102358
2423
45