jest-dev-server
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="3.2.0"></a> | ||
# [3.2.0](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/jest-dev-server/compare/v3.1.0...v3.2.0) (2018-06-17) | ||
### Bug Fixes | ||
* **jest-dev-server:** fix watch mode stdin after ask ([a7ca57b](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/jest-dev-server/commit/a7ca57b)) | ||
<a name="3.1.0"></a> | ||
@@ -8,0 +19,0 @@ # [3.1.0](https://github.com/smooth-code/jest-puppeteer/tree/master/packages/jest-dev-server/compare/v3.0.1...v3.1.0) (2018-06-16) |
@@ -106,2 +106,13 @@ 'use strict'; | ||
async function outOfStin(block) { | ||
const { stdin } = process; | ||
const listeners = stdin.listeners('data'); | ||
const result = await block(); | ||
listeners.forEach(listener => stdin.on('data', listener)); | ||
stdin.setRawMode(true); | ||
stdin.setEncoding('utf8'); | ||
stdin.resume(); | ||
return result; | ||
} | ||
async function setup(config) { | ||
@@ -130,3 +141,3 @@ config = _extends({}, DEFAULT_CONFIG, config); | ||
logProcDetection(portProcess, config.port); | ||
const answers = await _inquirer2.default.prompt([{ | ||
const answers = await outOfStin(() => _inquirer2.default.prompt([{ | ||
type: 'confirm', | ||
@@ -136,3 +147,3 @@ name: 'kill', | ||
default: true | ||
}]); | ||
}])); | ||
if (answers.kill) { | ||
@@ -139,0 +150,0 @@ await killProc(portProcess); |
{ | ||
"name": "jest-dev-server", | ||
"description": "Starts a server before your Jest tests and tears it down after.", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/smooth-code/jest-puppeteer/tree/master/packages/jest-dev-server", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11450
140
0