@jupyterlite/server 0.1.0-alpha.19 → 0.1.0-alpha.23

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.
package/lib/app.js CHANGED
@@ -66,7 +66,7 @@ export class JupyterLiteServer extends Application {
66
66
  if (!Array.isArray(data)) {
67
67
  data = [data];
68
68
  }
69
- data.forEach(item => {
69
+ data.forEach((item) => {
70
70
  try {
71
71
  this.registerPlugin(item);
72
72
  }
@@ -81,7 +81,7 @@ export class JupyterLiteServer extends Application {
81
81
  * @param mods - The plugin modules to register.
82
82
  */
83
83
  registerPluginModules(mods) {
84
- mods.forEach(mod => {
84
+ mods.forEach((mod) => {
85
85
  this.registerPluginModule(mod);
86
86
  });
87
87
  }
package/lib/router.js CHANGED
@@ -85,7 +85,7 @@ export class Router {
85
85
  return r.callback.call(null, {
86
86
  pathname,
87
87
  body,
88
- query: Object.fromEntries(url.searchParams)
88
+ query: Object.fromEntries(url.searchParams),
89
89
  }, ...matches);
90
90
  }
91
91
  throw new Error('Cannot route ' + req.method + ' ' + req.url);
@@ -104,7 +104,7 @@ export class Router {
104
104
  this._routes.push({
105
105
  method,
106
106
  pattern,
107
- callback
107
+ callback,
108
108
  });
109
109
  }
110
110
  }
package/lib/server.js CHANGED
@@ -58,7 +58,7 @@ export class JupyterServer {
58
58
  app.get('/api/contents(.*)', async (req, filename) => {
59
59
  var _a;
60
60
  const options = {
61
- content: ((_a = req.query) === null || _a === void 0 ? void 0 : _a.content) === '1'
61
+ content: ((_a = req.query) === null || _a === void 0 ? void 0 : _a.content) === '1',
62
62
  };
63
63
  const nb = await this._contents.get(filename, options);
64
64
  if (!nb) {
package/lib/service.js CHANGED
@@ -17,8 +17,8 @@ export class LiteServiceManager extends ServiceManager {
17
17
  serverSettings: {
18
18
  ...ServerConnection.makeSettings(),
19
19
  WebSocket,
20
- fetch: (_a = server.fetch.bind(server)) !== null && _a !== void 0 ? _a : undefined
21
- }
20
+ fetch: (_a = server.fetch.bind(server)) !== null && _a !== void 0 ? _a : undefined,
21
+ },
22
22
  });
23
23
  this._server = server;
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlite/server",
3
- "version": "0.1.0-alpha.19",
3
+ "version": "0.1.0-alpha.23",
4
4
  "description": "JupyterLite - Server",
5
5
  "homepage": "https://github.com/jupyterlite/jupyterlite",
6
6
  "bugs": {
@@ -42,30 +42,30 @@
42
42
  "watch": "tsc -b --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@jupyterlab/coreutils": "~5.2.6",
46
- "@jupyterlab/nbformat": "~3.2.6",
47
- "@jupyterlab/observables": "~4.2.6",
48
- "@jupyterlab/services": "~6.2.6",
49
- "@jupyterlab/settingregistry": "~3.2.6",
50
- "@jupyterlab/statedb": "~3.2.6",
51
- "@jupyterlite/contents": "^0.1.0-alpha.19",
52
- "@jupyterlite/kernel": "^0.1.0-alpha.19",
53
- "@jupyterlite/session": "^0.1.0-alpha.19",
54
- "@jupyterlite/settings": "^0.1.0-alpha.19",
55
- "@jupyterlite/translation": "^0.1.0-alpha.19",
45
+ "@jupyterlab/coreutils": "~5.2.9",
46
+ "@jupyterlab/nbformat": "~3.2.9",
47
+ "@jupyterlab/observables": "~4.2.9",
48
+ "@jupyterlab/services": "~6.2.9",
49
+ "@jupyterlab/settingregistry": "~3.2.9",
50
+ "@jupyterlab/statedb": "~3.2.9",
51
+ "@jupyterlite/contents": "^0.1.0-alpha.23",
52
+ "@jupyterlite/kernel": "^0.1.0-alpha.23",
53
+ "@jupyterlite/session": "^0.1.0-alpha.23",
54
+ "@jupyterlite/settings": "^0.1.0-alpha.23",
55
+ "@jupyterlite/translation": "^0.1.0-alpha.23",
56
56
  "@lumino/application": "^1.20.0",
57
57
  "@lumino/coreutils": "^1.8.0",
58
- "mock-socket": "^9.0.3"
58
+ "mock-socket": "^9.1.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@babel/core": "^7.11.6",
62
62
  "@babel/preset-env": "^7.12.1",
63
- "@jupyterlab/testutils": "~3.2.6",
63
+ "@jupyterlab/testutils": "~3.2.9",
64
64
  "@types/jest": "^26.0.10",
65
65
  "jest": "^26.4.2",
66
66
  "rimraf": "~3.0.0",
67
67
  "ts-jest": "^26.3.0",
68
- "typescript": "~4.2.3"
68
+ "typescript": "~4.5.2"
69
69
  },
70
70
  "publishConfig": {
71
71
  "access": "public"