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

xterm

Package Overview
Dependencies
Maintainers
2
Versions
1092
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xterm - npm Package Compare versions

Comparing version 5.3.0-beta.21 to 5.3.0-beta.22

2

package.json
{
"name": "xterm",
"description": "Full xterm terminal, in your browser",
"version": "5.3.0-beta.21",
"version": "5.3.0-beta.22",
"main": "lib/xterm.js",

@@ -6,0 +6,0 @@ "style": "css/xterm.css",

@@ -7,3 +7,3 @@ /**

import { ISelectionService } from 'browser/services/Services';
import { ICoreService } from 'common/services/Services';
import { ICoreService, IOptionsService } from 'common/services/Services';

@@ -44,13 +44,13 @@ /**

*/
export function handlePasteEvent(ev: ClipboardEvent, textarea: HTMLTextAreaElement, coreService: ICoreService): void {
export function handlePasteEvent(ev: ClipboardEvent, textarea: HTMLTextAreaElement, coreService: ICoreService, optionsService: IOptionsService): void {
ev.stopPropagation();
if (ev.clipboardData) {
const text = ev.clipboardData.getData('text/plain');
paste(text, textarea, coreService);
paste(text, textarea, coreService, optionsService);
}
}
export function paste(text: string, textarea: HTMLTextAreaElement, coreService: ICoreService): void {
export function paste(text: string, textarea: HTMLTextAreaElement, coreService: ICoreService, optionsService: IOptionsService): void {
text = prepareTextForTerminal(text);
text = bracketTextForPaste(text, coreService.decPrivateModes.bracketedPasteMode);
text = bracketTextForPaste(text, coreService.decPrivateModes.bracketedPasteMode && optionsService.rawOptions.ignoreBracketedPasteMode !== true);
coreService.triggerDataEvent(text, true);

@@ -57,0 +57,0 @@ textarea.value = '';

@@ -355,3 +355,3 @@ /**

}));
const pasteHandlerWrapper = (event: ClipboardEvent): void => handlePasteEvent(event, this.textarea!, this.coreService);
const pasteHandlerWrapper = (event: ClipboardEvent): void => handlePasteEvent(event, this.textarea!, this.coreService, this.optionsService);
this.register(addDisposableDomListener(this.textarea!, 'paste', pasteHandlerWrapper));

@@ -882,3 +882,3 @@ this.register(addDisposableDomListener(this.element!, 'paste', pasteHandlerWrapper));

public paste(data: string): void {
paste(data, this.textarea!, this.coreService);
paste(data, this.textarea!, this.coreService, this.optionsService);
}

@@ -885,0 +885,0 @@

@@ -26,2 +26,3 @@ /**

fontWeightBold: 'bold',
ignoreBracketedPasteMode: false,
lineHeight: 1.0,

@@ -28,0 +29,0 @@ letterSpacing: 0,

@@ -224,2 +224,3 @@ /**

fontWeightBold?: FontWeight;
ignoreBracketedPasteMode?: boolean;
letterSpacing?: number;

@@ -226,0 +227,0 @@ lineHeight?: number;

@@ -121,2 +121,9 @@ /**

/**
* Whether to ignore the bracketed paste mode. When true, this will always
* paste without the `\x1b[200~` and `\x1b[201~` sequences, even when the
* shell enables bracketed mode.
*/
ignoreBracketedPasteMode?: boolean;
/**
* The spacing in whole pixels between characters.

@@ -123,0 +130,0 @@ */

Sorry, the diff of this file is too big to display

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