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

@jupyterlab/inspector

Package Overview
Dependencies
Maintainers
4
Versions
382
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/inspector - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

15

lib/handler.d.ts

@@ -1,4 +0,4 @@

import { Kernel } from '@jupyterlab/services';
import { IDisposable } from '@phosphor/disposable';
import { ISignal } from '@phosphor/signaling';
import { IClientSession } from '@jupyterlab/apputils';
import { CodeEditor } from '@jupyterlab/codeeditor';

@@ -28,2 +28,6 @@ import { RenderMime } from '@jupyterlab/rendermime';

/**
* The client session used by the inspection handler.
*/
readonly session: IClientSession;
/**
* The editor widget used by the inspection handler.

@@ -33,6 +37,2 @@ */

/**
* The kernel used by the inspection handler.
*/
kernel: Kernel.IKernel;
/**
* Indicates whether the handler makes API inspection requests or stands by.

@@ -67,3 +67,2 @@ *

private _inspected;
private _kernel;
private _pending;

@@ -82,5 +81,5 @@ private _rendermime;

/**
* The kernel for the inspection handler.
* The client session for the inspection handler.
*/
kernel?: Kernel.IKernel;
session: IClientSession;
/**

@@ -87,0 +86,0 @@ * The mime renderer for the inspection handler.

@@ -19,7 +19,6 @@ // Copyright (c) Jupyter Development Team.

this._inspected = new signaling_1.Signal(this);
this._kernel = null;
this._pending = 0;
this._rendermime = null;
this._standby = true;
this._kernel = options.kernel || null;
this.session = options.session;
this._rendermime = options.rendermime;

@@ -81,15 +80,2 @@ }

});
Object.defineProperty(InspectionHandler.prototype, "kernel", {
/**
* The kernel used by the inspection handler.
*/
get: function () {
return this._kernel;
},
set: function (value) {
this._kernel = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(InspectionHandler.prototype, "standby", {

@@ -133,3 +119,2 @@ /**

this._editor = null;
this._kernel = null;
this._rendermime = null;

@@ -157,3 +142,3 @@ this._disposed.emit(void 0);

// Clear hints if the new text value is empty or kernel is unavailable.
if (!code || !this._kernel) {
if (!code || !this.session.kernel) {
this._inspected.emit(update);

@@ -168,3 +153,3 @@ return;

var pending = ++this._pending;
this._kernel.requestInspect(contents).then(function (msg) {
this.session.kernel.requestInspect(contents).then(function (msg) {
var value = msg.content;

@@ -171,0 +156,0 @@ // If handler has been disposed, bail.

{
"name": "@jupyterlab/inspector",
"version": "0.1.3",
"version": "0.2.0",
"description": "JupyterLab - Code Inspector",

@@ -16,11 +16,11 @@ "main": "lib/index.js",

"dependencies": {
"@jupyterlab/apputils": "^0.1.1",
"@jupyterlab/codeeditor": "^0.1.4",
"@jupyterlab/rendermime": "^0.1.4",
"@jupyterlab/services": "^0.40.1",
"@phosphor/coreutils": "^0.1.5",
"@phosphor/disposable": "^0.1.1",
"@phosphor/messaging": "^0.1.2",
"@phosphor/signaling": "^0.1.2",
"@phosphor/widgets": "^0.3.0"
"@jupyterlab/apputils": "^0.2.0",
"@jupyterlab/codeeditor": "^0.2.0",
"@jupyterlab/rendermime": "^0.2.0",
"@jupyterlab/services": "^0.41.0",
"@phosphor/coreutils": "^1.0.0",
"@phosphor/disposable": "^1.0.0",
"@phosphor/messaging": "^1.0.0",
"@phosphor/signaling": "^1.0.0",
"@phosphor/widgets": "^1.0.0"
},

@@ -27,0 +27,0 @@ "devDependencies": {

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