Socket
Socket
Sign inDemoInstall

hasbin

Package Overview
Dependencies
1
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

.jshintignore

5

HISTORY.md
# History
## 1.1.1 (2015-09-08)
* Update dependencies
* Add code coverage reporting
## 1.1.0 (2015-07-06)

@@ -5,0 +10,0 @@

7

package.json
{
"name": "hasbin",
"version": "1.1.0",
"version": "1.1.1",

@@ -25,6 +25,7 @@ "description": "Check whether a binary exists in the PATH environment variable",

"dependencies": {
"async": "~1.3"
"async": "~1.4"
},
"devDependencies": {
"jscs": "^1",
"istanbul": "~0.3",
"jscs": "^2",
"jshint": "^2",

@@ -31,0 +32,0 @@ "mocha": "^2",

@@ -82,2 +82,23 @@ // jshint maxstatements: false

describe('hasbin() without PATH', function () {
var oldPath;
beforeEach(function (done) {
oldPath = process.env.PATH;
delete process.env.PATH;
hasbin('foo', function () {
done();
});
});
afterEach(function () {
process.env.PATH = oldPath;
});
it('should call `fs.stat()` for the binary alone', function () {
assert.callCount(fs.stat, 1);
assert.calledWith(fs.stat, 'foo');
});
});
describe('hasbin() with PATHEXT', function () {

@@ -106,3 +127,2 @@ beforeEach(function (done) {

it('should have a `sync` method', function () {

@@ -109,0 +129,0 @@ assert.isFunction(hasbin.sync);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc