@jupyterlite/session 0.1.0-alpha.9 → 0.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/sessions.js +7 -7
  2. package/package.json +7 -7
package/lib/sessions.js CHANGED
@@ -20,7 +20,7 @@ export class Sessions {
20
20
  * @param id The id of the session.
21
21
  */
22
22
  async get(id) {
23
- const session = this._sessions.find(s => s.id === id);
23
+ const session = this._sessions.find((s) => s.id === id);
24
24
  if (!session) {
25
25
  throw Error(`Session ${id} not found`);
26
26
  }
@@ -41,7 +41,7 @@ export class Sessions {
41
41
  */
42
42
  async patch(options) {
43
43
  const { id, path, name } = options;
44
- const index = this._sessions.findIndex(s => s.id === id);
44
+ const index = this._sessions.findIndex((s) => s.id === id);
45
45
  const session = this._sessions[index];
46
46
  if (!session) {
47
47
  throw Error(`Session ${id} not found`);
@@ -49,7 +49,7 @@ export class Sessions {
49
49
  const patched = {
50
50
  ...session,
51
51
  path: path !== null && path !== void 0 ? path : session.path,
52
- name: name !== null && name !== void 0 ? name : session.name
52
+ name: name !== null && name !== void 0 ? name : session.name,
53
53
  };
54
54
  this._sessions[index] = patched;
55
55
  return patched;
@@ -63,7 +63,7 @@ export class Sessions {
63
63
  async startNew(options) {
64
64
  var _a, _b, _c;
65
65
  const { path, name } = options;
66
- const running = this._sessions.find(s => s.name === name);
66
+ const running = this._sessions.find((s) => s.name === name);
67
67
  if (running) {
68
68
  return running;
69
69
  }
@@ -77,8 +77,8 @@ export class Sessions {
77
77
  type: 'notebook',
78
78
  kernel: {
79
79
  id: kernel.id,
80
- name: kernel.name
81
- }
80
+ name: kernel.name,
81
+ },
82
82
  };
83
83
  this._sessions.push(session);
84
84
  return session;
@@ -90,7 +90,7 @@ export class Sessions {
90
90
  */
91
91
  async shutdown(id) {
92
92
  var _a;
93
- const session = this._sessions.find(s => s.id === id);
93
+ const session = this._sessions.find((s) => s.id === id);
94
94
  if (!session) {
95
95
  throw Error(`Session ${id} not found`);
96
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlite/session",
3
- "version": "0.1.0-alpha.9",
3
+ "version": "0.1.0-beta.2",
4
4
  "description": "JupyterLite - Session",
5
5
  "homepage": "https://github.com/jupyterlite/jupyterlite",
6
6
  "bugs": {
@@ -42,20 +42,20 @@
42
42
  "watch": "tsc -b --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@jupyterlab/services": "~6.1.12",
46
- "@jupyterlite/kernel": "^0.1.0-alpha.9",
47
- "@lumino/algorithm": "^1.6.0",
48
- "@lumino/coreutils": "^1.8.0"
45
+ "@jupyterlab/services": "~6.3.0",
46
+ "@jupyterlite/kernel": "^0.1.0-beta.2",
47
+ "@lumino/algorithm": "^1.9.1",
48
+ "@lumino/coreutils": "^1.12.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.11.6",
52
52
  "@babel/preset-env": "^7.12.1",
53
- "@jupyterlab/testutils": "~3.1.12",
53
+ "@jupyterlab/testutils": "~3.3.0",
54
54
  "@types/jest": "^26.0.10",
55
55
  "jest": "^26.4.2",
56
56
  "rimraf": "~3.0.0",
57
57
  "ts-jest": "^26.3.0",
58
- "typescript": "~4.2.3"
58
+ "typescript": "~4.5.2"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"