@xwiki/cristal-realtime 0.11.0 → 0.13.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-realtime",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -14,20 +14,22 @@
14
14
  },
15
15
  "type": "module",
16
16
  "dependencies": {
17
- "@hocuspocus/server": "2.13.7",
18
- "express": "4.21.1",
17
+ "@hocuspocus/server": "2.15.0",
18
+ "express": "4.21.2",
19
19
  "express-ws": "5.0.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/express": "5.0.0",
23
23
  "@types/express-ws": "3.0.5",
24
24
  "esbuild": "0.24.0",
25
- "tsx": "4.19.1"
25
+ "tsx": "4.19.2",
26
+ "typescript": "5.6.3",
27
+ "vite": "6.0.3"
26
28
  },
27
29
  "scripts": {
28
30
  "build": "tsc --project tsconfig.json && esbuild ./src/index.ts --bundle --outfile=dist/index.js --platform=node",
29
31
  "clean": "rimraf dist",
30
32
  "dev": "tsx src/index.ts",
31
- "lint": "eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0"
33
+ "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0"
32
34
  }
33
35
  }
package/src/index.ts CHANGED
@@ -18,9 +18,9 @@
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
19
  */
20
20
 
21
+ import { Server as HocuspocusServer } from "@hocuspocus/server";
21
22
  import express from "express";
22
23
  import expressWebsockets from "express-ws";
23
- import { Server as HocuspocusServer } from "@hocuspocus/server";
24
24
 
25
25
  const hocuspocusServer = HocuspocusServer.configure({
26
26
  // See https://developer.chrome.com/blog/timer-throttling-in-chrome-88/
package/tsconfig.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "rootDir" : "src",
4
- "outDir" : "dist",
3
+ "rootDir": "src",
4
+ "outDir": "dist"
5
5
  },
6
6
  "extends": "./../tsconfig.json",
7
- "include": ["src"],
7
+ "include": [
8
+ "src"
9
+ ],
10
+ "exclude": [
11
+ "**/*.spec.ts",
12
+ "**/*.test.ts"
13
+ ]
8
14
  }