Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-dev-server

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-dev-server - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

11

CHANGELOG.md

@@ -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)

15

lib/global.js

@@ -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);

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc