New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jupyterlab/codemirror-extension

Package Overview
Dependencies
Maintainers
14
Versions
391
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/codemirror-extension - npm Package Compare versions

Comparing version

to
0.19.1-alpha.0

0

lib/index.d.ts

@@ -0,0 +0,0 @@ import { JupyterLabPlugin } from '@jupyterlab/application';

25

lib/index.js

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

CommandIDs.findAndReplace = 'codemirror:find-and-replace';
CommandIDs.goToLine = 'codemirror:go-to-line';
})(CommandIDs || (CommandIDs = {}));

@@ -178,2 +179,14 @@ /**

});
commands.addCommand(CommandIDs.goToLine, {
label: 'Go to Line...',
execute: () => {
let widget = tracker.currentWidget;
if (!widget) {
return;
}
let editor = widget.content.editor;
editor.execCommand('jumpToLine');
},
isEnabled
});
commands.addCommand(CommandIDs.changeMode, {

@@ -264,2 +277,14 @@ label: args => args['name'],

});
// Add go to line capabilities to the edit menu.
mainMenu.editMenu.goToLiners.add({
tracker,
find: (widget) => {
let editor = widget.content.editor;
editor.execCommand('jumpToLine');
},
goToLine: (widget) => {
let editor = widget.content.editor;
editor.execCommand('jumpToLine');
}
});
}

27

package.json
{
"name": "@jupyterlab/codemirror-extension",
"version": "0.18.4",
"version": "0.19.1-alpha.0",
"description": "JupyterLab - CodeMirror Provider Extension",

@@ -27,15 +27,16 @@ "homepage": "https://github.com/jupyterlab/jupyterlab",

"scripts": {
"build": "tsc",
"build": "tsc -b src",
"clean": "rimraf lib",
"docs": "typedoc --options tdoptions.json --theme ../../typedoc-theme src",
"prepublishOnly": "npm run build",
"watch": "tsc -w --listEmittedFiles"
"watch": "tsc -b src --watch"
},
"dependencies": {
"@jupyterlab/application": "^0.18.4",
"@jupyterlab/codeeditor": "^0.18.4",
"@jupyterlab/codemirror": "^0.18.4",
"@jupyterlab/coreutils": "^2.1.4",
"@jupyterlab/docregistry": "^0.18.4",
"@jupyterlab/fileeditor": "^0.18.4",
"@jupyterlab/mainmenu": "^0.7.4",
"@jupyterlab/application": "^0.19.1-alpha.0",
"@jupyterlab/codeeditor": "^0.19.1-alpha.0",
"@jupyterlab/codemirror": "^0.19.1-alpha.0",
"@jupyterlab/coreutils": "^2.2.1-alpha.0",
"@jupyterlab/docregistry": "^0.19.1-alpha.0",
"@jupyterlab/fileeditor": "^0.19.1-alpha.0",
"@jupyterlab/mainmenu": "^0.8.1-alpha.0",
"@phosphor/widgets": "^1.6.0",

@@ -46,3 +47,4 @@ "codemirror": "~5.39.0"

"rimraf": "~2.6.2",
"typescript": "~2.9.2"
"typedoc": "~0.12.0",
"typescript": "~3.1.1"
},

@@ -52,3 +54,4 @@ "jupyterlab": {

"schemaDir": "schema"
}
},
"gitHead": "9d6193d318872a4a3600ee96fe6f3996312ffe07"
}