Socket
Socket
Sign inDemoInstall

spawn-stack

Package Overview
Dependencies
18
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

21

index.js

@@ -60,18 +60,11 @@ 'use strict';

if (err.code === 'ENOENT') {
// Workaround for Windows:
// On Windows, the error includes `ENOENT` code even on unknown-subcommand error
// and doesn't includes `stack` in syscall
if (err.syscall.includes('stack')) {
const hash = HASHES.get(process.platform);
const hash = HASHES.get(process.platform);
err.INSTALL_URL = `https://docs.haskellstack.org/en/stable/install_and_upgrade/${
hash ? `#${hash}` : ''
}`;
err.INSTALL_URL = `https://docs.haskellstack.org/en/stable/install_and_upgrade/${
hash ? `#${hash}` : ''
}`;
err.message = `\`stack\` command is not found in your PATH. Make sure you have instaled Stack. ${
err.INSTALL_URL
}`;
} else {
err.message = `Command failed: stack ${stackArgs.join(' ')}`;
}
err.message = `\`stack\` command is not found in your PATH. Make sure you have instaled Stack. ${
err.INSTALL_URL
}`;
}

@@ -78,0 +71,0 @@

{
"name": "spawn-stack",
"version": "0.1.1",
"version": "0.1.2",
"description": "Spawn a new process using `stack` command with the given arguments",

@@ -31,10 +31,9 @@ "repository": "shinnn/spawn-stack",

"byline": "^5.0.0",
"execa": "^0.6.0",
"zen-observable": "^0.5.0"
"execa": "^0.6.3",
"zen-observable": "^0.5.1"
},
"devDependencies": {
"@shinnn/eslint-config-node": "^3.0.0",
"eslint": "^3.17.1",
"nyc": "^10.1.2",
"path-key": "^2.0.1",
"eslint": "^3.19.0",
"nyc": "^10.2.0",
"pretend-platform": "^2.0.0",

@@ -41,0 +40,0 @@ "rmfr": "^1.0.2",

@@ -14,3 +14,3 @@ # spawn-stack

spawnStack(['--version']).then(result => {
result.output; //=> 'Version 1.3.2 x86_64 hpack-0.15.0'
result.output; //=> 'Version 1.4.0 x86_64\nCompiled with:\n ...'
});

@@ -17,0 +17,0 @@ ```

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