@jupyterlab/docregistry
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,4 +1,4 @@ | ||
"use strict"; | ||
// Copyright (c) Jupyter Development Team. | ||
// Distributed under the terms of the Modified BSD License. | ||
"use strict"; | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
@@ -5,0 +5,0 @@ for (var s, i = 1, n = arguments.length; i < n; i++) { |
@@ -5,3 +5,3 @@ import { Contents } from '@jupyterlab/services'; | ||
import { CodeEditor } from '@jupyterlab/codeeditor'; | ||
import { IChangedArgs } from '@jupyterlab/coreutils'; | ||
import { IChangedArgs, IModelDB } from '@jupyterlab/coreutils'; | ||
import { DocumentRegistry } from './index'; | ||
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
constructor(languagePreference?: string); | ||
constructor(languagePreference?: string, modelDB?: IModelDB); | ||
/** | ||
@@ -122,3 +122,3 @@ * A signal emitted when the document content changes. | ||
*/ | ||
createNew(languagePreference?: string): DocumentRegistry.ICodeModel; | ||
createNew(languagePreference?: string, modelDB?: IModelDB): DocumentRegistry.ICodeModel; | ||
/** | ||
@@ -125,0 +125,0 @@ * Get the preferred kernel language given an extension. |
@@ -0,4 +1,4 @@ | ||
"use strict"; | ||
// Copyright (c) Jupyter Development Team. | ||
// Distributed under the terms of the Modified BSD License. | ||
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
@@ -26,4 +26,4 @@ var extendStatics = Object.setPrototypeOf || | ||
*/ | ||
function DocumentModel(languagePreference) { | ||
var _this = _super.call(this) || this; | ||
function DocumentModel(languagePreference, modelDB) { | ||
var _this = _super.call(this, { modelDB: modelDB }) || this; | ||
_this._defaultLang = ''; | ||
@@ -234,4 +234,4 @@ _this._dirty = false; | ||
*/ | ||
TextModelFactory.prototype.createNew = function (languagePreference) { | ||
return new DocumentModel(languagePreference); | ||
TextModelFactory.prototype.createNew = function (languagePreference, modelDB) { | ||
return new DocumentModel(languagePreference, modelDB); | ||
}; | ||
@@ -238,0 +238,0 @@ /** |
@@ -0,4 +1,4 @@ | ||
"use strict"; | ||
// Copyright (c) Jupyter Development Team. | ||
// Distributed under the terms of the Modified BSD License. | ||
"use strict"; | ||
function __export(m) { | ||
@@ -5,0 +5,0 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; |
@@ -9,3 +9,3 @@ import { Contents, Kernel } from '@jupyterlab/services'; | ||
import { CodeEditor } from '@jupyterlab/codeeditor'; | ||
import { IChangedArgs as IChangedArgsGeneric } from '@jupyterlab/coreutils'; | ||
import { IChangedArgs as IChangedArgsGeneric, IModelDB } from '@jupyterlab/coreutils'; | ||
/** | ||
@@ -483,3 +483,3 @@ * The document registry token. | ||
*/ | ||
createNew(languagePreference?: string): T; | ||
createNew(languagePreference?: string, modelDB?: IModelDB): T; | ||
/** | ||
@@ -486,0 +486,0 @@ * Get the preferred kernel language given an extension. |
@@ -0,4 +1,4 @@ | ||
"use strict"; | ||
// Copyright (c) Jupyter Development Team. | ||
// Distributed under the terms of the Modified BSD License. | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -5,0 +5,0 @@ var algorithm_1 = require("@phosphor/algorithm"); |
{ | ||
"name": "@jupyterlab/docregistry", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "JupyterLab - Document Registry", | ||
@@ -15,7 +15,7 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@jupyterlab/apputils": "^0.3.0", | ||
"@jupyterlab/codeeditor": "^0.3.0", | ||
"@jupyterlab/codemirror": "^0.3.0", | ||
"@jupyterlab/coreutils": "^0.3.0", | ||
"@jupyterlab/services": "^0.42.0", | ||
"@jupyterlab/apputils": "^0.3.1", | ||
"@jupyterlab/codeeditor": "^0.3.1", | ||
"@jupyterlab/codemirror": "^0.3.1", | ||
"@jupyterlab/coreutils": "^0.3.1", | ||
"@jupyterlab/services": "^0.42.1", | ||
"@phosphor/algorithm": "^1.0.0", | ||
@@ -22,0 +22,0 @@ "@phosphor/coreutils": "^1.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76663