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.3.0 to 0.3.1-0

9

index.js

@@ -18,8 +18,5 @@ 'use strict';

if (!Array.isArray(stackArgs)) {
return Promise.reject(new TypeError(
'Expected arguments of `stack` command (Array<string>), but got ' +
'a non-array value ' +
inspect(stackArgs) +
'.'
));
return Promise.reject(new TypeError(`Expected arguments of \`stack\` command (Array<string>), but got a non-array value ${
inspect(stackArgs)
}.`));
}

@@ -26,0 +23,0 @@

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

@@ -14,3 +14,3 @@ "repository": "shinnn/spawn-stack",

},
"license": "MIT",
"license": "ISC",
"files": [

@@ -32,9 +32,9 @@ "index.js"

"byline": "^5.0.0",
"execa": "^0.8.0",
"zen-observable": "^0.5.2"
"execa": "^0.7.0",
"zen-observable": "^0.6.0"
},
"devDependencies": {
"@shinnn/eslint-config-node": "^4.0.2",
"eslint": "^4.4.1",
"nyc": "^11.1.0",
"eslint": "^4.11.0",
"nyc": "^11.3.0",
"pretend-platform": "^2.0.0",

@@ -41,0 +41,0 @@ "rmfr": "^1.0.3",

# spawn-stack
[![NPM version](https://img.shields.io/npm/v/spawn-stack.svg)](https://www.npmjs.com/package/spawn-stack)
[![npm version](https://img.shields.io/npm/v/spawn-stack.svg)](https://www.npmjs.com/package/spawn-stack)
[![Build Status](https://travis-ci.org/shinnn/spawn-stack.svg?branch=master)](https://travis-ci.org/shinnn/spawn-stack)

@@ -14,3 +14,3 @@ [![Build status](https://ci.appveyor.com/api/projects/status/stybf1ffx07eejur/branch/master?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/spawn-stack/branch/master)

spawnStack(['--version']).then(result => {
result.output; //=> 'Version 1.5.0 x86_64 hpack-0.17.1'
result.output; //=> 'Version 1.5.1 x86_64 hpack-0.17.1'
});

@@ -21,3 +21,3 @@ ```

Make sure [`stack`](https://github.com/commercialhaskell/stack) command is [installed](https://docs.haskellstack.org/en/stable/README/#how-to-install) in your `$PATH`, then [install](https://docs.npmjs.com/cli/install) `spawn-stack` via npm CLI.
Make sure [`stack`](https://github.com/commercialhaskell/stack) command is [installed](https://docs.haskellstack.org/en/stable/README/#how-to-install) in your `$PATH`, then [install](https://docs.npmjs.com/cli/install) `spawn-stack` via [npm](https://docs.npmjs.com/getting-started/what-is-npm) CLI.

@@ -36,3 +36,3 @@ ```

*args*: `Array<String>` (command line arguments passed to `stack` command)
*args*: `Array<string>` (command line arguments passed to `stack` command)
*options*: `Object` (`execa` options, with [`preferLocal`](https://github.com/sindresorhus/execa#preferlocal) defaulting to `false`)

@@ -45,3 +45,3 @@ Return: [`ChildProcess`](https://nodejs.org/api/child_process.html#child_process_class_childprocess)

On POSIX, [`--allow-different-user`](https://github.com/commercialhaskell/stack/blob/v1.3.2/doc/yaml_configuration.md#allow-different-user) flag will be automatically enabled to prevent file permission problems, unless `--no-allow-different-user` flag is explicitly provided.
On POSIX, [`--allow-different-user`](https://github.com/commercialhaskell/stack/blob/v1.5.1/doc/yaml_configuration.md#allow-different-user) flag will be automatically enabled to prevent file permission problems, unless `--no-allow-different-user` flag is explicitly provided.

@@ -66,3 +66,3 @@ ```javascript

const cp = spawnStack(['setup', '8.0.2']);
const cp = spawnStack(['setup', '8.2.1']);

@@ -82,4 +82,2 @@ Observable.from(cp).subscribe({

Copyright (c) 2017 [Shinnosuke Watanabe](https://github.com/shinnn)
Licensed under [the MIT License](./LICENSE).
[ISC License](./LICENSE) © 2017 Shinnosuke Watanabe

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