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

@jupyterlab/docregistry

Package Overview
Dependencies
Maintainers
7
Versions
379
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/docregistry - npm Package Compare versions

Comparing version 0.12.0 to 0.13.0

4

lib/context.d.ts

@@ -6,4 +6,4 @@ import { Contents, ServiceManager } from '@jupyterlab/services';

import { ClientSession, IClientSession } from '@jupyterlab/apputils';
import { ModelDB } from '@jupyterlab/coreutils';
import { DocumentRegistry } from '.';
import { ModelDB } from '@jupyterlab/observables';
import { DocumentRegistry } from './registry';
/**

@@ -10,0 +10,0 @@ * An implementation of a document context.

@@ -34,3 +34,3 @@ "use strict";

*/
var Context = (function () {
var Context = /** @class */ (function () {
/**

@@ -652,3 +652,3 @@ * Construct a new document context.

*/
var SaveWidget = (function (_super) {
var SaveWidget = /** @class */ (function (_super) {
__extends(SaveWidget, _super);

@@ -678,2 +678,1 @@ /**

})(Private || (Private = {}));
//# sourceMappingURL=context.js.map

@@ -7,3 +7,4 @@ import { Contents } from '@jupyterlab/services';

import { CodeEditor } from '@jupyterlab/codeeditor';
import { IChangedArgs, IModelDB } from '@jupyterlab/coreutils';
import { IChangedArgs } from '@jupyterlab/coreutils';
import { IModelDB } from '@jupyterlab/observables';
import { RenderMime } from '@jupyterlab/rendermime';

@@ -10,0 +11,0 @@ import { DocumentRegistry } from './index';

@@ -34,3 +34,3 @@ "use strict";

*/
var DocumentModel = (function (_super) {
var DocumentModel = /** @class */ (function (_super) {
__extends(DocumentModel, _super);

@@ -182,3 +182,3 @@ /**

*/
var TextModelFactory = (function () {
var TextModelFactory = /** @class */ (function () {
function TextModelFactory() {

@@ -264,3 +264,3 @@ this._isDisposed = false;

*/
var Base64ModelFactory = (function (_super) {
var Base64ModelFactory = /** @class */ (function (_super) {
__extends(Base64ModelFactory, _super);

@@ -314,3 +314,3 @@ function Base64ModelFactory() {

*/
var ABCWidgetFactory = (function () {
var ABCWidgetFactory = /** @class */ (function () {
/**

@@ -443,3 +443,3 @@ * Construct a new `ABCWidgetFactory`.

*/
var MimeDocument = (function (_super) {
var MimeDocument = /** @class */ (function (_super) {
__extends(MimeDocument, _super);

@@ -575,3 +575,3 @@ /**

*/
var MimeDocumentFactory = (function (_super) {
var MimeDocumentFactory = /** @class */ (function (_super) {
__extends(MimeDocumentFactory, _super);

@@ -622,2 +622,1 @@ /**

})(Private || (Private = {}));
//# sourceMappingURL=default.js.map

@@ -12,2 +12,1 @@ "use strict";

require("../style/index.css");
//# sourceMappingURL=index.js.map

@@ -9,3 +9,4 @@ import { Contents, Kernel } from '@jupyterlab/services';

import { CodeEditor } from '@jupyterlab/codeeditor';
import { IChangedArgs as IChangedArgsGeneric, IModelDB } from '@jupyterlab/coreutils';
import { IChangedArgs as IChangedArgsGeneric } from '@jupyterlab/coreutils';
import { IModelDB } from '@jupyterlab/observables';
/**

@@ -86,10 +87,2 @@ * The document registry.

/**
* Add a creator to the registry.
*
* @params creator - The file creator object to register.
*
* @returns A disposable which will unregister the creator.
*/
addCreator(creator: DocumentRegistry.IFileCreator): IDisposable;
/**
* Get a list of the preferred widget factories.

@@ -150,8 +143,2 @@ *

/**
* Create an iterator over the file creators that have been registered.
*
* @returns A new iterator of file creatores.
*/
creators(): IIterator<DocumentRegistry.IFileCreator>;
/**
* Get a widget factory by name.

@@ -177,6 +164,2 @@ *

/**
* Get a creator by name.
*/
getCreator(name: string): DocumentRegistry.IFileCreator | undefined;
/**
* Get a kernel preference.

@@ -215,3 +198,2 @@ *

private _fileTypes;
private _creators;
private _extenders;

@@ -580,23 +562,2 @@ private _changed;

/**
* An interface for a "Create New" item.
*/
interface IFileCreator {
/**
* The name of the file creator.
*/
readonly name: string;
/**
* The filetype name associated with the creator.
*/
readonly fileType: string;
/**
* The optional widget name.
*/
readonly widgetName?: string;
/**
* The optional kernel name.
*/
readonly kernelName?: string;
}
/**
* An arguments object for the `changed` signal.

@@ -608,3 +569,3 @@ */

*/
readonly type: 'widgetFactory' | 'modelFactory' | 'widgetExtension' | 'fileCreator' | 'fileType';
readonly type: 'widgetFactory' | 'modelFactory' | 'widgetExtension' | 'fileType';
/**

@@ -611,0 +572,0 @@ * The name of the item or the widget factory being extended.

@@ -21,3 +21,3 @@ "use strict";

*/
var DocumentRegistry = (function () {
var DocumentRegistry = /** @class */ (function () {
/**

@@ -35,3 +35,2 @@ * Construct a new document registry.

this._fileTypes = [];
this._creators = [];
this._extenders = Object.create(null);

@@ -89,3 +88,2 @@ this._changed = new signaling_1.Signal(this);

this._fileTypes.length = 0;
this._creators.length = 0;
signaling_1.Signal.clearData(this);

@@ -269,34 +267,2 @@ };

/**
* Add a creator to the registry.
*
* @params creator - The file creator object to register.
*
* @returns A disposable which will unregister the creator.
*/
DocumentRegistry.prototype.addCreator = function (creator) {
var _this = this;
var index = algorithm_1.ArrayExt.findFirstIndex(this._creators, function (value) {
return value.name.localeCompare(creator.name) > 0;
});
if (index !== -1) {
algorithm_1.ArrayExt.insert(this._creators, index, creator);
}
else {
this._creators.push(creator);
}
this._changed.emit({
type: 'fileCreator',
name: creator.name,
change: 'added'
});
return new disposable_1.DisposableDelegate(function () {
algorithm_1.ArrayExt.removeFirstOf(_this._creators, creator);
_this._changed.emit({
type: 'fileCreator',
name: creator.name,
change: 'removed'
});
});
};
/**
* Get a list of the preferred widget factories.

@@ -423,10 +389,2 @@ *

/**
* Create an iterator over the file creators that have been registered.
*
* @returns A new iterator of file creatores.
*/
DocumentRegistry.prototype.creators = function () {
return new algorithm_1.ArrayIterator(this._creators);
};
/**
* Get a widget factory by name.

@@ -461,11 +419,2 @@ *

/**
* Get a creator by name.
*/
DocumentRegistry.prototype.getCreator = function (name) {
name = name.toLowerCase();
return algorithm_1.find(this._creators, function (creator) {
return creator.name.toLowerCase() === name;
});
};
/**
* Get a kernel preference.

@@ -719,2 +668,1 @@ *

})(Private || (Private = {}));
//# sourceMappingURL=registry.js.map
{
"name": "@jupyterlab/docregistry",
"version": "0.12.0",
"version": "0.13.0",
"description": "JupyterLab - Document Registry",

@@ -29,11 +29,13 @@ "homepage": "https://github.com/jupyterlab/jupyterlab",

"clean": "rimraf lib",
"prepublishOnly": "npm run build",
"watch": "tsc -w"
},
"dependencies": {
"@jupyterlab/apputils": "^0.12.0",
"@jupyterlab/codeeditor": "^0.12.0",
"@jupyterlab/codemirror": "^0.12.0",
"@jupyterlab/coreutils": "^0.12.0",
"@jupyterlab/rendermime": "^0.12.0",
"@jupyterlab/services": "^0.51.0",
"@jupyterlab/apputils": "^0.13.0",
"@jupyterlab/codeeditor": "^0.13.0",
"@jupyterlab/codemirror": "^0.13.0",
"@jupyterlab/coreutils": "^0.13.0",
"@jupyterlab/observables": "^0.2.0",
"@jupyterlab/rendermime": "^0.13.0",
"@jupyterlab/services": "^0.52.0",
"@phosphor/algorithm": "^1.1.2",

@@ -48,4 +50,4 @@ "@phosphor/coreutils": "^1.3.0",

"rimraf": "~2.6.2",
"typescript": "~2.4.2"
"typescript": "~2.6.2"
}
}

Sorry, the diff of this file is not supported yet

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