Skip to content

Commit e86e0e0

Browse files
authored
Merge pull request #24 from ian-r-rose/jlab_0.30
Updates for JupyterLab 0.30
2 parents 8d1b730 + 5ddbdc7 commit e86e0e0

File tree

5 files changed

+27
-13
lines changed

5 files changed

+27
-13
lines changed

package.json

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupyterlab/github",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "JupyterLab viewer for GitHub repositories",
55
"author": "Ian Rose",
66
"main": "lib/index.js",
@@ -31,19 +31,21 @@
3131
"watch": "tsc -w"
3232
},
3333
"dependencies": {
34-
"@jupyterlab/application": "^0.12.0",
35-
"@jupyterlab/apputils": "^0.12.4",
36-
"@jupyterlab/coreutils": "^0.12.0",
37-
"@jupyterlab/docmanager": "^0.12.0",
38-
"@jupyterlab/docregistry": "^0.12.0",
39-
"@jupyterlab/filebrowser": "^0.12.0",
40-
"@jupyterlab/services": "^0.51.0",
34+
"@jupyterlab/application": "^0.13.0",
35+
"@jupyterlab/apputils": "^0.13.0",
36+
"@jupyterlab/coreutils": "^0.13.0",
37+
"@jupyterlab/docmanager": "^0.13.0",
38+
"@jupyterlab/docregistry": "^0.13.0",
39+
"@jupyterlab/filebrowser": "^0.13.0",
40+
"@jupyterlab/observables": "^0.2.0",
41+
"@jupyterlab/services": "^0.52.0",
4142
"@phosphor/algorithm": "^1.1.2",
43+
"@phosphor/coreutils": "^1.3.0",
4244
"@phosphor/widgets": "^1.5.0"
4345
},
4446
"devDependencies": {
4547
"rimraf": "^2.5.2",
46-
"typescript": "~2.4.1"
48+
"typescript": "~2.6.2"
4749
},
4850
"repository": {
4951
"type": "git",

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
setuptools.setup(
77
name='jupyterlab_github',
88
description='A Jupyter Notebook server extension which acts as a proxy for GitHub API requests.',
9-
version='0.2.0',
9+
version='0.3.0',
1010
packages=setuptools.find_packages(),
1111
author = 'Jupyter Development Team',
1212
author_email = '[email protected]',

src/browser.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ import {
1414
} from '@jupyterlab/apputils';
1515

1616
import {
17-
ObservableValue, URLExt
17+
URLExt
1818
} from '@jupyterlab/coreutils';
1919

2020
import {
2121
FileBrowser
2222
} from '@jupyterlab/filebrowser';
2323

24+
import {
25+
ObservableValue
26+
} from '@jupyterlab/observables';
27+
2428
import {
2529
GitHubDrive, parsePath
2630
} from './contents';

src/contents.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ import {
66
} from '@phosphor/signaling';
77

88
import {
9-
ObservableValue, PathExt, URLExt
9+
PathExt, URLExt
1010
} from '@jupyterlab/coreutils';
1111

1212
import {
1313
DocumentRegistry
1414
} from '@jupyterlab/docregistry';
1515

16+
import {
17+
ObservableValue
18+
} from '@jupyterlab/observables';
19+
1620
import {
1721
Contents, ServerConnection,
1822
} from '@jupyterlab/services';

src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ import {
1717
IFileBrowserFactory
1818
} from '@jupyterlab/filebrowser';
1919

20+
import {
21+
ReadonlyJSONObject
22+
} from '@phosphor/coreutils';
23+
2024
import {
2125
GitHubDrive
2226
} from './contents';
@@ -68,7 +72,7 @@ function activateFileBrowser(app: JupyterLab, manager: IDocumentManager, factory
6872
// overwrite that cwd. Otherwise we will not.
6973
const id = NAMESPACE;
7074
state.fetch(id).then(args => {
71-
const user = (args && args['user'] as string) || '';
75+
const user = (args && (args as ReadonlyJSONObject)['user'] as string) || '';
7276
gitHubBrowser.userName.name.set(user);
7377
});
7478
// Keep the IStateDB updated.

0 commit comments

Comments
 (0)