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

@replit/clui-input

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@replit/clui-input - npm Package Compare versions

Comparing version 0.0.10 to 0.0.12

2

dist/input.d.ts

@@ -0,3 +1,5 @@

import { IAst } from './ast';
import { ICommand, IOption, ArgType, ArgsMap, SearchFn } from './types';
export interface IInputUpdates<D = any, R = any> {
ast: IAst;
nodeStart?: number;

@@ -4,0 +6,0 @@ commands: Array<{

@@ -270,2 +270,3 @@ "use strict";

config.onUpdate({
ast: ast,
args: (_d = args) === null || _d === void 0 ? void 0 : _d.parsed,

@@ -272,0 +273,0 @@ nodeStart: nodeStart,

@@ -14,5 +14,18 @@ "use strict";

var ctx = isWhitespace ? 'WHITESPACE' : 'KEYWORD';
if (char === '"' || char === "'") {
openQuote = openQuote ? null : char;
if (char === '"' && openQuote !== "'") {
if (openQuote === '"') {
openQuote = null;
}
else {
openQuote = char;
}
}
else if (char === "'" && openQuote !== '"') {
if (openQuote === "'") {
openQuote = null;
}
else {
openQuote = char;
}
}
if (!prevCtx || prevCtx === ctx) {

@@ -19,0 +32,0 @@ value += char;

2

package.json
{
"name": "@replit/clui-input",
"version": "0.0.10",
"version": "0.0.12",
"description": "A utility library for building CLI style interfaces with autocomplete",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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