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

readline-utils

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readline-utils - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

17

index.js

@@ -539,2 +539,3 @@ 'use strict';

s = String(s);
key.value = Number(s);
key.name = 'number';

@@ -571,2 +572,3 @@ }

// number
key.value = Number(s);
key.name = 'number';

@@ -752,14 +754,11 @@ } else if (s.length === 1 && '!"#$%&()*+:<>?@^_{|}~'.indexOf(s) !== -1) {

utils.emitKeypress = function(stream, s, key) {
utils.emitKeypress = function(emitter, s, key) {
var events = utils.normalize(s, key);
for (var i = 0; i < events.length; i++) {
var event = events[i];
var k = event.key;
var ch = event.ch;
if (k && k.name === 'mouse') {
stream.emit('mousepress', k);
} else if (k || ch) {
stream.emit('keypress', ch, k);
if (event.key && event.key.name === 'mouse') {
emitter.emit('mousepress', event.key);
} else {
emitter.emit('keypress', event.key.name, event.key);
emitter.emit(event.key.name, event.key);
}

@@ -766,0 +765,0 @@ }

{
"name": "readline-utils",
"description": "Readline utils, for moving the cursor, clearing lines, creating a readline interface, and more.",
"version": "2.0.0",
"version": "2.1.0",
"homepage": "https://github.com/enquirer/readline-utils",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

@@ -325,3 +325,3 @@ # readline-utils [![NPM version](https://img.shields.io/npm/v/readline-utils.svg?style=flat)](https://www.npmjs.com/package/readline-utils) [![NPM monthly downloads](https://img.shields.io/npm/dm/readline-utils.svg?style=flat)](https://npmjs.org/package/readline-utils) [![NPM total downloads](https://img.shields.io/npm/dt/readline-utils.svg?style=flat)](https://npmjs.org/package/readline-utils) [![Linux Build Status](https://img.shields.io/travis/enquirer/readline-utils.svg?style=flat&label=Travis)](https://travis-ci.org/enquirer/readline-utils) [![Windows Build Status](https://img.shields.io/appveyor/ci/enquirer/readline-utils.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/enquirer/readline-utils)

| --- | --- |
| 24 | [jonschlinkert](https://github.com/jonschlinkert) |
| 30 | [jonschlinkert](https://github.com/jonschlinkert) |
| 7 | [doowb](https://github.com/doowb) |

@@ -328,0 +328,0 @@

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