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

@jupyterlab/console

Package Overview
Dependencies
Maintainers
10
Versions
380
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/console - npm Package Compare versions

Comparing version 4.1.2 to 4.1.3

9

lib/widget.js

@@ -67,2 +67,7 @@ // Copyright (c) Jupyter Development Team.

/**
* The data attribute Whether the console interaction mimics the notebook
* or terminal keyboard shortcuts.
*/
const INTERACTION_MODE = 'jpInteractionMode';
/**
* A widget containing a Jupyter console.

@@ -666,2 +671,3 @@ *

_createCodeCellOptions() {
const { node } = this;
const contentFactory = this.contentFactory;

@@ -675,3 +681,4 @@ const modelFactory = this.modelFactory;

keydown: (event, view) => {
if (event.keyCode === 13) {
if (event.keyCode === 13 &&
node.dataset[INTERACTION_MODE] === 'terminal') {
event.preventDefault();

@@ -678,0 +685,0 @@ return true;

26

package.json
{
"name": "@jupyterlab/console",
"version": "4.1.2",
"version": "4.1.3",
"description": "JupyterLab - Code Console",

@@ -49,12 +49,12 @@ "homepage": "https://github.com/jupyterlab/jupyterlab",

"@jupyter/ydoc": "^1.1.1",
"@jupyterlab/apputils": "^4.2.2",
"@jupyterlab/cells": "^4.1.2",
"@jupyterlab/codeeditor": "^4.1.2",
"@jupyterlab/coreutils": "^6.1.2",
"@jupyterlab/nbformat": "^4.1.2",
"@jupyterlab/observables": "^5.1.2",
"@jupyterlab/rendermime": "^4.1.2",
"@jupyterlab/services": "^7.1.2",
"@jupyterlab/translation": "^4.1.2",
"@jupyterlab/ui-components": "^4.1.2",
"@jupyterlab/apputils": "^4.2.3",
"@jupyterlab/cells": "^4.1.3",
"@jupyterlab/codeeditor": "^4.1.3",
"@jupyterlab/coreutils": "^6.1.3",
"@jupyterlab/nbformat": "^4.1.3",
"@jupyterlab/observables": "^5.1.3",
"@jupyterlab/rendermime": "^4.1.3",
"@jupyterlab/services": "^7.1.3",
"@jupyterlab/translation": "^4.1.3",
"@jupyterlab/ui-components": "^4.1.3",
"@lumino/coreutils": "^2.1.2",

@@ -68,4 +68,4 @@ "@lumino/disposable": "^2.1.2",

"devDependencies": {
"@jupyterlab/codemirror": "^4.1.2",
"@jupyterlab/testing": "^4.1.2",
"@jupyterlab/codemirror": "^4.1.3",
"@jupyterlab/testing": "^4.1.3",
"@types/jest": "^29.2.0",

@@ -72,0 +72,0 @@ "jest": "^29.2.0",

@@ -95,2 +95,7 @@ // Copyright (c) Jupyter Development Team.

const UNDOER = 'jpUndoer';
/**
* The data attribute Whether the console interaction mimics the notebook
* or terminal keyboard shortcuts.
*/
const INTERACTION_MODE = 'jpInteractionMode';

@@ -793,2 +798,3 @@ /**

private _createCodeCellOptions(): CodeCell.IOptions {
const { node } = this;
const contentFactory = this.contentFactory;

@@ -803,3 +809,6 @@ const modelFactory = this.modelFactory;

keydown: (event: KeyboardEvent, view: EditorView) => {
if (event.keyCode === 13) {
if (
event.keyCode === 13 &&
node.dataset[INTERACTION_MODE] === 'terminal'
) {
event.preventDefault();

@@ -806,0 +815,0 @@ return true;

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