Comparing version 1.14.0 to 1.14.1
## History | ||
- v1.14.1 December 14, 2012 | ||
- `balUtilModules` changes: | ||
- Added `getExecPath` that will fetch an executable path based on the paths within the environment `PATH` variable | ||
- Rebuilt with CoffeeScript 1.4.x | ||
- v1.14.0 November 23, 2012 | ||
@@ -4,0 +9,0 @@ - `balUtilPaths` changes: |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
// Generated by CoffeeScript 1.4.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var balUtil, balUtilCompare, balUtilEvents, balUtilFlow, balUtilHTML, balUtilModules, balUtilPaths, balUtilTypes, key, subpackage, subpackages, value, _i, _len, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
// Generated by CoffeeScript 1.4.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var balUtilCompare, balUtilPaths; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
// Generated by CoffeeScript 1.4.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var Event, EventEmitter, EventEmitterEnhanced, EventSystem, balUtilFlow, balUtilTypes, debug, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
// Generated by CoffeeScript 1.4.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var balUtilFlow, balUtilTypes, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
// Generated by CoffeeScript 1.4.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var balUtilFlow, balUtilHTML, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
// Generated by CoffeeScript 1.4.0 | ||
(function() { | ||
@@ -195,2 +195,18 @@ var balUtilFlow, balUtilModules, balUtilPaths, balUtilTypes, isWindows, _ref, _ref1, _ref2, _ref3, | ||
}, | ||
getExecPath: function(executableName, next) { | ||
var key, path, pathUtil, paths, _i, _len; | ||
pathUtil = require('path'); | ||
if (balUtilModules.isWindows()) { | ||
paths = process.env.PATH.split(/;/g); | ||
} else { | ||
paths = process.env.PATH.split(/:/g); | ||
} | ||
paths.unshift(process.cwd()); | ||
for (key = _i = 0, _len = paths.length; _i < _len; key = ++_i) { | ||
path = paths[key]; | ||
paths[key] = pathUtil.join(path, executableName); | ||
} | ||
balUtilModules.determineExecPath(paths, next); | ||
return this; | ||
}, | ||
getHomePath: function(next) { | ||
@@ -197,0 +213,0 @@ var homePath, pathUtil; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
// Generated by CoffeeScript 1.4.0 | ||
(function() { | ||
@@ -3,0 +3,0 @@ var balUtilFlow, balUtilPaths, balUtilTypes, fsUtil, pathUtil, _ref, _ref1, _ref2, _ref3, |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
// Generated by CoffeeScript 1.4.0 | ||
@@ -3,0 +3,0 @@ /* |
{ | ||
"name": "bal-util", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "Common utility functions for Node.js used and maintained by Benjamin Lupton", | ||
@@ -47,4 +47,4 @@ "homepage": "https://github.com/balupton/bal-util", | ||
"devDependencies": { | ||
"coffee-script": "1.3.x", | ||
"joe": "1.0.x" | ||
"coffee-script": "1.4.x", | ||
"joe": "1.1.x" | ||
}, | ||
@@ -51,0 +51,0 @@ "directories": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
100359
2391
42